aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-objfile.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2025-04-30 13:56:19 +0200
committerTom de Vries <tdevries@suse.de>2025-04-30 13:56:19 +0200
commit0ecc474b769473cb0b402e6a1e1d9788f9d538ac (patch)
treec34653f556ab5b6bcb6f432ff0e3b5d818b2e6eb /gdb/testsuite/gdb.python/py-objfile.c
parentdb36d99bf218f8d74f3c7a101f0b68a1119293e6 (diff)
downloadbinutils-0ecc474b769473cb0b402e6a1e1d9788f9d538ac.zip
binutils-0ecc474b769473cb0b402e6a1e1d9788f9d538ac.tar.gz
binutils-0ecc474b769473cb0b402e6a1e1d9788f9d538ac.tar.bz2
[gdb/testsuite] Don't compile read1.so with -fsanitize
After building gdb with: ... CFLAGS= -O0 -g -fstack-protector-all -fsanitize=thread -fno-exceptions CXXFLAGS= -O0 -g -fstack-protector-all -fsanitize=thread ... when doing: ... $ cd build/gdb $ make check-read1 RUNTESTFLAGS=gdb.threads/clone-attach-detach.exp ... I run into: ... Running /data/vries/gdb/src/gdb/testsuite/gdb.threads/clone-attach-detach.exp ... ThreadSanitizer:DEADLYSIGNAL ==4799==ERROR: ThreadSanitizer: SEGV on unknown address 0x000000000000 \ (pc 0x7f636029a947 bp 0x7f635dfbf090 sp 0x7f635dfbf028 T4824) ==4799==The signal is caused by a READ memory access. ==4799==Hint: address points to the zero page. ThreadSanitizer:DEADLYSIGNAL ThreadSanitizer: nested bug in the same thread, aborting. ... This doesn't happen when doing the same from build/gdb/testsuite, because CFLAGS doesn't get propagated from build/gdb. I'm not sure what is the root cause here, but when building with -fsanitize, I'm interested in running the sanitizer on gdb, not on testsuite utility libraries that are used with expect. Fix this by skipping -fsanitize when compiling read1.so and readmore.so. Tested on x86_64-linux, by rebuilding read1.so and running the test-case. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/testsuite/gdb.python/py-objfile.c')
0 files changed, 0 insertions, 0 deletions