Red Hat Bugzilla – Bug 88613
RHAS2.1 gcc-2.96-116 creates executable that segfault
Last modified: 2007-11-30 17:06:52 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
Description of problem:
When this code:
// Uncomment any ONE of the ofstream declarations.
// Then compile and run. With -O it SEGVs, but
// with no -O it runs fine.
int main(int argc, char **argv)
//std::ofstream xo; xo.attach(1);
xo << "Hello world." << std::endl;
is compiled with -O, the created executable produces Segmentation fault.
Without -O, the excutable functions normally.
BTW, it works on a 7.3 system with gcc-2.96-112
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.compile with/without -O
Actual Results: without -O it works, with it dumps
Expected Results: should always work
This is critical. We have RHAS support contract, and i am persuing that avenue
as well, but i am not sure where it will lead me.
What is going on with this?
Hello, my name is Tom Honermann. I too am experiencing this problem.
An errata 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 the 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.