[Samba] smbmount crashes machine if more than one program accesses share

Urban Widmark urban at teststation.com
Fri Apr 26 00:37:05 GMT 2002


On Thu, 25 Apr 2002, Michael Jastram wrote:

> Kernel: 2.4.2 on i686

Why 2.4.2? Try using something more recent (but not 2.4.18, 2.4.17 or
2.4.19-pre-latest). Older 2.4s would end up in a loop trying to reconnect,
it could be the reason you see so many smb_retry messages.

2.4.2 also had some changes to make it work on highmem machines. As with
all new things it didn't work so well at first (in this case the code I
borrowed was buggy ... doh! :) and would sometimes add a dentry twice,
which can create a loop in what is supposed to be a loop-free list. I
think you have triggered that bug.


>   /usr/local/samba/bin/smbmount //biscuit/MP3LIBRARY /opt/music \
>     -o username=michael,password=*******,ttl=100000,debug=4
> 
> * Please note that I do NOT use mount -t smbfs, but smbmount directly.

Any particular reason?

> * 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
>   suspicious: 
> 
>   Apr 15 20:58:41 capital kernel: smb_retry: signal failed, error=-3

It means that the smbmount is gone. The logfile should give some hints
with debug=4, I wonder why it's so empty ... This is bad, but should not
cause any kernel lockups only that the mountpoint stops working.

>   Apr 15 21:00:13 capital last message repeated 3485 times
>   Apr 15 21:01:14 capital last message repeated 3480 times

In one minute it retries 3480 times ...

/Urban





More information about the samba mailing list