From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28033 invoked by alias); 2 May 2003 06:56:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 28014 invoked by uid 71); 2 May 2003 06:56:00 -0000 Resent-Date: 2 May 2003 06:56:00 -0000 Resent-Message-ID: <20030502065600.28012.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Gene.Thomas@eServGlobal.com Received: (qmail 22271 invoked by uid 48); 2 May 2003 06:50:05 -0000 Message-Id: <20030502065005.22270.qmail@sources.redhat.com> Date: Fri, 02 May 2003 06:56:00 -0000 From: Gene.Thomas@eServGlobal.com Reply-To: Gene.Thomas@eServGlobal.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/10599: -O2 with exception in shared libraries with -O2 optimisation on HP-UX 11 g++ cause Segmentation fault X-SW-Source: 2003-05/txt/msg00113.txt.bz2 List-Id: >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/TxXKcxFkG64UyfQ91de7nOPpyWvKAyUpkjN6UbJ6Twsf47KkxkJhNp/IZBNPpuPHUCIaD 4Zk0mIzHg9lkFCj9NAhmZ4Mnr6QFay7iUqZcipQVMT9qd0pfNVM/3wjQeUZxvk4IXBH7UbhuCMXj imR0wZqyjHFRkri4RlthN8/mfpp2EewBZVRAEWfU68EvrdU/RPlYHWuRwuWlSEt2DzJaGN5mxSon n2xZXi86sOMiCcNyTUVWkB+kLFnpdR+6DcNtaBPysZizHLg3bNhojY63zcWlXhtsAMcCp+BhRrkw CetJwTvSa7ShlViWAVdX0MXxepmKELrqpOeYeKTn07ggchZSZmLRJI9ORLhPYxuH+Opw1L8kYl1S 6AfR7mzrLnzf33kPh0nX1KQFzgoi0owuuyeSDY1os41qIrK1MG0w9R4FSYDd7cfaoNe+Af831LV9 BsrfwQn+H4wG4y3/B5r/R6Px1PH/C6CFwRFSFMVXMSaKGiVboJ8sS2CPIS2VWjr5G+q2Nq28bQI2 KdgSuXE61Cv6cAzyTzAv/Xlz6Ps/mx3d/4J6/wskGbj7/5JorHXcbnUNkUjMrnPdQgo4jzmvbqU6 A6hVj0ZotZ7nGQ6VxGg9pchoD0KzO1BPHRRtbCq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