Bug 519517

Summary: [RHEL5 gcc44-c++] Code with virtual inheritance compiled by g++ crash at run-time
Product: Red Hat Enterprise Linux 5 Reporter: Jeff Bastian <jbastian>
Component: gcc44Assignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.4CC: mnowak, pmuller
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gcc44-4.4.4-13.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 519519 (view as bug list) Environment:
Last Closed: 2011-01-14 00:00:18 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:
Bug Depends On:    
Bug Blocks: 499522    
Attachments:
Description Flags
reproducer program
none
proposed patch none

Description Jeff Bastian 2009-08-26 22:07:18 UTC
Created attachment 358780 [details]
reproducer program

Description of problem:
The attached program when compiled by g++ will crash at runtime.  It runs fine when compiled with Sun Studio CC and AIX xlC on their respective platforms.  This was reported upstream and a patch has been accepted.
  http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00302.html
  http://gcc.gnu.org/viewcvs?revision=149297&view=revision

Please include this patch in the gcc44-c++ compilers for RHEL 5.

Version-Release number of selected component (if applicable):
gcc44-c++-4.4.0-6.el5

How reproducible:
every time

Steps to Reproduce:
1. g++44 dyncast-segfault.cpp
2. ./a.out
  
Actual results:
...
in synchro_slave_base dtor
in my_object dtor
before DCASTing to my_module*
Segmentation fault


Expected results:
no seg fault

Additional info:

Comment 1 Jeff Bastian 2009-08-27 20:34:53 UTC
Created attachment 358964 [details]
proposed patch

The upstream patch applies cleanly to gcc44-4.4.0-6.el5 except for the ChangeLog updates.  Attached is a patch minus the ChangeLog chunks.

Comment 3 Jakub Jelinek 2009-09-03 09:00:55 UTC
The patch is now in rawhide gcc.

Comment 14 errata-xmlrpc 2011-01-14 00:00:18 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0102.html