Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ if [ -n "$ASAN_OPTIONS" ]; then for log in $(find -type f -name 'asan.*' -size +0); do cat "$log"; err=1; done; fi
=================================================================
==18516== ERROR: AddressSanitizer: heap-use-after-free on address 0x606e00104940 at pc 0x758f4e bp 0x7ffdd85f87c0 sp 0x7ffdd85f87b8
READ of size 8 at 0x606e00104940 thread T0
#0 0x758f4d (/home/travis/build/vim/vim/src/vim+0x758f4d)
#1 0x4bd4f8 (/home/travis/build/vim/vim/src/vim+0x4bd4f8)
#2 0x778703 (/home/travis/build/vim/vim/src/vim+0x778703)
#3 0x778d55 (/home/travis/build/vim/vim/src/vim+0x778d55)
#4 0x77985b (/home/travis/build/vim/vim/src/vim+0x77985b)
#5 0x506529 (/home/travis/build/vim/vim/src/vim+0x506529)
#6 0x7780f5 (/home/travis/build/vim/vim/src/vim+0x7780f5)
#7 0x778d55 (/home/travis/build/vim/vim/src/vim+0x778d55)
#8 0x77985b (/home/travis/build/vim/vim/src/vim+0x77985b)
#9 0x506529 (/home/travis/build/vim/vim/src/vim+0x506529)
#10 0x48f9a2 (/home/travis/build/vim/vim/src/vim+0x48f9a2)
#11 0x506529 (/home/travis/build/vim/vim/src/vim+0x506529)
#12 0x7780f5 (/home/travis/build/vim/vim/src/vim+0x7780f5)
#13 0x778d55 (/home/travis/build/vim/vim/src/vim+0x778d55)
#14 0x77985b (/home/travis/build/vim/vim/src/vim+0x77985b)
#15 0x506529 (/home/travis/build/vim/vim/src/vim+0x506529)
#16 0x4e72f5 (/home/travis/build/vim/vim/src/vim+0x4e72f5)
#17 0x4e8414 (/home/travis/build/vim/vim/src/vim+0x4e8414)
#18 0x4e8577 (/home/travis/build/vim/vim/src/vim+0x4e8577)
#19 0x506529 (/home/travis/build/vim/vim/src/vim+0x506529)
#20 0x5082fa (/home/travis/build/vim/vim/src/vim+0x5082fa)
#21 0x8296cc (/home/travis/build/vim/vim/src/vim+0x8296cc)
#22 0x82d712 (/home/travis/build/vim/vim/src/vim+0x82d712)
#23 0x2ab713fc2f44 (/lib/x86_64-linux-gnu/libc-2.19.so+0x21f44)
#24 0x43d4a8 (/home/travis/build/vim/vim/src/vim+0x43d4a8)
0x606e00104940 is located 7232 bytes inside of 7240-byte region [0x606e00102d00,0x606e00104948)
freed by thread T0 here:
#0 0x2ab70db2833a (/usr/lib/x86_64-linux-gnu/libasan.so.0.0.0+0x1533a)
#1 0x5bdd3e (/home/travis/build/vim/vim/src/vim+0x5bdd3e)
#2 0x44b4eb (/home/travis/build/vim/vim/src/vim+0x44b4eb)
#3 0x44bdcc (/home/travis/build/vim/vim/src/vim+0x44bdcc)
#4 0x78ebb6 (/home/travis/build/vim/vim/src/vim+0x78ebb6)
#5 0x44d930 (/home/travis/build/vim/vim/src/vim+0x44d930)
#6 0x44e488 (/home/travis/build/vim/vim/src/vim+0x44e488)
#7 0x755056 (/home/travis/build/vim/vim/src/vim+0x755056)
#8 0x812e31 (/home/travis/build/vim/vim/src/vim+0x812e31)
#9 0x814817 (/home/travis/build/vim/vim/src/vim+0x814817)
#10 0x5c8a17 (/home/travis/build/vim/vim/src/vim+0x5c8a17)
#11 0x758f2f (/home/travis/build/vim/vim/src/vim+0x758f2f)
#12 0x4bd4f8 (/home/travis/build/vim/vim/src/vim+0x4bd4f8)
#13 0x778703 (/home/travis/build/vim/vim/src/vim+0x778703)
#14 0x778d55 (/home/travis/build/vim/vim/src/vim+0x778d55)
#15 0x77985b (/home/travis/build/vim/vim/src/vim+0x77985b)
#16 0x506529 (/home/travis/build/vim/vim/src/vim+0x506529)
#17 0x7780f5 (/home/travis/build/vim/vim/src/vim+0x7780f5)
#18 0x778d55 (/home/travis/build/vim/vim/src/vim+0x778d55)
#19 0x77985b (/home/travis/build/vim/vim/src/vim+0x77985b)
#20 0x506529 (/home/travis/build/vim/vim/src/vim+0x506529)
#21 0x48f9a2 (/home/travis/build/vim/vim/src/vim+0x48f9a2)
#22 0x506529 (/home/travis/build/vim/vim/src/vim+0x506529)
#23 0x7780f5 (/home/travis/build/vim/vim/src/vim+0x7780f5)
#24 0x778d55 (/home/travis/build/vim/vim/src/vim+0x778d55)
#25 0x77985b (/home/travis/build/vim/vim/src/vim+0x77985b)
#26 0x506529 (/home/travis/build/vim/vim/src/vim+0x506529)
#27 0x4e72f5 (/home/travis/build/vim/vim/src/vim+0x4e72f5)
#28 0x4e8414 (/home/travis/build/vim/vim/src/vim+0x4e8414)
#29 0x4e8577 (/home/travis/build/vim/vim/src/vim+0x4e8577)
previously allocated by thread T0 here:
#0 0x2ab70db2841a (/usr/lib/x86_64-linux-gnu/libasan.so.0.0.0+0x1541a)
#1 0x5bb4a1 (/home/travis/build/vim/vim/src/vim+0x5bb4a1)
#2 0x5bc632 (/home/travis/build/vim/vim/src/vim+0x5bc632)
#3 0x44ef74 (/home/travis/build/vim/vim/src/vim+0x44ef74)
#4 0x4c98f0 (/home/travis/build/vim/vim/src/vim+0x4c98f0)
#5 0x50890d (/home/travis/build/vim/vim/src/vim+0x50890d)
#6 0x509ce8 (/home/travis/build/vim/vim/src/vim+0x509ce8)
#7 0x750aaa (/home/travis/build/vim/vim/src/vim+0x750aaa)
#8 0x758cea (/home/travis/build/vim/vim/src/vim+0x758cea)
#9 0x4bd4f8 (/home/travis/build/vim/vim/src/vim+0x4bd4f8)
#10 0x778703 (/home/travis/build/vim/vim/src/vim+0x778703)
#11 0x778d55 (/home/travis/build/vim/vim/src/vim+0x778d55)
#12 0x489683 (/home/travis/build/vim/vim/src/vim+0x489683)
#13 0x489bf5 (/home/travis/build/vim/vim/src/vim+0x489bf5)
#14 0x48a170 (/home/travis/build/vim/vim/src/vim+0x48a170)
#15 0x48a98d (/home/travis/build/vim/vim/src/vim+0x48a98d)
#16 0x48b9bf (/home/travis/build/vim/vim/src/vim+0x48b9bf)
#17 0x48bcb5 (/home/travis/build/vim/vim/src/vim+0x48bcb5)
#18 0x48c52d (/home/travis/build/vim/vim/src/vim+0x48c52d)
#19 0x495b09 (/home/travis/build/vim/vim/src/vim+0x495b09)
#20 0x506529 (/home/travis/build/vim/vim/src/vim+0x506529)
#21 0x7780f5 (/home/travis/build/vim/vim/src/vim+0x7780f5)
#22 0x778d55 (/home/travis/build/vim/vim/src/vim+0x778d55)
#23 0x489683 (/home/travis/build/vim/vim/src/vim+0x489683)
#24 0x489bf5 (/home/travis/build/vim/vim/src/vim+0x489bf5)
#25 0x48a170 (/home/travis/build/vim/vim/src/vim+0x48a170)
#26 0x48a98d (/home/travis/build/vim/vim/src/vim+0x48a98d)
#27 0x48b9bf (/home/travis/build/vim/vim/src/vim+0x48b9bf)
#28 0x48bcb5 (/home/travis/build/vim/vim/src/vim+0x48bcb5)
#29 0x48c52d (/home/travis/build/vim/vim/src/vim+0x48c52d)
Shadow bytes around the buggy address:
0x0c0e400188d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c0e400188e0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c0e400188f0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c0e40018900: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c0e40018910: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
=>0x0c0e40018920: fd fd fd fd fd fd fd fd[fd]fa fa fa fa fa fa fa
0x0c0e40018930: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e40018940: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e40018950: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0e40018960: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c0e40018970: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
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 righ 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
==18516== ABORTING
travis_time:end:123e64aa:start=1507977505711901363,finish=1507977505736394454,duration=24493091

The command "if [ -n "$ASAN_OPTIONS" ]; then for log in $(find -type f -name 'asan.*' -size +0); do cat "$log"; err=1; done; fi" exited with 0.
travis_time:start:0e8a7d7d
$ if [ -n "$err" ]; then exit 1; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.