Re: glib segfault
- From: Havoc Pennington <hp Mcs Net>
- To: gtk-devel-list redhat com
- Subject: Re: glib segfault
- Date: Mon, 25 Jan 1999 10:07:33 -0600 (CST)
On Mon, 25 Jan 1999, Sebastian Wilhelmi wrote:
>
> > gnome-apt is dying here, I see there have been a flurry of changes to
> > this code recently. I don't see the problem offhand, maybe it's more
> > obvious to whoever's been hacking on it.
>
> Off hand I can't see, where the problem might be, So please have a deeper
> look into that.
>
If I change the initial bufsize to 2, it goes away. However, that could be
pure coincidence; I don't know.
Stepping through the code using bufsize 1, buffer is properly NULL for the
first free, g_malloc returns a pointer which remains unchanged until the
next g_free(), and that second free segv's.
(BTW, bufsize definitely needs to be more than 1 here anyway - starting
with 2, it reaches 256 before it succeeds on my machine, so you may as
well start with something bigger.)
I've totally rebuilt glib and libgnome, but conceivably I need to make
clean in gtk/ORBit/imlib instead of relying on .deps, and that explains
it. It doesn't look much like a need-to-rebuild segfault to me though.
Thanks,
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]