Description of problem: The attached test_long.cc test program if compiled with -fPIC -O2 and up will core dump at run time. Works with "-O1". Or if we use: typedef signed int Cpp_Long; It will work with "-O3" option but not -fPIC -O3 How reproducible: [tammy@sjfql268v542 src]$ g++44 -fPIC -O2 test_long.cc [tammy@sjfql268v542 src]$ ./a.out 0: 0: Plx_TopbottomEnlargementNoneName 1: 1: Plx_TopbottomEnlargementRName 2: 2: Plx_TopbottomEnlargementCName 3: 3: Plx_TopbottomEnlargementRCName Segmentation fault Steps to Reproduce: see above Actual results: core dump with "-fPIC -O2" or up. Expected results: 0: 0: Plx_TopbottomEnlargementNoneName 1: 1: Plx_TopbottomEnlargementRName 2: 2: Plx_TopbottomEnlargementCName 3: 3: Plx_TopbottomEnlargementRCName ERROR: 4 Additional info:
Created attachment 385550 [details] test_long.cc
This is in 4.6 now, but not backported yet.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0030.html