[Pkg-samba-maint] DO NOT REPLY [Bug 6651] smbd SIGSEGV when breaking oplocks

samba-bugs at samba.org samba-bugs at samba.org
Tue Aug 25 04:14:31 UTC 2009


https://bugzilla.samba.org/show_bug.cgi?id=6651





------- Comment #17 from jra at samba.org  2009-08-24 23:14 CST -------
Created an attachment (id=4595)
 --> (https://bugzilla.samba.org/attachment.cgi?id=4595&action=view)
Attempt to find the crash.

I can't see any reason why SA_INFO_QUEUE_COUNT needs to be a power of two. The
'%' operator simply returns the returns the remainder of counter.seen divided
SA_INFO_QUEUE_COUNT, ensuring the offset remains within 0 to
(SA_INFO_QUEUE_COUNT-1).

The problem isn't occurring in the signal handler, it's occurring when we don't
find an fsp matching a file descriptor. I've added the attached patch to master
to help track this condition down.

In order to get a debug case, compile with -g and then add the line:

panic action = /bin/sleep 999999

into the [global] section of your smb.conf. When the panic happens the process
will be left to allow you to attach to it with gdb and troubleshoot why
linux_oplock_signal_handler() is getting invoked with an invalid fd (I'm
guessing it'll be zero).

Jeremy.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.



More information about the Pkg-samba-maint mailing list