[Gc] Re: Fwd: GC_free crash when used with FreeImage library
Ivan Maidanski
ivmai at mail.ru
Sun Aug 5 01:28:28 PDT 2012
Hi Eduard,
Sorry for the delay. I have no time to reproduce the sample. But it looks when you call GC_free that memory is already freed.
May be someone else on the list has an idea what's wrong.
Regards,
Ivan
Sun, 15 Jul 2012 19:32:40 +0200 Eduard Urbach <e.urbach at gmail.com>:
> Hi Ivan,
>
> I'm copying this message to you because somehow my mailing list membership
> is gone.
> Maybe you have a quick idea how to solve the problem.
>
> Regards,
> Eduard
>
> ---------- Forwarded message ----------
> From: Eduard Urbach <e.urbach at gmail.com>
> Date: Wed, Jul 11, 2012 at 11:47 AM
> Subject: GC_free crash when used with FreeImage library
> To: Boehm GC <gc at linux.hpl.hp.com>
>
>
> Hello everyone,
>
> I'm not sure if I'm doing something wrong: I have a fairly normal
> installation of bdwgc 7.3 and FreeImage 3.15.3 which is only used in this
> part of my code:
> https://gist.github.com/3089309
>
> When executing FreeImage_Unload() the application segfaults at
>
> Program received signal SIGSEGV, Segmentation fault.
>
> GC_free (p=0x83e92d8) at malloc.c:495
>
> sz = hhdr -> hb_sz;
>
>
> Even if I don't call FreeImage_Unload() the app crashes at the end.
>
> If you want to reproduce it, install https://github.com/blitzprog/flua and
> execute the Graphics examples. They all segfault at termination.
>
>
> I tried disabling the GC with GC_disable() for that part of the code but
> that shows no effect.
>
> I'm a bit confused right now, hope you can help me find the error source or
> show me whether I did a trivial mistake..
>
>
> Regards,
>
> Eduard Urbach
>
>
More information about the Gc
mailing list