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? TIA, Bill Moran
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 stuff. Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net
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--