Re: [wmii] Core dump with the latest snap

From: Sander van Dijk <a.h.vandijk_AT_gmail.com>
Date: Mon, 24 Apr 2006 22:16:57 +0200

On 4/24/06, Vincent <10.50_AT_free.fr> wrote:
> when I add this line to the floating tags
>
> /SeaMonkey.*/ -> ~
>
> and try to lauch seamonkey, wmiirc dumps.
>
> gdb -c wmiiwm.core -s /usr/local/bin/wmiiwm
>
> This GDB was configured as "i386--netbsdelf"...
> Core was generated by `wmiiwm'.
> Program terminated with signal 8, Arithmetic exception.
> #0 0x0804aed6 in place_client (a=0x80825c0, c=0x8089000) at area.c:222
> 222 f->rect.x = a->rect.x + (random()%(a->rect.width
> - f->rect.width));
>
> Any idea?

Yes, I noticed that too, I've fixed that already in hg tip. For those
who cannot or don't want to pull from the mercurial repo, I've
attached a patch to this mail that you can apply to today's snapshot.

(For those interested: the crash happens when a->rect.width is equal
to f->rect.width, because random()%0 is just as illegal as
random()/0).

Greetings, Sander.

Received on Mon Apr 24 2006 - 22:17:00 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:03:26 UTC