[Samba] How to get a core dump from Samba

Gerald (Jerry) Carter jerry at samba.org
Fri Apr 5 06:49:39 GMT 2002

On Mon, 1 Apr 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?

Use the "panic action = /bin/sleep 9000" and attach to the
smbd process using gdb.

cheers, jerry
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--

More information about the samba mailing list