[Samba] smbmount crashes machine if more than one program accesses share
micky at alum.mit.edu
Thu Apr 25 20:21:02 GMT 2002
For weeks, I've been trying to troubleshoot the following issue. I
mount a Windows 2000 share on my Linux machine successfully with
smbmount. When one program accesses the mounted share, everything
works fine. However, if more than one program accesses it, the system
will freeze - the mouse pointer won't move, and pressing NUM LOCK
won't even toggle the Num Lock light on the keyboard.
Distribution: None - I build the system according to
Kernel: 2.4.2 on i686
Samba: 2.2.3a (I just upgraded from 2.2.0, hoping this would fix the
problem, but it didn't)
Server: Windows 2000 Pro Service Pack 2
* I don't run the Samba service at all - just smbmount.
* I start smbmount with the following parameters:
/usr/local/samba/bin/smbmount //biscuit/MP3LIBRARY /opt/music \
* Please note that I do NOT use mount -t smbfs, but smbmount directly.
* I have a CPU-Meter running. Most of the time before the system
freezes, the use in CPU cycles goes drastically up.
* I still have to run more tests (not much fun if the system keeps
crashing), but I have the feeling that at least one of the programs
needs to write to the share in order for it to crash.
* The samba log file (/var/log/samba-log.smbmount) doesn't show
anything suspicious. On startup, the following entry is generated:
[2002/04/25 22:34:15, 0] client/smbmount.c:send_fs_socket(386)
mount.smbfs: entering daemon mode for service \\biscuit\MP3LIBRARY, pid=530
* The kernel log shows smb error messages sometimes, but I can't
reproduce them consistently. However, the following entry is quite
Apr 15 20:58:41 capital kernel: smb_retry: signal failed, error=-3
Apr 15 20:59:12 capital last message repeated 1817 times
Apr 15 21:00:13 capital last message repeated 3485 times
Apr 15 21:01:14 capital last message repeated 3480 times
Apr 15 21:02:15 capital last message repeated 3451 times
Apr 15 21:03:16 capital last message repeated 3480 times
Apr 15 21:04:25 capital last message repeated 2902 times
Apr 15 21:04:38 capital last message repeated 4 times
... and the following errors were generated right before a crash:
Apr 25 22:37:02 capital kernel: smb_proc_readdir_long: name=\rock\Bruce Springsteen\Born_in_the_U.S.A?\*, result=-2, rcls=1, err=123
Apr 25 22:37:13 capital kernel: smb_proc_readdir_long: name=\rock\Stone Temple Pilots\Tiny_Music..?\*, result=-2, rcls=1, err=123
... because of the question marks, I couldn't access the directories
in Linux (I later renamed them). But interacting with just these
directories didn't seem to be a problem, though. Could a special
character screw up the whole system? The same error is generated
when I just list those directories, and the system doesn't crash.
After renaming these directories, the system still kept crashing.
Any help is appreciated!
m i c h a e l jastram
mailto:micky at alum.mit.edu
w w w http://jastram.de
9301 1A1A 58C6 2433 4EA0
A040 A5AE 4122 12C1 EB80
More information about the samba