This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/10599: -O2 with exception in shared libraries with -O2 optimisation on HP-UX 11 g++ cause Segmentation fault


>Number:         10599
>Category:       c++
>Synopsis:       -O2 with exception in shared libraries with -O2 optimisation on HP-UX 11 g++ cause Segmentation fault
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Fri May 02 06:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Gene Thomas
>Release:        gcc version 3.2
>Organization:
>Environment:
> uname -a
HP-UX hp14 B.11.00 A 9000/785 2013266428 two-user license

> gcc -v
Reading specs from /opt/gcc-3.2/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.2/specs
Configured with: ./configure --prefix=/opt/gcc-3.2 --enable-shared --with-gnu-as --with-as=/opt/binutils/bin/as --enable-libgcj : (reconfigured) ./configure --prefix=/opt/gcc-3.2 --enable-shared --with-gnu-as --with-as=/opt/binutils/bin/as
Thread model: single
gcc version 3.2
>Description:
When compiling the attached program on HP-UX 11.0 (works on Linux), and an exception thrown from a shared library and caught in the host application, when optimisation is on (-O2) the program core dumps when one attempts to look into the caught exception (printing .what() or looking at the typeid() infomation.
>How-To-Repeat:
ungzip and untar the attached source, gmake and run ./exceptionProblem.
This core dumps, see source for simple (as possible) test program.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-gzip-compressed; name="soure.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="soure.tar.gz"

H4sICCUUsj4AA3NvdXJlLnRhcgDtWFtr2zAU7mv0Kw4pDIcubpwr2KUPG3sY7FLoDxiOrMSmthQs
ZW0Z+e/TxXKcxFkG64UyfQ91de7nOPpyWvKAyUpkjN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AA=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]