Re: [dev] [dwm] segfault

From: <u_AT_netbeisser.de>
Date: Thu, 23 Jun 2011 00:39:18 +0200

On Thu, Jun 23, 2011 at 12:25:26AM +0200, Arian Kuschki wrote:
> On 22 June 2011 16:10, Rob <robpilling_AT_gmail.com> 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
Received on Thu Jun 23 2011 - 00:39:18 CEST

This archive was generated by hypermail 2.2.0 : Thu Jun 23 2011 - 00:48:03 CEST