I've been getting a crash of some sort with sshfs-1.8.
Some system details:
ppc arch
openssh-4.7p1
fuse-2.6.4
kernel 2.6.20
Test details:
I have some media files I want to transfer from encoders to a remote
server via ssh since it can be niced better than nfs and is faster than
smb. FTP was also ruled out, though I forget why now. During file copy
sshfs segfaults or just dies and the client side gets this message:
"Transport endpoint is not connected."
Here's a test I've been using the reproduce the problem:
# Make some fake media files.
cd /tmp
mkdir tmp
for i in `seq 1 3`; do
dd if=/dev/urandom of=test${i} bs=1M count=128
done
for i in `seq 4 6`; do
dd if=/dev/urandom of=test${i} bs=1M count=512
done
for i in `seq 7 9`; do
dd if=/dev/urandom of=test${i} bs=1M count=1024
done
# Mount the remote server via sshfs
sshfs user@... /mnt/tmp -d -s -o sshfs_debug -o reconnect -o
intr -o IdentityFile=/home/user/.ssh/id_dsa -o Ciphers=arcfour -o
ServerAliveInterval=15 2>&1 | tee sshfs.out
mkdir /mnt/tmp/.tmp
### Repeat from here down ####
cp test[1-9] tmp/
# Cleanup the remote server side to avoid rename workaround.
rm /mnt/tmp/.tmp/test[1-9]
rm /mnt/tmp/test[1-9]
# Move them to a remote server so that they're
# only visible once they're ready.
for i in `seq 1 9`; do
mv tmp/test${i} /mnt/tmp/.tmp/test{$i} \
&& mv /mnt/tmp/.tmp/test{$i} /mnt/tmp/
done
Eventually, the program output will do one of several things:
1) just die
2) segfault
3) report an out of memory condition
All three result in output like this when I do a df:
# df /mnt/tmp
"Transport endpoint is not connected"
To correct the error I can do "umount /mnt/tmp" and remount it, but
that's such a pain with how often its happening.
Any suggestions?
Let me know if you need more output.
Thanks,
Brian
Brief snippit from the 8M+ output capture:
[101818] WRITE
WRITE[4148168864] 4096 bytes
unique: 101966, error: 0 (Success), outsize: 24
[101817] STATUS 28bytes (0ms)
unique: 101967, opcode: WRITE (16), nodeid: 10, insize: 4160
WRITE[4148168864] 4096 bytes to 13963264
[101819] WRITE
WRITE[4148168864] 4096 bytes
unique: 101967, error: 0 (Success), outsize: 24
[101818] STATUS 28bytes (0ms)
unique: 101968, opcode: WRITE (16), nodeid: 10, insize: 4160
WRITE[4148168864] 4096 bytes to 13967360
[101820] WRITE
WRITE[4148168864] 4096 bytes
unique: 101968, error: 0 (Success), outsize: 24
[101819] STATUS 28bytes (0ms)
unique: 101969, opcode: WRITE (16), nodeid: 10, insize: 4160
WRITE[4148168864] 4096 bytes to 13971456
[101821] WRITE
WRITE[4148168864] 4096 bytes
unique: 101969, error: 0 (Success), outsize: 24
unique: 101970, opcode: WRITE (16), nodeid: 10, insize: 4160
WRITE[4148168864] 4096 bytes to 13975552
[101822] WRITE
WRITE[4148168864] 4096 bytes
unique: 101970, error: 0 (Success), outsize: 24
[101820] STATUS 28bytes (1ms)
[101821] STATUS 28bytes (0ms)
unique: 101971, opcode: WRITE (16), nodeid: 10, insize: 4160
WRITE[4148168864] 4096 bytes to 13979648
[101823] WRITE
WRITE[4148168864] 4096 bytes
unique: 101971, error: 0 (Success), outsize: 24
unique: 101972, opcode: WRITE (16), nodeid: 10, insize: 4160
WRITE[4148168864] 4096 bytes to 13983744
[101824] WRITE
WRITE[4148168864] 4096 bytes
unique: 101972, error: 0 (Success), outsize: 24
unique: 101973, opcode: WRITE (16), nodeid: 10, insize: 4160
WRITE[4148168864] 4096 bytes to 13987840
[101825] WRITE
WRITE[4148168864] 4096 bytes
unique: 101973, error: 0 (Success), outsize: 24
[101822] STATUS 28bytes (1ms)
unique: 101974, opcode: WRITE (16), nodeid: 10, insize: 4160
WRITE[4148168864] 4096 bytes to 13991936
[101826] WRITE
[101823] STATUS 28bytes (1ms)
[101824] STATUS 28bytes (0ms)
WRITE[4148168864] 4096 bytes
unique: 101974, error: 0 (Success), outsize: 24
[101825] STATUS 28bytes (0ms)
unique: 101975, opcode: WRITE (16), nodeid: 10, insize: 4160
WRITE[4148168864] 4096 bytes to 13996032
[101827] WRITE
WRITE[4148168864] 4096 bytes
unique: 101975, error: 0 (Success), outsize: 24
[101826] STATUS 28bytes (0ms)
unique: 101976, opcode: WRITE (16), nodeid: 10, insize: 4160
WRITE[4148168864] 4096 bytes to 14000128
[101828] WRITE
WRITE[4148168864] 4096 bytes
unique: 101976, error: 0 (Success), outsize: 24
unique: 101977, opcode: WRITE (16), nodeid: 10, insize: 4160
WRITE[4148168864] 4096 bytes to 14004224
[101829] WRITE
WRITE[4148168864] 4096 bytes
unique: 101977, error: 0 (Success), outsize: 24
[101827] STATUS 28bytes (0ms)
[101828] STATUS 28bytes (0ms)
[101829] STATUS 28bytes (0ms)
unique: 101978, opcode: WRITE (16), nodeid: 10, insize: 4160
WRITE[4148168864] 4096 bytes to 14008320
sshfs: memory allocation failed
|