public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/50057] New: [4.7 regression] SIGSEGV in natObject.cc:58
@ 2011-08-12 13:27 jojelino at gmail dot com
2011-09-29 13:25 ` [Bug libgcj/50057] " rguenth at gcc dot gnu.org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: jojelino at gmail dot com @ 2011-08-12 13:27 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057
Bug #: 50057
Summary: [4.7 regression] SIGSEGV in natObject.cc:58
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcj
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jojelino@gmail.com
Host: i686-pc-cygwin
Target: i686-pc-mingw32
Build: i686-pc-cygwin
Created attachment 24992
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24992
try to resolve 'o1' class on runtime, and got sigsegv
when referenced class(oo1) is not found in classpath, it throwed
classnotfoundexception.
but it sigsegved
Starting program: /usr/i686-pc-mingw32/java/bin/i686-pc-mingw32-gij -cp .
foobar --verbose
[New Thread 7704.0x1af8]
[New Thread 7704.0x2b60]
Program received signal SIGSEGV, Segmentation fault.
0x696cfc4a in java::lang::Object::getClass (this=0x0)
at ../.././libjava/java/lang/natObject.cc:58
58 return (*dt)->clas;
(gdb) bt
#0 0x696cfc4a in java::lang::Object::getClass (this=0x0)
at ../.././libjava/java/lang/natObject.cc:58
#1 0x696b8bbf in _Jv_InterpMethod::check_handler (this=0xe12f60, pc=0x22e8d8,
meth=0xe12f60, ex=0x0) at ../.././libjava/interpret.cc:1463
#2 0x696a99f5 in _Jv_InterpMethod::run (retp=0x22f104, args=0x22f124,
meth=0xe12f60) at ../.././libjava/interpret-run.cc:2676
#3 0x696a2251 in _Jv_InterpMethod::run_normal (ret=0x22f104, args=0x22f124,
__this=0xe12f60) at ../.././libjava/interpret.cc:358
#4 0x6a432ee5 in ffi_closure_raw_SYSV () at ../.././libffi/src/x86/win32.S:695
#5 0x6a432d37 in ffi_call_win32 () at ../.././libffi/src/x86/win32.S:424
#6 0x6a432d13 in ffi_raw_call (cif=0xbf0b24, fn=0xe30098, rvalue=0x22f4e0,
fake_avalue=0x22f1c0) at ../.././libffi/src/x86/ffi.c:647
#7 0x696a351f in _Jv_InterpMethod::run (retp=0x22fd20, args=0x22fd40,
meth=0xab8e60) at ../.././libjava/interpret-run.cc:611
#8 0x696a237a in _Jv_InterpMethod::run_class (ret=0x22fd20, args=0x22fd40,
__this=0xab8e60) at ../.././libjava/interpret.cc:407
#9 0x6a432ee5 in ffi_closure_raw_SYSV () at ../.././libffi/src/x86/win32.S:695
#10 0x696c282c in gnu::java::lang::MainThread::call_main (this=0xbfdf60)
at ../.././libjava/gnu/java/lang/natMainThread.cc:54
#11 0x6973c37d in gnu.java.lang.MainThread.run()void (this=@bfdf60)
at /tmp/gcc/libjava/gnu/java/lang/MainThread.java:106
#12 0x696d4d4d in _Jv_ThreadRun (thread=0xbfdf60)
at ../.././libjava/java/lang/natThread.cc:335
---Type <return> to continue, or q <return> to quit---
#13 0x69684e9b in _Jv_RunMain (vm_args=0x22fef4, klass=0x0,
name=0x3d8925 "foobar", argc=0x2, argv=0x3d89fc, is_jar=0x0)
at ../.././libjava/prims.cc:1789
#14 0x66bc24b0 in _fu0___ZN3gcj13verifyClassesE ()
at ../.././libjava/gij.cc:333
#15 0x004010fd in __mingw_CRTStartup () at ../../.././winsup/mingw/crt1.c:244
#16 0x00000408 in ?? ()
#17 0x7ffd4000 in ?? ()
#18 0x00000000 in ?? ()
(gdb)
and _Jv_Throw doesn't seem to pass throwable as argument of
unwind_raiseexception, as a consequence, catch(Throwable e){someoperaton(e);}
leads SIGSEGV.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libgcj/50057] [4.7 regression] SIGSEGV in natObject.cc:58
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 ` rguenth at gcc dot gnu.org
2011-10-10 12:18 ` rguenth at gcc dot gnu.org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-09-29 13:25 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.7.0
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libgcj/50057] [4.7 regression] SIGSEGV in natObject.cc:58
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
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-10 12:18 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libgcj/50057] [4.7 regression] SIGSEGV in natObject.cc:58
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
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ktietz at gcc dot gnu.org @ 2011-12-17 21:54 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ktietz at gcc dot gnu.org
--- Comment #1 from Kai Tietz <ktietz at gcc dot gnu.org> 2011-12-17 21:54:05 UTC ---
Hmm, this might be a duplicate for already fixed PR/50053. Could you please
check, if you still have this issue here with current trunk version.
Thanks
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libgcj/50057] [4.7 regression] SIGSEGV in natObject.cc:58
2011-08-12 13:27 [Bug libgcj/50057] New: [4.7 regression] SIGSEGV in natObject.cc:58 jojelino at gmail dot com
` (2 preceding siblings ...)
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 ` [Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null jojelino at gmail dot com
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jojelino at gmail dot com @ 2012-01-18 6:14 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057
--- Comment #2 from gee <jojelino at gmail dot com> 2012-01-18 06:14:17 UTC ---
(In reply to comment #1)
> Hmm, this might be a duplicate for already fixed PR/50053. Could you please
> check, if you still have this issue here with current trunk version.
>
> Thanks
Starting program: /tmp/gcc/i686-pc-mingw32/libjava/.libs/gij.exe
/tmp/gcc/libjava/testsuite/libjava.lang/foobar.class
[New Thread 9088.0x1188]
[New Thread 9088.0x2760]
[Inferior 1 (process 9088) exited with code 01]
(gdb)
just exists with silent message. without sigsegv
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null
2011-08-12 13:27 [Bug libgcj/50057] New: [4.7 regression] SIGSEGV in natObject.cc:58 jojelino at gmail dot com
` (3 preceding siblings ...)
2012-01-18 6:14 ` jojelino at gmail dot com
@ 2012-01-18 6:21 ` jojelino at gmail dot com
2012-02-10 19:20 ` ktietz at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jojelino at gmail dot com @ 2012-01-18 6:21 UTC (permalink / raw)
To: java-prs
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)
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null
2011-08-12 13:27 [Bug libgcj/50057] New: [4.7 regression] SIGSEGV in natObject.cc:58 jojelino at gmail dot com
` (4 preceding siblings ...)
2012-01-18 6:21 ` [Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null jojelino at gmail dot com
@ 2012-02-10 19:20 ` ktietz at gcc dot gnu.org
2012-02-10 19:21 ` ktietz at gcc dot gnu.org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-02-10 19:20 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057
--- Comment #5 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-02-10 19:19:56 UTC ---
Hmm, I assume issue is related to using of -mms-bitfields for 4.7 for
windows-targets.
Does the following patch fix the issue?
Index: exception.cc
===================================================================
--- exception.cc (revision 184105)
+++ exception.cc (working copy)
@@ -33,12 +33,18 @@
}
#include "unwind.h"
+#ifdef __MINGW32__
+__attribute__ ((gcc_struct))
+#endif
struct alignment_test_struct
{
char space;
char end[0] __attribute__((aligned));
};
+#ifdef __MINGW32__
+__attribute__ ((gcc_struct))
+#endif
struct java_exception_header
{
/* Cache handler details between Phase 1 and Phase 2. */
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null
2011-08-12 13:27 [Bug libgcj/50057] New: [4.7 regression] SIGSEGV in natObject.cc:58 jojelino at gmail dot com
` (5 preceding siblings ...)
2012-02-10 19:20 ` 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
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-02-10 19:21 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-02-10
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null
2011-08-12 13:27 [Bug libgcj/50057] New: [4.7 regression] SIGSEGV in natObject.cc:58 jojelino at gmail dot com
` (6 preceding siblings ...)
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
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-02-14 20:26 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057
--- Comment #6 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-02-14 20:26:01 UTC ---
Hmm, this might be a duplicate of PR52238
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null
2011-08-12 13:27 [Bug libgcj/50057] New: [4.7 regression] SIGSEGV in natObject.cc:58 jojelino at gmail dot com
` (7 preceding siblings ...)
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
10 siblings, 0 replies; 12+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-02-22 12:38 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
--- Comment #7 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-02-22 12:35:04 UTC ---
Could you please retest this bug. I assume it is a duplicate of PR52238, which
was recently fixed.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null
2011-08-12 13:27 [Bug libgcj/50057] New: [4.7 regression] SIGSEGV in natObject.cc:58 jojelino at gmail dot com
` (8 preceding siblings ...)
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
10 siblings, 0 replies; 12+ messages in thread
From: jojelino at gmail dot com @ 2012-02-22 16:15 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057
gee <jojelino at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
--- Comment #8 from gee <jojelino at gmail dot com> 2012-02-22 16:13:41 UTC ---
(In reply to comment #7)
> Could you please retest this bug. I assume it is a duplicate of PR52238, which
> was recently fixed.
yes, it's fixed. thank you.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null
2011-08-12 13:27 [Bug libgcj/50057] New: [4.7 regression] SIGSEGV in natObject.cc:58 jojelino at gmail dot com
` (9 preceding siblings ...)
2012-02-22 16:15 ` jojelino at gmail dot com
@ 2012-02-22 16:33 ` ktietz at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-02-22 16:33 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |DUPLICATE
--- Comment #9 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-02-22 16:28:40 UTC ---
mark as duplicate of 52238
*** This bug has been marked as a duplicate of bug 52238 ***
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2012-02-22 16:33 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null jojelino at gmail dot com
2012-02-10 19:20 ` 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
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).