On Thu, Jun 23, 2011 at 12:25:26AM +0200, Arian Kuschki wrote:
> On 22 June 2011 16:10, Rob <[email protected]> wrote:
> 
> > Build with debug flags (-g in Makefile)
> >
> > Enable coredumps in your .xinitrc
> > ulimit -c unlimited
> >
> > Wait until dwm segfaults
> > $ gdb --core=path/to/core dwm
> > > bt
> >
> > Voila, you've got the bug's location.
> >
> > when i enter ulimit without arguments, the output is 'unlimited'. I assume
> that means coredumps should be enabled already on my machine? Anyway, so
> when dwm segfaults next time, where will I find the coredump file?

on linux you can get specify path, otherwise it is in pwd:

,sudo find /proc/ -name "core_pattern" 2>/dev/null -exec cat {} \;
Password: 
core

also, on Ub*ntu (forced to use) I had to find out the hard way that you
need ulimit -c 1000 instead of ulimit -c unlimited 


HTH,

-- 
--
Stefan Kuttler ==*== nc.netbeisser.de

Reply via email to