Bug 54462

Summary: gcov .bb info incorrect for C++ static initialization
Product: [Retired] Red Hat Linux Reporter: Need Real Name <dan.wooley>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-12-15 17:55:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2001-10-09 08:22:01 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; TMSL)

Description of problem:
gcov core dumps when trying to produce coverage information with C++ which 
have static initialization

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.
#include <iostream>
#include <vector.h>

void main()
{
  vector<int> string_list;
}

2. g++ -ftest-coverage -fprofile-arcs file.cxx -o file_cov
3. ./file_cov
4. gcov file
>Aborted (core dumped)
	

Actual Results:  core dump

Expected Results:  coverage information results

Additional info:


http://gcc.gnu.org/ml/gcc-bugs/2001-04/msg00034.html by Michelle Lorenz

http://gcc.gnu.org/cgi-bin/gnatsweb.pl, problem report 3639

Comment 1 Alan Cox 2002-12-15 17:55:23 UTC
Works ok in 3.2