Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: tests_lit/asan_tests/errors.ll

Issue 2256673004: Subzero: Added address of bad instruction to error output (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Clarified error message Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests_lit/asan_tests/doublefree.ll ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; Verify that ASan properly catches and reports bugs 1 ; Verify that ASan properly catches and reports bugs
2 2
3 ; REQUIRES: no_minimal_build 3 ; REQUIRES: no_minimal_build
4 4
5 ; check with a one off the end local load 5 ; check with a one off the end local load
6 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \ 6 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
7 ; RUN: --fsanitize-address --sz=-allow-externally-defined-symbols \ 7 ; RUN: --fsanitize-address --sz=-allow-externally-defined-symbols \
8 ; RUN: %t.pexe -o %t && %t 2>&1 | FileCheck --check-prefix=LOCAL-LOAD %s 8 ; RUN: %t.pexe -o %t && %t 2>&1 | FileCheck --check-prefix=LOCAL-LOAD %s
9 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \ 9 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
10 ; RUN: --fsanitize-address --sz=-allow-externally-defined-symbols -O2 \ 10 ; RUN: --fsanitize-address --sz=-allow-externally-defined-symbols -O2 \
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 neg_global_store: 216 neg_global_store:
217 ; Access one before the beginning of a global 217 ; Access one before the beginning of a global
218 call void @access(i32 0, i32 0, i32 -1) 218 call void @access(i32 0, i32 0, i32 -1)
219 br label %error 219 br label %error
220 error: 220 error:
221 call void @exit(i32 1) 221 call void @exit(i32 1)
222 unreachable 222 unreachable
223 } 223 }
224 224
225 ; LOCAL-LOAD: Illegal 1 byte load from stack object at 225 ; LOCAL-LOAD: Illegal 1 byte load from stack object at
226 ; LOCAL-LOAD-NEXT: address of __asan_error symbol is
226 ; LOCAL-STORE: Illegal 1 byte store to stack object at 227 ; LOCAL-STORE: Illegal 1 byte store to stack object at
228 ; LOCAL-STORE-NEXT: address of __asan_error symbol is
227 ; GLOBAL-LOAD: Illegal 1 byte load from global object at 229 ; GLOBAL-LOAD: Illegal 1 byte load from global object at
230 ; GLOBAL-LOAD-NEXT: address of __asan_error symbol is
228 ; GLOBAL-STORE: Illegal 1 byte store to global object at 231 ; GLOBAL-STORE: Illegal 1 byte store to global object at
232 ; GLOBAL-STORE-NEXT: address of __asan_error symbol is
OLDNEW
« no previous file with comments | « tests_lit/asan_tests/doublefree.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698