Note that there are some explanatory texts on larger screens.

plurals
  1. POlibcurl strange crashes after Idle time
    primarykey
    data
    text
    <p>I use libcurl for FTP works and it works fine but if left idle for some time it just crashes. Here is the backtrace which despite reading it for some time I cannot make sense of what is wrong. The trace does not show where in my functions crash originates and so am left orphan here by debugger. I use threads if that add value Compiler is GCC 4.7 on Linux</p> <pre><code>0 0x00007fff8e09b524 addbyter /home/stefano/Desktop/myproject/curl-7.33.0/lib/mprintf.c 914 1 0x00007fff8e09a32f dprintf_formatf /home/stefano/Desktop/myproject/curl-7.33.0/lib/mprintf.c 572 2 0x00007fff8e09b5a4 curl_mvsnprintf /home/stefano/Desktop/myproject/curl-7.33.0/lib/mprintf.c 932 3 0x00007fff8e089510 Curl_failf /home/stefano/Desktop/myproject/curl-7.33.0/lib/sendf.c 152 4 0x00007fff8e07dbf4 Curl_resolv_timeout /home/stefano/Desktop/myproject/curl-7.33.0/lib/hostip.c 618 5 0x00007fff78012bf8 ?? 6 0x000000c300000016 ?? 7 0x00007fff8e0d3604 ?? 8 0x0000000000000002 ?? 9 0x00000000001b7740 ?? 10 0x0000000000000000 ?? </code></pre> <p><strong>UPDATE 1</strong> Run it again under debugger and met a crash at the line</p> <pre><code>FILE *fd; fd = fopen(files[i].c_str(), "rb"); //&lt;---here goes the crash! </code></pre> <p>files[i].c_str() is supposed to give const* char from wxString The new BT is</p> <pre><code>0 0x00007fff8e08952a Curl_failf /home/stefano/Desktop/myproject/curl-7.33.0/lib/sendf.c 154 1 0x00007fff8e07dbf4 Curl_resolv_timeout /home/stefano/Desktop/myproject/curl-7.33.0/lib/hostip.c 618 2 0x00007fff780158c8 ?? 3 0x00000000001b7730 ?? 4 0x00007fff78009808 ?? 5 0x00007fff78015e79 ?? 6 0x00007fff78009808 ?? 7 0x00007fff8c8a04a0 ?? 8 0x00007fff8e0c84ca ftp_multi_statemach /home/stefano/Desktop/myproject/curl-7.33.0/lib/ftp.c 3113 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload