[Gc] Example segfault with GC 7.1
Hans Aberg
haberg-1 at telia.com
Tue Jan 18 05:15:11 PST 2011
[I am not on this list, so please cc me.]
The attached example segfaults for some reason when using gc_allocator
with std::string; works fine using traceable_allocator. The example is
a modification of
http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_alloc_exC.txt
Compiled using
g++ -lgc gc_alloc_ex.cc -o gc_alloc_ex
g++ --version
powerpc-apple-darwin9-g++-4.0.1 (GCC) 4.0.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gc_alloc_ex.cc
Type: application/octet-stream
Size: 2252 bytes
Desc: not available
Url : http://napali.hpl.hp.com/pipermail/gc/attachments/20110118/d107676f/gc_alloc_ex.obj
-------------- next part --------------
More information about the Gc
mailing list