public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "jojelino at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
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	[thread overview]
Message-ID: <bug-50057-8172-QPE5nJBmsK@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-50057-8172@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057

gee <jojelino at gmail dot com> 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 <jojelino at gmail dot com> 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)


  parent reply	other threads:[~2012-01-18  6:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-12 13:27 [Bug libgcj/50057] New: [4.7 regression] SIGSEGV in natObject.cc:58 jojelino at gmail dot com
2011-09-29 13:25 ` [Bug libgcj/50057] " rguenth at gcc dot gnu.org
2011-10-10 12:18 ` rguenth at gcc dot gnu.org
2011-12-17 21:54 ` ktietz at gcc dot gnu.org
2012-01-18  6:14 ` jojelino at gmail dot com
2012-01-18  6:21 ` jojelino at gmail dot com [this message]
2012-02-10 19:20 ` [Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null ktietz at gcc dot gnu.org
2012-02-10 19:21 ` ktietz at gcc dot gnu.org
2012-02-14 20:26 ` ktietz at gcc dot gnu.org
2012-02-22 12:38 ` ktietz at gcc dot gnu.org
2012-02-22 16:15 ` jojelino at gmail dot com
2012-02-22 16:33 ` ktietz at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-50057-8172-QPE5nJBmsK@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).