Skip to content

Instantly share code, notes, and snippets.

@diakopter
Created September 6, 2013 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diakopter/6459725 to your computer and use it in GitHub Desktop.
Save diakopter/6459725 to your computer and use it in GitHub Desktop.
mwilson@host06:~/src/MoarVM/nqp-cc$ ../moarvm "Multiple allocating threads work large heap usage.moarvm" |tee out.txt |llvm-symbolizer-3.4 ; cat out.txt
Before new threads
In new thread
In new thread
In new thread
In new thread
Lived until after joins
mwilson@host06:~/src/MoarVM/nqp-cc$ ../moarvm "Multiple allocating threads work large heap usage.moarvm" |tee out.txt |llvm-symbolizer-3.4 ; cat out.txt
ASAN:SIGSEGV
=================================================================
==25196==ERROR: AddressSanitizer: SEGV on unknown address 0x00047fff8000 (pc 0x000000504d8f sp 0x7ff85d1cef00 bp 0x7ff85d1cf930 T3)
AddressSanitizer can not provide additional info.
#0 0x504d8e in MVM_gc_gen2_transfer /home/mwilson/src/MoarVM/src/gc/gen2.c:198
#1 0x681cdb in finish_gc /home/mwilson/src/MoarVM/src/gc/orchestrate.c:192
#2 0x6801c3 in run_gc /home/mwilson/src/MoarVM/src/gc/orchestrate.c:289
#3 0x67d510 in MVM_gc_enter_from_allocator /home/mwilson/src/MoarVM/src/gc/orchestrate.c:377
#4 0x4df1be in MVM_gc_allocate_nursery /home/mwilson/src/MoarVM/src/gc/allocation.c:32
#5 0x4df594 in MVM_gc_allocate_zeroed /home/mwilson/src/MoarVM/src/gc/allocation.c:49
#6 0x4e0d4f in MVM_gc_allocate_object /home/mwilson/src/MoarVM/src/gc/allocation.c:84
#7 0x6de739 in allocate /home/mwilson/src/MoarVM/src/6model/reprs/MVMArray.c:34
#8 0x5fd465 in MVM_interp_run /home/mwilson/src/MoarVM/src/core/interp.c:1867
#9 0x647492 in start_thread /home/mwilson/src/MoarVM/src/core/threads.c:51
#10 0x8aa1d5 in uv__thread_start /home/mwilson/src/MoarVM/3rdparty/libuv/src/uv-common.c:333
#11 0x459cd3 in __asan::AsanThread::ThreadStart(unsigned long) (/home/mwilson/src/MoarVM/moarvm+0x459cd3)
#12 0x7ff864e6ae99 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x7e99)
#13 0x7ff864575ccc (/lib/x86_64-linux-gnu/libc.so.6+0xf3ccc)
SUMMARY: AddressSanitizer: SEGV /home/mwilson/src/MoarVM/src/gc/gen2.c:198 MVM_gc_gen2_transfer
Thread T3 created by T0 here:
#0 0x4448d1 in __interceptor_pthread_create (/home/mwilson/src/MoarVM/moarvm+0x4448d1)
#1 0x8aa13c in uv_thread_create /home/mwilson/src/MoarVM/3rdparty/libuv/src/uv-common.c:354
#2 0x646932 in MVM_thread_start /home/mwilson/src/MoarVM/src/core/threads.c:121
#3 0x62d7dc in MVM_interp_run /home/mwilson/src/MoarVM/src/core/interp.c:3107
#4 0x58c9ad in MVM_vm_run_file /home/mwilson/src/MoarVM/src/moarvm.c:132
#5 0x467f0f in main /home/mwilson/src/MoarVM/src/main.c:107
#6 0x7ff8644a376c (/lib/x86_64-linux-gnu/libc.so.6+0x2176c)
==25196==ABORTING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment