Package: curlftpfs

Version: 0.9.1-1+b1

I was connecting to my ftp server (running debian sarge,
pure-ftpd-postgresql v: 1.0.19-4), after succesful connection, i tried to
list files in directory and open file with permissions 644 owned by
different user than me, file was in directory owned by me with perms 755. I
succesfully opened this file by vim editor, after closing editor (by :q!)
and try to do ls again i got error

 "ls: .: Transport endpoint is not connected",

than i executed curlftpfs via strace which ended by SIGSEGV. Strace output
is listed bellow. When i changed owner of this file to me, problem
disapeared.
kernel package: linux-image-2.6.21-2-486   kernel version: 2.6.21-6


---- Debugging command:

strace -r -f -s 200 ./ekofilm > strace.curlftpfs 2>&1

----- Script "ekofilm"

#cat ekofilm

#!/bin/bash

curlftpfs -o user=<user>:<pass> <server> /mnt/ekofilm

----- Commands invoked to simulate crash:

debian:/mnt# cd ekofilm/
debian:/mnt/ekofilm# vim fotogalerie.php
debian:/mnt/ekofilm# ls
ls: .: Transport endpoint is not connected


last words from strace:


[pid  3676]      0.000063 writev(4,
[{"\210\0\0\0\0\0\0\0\177\0\0\0\0\0\0\0", 16},
{"\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\0\0\0\0\0\20\0\0\0\0\0\0\10\0\0\0\0\0\0\0LL\267F\0\0\0\0LL\267F\0\0\0\0LL\267F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\244\201\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",
120}], 2) = 136
[pid  3676]      0.000207 read(4,
"=\0\0\0\n\0\0\0\200\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0Y\16\0\0\0\0\0\0.fotogalerie.php.swn\0",
135168) = 61
[pid  3676]      0.000145 gettimeofday({1186421429, 197485}, NULL) = 0
[pid  3676]      0.000055 gettimeofday({1186421429, 197536}, NULL) = 0
[pid  3676]      0.000054 gettimeofday({1186421429, 197590}, NULL) = 0
[pid  3676]      0.000097 open("/root/.netrc", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
[pid  3676]      0.000097 poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0
[pid  3676]      0.000065 gettimeofday({1186421429, 197849}, NULL) = 0
[pid  3676]      0.000052 gettimeofday({1186421429, 197901}, NULL) = 0
[pid  3676]      0.000063 gettimeofday({1186421429, 197966}, NULL) = 0
[pid  3676]      0.000071 send(5, "CWD /\r\n", 7, MSG_NOSIGNAL) = 7
[pid  3676]      0.000116 gettimeofday({1186421429, 198152}, NULL) = 0
[pid  3676]      0.000052 gettimeofday({1186421429, 198203}, NULL) = 0
[pid  3676]      0.000050 gettimeofday({1186421429, 198253}, NULL) = 0
[pid  3676]      0.000050 poll([{fd=5, events=POLLIN|POLLPRI,
revents=POLLIN}], 1, 3600000) = 1
[pid  3676]      0.024437 recv(5, "250 OK. Current directory is /\r\n",
16384, 0) = 32
[pid  3676]      0.000089 send(5, "SIZE (nil)\r\n", 12, MSG_NOSIGNAL) = 12
[pid  3676]      0.000090 gettimeofday({1186421429, 222921}, NULL) = 0
[pid  3676]      0.000054 gettimeofday({1186421429, 222974}, NULL) = 0
[pid  3676]      0.000051 gettimeofday({1186421429, 223026}, NULL) = 0
[pid  3676]      0.000053 poll([{fd=5, events=POLLIN|POLLPRI,
revents=POLLIN}], 1, 3600000) = 1
[pid  3676]      0.019810 recv(5, "550 Can\'t check for file existence\r\n",
16384, 0) = 36
[pid  3676]      0.000081 send(5, "REST 0\r\n", 8, MSG_NOSIGNAL) = 8
[pid  3676]      0.000086 gettimeofday({1186421429, 243056}, NULL) = 0
[pid  3676]      0.000053 gettimeofday({1186421429, 243108}, NULL) = 0
[pid  3676]      0.000051 gettimeofday({1186421429, 243160}, NULL) = 0
[pid  3676]      0.000052 poll([{fd=5, events=POLLIN|POLLPRI,
revents=POLLIN}], 1, 3600000) = 1
[pid  3676]      0.019161 recv(5, "350 Restarting at 0\r\n", 16384, 0) = 21
[pid  3676]      0.000078 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 3669 detached
Process 3676 detached
[pid  3671]      0.000223 <... read resumed> 0xb7273008, 135168) = ?
ERESTARTSYS (To be restarted)
[pid  3670]      0.000034 <... read resumed> 0xb7a96008, 135168) = ?
ERESTARTSYS (To be restarted)
[pid  3672]      0.000029 <... read resumed> 0xb6a50008, 135168) = ?
ERESTARTSYS (To be restarted)
[pid  3671]      0.000074 +++ killed by SIGSEGV +++
PANIC: handle_group_exit: 3671 leader 3669
Process 3671 detached
[pid  3670]      0.000044 +++ killed by SIGSEGV +++
PANIC: handle_group_exit: 3670 leader 3669
Process 3670 detached
[pid  3672]      0.002700 +++ killed by SIGSEGV +++
PANIC: handle_group_exit: 3672 leader 3669
Process 3672 detached
Process 3669 detached


Thanks,
Adam Bohac

Reply via email to