[Bug 1439451] [NEW] std::uncaught_exception() returns true after catching an exception thrown with std::rethrow_exception
Chris Halse Rogers
chris at cooperteam.net
Thu Apr 2 00:01:17 UTC 2015
Public bug reported:
See attached testcase.
On debugging, it seems that std::rethrow_exception isn't incrementing
__cxa_get_globals()->uncaughtExceptions, so when the exception is caught
it's decremented from 0 to MAXINT.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: libstdc++6 4.9.2-10ubuntu12
ProcVersionSignature: Ubuntu 3.19.0-10.10-generic 3.19.2
Uname: Linux 3.19.0-10-generic x86_64
ApportVersion: 2.17-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Apr 2 10:50:37 2015
Dependencies:
gcc-4.9-base 4.9.2-10ubuntu12
gcc-5-base 5-20150328-0ubuntu2
libc6 2.21-0ubuntu4
libgcc1 1:5-20150328-0ubuntu2
multiarch-support 2.21-0ubuntu4
InstallationDate: Installed on 2013-08-06 (603 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
SourcePackage: gcc-4.9
UpgradeStatus: Upgraded to vivid on 2013-08-06 (603 days ago)
** Affects: gcc-4.9 (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug vivid
** Attachment added: "Testcase"
https://bugs.launchpad.net/bugs/1439451/+attachment/4363638/+files/i_will_destroy_you.cpp
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-4.9 in Ubuntu.
https://bugs.launchpad.net/bugs/1439451
Title:
std::uncaught_exception() returns true after catching an exception
thrown with std::rethrow_exception
Status in gcc-4.9 package in Ubuntu:
New
Bug description:
See attached testcase.
On debugging, it seems that std::rethrow_exception isn't incrementing
__cxa_get_globals()->uncaughtExceptions, so when the exception is
caught it's decremented from 0 to MAXINT.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: libstdc++6 4.9.2-10ubuntu12
ProcVersionSignature: Ubuntu 3.19.0-10.10-generic 3.19.2
Uname: Linux 3.19.0-10-generic x86_64
ApportVersion: 2.17-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Apr 2 10:50:37 2015
Dependencies:
gcc-4.9-base 4.9.2-10ubuntu12
gcc-5-base 5-20150328-0ubuntu2
libc6 2.21-0ubuntu4
libgcc1 1:5-20150328-0ubuntu2
multiarch-support 2.21-0ubuntu4
InstallationDate: Installed on 2013-08-06 (603 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
SourcePackage: gcc-4.9
UpgradeStatus: Upgraded to vivid on 2013-08-06 (603 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.9/+bug/1439451/+subscriptions
More information about the foundations-bugs
mailing list