Skip to content

Instantly share code, notes, and snippets.

@diakopter
Last active December 25, 2015 07:59
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/87c9d177184c1cc1ff02 to your computer and use it in GitHub Desktop.
Save diakopter/87c9d177184c1cc1ff02 to your computer and use it in GitHub Desktop.
host08:nqp mwilson$ /Users/mwilson/src/install/bin/moar --libpath=src/stage1 src/stage1/nqp.moarvm --bootstrap --module-path=src/stage2 --setting-path=src/stage2 --setting=NQPCORE --no-regex-lib --target=mbc --output=src/stage2/MASTOps.moarvm /Users/mwilson/src/install/lib/MAST/Ops.nqp 2>&1|../asan_symbolize.py
'57' is not a valid number at line 1432, near ",\n 33,\n"
panic
=================================================================
==21481==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6080005d2cf8 at pc 0x106c58ebc bp 0x7fff590536b0 sp 0x7fff590536a8
READ of size 8 at 0x6080005d2cf8 thread T0
#0 0x106c58ebb in MVM_interp_run interp.c:3177
#1 0x107068e43 in MVM_vm_run_file moar.c:132
#2 0x106b9720f in main main.c:130
#3 0x7fff90f347e0 in start (in libdyld.dylib) + 0
#4 0xa
0x6080005d2cf8 is located 0 bytes to the right of 88-byte region [0x6080005d2ca0,0x6080005d2cf8)
allocated by thread T0 here:
#0 0x10757ec75 in wrap_malloc (in libclang_rt.asan_osx_dynamic.dylib) + 53
#1 0x106cb2227 in MVM_frame_invoke frame.c:163
#2 0x106e7863c in invoke_handler MVMCode.c:10
#3 0x106bdf404 in MVM_interp_run interp.c:438
#4 0x107068e43 in MVM_vm_run_file moar.c:132
#5 0x106b9720f in main main.c:130
#6 0x7fff90f347e0 in start (in libdyld.dylib) + 0
#7 0xa
Shadow bytes around the buggy address:
0x1c10000ba540: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 fa
0x1c10000ba550: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 fa
0x1c10000ba560: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 00
0x1c10000ba570: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 fa
0x1c10000ba580: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 fa
=>0x1c10000ba590: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00[fa]
0x1c10000ba5a0:fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 00
0x1c10000ba5b0: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 fa
0x1c10000ba5c0: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 fa
0x1c10000ba5d0: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 fa
0x1c10000ba5e0: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
ASan internal: fe
==21481==ABORTING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment