http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60536
Bug ID: 60536 Summary: Backtrace corrupted on Firefox build with -fsanitize=address and -flto Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org When I build Firefox with debugging symbols and -fsanitize=address -flto I get: markus@x4 mozilla-central % /var/tmp/moz-build-dir/dist/bin/firefox | more ================================================================= ==5620==ERROR: AddressSanitizer: heap-use-after-free on address 0x602000001210 at pc 0x7fc5d71a6dbd bp 0x7fffe89a1510 sp 0x7fffe89a14e8 READ of size 2 at 0x602000001210 thread T0 Program /var/tmp/moz-build-dir/dist/bin/firefox (pid = 5620) received signal 6. Stack: UNKNOWN [/lib/libpthread.so.0 +0x0000F8B0] gsignal+0x00000034 [/lib/libc.so.6 +0x00033FF4] abort+0x00000147 [/lib/libc.so.6 +0x000353E7] UNKNOWN [/lib/libgcc_s.so.1 +0x0001094D] UNKNOWN [/lib/libgcc_s.so.1 +0x0001154F] dl_iterate_phdr+0x00000134 [/lib/libc.so.6 +0x00116F94] _Unwind_Find_FDE+0x000001D9 [/lib/libgcc_s.so.1 +0x00012AD9] UNKNOWN [/lib/libgcc_s.so.1 +0x0000EFAB] _Unwind_Backtrace+0x0000004B [/lib/libgcc_s.so.1 +0x000104CB] UNKNOWN [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x000709A4] UNKNOWN [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x00073D21] __asan_report_error+0x0000083A [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x00064ADA] __interceptor_setlocale+0x00000155 [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x0003CDD5] Program /var/tmp/moz-build-dir/dist/bin/firefox (pid = 5620) received signal 6. Stack: UNKNOWN [/lib/libpthread.so.0 +0x0000F8B0] gsignal+0x00000034 [/lib/libc.so.6 +0x00033FF4] abort+0x00000147 [/lib/libc.so.6 +0x000353E7] UNKNOWN [/lib/libgcc_s.so.1 +0x0001094D] UNKNOWN [/lib/libgcc_s.so.1 +0x0001154F] dl_iterate_phdr+0x00000134 [/lib/libc.so.6 +0x00116F94] _Unwind_Find_FDE+0x000001D9 [/lib/libgcc_s.so.1 +0x00012AD9] UNKNOWN [/lib/libgcc_s.so.1 +0x0000EFAB] _Unwind_Backtrace+0x0000004B [/lib/libgcc_s.so.1 +0x000104CB] NS_StackWalk+0x000000C2 [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x013A0502] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x05905F50] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x056B77D4] UNKNOWN [/lib/libpthread.so.0 +0x0000F8B0] gsignal+0x00000034 [/lib/libc.so.6 +0x00033FF4] abort+0x00000147 [/lib/libc.so.6 +0x000353E7] UNKNOWN [/lib/libgcc_s.so.1 +0x0001094D] UNKNOWN [/lib/libgcc_s.so.1 +0x0001154F] dl_iterate_phdr+0x00000134 [/lib/libc.so.6 +0x00116F94] _Unwind_Find_FDE+0x000001D9 [/lib/libgcc_s.so.1 +0x00012AD9] UNKNOWN [/lib/libgcc_s.so.1 +0x0000EFAB] _Unwind_Backtrace+0x0000004B [/lib/libgcc_s.so.1 +0x000104CB] UNKNOWN [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x000709A4] UNKNOWN [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x00073D21] __asan_report_error+0x0000083A [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x00064ADA] __interceptor_setlocale+0x00000155 [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x0003CDD5] Program /var/tmp/moz-build-dir/dist/bin/firefox (pid = 5620) received signal 6. Stack: UNKNOWN [/lib/libpthread.so.0 +0x0000F8B0] gsignal+0x00000034 [/lib/libc.so.6 +0x00033FF4] abort+0x00000147 [/lib/libc.so.6 +0x000353E7] UNKNOWN [/lib/libgcc_s.so.1 +0x0001094D] UNKNOWN [/lib/libgcc_s.so.1 +0x0001154F] dl_iterate_phdr+0x00000134 [/lib/libc.so.6 +0x00116F94] _Unwind_Find_FDE+0x000001D9 [/lib/libgcc_s.so.1 +0x00012AD9] UNKNOWN [/lib/libgcc_s.so.1 +0x0000EFAB] _Unwind_Backtrace+0x0000004B [/lib/libgcc_s.so.1 +0x000104CB] NS_StackWalk+0x000000C2 [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x013A0502] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x05905F50] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x056B77D4] UNKNOWN [/lib/libpthread.so.0 +0x0000F8B0] gsignal+0x00000034 [/lib/libc.so.6 +0x00033FF4] abort+0x00000147 [/lib/libc.so.6 +0x000353E7] UNKNOWN [/lib/libgcc_s.so.1 +0x0001094D] UNKNOWN [/lib/libgcc_s.so.1 +0x0001154F] dl_iterate_phdr+0x00000134 [/lib/libc.so.6 +0x00116F94] _Unwind_Find_FDE+0x000001D9 [/lib/libgcc_s.so.1 +0x00012AD9] UNKNOWN [/lib/libgcc_s.so.1 +0x0000EFAB] _Unwind_Backtrace+0x0000004B [/lib/libgcc_s.so.1 +0x000104CB] NS_StackWalk+0x000000C2 [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x013A0502] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x05905F50] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x056B77D4] UNKNOWN [/lib/libpthread.so.0 +0x0000F8B0] gsignal+0x00000034 [/lib/libc.so.6 +0x00033FF4] abort+0x00000147 [/lib/libc.so.6 +0x000353E7] UNKNOWN [/lib/libgcc_s.so.1 +0x0001094D] UNKNOWN [/lib/libgcc_s.so.1 +0x0001154F] dl_iterate_phdr+0x00000134 [/lib/libc.so.6 +0x00116F94] _Unwind_Find_FDE+0x000001D9 [/lib/libgcc_s.so.1 +0x00012AD9] UNKNOWN [/lib/libgcc_s.so.1 +0x0000EFAB] _Unwind_Backtrace+0x0000004B [/lib/libgcc_s.so.1 +0x000104CB] UNKNOWN [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x000709A4] UNKNOWN [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x00073D21] __asan_report_error+0x0000083A [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x00064ADA] __interceptor_setlocale+0x00000155 [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x0003CDD5] Program /var/tmp/moz-build-dir/dist/bin/firefox (pid = 5620) received signal 6. Stack:UNKNOWN [/lib/libpthread.so.0 +0x0000F8B0] gsignal+0x00000034 [/lib/libc.so.6 +0x00033FF4] abort+0x00000147 [/lib/libc.so.6 +0x000353E7] UNKNOWN [/lib/libgcc_s.so.1 +0x0001094D] UNKNOWN [/lib/libgcc_s.so.1 +0x0001154F] dl_iterate_phdr+0x00000134 [/lib/libc.so.6 +0x00116F94] _Unwind_Find_FDE+0x000001D9 [/lib/libgcc_s.so.1 +0x00012AD9] UNKNOWN [/lib/libgcc_s.so.1 +0x0000EFAB] _Unwind_Backtrace+0x0000004B [/lib/libgcc_s.so.1 +0x000104CB] NS_StackWalk+0x000000C2 [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x013A0502] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x05905F50] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x056B77D4] UNKNOWN [/lib/libpthread.so.0 +0x0000F8B0] gsignal+0x00000034 [/lib/libc.so.6 +0x00033FF4] abort+0x00000147 [/lib/libc.so.6 +0x000353E7] UNKNOWN [/lib/libgcc_s.so.1 +0x0001094D] UNKNOWN [/lib/libgcc_s.so.1 +0x0001154F] dl_iterate_phdr+0x00000134 [/lib/libc.so.6 +0x00116F94] _Unwind_Find_FDE+0x000001D9 [/lib/libgcc_s.so.1 +0x00012AD9] UNKNOWN [/lib/libgcc_s.so.1 +0x0000EFAB] _Unwind_Backtrace+0x0000004B [/lib/libgcc_s.so.1 +0x000104CB] NS_StackWalk+0x000000C2 [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x013A0502] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x05905F50] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x056B77D4] UNKNOWN [/lib/libpthread.so.0 +0x0000F8B0] gsignal+0x00000034 [/lib/libc.so.6 +0x00033FF4] abort+0x00000147 [/lib/libc.so.6 +0x000353E7] UNKNOWN [/lib/libgcc_s.so.1 +0x0001094D] UNKNOWN [/lib/libgcc_s.so.1 +0x0001154F] dl_iterate_phdr+0x00000134 [/lib/libc.so.6 +0x00116F94] _Unwind_Find_FDE+0x000001D9 [/lib/libgcc_s.so.1 +0x00012AD9] UNKNOWN [/lib/libgcc_s.so.1 +0x0000EFAB] _Unwind_Backtrace+0x0000004B [/lib/libgcc_s.so.1 +0x000104CB] NS_StackWalk+0x000000C2 [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x013A0502] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x05905F50] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x056B77D4] UNKNOWN [/lib/libpthread.so.0 +0x0000F8B0] gsignal+0x00000034 [/lib/libc.so.6 +0x00033FF4] abort+0x00000147 [/lib/libc.so.6 +0x000353E7] UNKNOWN [/lib/libgcc_s.so.1 +0x0001094D] UNKNOWN [/lib/libgcc_s.so.1 +0x0001154F] dl_iterate_phdr+0x00000134 [/lib/libc.so.6 +0x00116F94] _Unwind_Find_FDE+0x000001D9 [/lib/libgcc_s.so.1 +0x00012AD9] UNKNOWN [/lib/libgcc_s.so.1 +0x0000EFAB] _Unwind_Backtrace+0x0000004B [/lib/libgcc_s.so.1 +0x000104CB] UNKNOWN [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x000709A4] UNKNOWN [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x00073D21] __asan_report_error+0x0000083A [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x00064ADA] __interceptor_setlocale+0x00000155 [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x0003CDD5] Program /var/tmp/moz-build-dir/dist/bin/firefox (pid = 5620) received signal 6. Stack: UNKNOWN [/lib/libpthread.so.0 +0x0000F8B0] gsignal+0x00000034 [/lib/libc.so.6 +0x00033FF4] abort+0x00000147 [/lib/libc.so.6 +0x000353E7] UNKNOWN [/lib/libgcc_s.so.1 +0x0001094D] UNKNOWN [/lib/libgcc_s.so.1 +0x0001154F] dl_iterate_phdr+0x00000134 [/lib/libc.so.6 +0x00116F94] _Unwind_Find_FDE+0x000001D9 [/lib/libgcc_s.so.1 +0x00012AD9] UNKNOWN [/lib/libgcc_s.so.1 +0x0000EFAB] _Unwind_Backtrace+0x0000004B [/lib/libgcc_s.so.1 +0x000104CB] NS_StackWalk+0x000000C2 [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x013A0502] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x05905F50] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x056B77D4] UNKNOWN [/lib/libpthread.so.0 +0x0000F8B0] gsignal+0x00000034 [/lib/libc.so.6 +0x00033FF4] abort+0x00000147 [/lib/libc.so.6 +0x000353E7] UNKNOWN [/lib/libgcc_s.so.1 +0x0001094D] UNKNOWN [/lib/libgcc_s.so.1 +0x0001154F] dl_iterate_phdr+0x00000134 [/lib/libc.so.6 +0x00116F94] _Unwind_Find_FDE+0x000001D9 [/lib/libgcc_s.so.1 +0x00012AD9] UNKNOWN [/lib/libgcc_s.so.1 +0x0000EFAB] _Unwind_Backtrace+0x0000004B [/lib/libgcc_s.so.1 +0x000104CB] NS_StackWalk+0x000000C2 [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x013A0502] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x05905F50] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x056B77D4] UNKNOWN [/lib/libpthread.so.0 +0x0000F8B0] gsignal+0x00000034 [/lib/libc.so.6 +0x00033FF4] abort+0x00000147 [/lib/libc.so.6 +0x000353E7] UNKNOWN [/lib/libgcc_s.so.1 +0x0001094D] UNKNOWN [/lib/libgcc_s.so.1 +0x0001154F] dl_iterate_phdr+0x00000134 [/lib/libc.so.6 +0x00116F94] _Unwind_Find_FDE+0x000001D9 [/lib/libgcc_s.so.1 +0x00012AD9] UNKNOWN [/lib/libgcc_s.so.1 +0x0000EFAB] _Unwind_Backtrace+0x0000004B [/lib/libgcc_s.so.1 +0x000104CB] NS_StackWalk+0x000000C2 [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x013A0502] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x05905F50] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x056B77D4] UNKNOWN [/lib/libpthread.so.0 +0x0000F8B0] gsignal+0x00000034 [/lib/libc.so.6 +0x00033FF4] abort+0x00000147 [/lib/libc.so.6 +0x000353E7] UNKNOWN [/lib/libgcc_s.so.1 +0x0001094D] UNKNOWN [/lib/libgcc_s.so.1 +0x0001154F] dl_iterate_phdr+0x00000134 [/lib/libc.so.6 +0x00116F94] _Unwind_Find_FDE+0x000001D9 [/lib/libgcc_s.so.1 +0x00012AD9] UNKNOWN [/lib/libgcc_s.so.1 +0x0000EFAB] _Unwind_Backtrace+0x0000004B [/lib/libgcc_s.so.1 +0x000104CB] NS_StackWalk+0x000000C2 [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x013A0502] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x05905F50] UNKNOWN [/var/tmp/moz-build-dir/dist/bin/libxul.so +0x056B77D4] UNKNOWN [/lib/libpthread.so.0 +0x0000F8B0] gsignal+0x00000034 [/lib/libc.so.6 +0x00033FF4] abort+0x00000147 [/lib/libc.so.6 +0x000353E7] UNKNOWN [/lib/libgcc_s.so.1 +0x0001094D] UNKNOWN [/lib/libgcc_s.so.1 +0x0001154F] dl_iterate_phdr+0x00000134 [/lib/libc.so.6 +0x00116F94] _Unwind_Find_FDE+0x000001D9 [/lib/libgcc_s.so.1 +0x00012AD9] UNKNOWN [/lib/libgcc_s.so.1 +0x0000EFAB] _Unwind_Backtrace+0x0000004B [/lib/libgcc_s.so.1 +0x000104CB] UNKNOWN [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x000709A4] UNKNOWN [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x00073D21] __asan_report_error+0x0000083A [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x00064ADA] __interceptor_setlocale+0x00000155 [/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/libasan.so.1 +0x0003CDD5] ... (ad nauseam)