crashing with SIGABRT while scanning network or reading some files

Bug #293233 reported by Andrey Gusev
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
samba
Invalid
Unknown
fusesmb (Ubuntu)
New
Undecided
Unassigned
samba (Ubuntu)
Incomplete
Medium
Unassigned
smbnetfs (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: fusesmb

My distribution is Ubuntu Intrepid 8.10. Fusesmb version is 0.8.7-1.

This is a backtrace of fusesmb built with debug info.
This error appears randomly while reading many files from share (this backtrace got with with cd ~/Network/MSHOME/PMAIN/files; cat * > /dev/null). I can't understand what really causes it.

By the way there is some deprecation warnings while building it.

--- BEGIN BACKTRACE ---
Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb5d0eb90 (LWP 10407)]
0xb7f55430 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7f55430 in __kernel_vsyscall ()
#1 0xb7a26880 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7a28248 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb79e93e5 in _talloc_realloc () from /usr/lib/libtalloc.so.1
#4 0xb7ba87c6 in ?? () from /usr/lib/libsmbclient.so.0
#5 0xb7ba912b in ?? () from /usr/lib/libsmbclient.so.0
#6 0xb7ba9370 in ?? () from /usr/lib/libsmbclient.so.0
#7 0xb7ba9474 in ?? () from /usr/lib/libsmbclient.so.0
#8 0xb7bfc722 in ?? () from /usr/lib/libsmbclient.so.0
#9 0xb7bf7bc9 in ?? () from /usr/lib/libsmbclient.so.0
#10 0xb7bf8325 in ?? () from /usr/lib/libsmbclient.so.0
#11 0xb7bf9071 in ?? () from /usr/lib/libsmbclient.so.0
#12 0xb7b71e8a in ?? () from /usr/lib/libsmbclient.so.0
#13 0x08049dab in fusesmb_opendir (path=0x8717660 "/MSHOME/PMAIN/downloads/Alpha", fi=0xb5d0e1ec) at fusesmb.c:367
#14 0xb7f0f71e in fuse_fs_opendir () from /lib/libfuse.so.2
#15 0xb7f1426d in ?? () from /lib/libfuse.so.2
#16 0xb7f16d3f in ?? () from /lib/libfuse.so.2
#17 0xb7f15fa9 in ?? () from /lib/libfuse.so.2
#18 0xb7f18b06 in fuse_session_process () from /lib/libfuse.so.2
#19 0xb7f14a99 in ?? () from /lib/libfuse.so.2
#20 0xb7ef450f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#21 0xb7adc7ee in clone () from /lib/tls/i686/cmov/libc.so.6
--- END BACKTRACE ---

Revision history for this message
Andrey Gusev (gauss-gs) wrote :

Looks like it's a problem with threads. Because of fusesmb -d -s -f is working without problems.

Revision history for this message
Forest (foresto) wrote :

I'm having what appears to be the same problem with smbnetfs: a crash when accessing an SMB network share. It took longer when I ran it in non-threaded mode, but it eventually happened. SIGABRT showed up when running under gdb. After this occurs, accessing my mount point fails and sometimes produces a "Transport endpoint is not connected" error message.

The problem might lie in libsmbclient.

It might be related to bug 198351.

Revision history for this message
Forest (foresto) wrote :

This problem appeared after I upgraded from Hardy to Intrepid.

Revision history for this message
Forest (foresto) wrote :

Tying together more related bug reports...

(Debian 503038 and Samba 5847 contain some enlightening comments from the smbnetfs and samba developers)

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503038
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497572
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502129

Revision history for this message
Chuck Short (zulcss) wrote :

Can you try the version in my ppa (http://launchpad.net/~zulcss/+archive).

Thanks
chuck

Revision history for this message
Forest (foresto) wrote :

I don't see smbnetfs or fusesmb in your ppa. What would you like us to try, and what's different between it and the official version?

Changed in samba:
status: Unknown → Invalid
Revision history for this message
gsoundsgood (gsoundsgood) wrote :

confirm the bug...not found how to solve this problem, yet...

Revision history for this message
muzzol (muzzol) wrote :

i wrote a fusesmb.cache replacement.

you can try it alone and see the results in $HOME/.smb/fusesmb.cache file

to truly replace fusesmb.cache just rename the original

mv -f /usr/bin/fusesmb.cache /usr/bin/fusesmb.cache.orig

and copy my script to /usr/bin/fusesmb.cache

it generates a log on /tmp/muzsmbls.log

test it and modify it at your will.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

upstream on bug https://bugzilla.samba.org/show_bug.cgi?id=5847 is asking for a valgrind log could somebody facing the issue follow these instructions https://wiki.ubuntu.com/Valgrind and get a valgring log? Thanks in advance.

Changed in samba:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Mikhail Kshevetskiy (laska) wrote :

Please update SMBNetFS to latest git/debian version.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.