NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/52699: on RPi, mount_psshfs crashes when under heavy load

>Number:         52699
>Category:       bin
>Synopsis:       on RPi, mount_psshfs crashes when under heavy load
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 05 07:55:00 +0000 2017
>Originator:     Dean Matzkov
>Release:        pkgsrc-2017Q3
NetBSD localhost 7.1 NetBSD 7.1 (GENERIC.201703111743Z) amd64
When /usr/sbin/mount_sshfs is under heavy load for a while, it seems to crash. I've been able to reproduce this twice on my Raspberry Pi 1, model B (the ooooold, slow, single-core one with 512 MB of RAM) while foolishy using a pkgsrc tree mounted via SSHFS/SFTP.

The RPi OS image I used is from here, `dd'-ed straight to my SD card:

Here's some GDB output (cmd: gdb /usr/sbin/mount_psshfs mount_psshfs.core):

[New process 1]
Core was generated by `mount_psshfs'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x401d17d8 in memcpy () from /usr/lib/
(gdb) bt
#0  0x401d17d8 in memcpy () from /usr/lib/
#1  0x400689c4 in puffs_framebuf_putdata () from /usr/lib/
#2  0x000147a0 in psbuf_put_data ()
#3  0x000136bc in psshfs_node_read ()
#4  0x40067038 in ?? () from /usr/lib/
#5  0x400675b4 in puffs.ml_dispatch () from /usr/lib/
#6  0x40069bb0 in puffs.framev_input () from /usr/lib/
#7  0x4006bb34 in puffs.theloop () from /usr/lib/
#8  0x40146610 in inet_network () from /usr/lib/
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

And here is the aforementioned mount_psshfs.core file from my device:

Note that this might very well be a bug (or perhaps a feature?) that has nothing to do with running on a Raspberry Pi 1, model B (and thus, why this is filed under `bin' and not port-*).
On server:

$ git clone --depth 1 -b pkgsrc-2017Q3 pkgsrc_export

On client (in this case, the Raspberry Pi device):

# /usr/sbin/mount_psshfs USER@SERVER:pkgsrc_export /home/USER/pkgsrc
$ cd ~/pkgsrc/editors/vim
$ make

Wait for a few minutes, and eventually, KABOOM. Followed by, possibly, a core dump called /root/mount_psshfs.core.
None, sadly. (Where are the debug sets for the RPi?)

Home | Main Index | Thread Index | Old Index