I'm still seeing this problem for both 7.4.0-1ubuntu1~18.04.1 and 8.3.0-6ubuntu1~18.04.1.
I've confirmed with the reproduction case posted on the GCC bug as well:
phil@machine:~/python_module$ g++ --version
g++ (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
phil@machine:~/python_module$ bash run.sh
without sanitizers
Throwing an exception
Caught an exception
Hello
*******
with sanitizers
Throwing an exception
==11969==AddressSanitizer CHECK failed: ../../../../src/libsanitizer/asan/asan_interceptors.cc:384 "((__interception::real___cxa_throw)) != (0)" (0x0, 0x0)
#0 0x7faf2d20fc02 (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe9c02)
#1 0x7faf2d22e595 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x108595)
#2 0x7faf2d15e26c in __interceptor___cxa_throw (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x3826c)
#3 0x7faf28e631f5 in greet(_object*, _object*) (/home/phil/python_module/greet.so+0x11f5)
#4 0x503090 (/usr/bin/python3.6+0x503090)
#5 0x506858 in _PyEval_EvalFrameDefault (/usr/bin/python3.6+0x506858)
#6 0x502208 (/usr/bin/python3.6+0x502208)
#7 0x502f3c (/usr/bin/python3.6+0x502f3c)
#8 0x506858 in _PyEval_EvalFrameDefault (/usr/bin/python3.6+0x506858)
#9 0x504c27 (/usr/bin/python3.6+0x504c27)
#10 0x506392 in PyEval_EvalCode (/usr/bin/python3.6+0x506392)
#11 0x634d51 (/usr/bin/python3.6+0x634d51)
#12 0x634e09 in PyRun_FileExFlags (/usr/bin/python3.6+0x634e09)
#13 0x6385c7 in PyRun_SimpleFileExFlags (/usr/bin/python3.6+0x6385c7)
#14 0x639159 in Py_Main (/usr/bin/python3.6+0x639159)
#15 0x4a6f0f in main (/usr/bin/python3.6+0x4a6f0f)
#16 0x7faf2cd56b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
#17 0x5afa09 in _start (/usr/bin/python3.6+0x5afa09)
I'm still seeing this problem for both 7.4.0-1ubuntu1~ 18.04.1 and 8.3.0-6ubuntu1~ 18.04.1.
I've confirmed with the reproduction case posted on the GCC bug as well:
phil@machine: ~/python_ module$ g++ --version 18.04.1) 7.4.0
g++ (Ubuntu 7.4.0-1ubuntu1~
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
phil@machine: ~/python_ module$ bash run.sh =AddressSanitiz er CHECK failed: ../../. ./../src/ libsanitizer/ asan/asan_ interceptors. cc:384 "((__intercepti on::real_ __cxa_throw) ) != (0)" (0x0, 0x0) x86_64- linux-gnu/ libasan. so.4+0xe9c02) :CheckFailed( char const*, int, char const*, unsigned long long, unsigned long long) (/usr/lib/ x86_64- linux-gnu/ libasan. so.4+0x108595) __cxa_throw (/usr/lib/ x86_64- linux-gnu/ libasan. so.4+0x3826c) phil/python_ module/ greet.so+ 0x11f5) python3. 6+0x503090) EvalFrameDefaul t (/usr/bin/ python3. 6+0x506858) python3. 6+0x502208) python3. 6+0x502f3c) EvalFrameDefaul t (/usr/bin/ python3. 6+0x506858) python3. 6+0x504c27) python3. 6+0x506392) python3. 6+0x634d51) python3. 6+0x634e09) eExFlags (/usr/bin/ python3. 6+0x6385c7) python3. 6+0x639159) python3. 6+0x4a6f0f) 64-linux- gnu/libc. so.6+0x21b96) python3. 6+0x5afa09)
without sanitizers
Throwing an exception
Caught an exception
Hello
*******
with sanitizers
Throwing an exception
==11969=
#0 0x7faf2d20fc02 (/usr/lib/
#1 0x7faf2d22e595 in __sanitizer:
#2 0x7faf2d15e26c in __interceptor_
#3 0x7faf28e631f5 in greet(_object*, _object*) (/home/
#4 0x503090 (/usr/bin/
#5 0x506858 in _PyEval_
#6 0x502208 (/usr/bin/
#7 0x502f3c (/usr/bin/
#8 0x506858 in _PyEval_
#9 0x504c27 (/usr/bin/
#10 0x506392 in PyEval_EvalCode (/usr/bin/
#11 0x634d51 (/usr/bin/
#12 0x634e09 in PyRun_FileExFlags (/usr/bin/
#13 0x6385c7 in PyRun_SimpleFil
#14 0x639159 in Py_Main (/usr/bin/
#15 0x4a6f0f in main (/usr/bin/
#16 0x7faf2cd56b96 in __libc_start_main (/lib/x86_
#17 0x5afa09 in _start (/usr/bin/