SAMBA BUG: smbstatus 2.0.6 core dumps on Solaris 2.6 (SIGSEGV)
John F Flynn III
jflynn02 at cs.fiu.edu
Tue Jan 11 16:15:38 GMT 2000
I am running Samba version 2.0.6 on Solaris 2.6. When I run smbstatus, it
coredumps. Here is some detailed information that may help in killing this
bug.
This is a run of smbstatus where it coredumps, and afterwards, a gdb
session.
root at grads:/depot/samba-2.0.6/bin 174# ./smbstatus
Samba version 2.0.6
Service uid gid pid machine
----------------------------------------------
<connected users; the info is correct, removing because spammy>
Locked files:
Pid DenyMode R/W Oplock Name
--------------------------------------------------
19059 DENY_ALL RDWR EXCLUSIVE+BATCH
/home/hpdrc-people-6/petrovm/Netscape/Users/default/mail/Inbox.snm Tue
Jan 11 10:40:04 2000
Segmentation fault (core dumped)
Here is a gdb run:
root at grads:/depot/samba-2.0.6/src/samba-2.0.6/source/bin 183# gdb ./smbstatus
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.6"...
(gdb) run
Starting program:
/a/vixen.cs.fiu.edu./disk/75/depot/samba-2.0.6/share/src/samba-2.0.6/source/bin/./smbstatus
Samba version 2.0.6
Service uid gid pid machine
----------------------------------------------
<connected users; the info appears to be correct. Removing because spammy>
Locked files:
Pid DenyMode R/W Oplock Name
--------------------------------------------------
19059 DENY_ALL RDWR EXCLUSIVE+BATCH
/home/hpdrc-people-6/petrovm/Netscape/Users/default/mail/Inbox.snm Tue
Jan 11 10:40:04 2000
Program received signal SIGSEGV, Segmentation fault.
0x1dfdc in shm_share_forall (fn=0x1b3cc <print_share_mode>)
at locking/locking_shm.c:636
636 if
(process_exists(entry_scanner_p->e.pid)) {
(gdb) where
#0 0x1dfdc in shm_share_forall (fn=0x1b3cc <print_share_mode>)
at locking/locking_shm.c:636
#1 0x1c668 in share_mode_forall (fn=0x1b3cc <print_share_mode>)
at locking/locking.c:330
#2 0x1bc34 in main (argc=1, argv=0x627b0) at utils/status.c:317
(gdb) list
631 (shm_share_mode_entry *)
632 shmops->offset2addr(file_scanner_p->share_mode_entries);
633
634 while(entry_scanner_p != 0) {
635
636 if (process_exists(entry_scanner_p->e.pid)) {
637 fn(&entry_scanner_p->e,
638 file_scanner_p->file_name);
639 count++;
640 }
(gdb)
-= John Flynn - FIU-SCS UNIX Computing Support =-
=^o.o^= =^o.o^=
"Ev'rybody wants to be a cat!
Because a cat's the only cat, who knows where it's at!"
More information about the samba
mailing list