[Samba] Run away samba, and free() errors

Jeremy Allison jra at samba.org
Sun Apr 9 18:14:45 GMT 2006


On Sun, Apr 09, 2006 at 10:10:07AM -0700, Terry Hardie wrote:
> On Sun, 9 Apr 2006, Terry Hardie wrote:
> 
> > On Sun, 9 Apr 2006, Terry Hardie wrote:
> >
> > > > Ok, seems ok as far as I know. If this is reproducible
> > > > for you you might want to try setting MALLOC_CHECK_=2
> > > > before running smbd, or if you can reproduce it with
> > > > one client use valgrind.
> 
> And, I think this is the corresponding output from valgrind for the same
> problem:
> 
> ==4854== Invalid free() / delete / delete[]
> ==4854==    at 0x401E048: free (vg_replace_malloc.c:235)
> ==4854==    by 0x4121D8D: remove_error_table (in /lib/libcom_err.so.2.1)
> ==4854==    by 0x40948EE: (within /usr/lib/libkrb5.so.3.2)
> ==4854==    by 0x40944FA: (within /usr/lib/libkrb5.so.3.2)
> ==4854==    by 0x40F2B99: (within /usr/lib/libkrb5.so.3.2)
> ==4854==    by 0x400C2DD: (within /lib/ld-2.3.6.so)
> ==4854==    by 0x41D7493: exit (in /lib/tls/libc-2.3.6.so)
> ==4854==    by 0x8259BDA: exit_server (in /usr/sbin/smbd)
> ==4854==    by 0x825A1FE: main (in /usr/sbin/smbd)
> ==4854==  Address 0x40FCC38 is not stack'd, malloc'd or (recently) free'd

Looks like a bug in the krb5 libraries to me.

Jeremy.


More information about the samba mailing list