Package: sshfs
Version: 1.7-2.1
Severity: normal

--- Please enter the report below this line. ---

Hello,

How to reproduce:

the machine A have a glusterfs[0] mount at /mnt/gf
the machine B use `sshfs A:/mnt/gf /mnt/gfB` to mount it.

[0] www.gluster.org/docs/index.php/GlusterFS

then under /mnt/gfB, run `dd if=/dev/zero of=zero', you will recieve [1] and 
crashed. And then the /mnt/gfB is auto umounted.

the full gdb trace in [2].

I think you also can reproduce this when machine A has a not-so-fast device, 
for example, a USB 1.0 disk.

-------------------------------------------------------------------
[1]
dd: writing to `zero': Input/output error
dd: closing output file `zero': Software caused connection abort

[2]
write: Connection reset by peer
remote host has disconnected
[Thread 1098918208 (LWP 17567) exited]

Program received signal SIGTERM, Terminated.
[Switching to Thread 47626664402480 (LWP 17559)]
0x00002b50f213d43d in sem_wait () from /lib/libpthread.so.0

Full backtrace:
Thread 5 (Thread 1107310912 (LWP 17569)):
#0  0x00002b50f2414533 in writev () from /lib/libc.so.6
No symbol table info available.
#1  0x000000000040376f in sftp_send_iov (type=<value optimized out>, id=<value 
optimized out>, iov=<value optimized out>, count=2) at sshfs.c:768
        res = <value optimized out>
        buf = {p = 0x65e5b0 "", len = 9, size = 64}
        iovout = {{iov_base = 0x65e5b0, iov_len = 9}, {iov_base = 0x60f290, 
iov_len = 20}, {iov_base = 0x2aaaaaacd050, iov_len = 4096}}
        i = <value optimized out>
        nout = <value optimized out>
        __PRETTY_FUNCTION__ = "sftp_send_iov"
#2  0x0000000000404e4f in sftp_request_send (type=6 '\006', iov=0x42002f60, 
count=2, begin_func=<value optimized out>,
    end_func=<value optimized out>, want_reply=101, data=0x0, reqp=0x42002f20) 
at sshfs.c:1351
        err = 0
        id = 7469
        req = <value optimized out>
#3  0x00000000004050c6 in sftp_request_iov (type=<value optimized out>, 
iov=0x42002e30, count=3, expect_type=101 'e', outbuf=0x0) at sshfs.c:1377
        req = (struct request *) 0x1000
#4  0x0000000000405283 in sshfs_write (path=<value optimized out>, 
wbuf=0x2aaaaaacd050 "", size=4096, offset=<value optimized out>,
    fi=<value optimized out>) at sshfs.c:2115
        err = <value optimized out>
        buf = {p = 0x60f290 "", len = 20, size = 64}
        sf = (struct sshfs_file *) 0x647fa0
        iov = {{iov_base = 0x60f290, iov_len = 20}, {iov_base = 
0x2aaaaaacd050, iov_len = 4096}}
#5  0x000000000040840e in cache_write (path=0x5 <Address 0x5 out of bounds>, 
buf=0x42002e30 "<B0><E5>e", size=3, offset=-1, fi=0x650fe0) at cache.c:4
07
        res = <value optimized out>
#6  0x00002b50f186f5b3 in ?? () from /lib/libfuse.so.2
No symbol table info available.
#7  0x00002b50f18727f7 in ?? () from /lib/libfuse.so.2
No symbol table info available.
#8  0x00002b50f1871817 in ?? () from /lib/libfuse.so.2
No symbol table info available.
#9  0x00002b50f21372a5 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
(More stack frames follow...)

Thread 3 (Thread 1090525504 (LWP 17566)):
#0  0x00002b50f213dfdb in ?? () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00002b50f187142a in ?? () from /lib/libfuse.so.2
No symbol table info available.
#2  0x00002b50f18717b4 in ?? () from /lib/libfuse.so.2
No symbol table info available.
#3  0x00002b50f21372a5 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#4  0x00002b50f241b61d in clone () from /lib/libc.so.6
No symbol table info available.
#5  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 2 (Thread 1082132800 (LWP 17565)):
#0  0x00002b50f213dfdb in ?? () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00002b50f187142a in ?? () from /lib/libfuse.so.2
No symbol table info available.
#2  0x00002b50f18717b4 in ?? () from /lib/libfuse.so.2
No symbol table info available.
#3  0x00002b50f21372a5 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#4  0x00002b50f241b61d in clone () from /lib/libc.so.6
No symbol table info available.
#5  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 1 (Thread 47626664402480 (LWP 17559)):
#0  0x00002b50f213d43d in sem_wait () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00002b50f18719b5 in fuse_session_loop_mt () from /lib/libfuse.so.2
No symbol table info available.
#2  0x00002b50f1875794 in ?? () from /lib/libfuse.so.2
No symbol table info available.
#3  0x000000000040480a in main (argc=<value optimized out>, argv=<value 
optimized out>) at sshfs.c:2640
        res = <value optimized out>
        args = {argc = 6, argv = 0x60f140, allocated = 1}
        tmp = <value optimized out>
        fsname = 0x60e190 "@<FC>`"
        base_path = 0x7fffb9463d30 "p<E0>`"
        sftp_server = <value optimized out>



--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.23-1-686

Debian Release: lenny/sid
  500 unstable        debian.cn99.com 

--- Package information. ---
Depends              (Version) | Installed
==============================-+-============
fuse-utils                     | 2.7.1-1
libc6               (>= 2.7-1) | 2.7-5
libfuse2              (>= 2.6) | 2.7.1-1
libglib2.0-0       (>= 2.14.0) | 2.14.4-2
openssh-client                 | 1:4.6p1-7
 OR ssh-client                 | 




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to