cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1785489 ] curlftpfs-0.9.1 + libcurl/7.16.4 segfaults on removing files

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Fri, 31 Aug 2007 03:39:40 -0700

Bugs item #1785489, was opened at 2007-08-31 12:37
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1785489&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: crash
>Status: Closed
>Resolution: Duplicate
Priority: 5
Private: No
Submitted By: maconey (maconey)
Assigned to: Daniel Stenberg (bagder)
Summary: curlftpfs-0.9.1 + libcurl/7.16.4 segfaults on removing files

Initial Comment:
hi,

i've tried curlftpfs wich uses libcurl as backend. it works somehow, but if i try to delete som files on my ftp-server curlftpfs crashes. It seems to be libcurls fault i think: (?)

$ gdb curlftpfs 15918
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /home/matze/curlftpfs-0.9.1/curlftpfs, process 15918
Reading symbols from /usr/lib64/libglib-2.0.so.0...done.
Loaded symbols for /usr/lib/libglib-2.0.so.0
Reading symbols from /usr/lib64/libfuse.so.2...done.
Loaded symbols for /usr/lib/libfuse.so.2
Reading symbols from /lib64/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /usr/lib64/libcurl.so.4...done.
Loaded symbols for /usr/lib/libcurl.so.4
Reading symbols from /usr/lib64/libidn.so.11...done.
Loaded symbols for /usr/lib/libidn.so.11
Reading symbols from /lib64/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib64/libgnutls.so.13...done.
Loaded symbols for /usr/lib/libgnutls.so.13
Reading symbols from /lib64/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /usr/lib64/libtasn1.so.3...done.
Loaded symbols for /usr/lib/libtasn1.so.3
Reading symbols from /usr/lib64/libgcrypt.so.11...done.
Loaded symbols for /usr/lib/libgcrypt.so.11
Reading symbols from /lib64/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/lib64/libgpg-error.so.0...done.
Loaded symbols for /usr/lib/libgpg-error.so.0
Reading symbols from /lib64/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread 47341994996704 (LWP 15918)]
[New Thread 1090525504 (LWP 15920)]
[New Thread 1082132800 (LWP 15919)]
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib64/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib64/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib64/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
Reading symbols from /lib64/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
0x00002b0eaa96e81d in ?? () from /lib/libpthread.so.0
(gdb) cont
Continuing.
[New Thread 1098918208 (LWP 15938)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1098918208 (LWP 15938)]
0x00002b0ea9ee72b0 in convert_lineends (data=0x50e140, startPtr=0x2b0ea9f15aee "Accept-ranges: bytes\r\n", size=22) at sendf.c:180
180 sendf.c: No such file or directory.
        in sendf.c
(gdb) bt
#0 0x00002b0ea9ee72b0 in convert_lineends (data=0x50e140, startPtr=0x2b0ea9f15aee "Accept-ranges: bytes\r\n", size=22) at sendf.c:180
#1 0x00002b0ea9ee7b54 in Curl_client_write (conn=0x517120, type=3, ptr=0x2b0ea9f15aee "Accept-ranges: bytes\r\n", len=22) at sendf.c:413
#2 0x00002b0ea9eeb80d in ftp_state_rest_resp (conn=0x517120, ftpcode=350, instate=FTP_REST) at ftp.c:2126
#3 0x00002b0ea9eec971 in ftp_statemach_act (conn=0x517120) at ftp.c:2771
#4 0x00002b0ea9eecd54 in ftp_easy_statemach (conn=0x517120) at ftp.c:2896
#5 0x00002b0ea9eedb94 in ftp_perform (conn=0x517120, connected=0x41801e6b, dophase_done=0x41801f47) at ftp.c:3458
#6 0x00002b0ea9eeec35 in ftp_regular_transfer (conn=0x517120, dophase_done=0x41801f47) at ftp.c:3950
#7 0x00002b0ea9eedc19 in Curl_ftp (conn=0x517120, done=0x41801f47) at ftp.c:3498
#8 0x00002b0ea9ef8921 in Curl_do (connp=0x41801f50, done=0x41801f47) at url.c:4299
#9 0x00002b0ea9f041bb in Curl_perform (data=0x50e140) at transfer.c:2421
#10 0x00002b0ea9f04afe in curl_easy_perform (curl=0x50e140) at easy.c:492
#11 0x0000000000404991 in ftpfs_unlink (path=0x527400 "/www/wikialt/.cvsignore") at ftpfs.c:780
#12 0x00000000004074f9 in cache_unlink (path=0x527400 "/www/wikialt/.cvsignore") at cache.c:346
#13 0x00002b0ea9cb82dc in ?? () from /usr/lib/libfuse.so.2
#14 0x00002b0ea9cb8e13 in ?? () from /usr/lib/libfuse.so.2
#15 0x00002b0ea9cbcd6f in ?? () from /usr/lib/libfuse.so.2
#16 0x00002b0eaa967135 in start_thread () from /lib/libpthread.so.0
#17 0x00002b0eaab3962d in clone () from /lib/libc.so.6
#18 0x0000000000000000 in ?? ()

note: i've a amd64, this could lead the problem.

steps to reproduce:

1. mount ftp server with ./curlftpfs server directory
2. delete a file: rm directory/somefile

curlftpfs crashes:
curlftpfs[16466]: segfault at 00002b2def586b02 rip 00002b2def5582b0 rsp 00000000407ffc10 error 7

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2007-08-31 12:39

Message:
Logged In: YES
user_id=1110
Originator: NO

This was already fixed in CVS and was already a duplicate in #1783162 ...

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1785489&group_id=976
Received on 2007-08-31

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET