i pushed a small fix for memprof today that should be unrelated to the
segfault you are seeing. that said, i couldnt get this to segfault in
my ubuntu vm using the new memprof (version 0.3.6).
i tested using the same version of ree and the test script your
provided and it worked fine for me.
can you retest using the new memprof version? if you get a segfault,
can you try this:
when you hit the segfault in gdb and are sitting at a (gdb) prompt,
please do this
set height 0 <enter>
info registers <enter>
x/3i $rip <enter>
maint info sections ALLOBJ <enter>
and send me all the output. there may be a lot of it.