[Samba] How to get a core dump from Samba

Andrew Bartlett abartlet at pcug.org.au
Tue Apr 2 13:51:06 GMT 2002

Bill Moran wrote:
> Hi all,
> I'm doing some experimental hacking around with Samba and
> I've successfully broken the thing ;)  Now I want to capture a
> core dump and use it to find out exactly what part of my poorly
> written code is causing the sig 11.  The docs claim that Samba
> should dump a core file somewhere, but I'm not finding it (I
> searched the whole HDD)
> I'm running Samba 2.2.3a on FreeBSD 4.5-STABLE.  Just
> cvsupped the ports today and installed prior to starting my
> hacking.
> Is there something special I need to do during the build process
> to tell Samba to make core files?

See the current disucussion on samba-technical@ regarding panic actions
and the like.  (in the 15,000 user thread).  Set 'panic action =
/bin/sleep 9000' in your smb.conf and attach a debugger is the
simpilist, but you can also load samba in gdb in an xterm and other cool

Andrew Bartlett

Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net

More information about the samba mailing list