Re: [dev] [dwm] segfault

2011-06-27 Thread Benjamin R. Haskell
On Wed, 22 Jun 2011, Arian Kuschki wrote: hg summary shows parent: 1560:e181c9cf318e tip [...] How can I diff my local version against tip? Sorry am more of a git user. [Later] On Wed, 22 Jun 2011, Arian Kuschki wrote: On 22 June 2011 15:44, Andrew Hills wrote: On Wed, Jun 22, 2011 at 9

Re: [dev] [dwm] segfault

2011-06-22 Thread u
On Thu, Jun 23, 2011 at 12:25:26AM +0200, Arian Kuschki wrote: > On 22 June 2011 16:10, Rob 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 > > > > Vo

Re: [dev] [dwm] segfault

2011-06-22 Thread Suraj N. Kurapati
On Thu 23 Jun 2011 12:25:26 AM PDT, Arian Kuschki wrote: > when dwm segfaults next time, where will I find the coredump file? In the directory where dwm was run. If you use startx, then you would typically find the coredump in your home directory. -- There are running jobs. Why don't you go ch

Re: [dev] [dwm] segfault

2011-06-22 Thread Connor Lane Smith
On 22 June 2011 23:25, Arian Kuschki wrote: > when i enter ulimit without arguments, the output is 'unlimited'. I assume > that means coredumps should be enabled already on my machine? No. ulimit -c > Anyway, so > when dwm segfaults next time, where will I find the coredump file? $PWD. Most lik

Re: [dev] [dwm] segfault

2011-06-22 Thread Arian Kuschki
On 22 June 2011 15:44, Bogdan Ionuț wrote: > > it segfaults only when "reloading" dwm? then it's pertag related. i > use pertag2 and adding m->mfacts[0] = mfact; in createmon() solves the > issue. > > not sure what you mean by "reloading"? I have a suspicion that the problem has to do with dual d

Re: [dev] [dwm] segfault

2011-06-22 Thread Arian Kuschki
On 22 June 2011 16:10, Rob 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 outp

Re: [dev] [dwm] segfault

2011-06-22 Thread Arian Kuschki
On 22 June 2011 15:44, Andrew Hills wrote: > On Wed, Jun 22, 2011 at 9:32 AM, Arian Kuschki > wrote: > > How can I diff my local version against tip? > > Check out tip: > > hg clone http://hg.suckless.org/dwm > > Then diff: > > diff /path/to/your/dwm.c /path/to/tip/dwm.c > > yeah, I guess I was

Re: [dev] [dwm] segfault

2011-06-22 Thread Rob
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.

Re: [dev] [dwm] segfault

2011-06-22 Thread Andrew Hills
On Wed, Jun 22, 2011 at 9:32 AM, Arian Kuschki wrote: > How can I diff my local version against tip? Check out tip: hg clone http://hg.suckless.org/dwm Then diff: diff /path/to/your/dwm.c /path/to/tip/dwm.c --Andrew Hills

Re: [dev] [dwm] segfault

2011-06-22 Thread Bogdan Ionuț
On 22/06/2011, Arian Kuschki wrote: > Hi, > > after happily having used dwm for years it started to segfault on me in > regular intervals since I switched to a new laptop (T43 -> T420s). Not sure > what the trigger is yet, /var/log/everything looks shows this: > > Jun 22 15:25:32 localhost kernel:

[dev] [dwm] segfault

2011-06-22 Thread Arian Kuschki
Hi, after happily having used dwm for years it started to segfault on me in regular intervals since I switched to a new laptop (T43 -> T420s). Not sure what the trigger is yet, /var/log/everything looks shows this: Jun 22 15:25:32 localhost kernel: [11636.771129] dwm[1325]: segfault at 0 ip 0

Re: [dev] [dwm] segfault with xrandr dual-head setup

2011-03-03 Thread Anselm R Garbe
On Thu, Mar 03, 2011 at 09:18:10PM +0100, Pascal Wittmann wrote: > On 01/29/2011 11:26 PM, Rob wrote: > >> gdb gives me this output: > >> > >> Program terminated with signal 11, Segmentation fault. > >> #0 0x0804b157 in arrangemon (m=0x9280688) at dwm.c:382 > >> 382 strncpy(m->ltsymbol

Re: [dev] [dwm] segfault with xrandr dual-head setup

2011-03-03 Thread Pascal Wittmann
On 01/29/2011 11:26 PM, Rob wrote: >> gdb gives me this output: >> >> Program terminated with signal 11, Segmentation fault. >> #0 0x0804b157 in arrangemon (m=0x9280688) at dwm.c:382 >> 382 strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, sizeof >> m->ltsymbol); >> > > Can you give deta

Re: [dev] [dwm] segfault with xrandr dual-head setup

2011-01-29 Thread Rob
> gdb gives me this output: > > Program terminated with signal 11, Segmentation fault. > #0  0x0804b157 in arrangemon (m=0x9280688) at dwm.c:382 > 382             strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, sizeof > m->ltsymbol); > Can you give details of the variables? (print m->lt) Continue t

Re: [dev] [dwm] segfault with xrandr dual-head setup

2011-01-29 Thread Pascal Wittmann
On 01/29/2011 09:26 PM, Rob wrote: >> Now I can work on VGA normal, but on LVDS I can only use the first >> workspace. If I try to switch (moving windows on workspaces works) dwm >> crashes and I see this segfault in dmesg: >> >> dwm[26627]: segfault at 0 ip 0804b157 sp bfbbe680 error 4 in >> dwm[8

Re: [dev] [dwm] segfault with xrandr dual-head setup

2011-01-29 Thread Rob
> Now I can work on VGA normal, but on LVDS I can only use the first > workspace. If I try to switch (moving windows on workspaces works) dwm > crashes and I see this segfault in dmesg: > > dwm[26627]: segfault at 0 ip 0804b157 sp bfbbe680 error 4 in > dwm[8048000+a000] > > Any ideas? Recompile dw

[dev] [dwm] segfault with xrandr dual-head setup

2011-01-29 Thread Pascal Wittmann
Hi, I've set up dual head using "xrandr --output VGA --mode 1024x768 --right-of LVDS". Then every window from LVDS is shifted to VGA, so LVDs is empty (Is that normal?). Now I can work on VGA normal, but on LVDS I can only use the first workspace. If I try to switch (moving windows on workspaces