Re: [Gc] Abort using GC as a leak detector.

Ivan Maidanski ivmai at mail.ru
Wed Aug 19 09:12:15 PDT 2009


Hi!

"Talbot, George" <Gtalbot at locuspharma.com> wrote:
> Hi all,
> 
> Trying to use the GC as a leak detector according to this: http://www.hpl.hp.com/personal/Hans_Boehm/gc/leak.html
> 
> I'm doing the "Simplified leak detection under Linux" instructions, and have updated to the latest CVS.
> 
> When I run my program, during static initialization, the program is allocating memory and the GC is aborting with "dirty bits not set up".  Any ideas?
> 
> 0x00002ba07e83f55c in GC_abort (msg=0x2ba07e845a01 "dirty bits not set up") at misc.c:1133
> 1133        if (GETENV("GC_LOOP_ON_ABORT") != NULL) {
> (gdb) bt
> #0  0x00002ba07e83f55c in GC_abort (msg=0x2ba07e845a01 "dirty bits not set up") at misc.c:1133
> #1  0x00002ba07e83d969 in GC_push_next_marked_dirty (h=0x0) at mark.c:1836
> ...

Temporarily comment out that line (mark.c:1836) and try again. It's interesting what Hans is thinking of it?

Bye.


More information about the Gc mailing list