LDV profiling segfault
When running LDV profiling on GHC we are greeted with a segfault..
[Switching to Thread 0x7fffe3fff640 (LWP 222543)]
freeHashTable (table=0x7ffff7dc1b00 <main_arena+96>, freeDataFun=0x0) at rts/Hash.c:445
445 for (HashList *hl = table->dir[segment][index]; hl != NULL; hl = next) {
(gdb) bt
#0 freeHashTable (table=0x7ffff7dc1b00 <main_arena+96>, freeDataFun=0x0) at rts/Hash.c:445
#1 0x000000000bfbdff6 in initEra (census=0x10781e00) at rts/ProfHeap.c:327
#2 0x000000000bfbe1aa in nextEra () at rts/ProfHeap.c:384
#3 0x000000000bfbffdd in heapCensus (t=3260152720) at rts/ProfHeap.c:1343
#4 0x000000000bff4272 in GarbageCollect (collect_gen=1, do_heap_census=true, is_overflow_gc=false, deadlock_detect=false, gc_type=2, cap=0x1075a1c0 <MainCapability>, idle_cap=0x7fffd80071c0) at rts/sm/GC.c:973
#5 0x000000000bfd2a5b in scheduleDoGC (pcap=0x7fffe3ffed98, task=0x10787170, force_major=false, is_overflow_gc=false, deadlock_detect=false) at rts/Schedule.c:1861
#6 0x000000000bfd0ae2 in schedule (initialCapability=0x1075a1c0 <MainCapability>, task=0x10787170) at rts/Schedule.c:580
#7 0x000000000bfd4028 in scheduleWorker (cap=0x1075a1c0 <MainCapability>, task=0x10787170) at rts/Schedule.c:2646
#8 0x000000000bfdbede in workerStart (task=0x10787170) at rts/Task.c:444
#9 0x00007ffff7c5beb2 in start_thread () from /nix/store/ybkkrhdwdj227kr20vk8qnzqnmj7a06x-glibc-2.34-115/lib/libc.so.6
#10 0x00007ffff7cde31c in clone3 () from /nix/store/ybkkrhdwdj227kr20vk8qnzqnmj7a06x-glibc-2.34-115/lib/libc.so.6
It seems that somehow the internal structure of the hash-table has been invalidated?