I'm trying to run Python-3.4.0rc3 through Asan.
The package was only mildly difficult to build. The only un-ordinary
part was I had to add some of the sanitizer libraries to LIBS due to
undefined symbols like __asan_report8 when building the Python archive
libpython3.4m.a:
export CC=/usr/local/bin/clang
export CXX=/usr/local/bin/clang++
export CFLAGS="-g3 -fsanitize=address"
export CXXFLAGS="-g3 -fsanitize=address"
export LIBS="/usr/local/lib/clang/3.4/lib/linux/libclang_rt.full-x86_64.a \
/usr/local/lib/clang/3.4/lib/linux/libclang_rt.asan-x86_64.a \
/usr/local/lib/clang/3.4/lib/linux/libclang_rt.san-x86_64.a"
When I run `make test`, I run into some problems (shown below). Does
anyone have an idea why PC is 0x00000000?
Thanks in advance.
**********
$ make test | asan_symbolize.py
...
running build_scripts
copying and adjusting .../Python-3.4.0rc3/Tools/scripts/pydoc3 ->
build/scripts-3.4
copying and adjusting .../Python-3.4.0rc3/Tools/scripts/idle3 ->
build/scripts-3.4
ASAN:SIGSEGV
=================================================================
==16760==ERROR: AddressSanitizer: SEGV on unknown address
0x000000000000 (pc 0x000000000000 sp 0x7fff67622868 bp 0x7fff67622890
T0)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV ??:0 ??
==16760==ABORTING
make: *** [test] Error 1
copying and adjusting .../Python-3.4.0rc3/Tools/scripts/2to3 ->
build/scripts-3.4
copying and adjusting .../Python-3.4.0rc3/Tools/scripts/pyvenv ->
build/scripts-3.4
changing mode of build/scripts-3.4/pydoc3 from 644 to 755
changing mode of build/scripts-3.4/idle3 from 644 to 755
changing mode of build/scripts-3.4/2to3 from 644 to 755
changing mode of build/scripts-3.4/pyvenv from 644 to 755
renaming build/scripts-3.4/pydoc3 to build/scripts-3.4/pydoc3.4
renaming build/scripts-3.4/idle3 to build/scripts-3.4/idle3.4
renaming build/scripts-3.4/2to3 to build/scripts-3.4/2to3-3.4
renaming build/scripts-3.4/pyvenv to build/scripts-3.4/pyvenv-3.4
./python -E -c 'import sys ; from sysconfig import get_platform ;
print(get_platform()+"-"+sys.version[0:3])' >platform
./python ./Tools/scripts/run_tests.py
$
--
You received this message because you are subscribed to the Google Groups
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.