Re: g_malloc() segfault in glib 2.12?





2009/12/5 David Nečas <yeti physics muni cz>
On Sat, Dec 05, 2009 at 11:53:53AM +0100, Aleksander Morgado wrote:
> > > I am experiencing a segfault in calling g_malloc() inside a
>
> > > > multi-threaded application, using glib2-2.12.3-2.fc6 (default one in
> > > > RHEL5.2). The glib slice allocator is being used.
> > >
> > > Have you called g_thread_init()?
> >
> > Or, rather:
> >
> >    Do you call g_thread_init() as the absolutely very first G-something
> >    function (with the only possible exception of g_mem_set_vtable())?
> >
> >
> Actually... I believe I call g_type_init() first, and then
> g_thread_init(NULL). Is that a problem?

Yes.  A big one.
Can somebdoy explain whats the reason behind it ?
 

Yeti

_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list



--
Regards,
~Sid~
I have never met a man so ignorant that i couldn't learn something from him



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]