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/56393] SIGSEGV when -fsanitize=address and dynamic lib with global objects


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56393

David Abdurachmanov <david.abdurachmanov at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david.abdurachmanov at
                   |                            |gmail dot com

--- Comment #22 from David Abdurachmanov <david.abdurachmanov at gmail dot com> 2013-04-07 08:44:21 UTC ---
Has this been resolved in the final 4.8.0 (r196952)? I checked some changes and
they seems to be in.

I have a number (<100) C++/C packages (incl. boost 1.51.00) compiled w/o
address sanitizer and I am only enabling it for the main software using all
these packages.  Yet compilation fails of the main software segflaut from
boost. Reminder, that boost and ROOT is not compiled w/ address sanitizer.

I tried -static-libasan, yet in that case linker cannot resolve asan symbols
while shared library is being created. libasan_preinit.o, libasan.so, and
libasan.a is in my GCC package under ./lib64.

I added the following options to default CXXFLAGS, which also ended up on
LDFLAGS: -static-libasan -fsanitize=address -fno-omit-frame-pointer -g -O0

### SEGFAULT ###

The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#5  0x00002b33b9930d8a in
boost::exception_detail::get_static_exception_object<boost::exception_detail::bad_alloc_>
() at /build/davidlt/test-asan/a/slc6_amd64_gcc480/external/boost
/1.51.0-cms2/include/boost/exception/detail/exception_ptr.hpp:117
#6  0x00002b33ba70685c in _GLOBAL__sub_I_future.cpp () from
/build/davidlt/test-asan/a/tmp/BUILDROOT/2c73b4475e8345752c405e046bb5182f/opt/cmssw/slc6_amd64_gcc480/cms/cmssw/CMSSW_6_2
_X_2013-04-06-0200/external/slc6_amd64_gcc480/lib/libboost_thread.so.1.51.0
#7  0x0000003326c0e57f in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2
#8  0x0000003326c12c25 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#9  0x0000003326c0e196 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#10 0x0000003326c1246a in _dl_open () from /lib64/ld-linux-x86-64.so.2
#11 0x0000003327400f66 in dlopen_doit () from /lib64/libdl.so.2
#12 0x0000003326c0e196 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#13 0x000000332740129c in _dlerror_run () from /lib64/libdl.so.2
#14 0x0000003327400ee1 in dlopen

### UNDEFINED REFERENCES ###

/build/davidlt/test-asan/a/tmp/BUILDROOT/eea1b2b6d889c55f315fbba1ee425ca6/opt/cmssw/slc6_amd64_gcc480/cms/cmssw/CMSSW_6_2_X_2013-04-06-0200-cms/src/FWCore/Version/src/GetFileFormatVersion.cc:5:
error: undefined reference to
'__asan_init_v1'/build/davidlt/test-asan/a/tmp/BUILDROOT/eea1b2b6d889c55f315fbba1ee425ca6/opt/cmssw/slc6_amd64_gcc480/cms/cmssw/CMSSW_6_2_X_2013-04-06-0200-cms/src/FWCore/Version/src/GetReleaseVersion.cc:8:
error: undefined reference to
'__asan_report_load1'/build/davidlt/test-asan/a/tmp/BUILDROOT/eea1b2b6d889c55f315fbba1ee425ca6/opt/cmssw/slc6_amd64_gcc480/cms/cmssw/CMSSW_6_2_X_2013-04-06-0200-cms/src/FWCore/Version/src/GetReleaseVersion.cc:11:
error: undefined reference to
'__asan_unregister_globals'/build/davidlt/test-asan/a/tmp/BUILDROOT/eea1b2b6d889c55f315fbba1ee425ca6/opt/cmssw/slc6_amd64_gcc480/cms/cmssw/CMSSW_6_2_X_2013-04-06-0200-cms/src/FWCore/Version/src/GetReleaseVersion.cc:11:
error: undefined reference to
'__asan_init_v1'/build/davidlt/test-asan/a/tmp/BUILDROOT/eea1b2b6d889c55f315fbba1ee425ca6/opt/cmssw/slc6_amd64_gcc480/cms/cmssw/CMSSW_6_2_X_2013-04-06-0200-cms/src/FWCore/Version/src/GetReleaseVersion.cc:11:
error: undefined reference to '__asan_register_globals'


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