cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Segmentation fault | curl ftp

From: Luis Gonzalez <lgonzalezsa_at_gmail.com>
Date: Thu, 16 Feb 2012 10:49:04 -0600

I hope this can help:

1. # gdb curl
2. (gdb) run --noproxy 10.129.33.98 -T procesa.pid -v -Q "TYPE I" -Q "PWD" oracle:bdd98oracle ftp://10.129.33.98
.
.
...
< 229 Extended Passive mode OK (|||43795|)

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff74d8660 in inet_pton4 () from /lib64/libc.so.6
(gdb) where
#0 0x00007ffff74d8660 in inet_pton4 () from /lib64/libc.so.6
#1 0x00007ffff74d879b in inet_pton () from /lib64/libc.so.6
#2 0x00007ffff7bb7719 in Curl_getaddrinfo () from /usr/local/lib/libcurl.so.4
#3 0x00007ffff7b8b48f in Curl_resolv () from /usr/local/lib/libcurl.so.4
#4 0x00007ffff7b9728e in ftp_state_pasv_resp () from /usr/local/lib/libcurl.so.4
#5 0x00007ffff7b9847b in ftp_statemach_act () from /usr/local/lib/libcurl.so.4
#6 0x00007ffff7b95380 in ftp_easy_statemach () from /usr/local/lib/libcurl.so.4
#7 0x00007ffff7b99d28 in ftp_do () from /usr/local/lib/libcurl.so.4
#8 0x00007ffff7ba207b in Curl_do () from /usr/local/lib/libcurl.so.4
#9 0x00007ffff7bad439 in Curl_do_perform () from /usr/local/lib/libcurl.so.4
#10 0x0000000000409948 in operate ()
#11 0x00007fffffffdc20 in ?? ()
#12 0x00007fffffffdc50 in ?? ()
#13 0x0000000000648680 in ?? ()
#14 0x0000000000000000 in ?? ()
(gdb)

Luis Gonzalez
lgonzalezsa_at_gmail.com

On Feb 16, 2012, at 3:39 AM, Daniel Stenberg wrote:

> On Wed, 15 Feb 2012, Luis Gonzalez wrote:
>
>> Hello list, I was trying to use curl to put a file in a FTP Server, but I got a Segmentation fault.
>
>> 1. I try to remove options
>> 2. I try different versions os curl (7.20.1 and 7.24.0)
>
> Can you run it with a debugger like gdb and see more exactly where it crashes?
>
> (Can I also mention that both your -Q options are pointless...)
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-users
> FAQ: http://curl.haxx.se/docs/faq.html
> Etiquette: http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-02-16