Open jakobkroeker opened 10 years ago
In order for the e/unit-tests to not use gc (so that valgrind will detect more issues), what is needed?
With new changes to GC, would be good to document debugging memory issues. One way I've tried is using Flamegraphs: http://www.brendangregg.com/FlameGraphs/memoryflamegraphs.html
we should figure out, how to debug memory errors using valgrind+garbage collector, or is it possible to disable gc?
(recall the bug in ColumnRankProfile, see https://groups.google.com/forum/#!topic/ffpack-devel/2mwmhJpvQQ4 ) somewhat useful: GC_DONT_GC environment flag
another helpful way is replacing
GC_MALLOC
withmalloc
usingLD_PRELOAD
e.g.with malloc.c:
gcc -fPIC -shared malloc.c -o libmygc.so
export LD_PRELOAD = ./libmygc.so