[Samba] Re: Bug#219197: PANIC: internal error

Mike Fedyk mfedyk at matchmail.com
Fri Jan 23 17:47:36 GMT 2004


On Fri, Jan 23, 2004 at 06:10:35PM +1100, Andrew Bartlett wrote:
> On Fri, 2004-01-23 at 15:19, Mike Fedyk wrote:
> > Hmm, do I need to compile my libc non-stripped, or is the problem in
> > tdb/tdb.c:1498?
> > 
> 
> It's not there.  it's somewhere else - set MALLOC_CHECK_=2 into your
> environment, and restart Samba.  This should help find out who did it.  
>

OK, I ran this in bash:

# export MALLOC_CHECK_=2
# /etc/init.d/samba restart

I hope the variable propogates to smbd...

> Grab current CVS to get samba to handle the backtrace from an abort(),
> or just run the whole thing under valgrind :-)
> 

What command would be best?

Here's another panic email (before MALLOC_CHECK_=2 though):

+ gdb -x /etc/samba/gdbcommands -batch /usr/sbin/smbd 1424
0x40258528 in waitpid () from /lib/libc.so.6
#0  0x40258528 in waitpid () from /lib/libc.so.6
#1  0x402e0290 in sys_sigabbrev () from /lib/libc.so.6
#2  0x081bdc16 in smb_panic (why=0x827addd "internal error") at lib/util.c:1391
#3  0x081ac097 in fault_report (sig=11) at lib/fault.c:41
#4  0x401da498 in __libc_sigaction () from /lib/libc.so.6
#5  0x40222b48 in mallopt () from /lib/libc.so.6
#6  0x40221d33 in malloc () from /lib/libc.so.6
#7  0x081cf9cd in tdb_alloc_read (tdb=0x83ce950, offset=8692, len=1552)
    at tdb/tdb.c:430
#8  0x081d0ebb in tdb_fetch (tdb=0x83ce950, key=
      {dptr = 0x83f0ea8 "ID/1424/100", dsize = 12}) at tdb/tdb.c:1118
#9  0x080842c1 in session_yield (vuser=0x83f72c8) at smbd/session.c:169
#10 0x08086ea0 in invalidate_vuid (vuid=100) at smbd/password.c:75
#11 0x08086fde in invalidate_all_vuids () at smbd/password.c:105
#12 0x08228695 in exit_server (reason=0x823bdf6 "Caught TERM signal")
    at smbd/server.c:566
#13 0x080c751c in async_processing (buffer=0x4038e008 "", buffer_len=131137)
    at smbd/process.c:130
#14 0x080c75ea in receive_message_or_smb (buffer=0x4038e008 "", 
    buffer_len=131137, timeout=60000) at smbd/process.c:269
#15 0x080c8e54 in smbd_process () at smbd/process.c:1312
#16 0x08228d4c in main (argc=2, argv=0xbffffe44) at smbd/server.c:887




More information about the samba mailing list