[Bug sanitizer/56393] SIGSEGV when -fsanitize=address and dynamic lib with global objects

t-gcc-bugzilla at snowelm dot com gcc-bugzilla@gcc.gnu.org
Tue Feb 19 15:23:00 GMT 2013


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

--- Comment #4 from Takaki Makino <t-gcc-bugzilla at snowelm dot com> 2013-02-19 15:22:38 UTC ---
Created attachment 29499
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29499
reduced testcase

I tried to made a fairly reduced testcase from boost.
Attached please find the tarball.

make CXX=/your/head/gcc

two programs are built and run.
The statically linked one, a.out.static, runs happily, 
while a.out.dynamic, the dynamically linked one, fails with SIGSEGV.
Tested on linux x86_64.



More information about the Gcc-bugs mailing list