Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[my_runtime_test] Fix bug caught on continuous build.
Why didn't this happen on my own machine? http://travis-ci.oilshell.org/srht-jobs/2021-02-06__19-34-07.wwz/_tmp/toil/logs/cpp-unit-all.txt --> COLLECT with 0 roots i = -2147483648 .AddressSanitizer:DEADLYSIGNAL ================================================================= ==3052==ERROR: AddressSanitizer: SEGV on unknown address 0x7f8666c53034 (pc 0x55618e7f6d5b bp 0x7ffc429f1190 sp 0x7ffc429f1180 T0) ==3052==The signal is caused by a READ memory access. #0 0x55618e7f6d5a in gc_heap::str_equals(gc_heap::Str*, gc_heap::Str*) /home/build/oil/mycpp/gc_heap.cc:260 #1 0x55618e7dafd0 in str_replace_test /home/build/oil/mycpp/my_runtime_test.cc:162 #2 0x55618e7e7bd6 in main /home/build/oil/mycpp/my_runtime_test.cc:779 #3 0x7f866924109a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2409a) #4 0x55618e7d94b9 in _start (/home/build/oil/mycpp/_bin/my_runtime_test.asan+0xd4b9) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/build/oil/mycpp/gc_heap.cc:260 in gc_heap::str_equals(gc_heap::Str*, gc_heap::Str*)
- Loading branch information