https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82614
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |ASSIGNED --- Comment #11 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Marco Castelluccio from comment #10) > (In reply to Martin Liška from comment #9) > > (In reply to Marco Castelluccio from comment #8) > > > Created attachment 42462 [details] > > > Archive with GCNO and GCDA file generated with GCC 6 > > > > > > This is an archive containing the GCNO and GCDA files generated with GCC > > > 6. > > > > > > We are going to test 7 next. > > > > Thanks for that. Still can't reproduce and it will be highly probably that > > it's related to fact that I do not have source files which are annotated. > > Can you please attach them? > > > > Moreover, can you please run it in gdb and paste full backtrace? > > I don't have the source files either, they are built on a remote machine and > I'm only downloading the gcno/gcda file. > > Here's the backtrace: > #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 > #1 0x00007ffff7a2df5d in __GI_abort () at abort.c:90 > #2 0x00007ffff7a7628d in __libc_message (action=action@entry=(do_abort | > do_backtrace), fmt=fmt@entry=0x7ffff7b9b9e6 "*** %s ***: %s terminated\n") > at ../sysdeps/posix/libc_fatal.c:181 > #3 0x00007ffff7b1c7ef in __GI___fortify_fail_abort > (need_backtrace=need_backtrace@entry=true, msg=msg@entry=0x7ffff7b9b96d > "buffer overflow detected") > at fortify_fail.c:33 > #4 0x00007ffff7b1c811 in __GI___fortify_fail (msg=msg@entry=0x7ffff7b9b96d > "buffer overflow detected") at fortify_fail.c:44 > #5 0x00007ffff7b1a500 in __GI___chk_fail () at chk_fail.c:28 > #6 0x00007ffff7b199e9 in _IO_str_chk_overflow (fp=<optimized out>, > c=<optimized out>) at vsprintf_chk.c:31 > #7 0x00007ffff7a7ad59 in __GI__IO_default_xsputn (f=0x7fffffffd0f0, > data=<optimized out>, n=19) at genops.c:455 > #8 0x00007ffff7a4932d in _IO_vfprintf_internal (s=s@entry=0x7fffffffd0f0, > format=<optimized out>, format@entry=0x46f771 "%ld", > ap=ap@entry=0x7fffffffd230) at vfprintf.c:1642 > #9 0x00007ffff7b19a8b in ___vsprintf_chk (s=0x697670 <format_gcov(long, > long, int)::buffer> "-674122451547433726", flags=1, slen=20, > format=0x46f771 "%ld", args=args@entry=0x7fffffffd230) at > vsprintf_chk.c:82 > #10 0x00007ffff7b199ba in ___sprintf_chk (s=s@entry=0x697670 > <format_gcov(long, long, int)::buffer> "-674122451547433726", > flags=flags@entry=1, > slen=slen@entry=20, format=format@entry=0x46f771 "%ld") at > sprintf_chk.c:31 > #11 0x0000000000405934 in sprintf (__fmt=0x46f771 "%ld", __s=0x697670 > <format_gcov(long, long, int)::buffer> "-674122451547433726") > at /usr/include/x86_64-linux-gnu/bits/stdio2.h:34 > #12 format_gcov (top=<optimized out>, bottom=<optimized out>, dp=-1) at > ../../src/gcc/gcov.c:1998 > #13 0x0000000000404b41 in output_lines (src=0x1108e00, gcov_file=0x71a650) > at ../../src/gcc/gcov.c:2563 > #14 output_gcov_file (src=0x1108e00, file_name=0xa8f490 > "Unified_cpp_js_src31.gcda") at ../../src/gcc/gcov.c:962 > #15 generate_results (file_name=<optimized out>) at ../../src/gcc/gcov.c:1035 > #16 main (argc=<optimized out>, argv=<optimized out>) at > ../../src/gcc/gcov.c:640 Thanks! Now I know where's the problem. Let me fix it.