Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SEGV in ube

807575Dec 26 2005 — edited Dec 29 2005
hi,

compiling the following code:
int v;
void f3() { while (v); }
void f1() { v = 1; }

void Error();
void f2() {
        if (v) {
                Error();
                f3();
        }
}
under C++ 5.8 2005/10/13 with -xO4 or -xO5 on x86 (32-bit, Solaris snv_28) produces the following error:

"test.cpp", [__1cCf26F_v_]:ube: error: SIGNAL: Segmentation Fault

the crash does not occur if the function Error() does not contain the string "Error" in its name (!)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 26 2006
Added on Dec 26 2005
2 comments
125 views