ports/56752: Using the Crux GTK 2.2 theme causes problems

Joe Marcus Clarke marcus at marcuscom.com
Thu Oct 16 10:51:09 PDT 2003


On Thu, 2003-10-16 at 13:29, Jeremy Messenger wrote:
> On Wed, 15 Oct 2003 22:06:59 -0400, Joe Marcus Clarke 
> <marcus at marcuscom.com> wrote:
> 
> > On Wed, 2003-10-15 at 21:40, Jeremy Messenger wrote:
> >> The following reply was made to PR ports/56752; it has been noted by 
> >> GNATS.
> >>
> >> From: Jeremy Messenger <mezz7 at cox.net>
> >> To: freebsd-gnats-submit at FreeBSD.org, apeiron at comcast.net
> >> Cc:
> >> Subject: Re: ports/56752: Using the Crux GTK  2.2 theme causes problems
> >> Date: Wed, 15 Oct 2003 20:30:38 -0500
> >>
> >>  ------------VrDfvEvpaxEfiejQKNzpy6
> >>  Content-Type: text/plain; format=flowed; charset=utf-8
> >>  Content-Transfer-Encoding: 8bit
> >>
> >>  Silly me, took me hours and hours (include recompiles) to figure why 
> >> the
> >>  update of thunderbird will not run under gdb.. Oh, I forgot to add the
> >>  WITH_DEBUG define when I use the portupgrade to update thunderbord 
> >> 0.3..
> >>  :-) Anyway, here's attach of gdb-thunderbirdVScrux.txt that has the
> >>  backtrace of CRUX crashed with the thunderbird, hopeful it will be 
> >> useful.
> >
> > Good stuff.  If you still have the gdb handy, do:
> 
> I do and I will keep it until it's finish ;-), so here:

Edit crux-gradient.c, and change the line:

guchar *xrgb = alloca (clip_rect->width * clip_rect->height * 3);

to

guchar *xrgb = g_malloc (clip_rect->width * clip_rect->height * 3);

(yes, this is a memory leak, but let's see if it works)

I think when it tries to allocate over one MB of memory in the stack
frame, things go very wrong.

Joe

> 
> > frame 0
> #0  0x2ab5ee17 in draw_vertical_gradient (drawable=0x88f0880, gc=0x8166b00,
>      full_rect=0xbfacc000, clip_rect=0xbfbfcf20, gradient=0x1e7)
>      at crux-gradient.c:252
> 252     in crux-gradient.c
> 
> > print clip_rect->width
> $1 = 805
> 
> > print clip_rect->height
> $2 = 526
> 
> Cheers,
> Mezz
> 
> > Thanks.
> >
> > Joe
> >
> >>
> >>  Cheers,
> >>  Mezz
> >>
> >>
> >>  --
> >>  bsdforums.org 's moderator, mezz.
> <snip>
-- 
PGP Key : http://www.marcuscom.com/pgp.asc


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20031016/63c8be45/attachment.bin


More information about the freebsd-gnome mailing list