public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/25351]  New: Segmentation fault in function coverage_checksum_string
@ 2005-12-11 13:49 cyberax at elewise dot com
  2005-12-11 14:10 ` [Bug c++/25351] " cyberax at elewise dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: cyberax at elewise dot com @ 2005-12-11 13:49 UTC (permalink / raw)
  To: gcc-bugs

coverage_checksum_string function in gcc/coverage.c fails (SIGSEGV) with this
input:
=================
_GLOBAL__D__ZN5boost9unit_test88_GLOBAL__N_C__work_FlexIDE_libs_boost_libs_test_src_unit_test_main.cpp_00000000_0000000017results_collectorE
=================

This function is called if compilation is started with -fprofile-arcs and/or
-ftest-coverage flags.


-- 
           Summary: Segmentation fault in function coverage_checksum_string
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: cyberax at elewise dot com
 GCC build triplet: i686-mingw32
  GCC host triplet: i686-mingw32
GCC target triplet: i686-mingw32


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/25351] Segmentation fault in function coverage_checksum_string
  2005-12-11 13:49 [Bug c++/25351] New: Segmentation fault in function coverage_checksum_string cyberax at elewise dot com
@ 2005-12-11 14:10 ` cyberax at elewise dot com
  2005-12-11 15:52 ` [Bug gcov/profile/25351] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cyberax at elewise dot com @ 2005-12-11 14:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from cyberax at elewise dot com  2005-12-11 14:10 -------
Created an attachment (id=10450)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10450&action=view)
Quick fix

Quick-and-dirty fix for this bug (works for me).


-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gcov/profile/25351] Segmentation fault in function coverage_checksum_string
  2005-12-11 13:49 [Bug c++/25351] New: Segmentation fault in function coverage_checksum_string cyberax at elewise dot com
  2005-12-11 14:10 ` [Bug c++/25351] " cyberax at elewise dot com
@ 2005-12-11 15:52 ` pinskia at gcc dot gnu dot org
  2005-12-11 16:23 ` cyberax at elewise dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-11 15:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-12-11 15:52 -------
Do you have a normal testcase that is C++ which produces this symbol?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu dot
                   |                            |org
           Severity|critical                    |normal
           Keywords|                            |ice-on-valid-code


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gcov/profile/25351] Segmentation fault in function coverage_checksum_string
  2005-12-11 13:49 [Bug c++/25351] New: Segmentation fault in function coverage_checksum_string cyberax at elewise dot com
  2005-12-11 14:10 ` [Bug c++/25351] " cyberax at elewise dot com
  2005-12-11 15:52 ` [Bug gcov/profile/25351] " pinskia at gcc dot gnu dot org
@ 2005-12-11 16:23 ` cyberax at elewise dot com
  2005-12-11 16:29 ` cyberax at elewise dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cyberax at elewise dot com @ 2005-12-11 16:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from cyberax at elewise dot com  2005-12-11 16:23 -------
Yes, preprocessed file attached. But this bug is somewhat hard to reproduce,
I've spent about 3 hours trying to create a minimal test-case without much
success -  sometimes compilation is finished successfully, but the resulting
code is invalid. This is the most reliable test case I could come up with.

Example command line:
i686-mingw32-g++ -ftemplate-depth-100 -Wno-attributes -O0 -fno-inline -Wall -g
-mthreads -c "C:\work\FlexIDE\flex-core\tests\xml_report_formatter.i"


-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gcov/profile/25351] Segmentation fault in function coverage_checksum_string
  2005-12-11 13:49 [Bug c++/25351] New: Segmentation fault in function coverage_checksum_string cyberax at elewise dot com
                   ` (2 preceding siblings ...)
  2005-12-11 16:23 ` cyberax at elewise dot com
@ 2005-12-11 16:29 ` cyberax at elewise dot com
  2006-03-24 18:45 ` lothar at tradescape dot biz
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cyberax at elewise dot com @ 2005-12-11 16:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from cyberax at elewise dot com  2005-12-11 16:29 -------
Created an attachment (id=10452)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10452&action=view)
Test case


-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gcov/profile/25351] Segmentation fault in function coverage_checksum_string
  2005-12-11 13:49 [Bug c++/25351] New: Segmentation fault in function coverage_checksum_string cyberax at elewise dot com
                   ` (3 preceding siblings ...)
  2005-12-11 16:29 ` cyberax at elewise dot com
@ 2006-03-24 18:45 ` lothar at tradescape dot biz
  2009-01-14 21:04 ` [Bug gcov-profile/25351] " pinskia at gcc dot gnu dot org
  2009-01-14 23:14 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: lothar at tradescape dot biz @ 2006-03-24 18:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from lothar at tradescape dot biz  2006-03-24 18:45 -------
We also get ICEs on valid code with gcc 4.1.0 on both i686 and x86_64 both on
Linux if we compile our source with -fprofile-arcs -ftest-coverage.
When I tried to produce a precompiled (-E) file I could NOT reproduce the ICE
which made it impossible for me to file a bug report on my own. It worked
without problems with gcc 4.0.2.

I downloaded the Quick Fix and we no longer get ICEs. I have NOT checked the
quality of the coverage output produced by this patched gcc.


-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gcov-profile/25351] Segmentation fault in function coverage_checksum_string
  2005-12-11 13:49 [Bug c++/25351] New: Segmentation fault in function coverage_checksum_string cyberax at elewise dot com
                   ` (4 preceding siblings ...)
  2006-03-24 18:45 ` lothar at tradescape dot biz
@ 2009-01-14 21:04 ` pinskia at gcc dot gnu dot org
  2009-01-14 23:14 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-01-14 21:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2009-01-14 21:04 -------
I think this is a dup of bug 26399 which was fixed for 4.2.0


-- 


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug gcov-profile/25351] Segmentation fault in function coverage_checksum_string
  2005-12-11 13:49 [Bug c++/25351] New: Segmentation fault in function coverage_checksum_string cyberax at elewise dot com
                   ` (5 preceding siblings ...)
  2009-01-14 21:04 ` [Bug gcov-profile/25351] " pinskia at gcc dot gnu dot org
@ 2009-01-14 23:14 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-01-14 23:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2009-01-14 23:14 -------
And it is.  I had the same issue also and backporting the patch for PR 26399
fixes it for me.

*** This bug has been marked as a duplicate of 26399 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-01-14 23:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-11 13:49 [Bug c++/25351] New: Segmentation fault in function coverage_checksum_string cyberax at elewise dot com
2005-12-11 14:10 ` [Bug c++/25351] " cyberax at elewise dot com
2005-12-11 15:52 ` [Bug gcov/profile/25351] " pinskia at gcc dot gnu dot org
2005-12-11 16:23 ` cyberax at elewise dot com
2005-12-11 16:29 ` cyberax at elewise dot com
2006-03-24 18:45 ` lothar at tradescape dot biz
2009-01-14 21:04 ` [Bug gcov-profile/25351] " pinskia at gcc dot gnu dot org
2009-01-14 23:14 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).