From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2079 invoked by alias); 18 Jan 2012 06:21:29 -0000 Received: (qmail 2060 invoked by uid 22791); 18 Jan 2012 06:21:28 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_JL X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 Jan 2012 06:21:16 +0000 From: "jojelino at gmail dot com" To: java-prs@gcc.gnu.org Subject: [Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null Date: Wed, 18 Jan 2012 06:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcj X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: jojelino at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.0 X-Bugzilla-Changed-Fields: Summary Severity Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2012-q1/txt/msg00040.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057 gee changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[4.7 regression] SIGSEGV in |[4.7 regression] |natObject.cc:58 |misalignment of | |java_exception_header | |resulted in throwable to be | |null Severity|normal |major --- Comment #3 from gee 2012-01-18 06:20:40 UTC --- in libjava/exception.cc /* The object being thrown. Compiled code expects this to be immediately before the generic exception header. Which is complicated by the fact that _Unwind_Exception is ((aligned)). */ Starting program: /tmp/gcc/i686-pc-mingw32/libjava/testsuite/.libs/PR218 [New Thread 6064.0x1e4c] Breakpoint 13, _Jv_Throw (value=0xa9ba08) at ../.././libjava/exception.cc:118 118 _Unwind_RaiseException (&xh->unwindHeader); (gdb) p ((int)&xh->unwindHeader-(int)&xh->value) $19 = 0xc It seems that padding was unsuccessful. following is version info. Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-cygwin/4.7.0/lto-wrapper.exe Target: i686-pc-cygwin Configured with: ./configure --config-cache --prefix=/usr --disable-win32-registry --enable-threads=win32 --enable-languages=c,c++,lto,fortran --with-win32-nlsapi=unicode --enable-tls --disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp --enable-cloog-backend=isl LTLDFLAGS=-no-undefined lt_cv_deplibs_check_method=pass_all : (reconfigured) ./configure --config-cache --prefix=/usr --disable-win32-registry --enable-threads=win32 --enable-languages=c,c++,lto,fortran --with-win32-nlsapi=unicode --enable-tls --disable-bootstrap --enable-shared --disable-sjlj-exceptions --enable-gomp --enable-cloog-backend=isl LTLDFLAGS=-no-undefined lt_cv_deplibs_check_method=pass_all Thread model: win32 gcc version 4.7.0 20120114 (experimental) (GCC)