Bug 109961 - Problem with c++ exceptions after upgrading libc
Problem with c++ exceptions after upgrading libc
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
9
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-11-13 09:33 EST by Johan Lagerros
Modified: 2016-11-24 10:22 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-11-13 11:40:04 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Johan Lagerros 2003-11-13 09:33:52 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1)
Gecko/20030225

Description of problem:
Exceptions in C++ programs results in SIGABRT, instead of being caught.
For example, compiling and running this test program on an
glibc-2.3.2-27.9 machine works fine (prints "OK!"), but not for
glibc-2.3.2-27.9.6:

#include <iostream>

int main(void)
{
  try {
    throw int(3);
  }

  catch (int& e) {
    std::cout << "OK!" << std::endl;
  }

  return 0;
}


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

How reproducible:
Always

Steps to Reproduce:
1. Compile testprogram (c++ -o example example.cpp)
2. Run testprogram (./example)

    

Actual Results:  % ./example
Aborted
% 

Expected Results:  % ./example
OK!
%


Additional info:
Comment 1 Jakub Jelinek 2003-11-13 10:02:15 EST
Cannot reproduce.
Can you run:
uname -a
ldd ./example
strace ./example
?
Comment 2 Johan Lagerros 2003-11-13 11:40:04 EST
I'm so sorry! Running "ldd ./example" showed that I was linking to an
old library. Removing that solved the problem!

Note You need to log in before you can comment on or make changes to this bug.