Pogoplug sshfs crashes when writing files

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Pogoplug sshfs crashes when writing files

Postby ikwyl6 » Tue Oct 21, 2014 10:13 pm

I found this post but it is now inactive (viewtopic.php?f=53&t=4736&p=25862&hilit=sshfs+write#p25862).

I am having the same problem as this post but I am mounting sshfs partition on a Rpi (Machine A). My other machine, a pogoplug with arch linux (Machine B) crashes when I try to write from B to A. The crash happens on the pogoplug side and not on the server side (Machine A).

Machine A (Rpi): $this->bbcode_second_pass_code('', 'Linux alarmpi 3.12.21-1-ARCH #1 PREEMPT Sat Jun 7 07:17:37 MDT 2014 armv6l GNU/Linux')
Machine B (Pogoplug): $this->bbcode_second_pass_code('', 'Linux pp 3.16.6-1-ARCH #1 PREEMPT Thu Oct 16 06:14:21 MDT 2014 armv5tel GNU/Linux')

When running sshfs from Machine B with gdb I get this:

$this->bbcode_second_pass_code('', 'gdb --args sshfs -o sshfs_debug -f pi:/mnt/seagate_500 /mnt/seagate_500/
GNU gdb (GDB) 7.8
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "armv5tel-unknown-linux-gnueabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from sshfs...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/sshfs -o sshfs_debug -f pi:/mnt/seagate_500 /mnt/seagate_500/
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
SSHFS version 2.5
executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-2> <pi> <-s> <sftp>
Server version: 3
Extension: posix-rename@openssh.com <1>
Extension: statvfs@openssh.com <2>
Extension: fstatvfs@openssh.com <2>
Extension: hardlink@openssh.com <1>
Extension: fsync@openssh.com <1>
[New Thread 0xb6c90460 (LWP 4236)]
[New Thread 0xb62ff460 (LWP 4237)]
[New Thread 0xb5aff460 (LWP 4238)]
')

sshfs will run fine until I start writing files from transmission that is writing files to this sshfs mounted partition on Machine A that is causes some problems:

$this->bbcode_second_pass_code('', '
.........
[08578] READ
[08579] OPEN
[08580] LSTAT
[08578] DATA 4109bytes (4ms)
[08581] READ
[08582] READ
[08583] READ
[08584] READ
[08585] READ
[08586] READ
[08587] READ
[08588] READ
[08589] READ
[08579] HANDLE 17bytes (32ms)
[08580] ATTRS 41bytes (32ms)
[08590] FSTAT
[08581] DATA 32781bytes (29ms)
[08582] DATA 32781bytes (54ms)
[08583] DATA 32781bytes (67ms)
[08584] DATA 32781bytes (78ms)
[08585] DATA 32781bytes (89ms)
[08586] DATA 32781bytes (99ms)
[08587] DATA 32781bytes (111ms)
[08588] DATA 32781bytes (116ms)
[08589] DATA 4109bytes (111ms)
[08590] ATTRS 41bytes (92ms)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb50ff460 (LWP 4099)]
0x0000ebbc in ?? ()
(gdb) backtrace
#0 0x0000ebbc in ?? ()
#1 0xb6e6e93c in pthread_mutex_lock () from /usr/lib/libpthread.so.0
#2 0x00000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
')

I see that sshfs doesn't have debugging compiled into the package so it really doesn't tell me anything.

Dpes anyone have any ideas or has anyone come across this issue before?
ikwyl6
 
Posts: 3
Joined: Sun Apr 28, 2013 3:14 am

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 14 guests