This is the mail archive of the
xconq7@sources.redhat.com
mailing list for the Xconq project.
Re: Frequent SIGSEGV's
- From: Hans Ronne <hronne at telia dot com>
- To: Jim Kingdon <kingdon at panix dot com>
- Cc: xconq7 at sources dot redhat dot com
- Date: Sun, 25 May 2003 10:47:39 +0200
- Subject: Re: Frequent SIGSEGV's
>Yeah, I updated from CVS and I've been getting SIGSEGV's too. It
>seems to have something to do with pressing several keys in rapid
>succession (well, at least that's what I was doing both times)...
>
>In the enclosed code the fault is line 3978 and the variable "uimg" is NULL.
>
>3975 if (emblem_position(uimg, ename, eimf, sw, sh, &ex,
>&ey, &ew, &eh)) {
>3976 /* Make sure emblem stays within the cell when
>drawing a single big icon
>3977 (should fix emblem_position instead of doing
>this in the interfaces). */
>3978 if (uimg->h > mapw->vp->uh) {
>3979 sy += (mapw->vp->hh - mapw->vp->uh) /
>2;
>3980 /* Tweaked by hand. */
Thanks. The fix is easy enough: just check that uimg exists. This bug
sneaked in back in February, so it has nothing to do with the recent
changes to the unit view code.
Hans