Re: glib memory allocation problems
- From: Miklos Szeredi <miklos szeredi hu>
- To: timj imendio com
- Cc: jimis gmx net, gtk-devel-list gnome org
- Subject: Re: glib memory allocation problems
- Date: Tue, 15 May 2007 16:56:06 +0200
> > So the question is, should glib not make some sanity checking for code
> > that is not actually thread related (like gslice).
>
> it does do sanity checking, it throws a big bold warning if you call
> thread_init and gslice in the wrong order:
> http://blogs.gnome.org/view/timj/2007/01/02/0
> http://bugzilla.gnome.org/show_bug.cgi?id=331853
But if g_thread_init() was not called _at all_, it just silently
corrupts the data structures.
And this is perfectly possible if program is using the pthread API,
while using glib for hash tables, etc.
Probably this situation is not even so rare, and other programs may be
suffering from this same problem, without being aware of it.
Miklos
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]