This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/84428] ==7122==AddressSanitizer CHECK failed: ../../../sanitizer/asan/asan_interceptors.cc:384 "((__interception::real___cxa_throw)) != (0)" (0x0, 0x0)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84428

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
So I rewrote it to a shell script:

$ cat ./todo.sh
ASAN_FLAGS_COMMON="-fsanitize=address -fuse-ld=gold -fno-omit-frame-pointer -g
-O2"
CC=gcc-7
CXX=g++-7
sudo bash -c 'cat odbc_extra_config >> /etc/odbcinst.ini'
cd "$(mktemp -d)"
wget -qO-
https://github.com/ribasushi/patchup-Firebird-ODBC-driver/archive/2.0.2.153.tar.gz
| tar -zx --strip-components 1
cd Builds/Gcc.lin
perl -p -i -e "s{/usr/lib64}{/usr/lib/x86_64-linux-gnu}g"                      
   ../makefile.environ
perl -p -i -e "s{major\".\"minor\".\"buildnum}{major \".\" minor \".\"
buildnum}"  ../../SetupAttributes.h
perl -p -i -e "s{^GCC\s*\=\s*g\+\+$}{GCC = $CXX $ASAN_FLAGS_COMMON}"           
   makefile.linux
make -f makefile.linux
sudo make -f makefile.linux install

I don't know the first 'cpanm -nv DBD::ODBC' in .yml file, but I guess it's
install of perf module right? I should have that installed.

Running the script, I get:

bash -x ./todo.sh 
+ ASAN_FLAGS_COMMON='-fsanitize=address -fuse-ld=gold -fno-omit-frame-pointer
-g -O2'
+ CC=gcc-7
+ CXX=g++-7
+ sudo bash -c 'cat odbc_extra_config >> /etc/odbcinst.ini'
++ mktemp -d
+ cd /tmp/tmp.rnbhzid2yL
+ wget -qO-
https://github.com/ribasushi/patchup-Firebird-ODBC-driver/archive/2.0.2.153.tar.gz
+ tar -zx --strip-components 1
+ cd Builds/Gcc.lin
+ perl -p -i -e 's{/usr/lib64}{/usr/lib/x86_64-linux-gnu}g' ../makefile.environ
+ perl -p -i -e 's{major"."minor"."buildnum}{major "." minor "." buildnum}'
../../SetupAttributes.h
+ perl -p -i -e 's{^GCC\s*\=\s*g\+\+$}{GCC = g++-7 -fsanitize=address
-fuse-ld=gold -fno-omit-frame-pointer -g -O2}' makefile.linux
+ make -f makefile.linux
../makefile.environ:12: ARCH is x86_64
../makefile.environ:27: ODBCMANAGER is unixODBC in /usr/lib/x86_64-linux-gnu
../makefile.environ:54: *** FBINCDIR is undefined.  Stop.
+ sudo make -f makefile.linux install
../makefile.environ:12: ARCH is x86_64
../makefile.environ:27: ODBCMANAGER is unixODBC in /usr/lib/x86_64-linux-gnu
../makefile.environ:54: *** FBINCDIR is undefined.  Stop.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]