Re: g_malloc() segfault in glib 2.12?



> > 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?


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