|
From: Nicholas N. <nj...@cs...> - 2006-09-22 15:58:53
|
On Fri, 22 Sep 2006, jim marshall wrote: > I was wondering if anyone has had any luck using Valgrind with a C/C++ > program utilizing Garbage Collection (specifically the Hans Boehm GC - > http://www.hpl.hp.com/personal/Hans_Boehm/gc/)? > > I just installed Valgrind 3.2.1 and when I run my application I get a > SIGSEGV almost immediately. The log shows the following: > > ==12806== Process terminating with default action of signal 11 (SIGSEGV) > ==12806== Access not within mapped region at address 0xBE90A12C > ==12806== at 0x401D8F4: GC_mark_from (mark.c:759) > ==12806== by 0x401E37F: GC_mark_some (mark.c:361) > [...] > > Does this indicate a problem with my program (it does not SIGSEGV when > run outside of Valgrind) or that Valgrind and the GC don't work well > together? I don't know for sure, but I can believe it's the latter, since Boehm-GC does some pretty nasty things. Nick |