cURL / Mailing Lists / curl-library / Single Mail

curl-library

Curl-7.7: segfault in Curl_ftp_disconnect

From: Budhia, Ravi <ravi_at_desanasystems.com>
Date: Thu, 7 Jun 2001 21:31:23 -0700

Hi,

I'm using the 7.7 version of the curl library to perform an ftp operation.
In the case where the host does not exist, I get a segfault. This is part
of the stack trace:

----------------------------
This GDB was configured as "i386-redhat-linux"...
Core was generated by `./imgman_mgr'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libpthread.so.0...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
Reading symbols from /lib/libnss_nis.so.2...done.
Reading symbols from /lib/libnsl.so.1...done.
#0 Curl_ftp_disconnect (conn=0x82d3dd8) at ftp.c:1723
(gdb) bt
#0 Curl_ftp_disconnect (conn=0x82d3dd8) at ftp.c:1723
#1 0x811772a in Curl_disconnect (conn=0x82d3dd8) at url.c:806
#2 0x8119337 in Curl_connect (data=0x82c7030, in_connect=0xbfffe284,
    allow_port=1) at url.c:2130
#3 0x811dbd7 in Curl_perform (curl=0x82c7030) at transfer.c:744
#4 0x8116b7b in curl_easy_perform (curl=0x82c7030) at easy.c:136
#5 0x8115700 in img_do_file_transfer (img_ft=0xbfffe83c)
-------------------------------------------------

The ftp pointer in Curl_ftp_disconnect is NULL. I can avoid the core dump
by checking the ftp pointer, but don't know why that pointer is NULL. Anyone
have any clues?

Thanks!

Ravi

_______________________________________________
Curl-library mailing list
Curl-library_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-library
Received on 2001-06-08