SEGFAULT in HEAD

Martin Pool mbp at samba.org
Thu Feb 20 00:39:02 GMT 2003


On 20 Feb 2003, "Stefan (metze) Metzmacher" <metze at metzemix.de> wrote:

> and the backtrace:
> #0  0x40325079 in wait4 () from /lib/libc.so.6
> #1  0x4039d944 in __DTOR_END__ () from /lib/libc.so.6
> #2  0x402c80e6 in system () from /lib/libc.so.6
> #3  0x08183e8c in smb_panic (why=0x8221974 "internal error") at 
> lib/util.c:1406
> #4  0x08174423 in fault_report (sig=11) at lib/fault.c:41
> #5  0x08174476 in sig_fault (sig=11) at lib/fault.c:61
> #6  <signal handler called>
> #7  0x402f1990 in free () from /lib/libc.so.6

(I'm probably telling you something you already know, but anyhow...)

The fault occurred here.  A segv in free() typically indicates that
the heap has been corrupted at some earlier point, perhaps by writing
over a dynamic buffer, a double-free() or something similar.   A less
common cause is passing a bad pointer to free().

The best way to debug this is to recreate the problem under Valgrind,
or something like dmalloc or Purify.

> #8  0x080a3340 in reply_trans2 (conn=0x8312828, inbuf=0x404a7008 "", 
> outbuf=0x404c8008 "", length=76, bufsize=131072)
>     at smbd/trans2.c:3318
> #9  0x080b442f in switch_message (type=50, inbuf=0x404a7008 "", 
> outbuf=0x404c8008 "", size=76, bufsize=131072)
>     at smbd/process.c:758
> #10 0x080b44d0 in construct_reply (inbuf=0x404a7008 "", outbuf=0x404c8008 
> "", size=76, bufsize=131072) at smbd/process.c:788
> #11 0x080b478e in process_smb (inbuf=0x404a7008 "", outbuf=0x404c8008 "") 
> at smbd/process.c:889
> #12 0x080b5058 in smbd_process () at smbd/process.c:1291
> #13 0x0807546f in main (argc=2, argv=0xbffff824) at smbd/server.c:904
> #14 0x4029a7ee in __libc_start_main () from /lib/libc.so.6

-- 
Martin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20030220/4be743b6/attachment.bin


More information about the samba-technical mailing list