public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/52579] New: [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function
@ 2012-03-13 17:05 jojelino at gmail dot com
2012-03-14 10:36 ` [Bug libgcj/52579] " rguenth at gcc dot gnu.org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: jojelino at gmail dot com @ 2012-03-13 17:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52579
Bug #: 52579
Summary: [4.8 regression] i386_w32_fallback_frame_state should
care ffi raw-closure stub function
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
when we use closure stub, there is also possibility that callee throws
exception.
but we don't have any dwarf2 handler to take care these closure stub, so unwind
fails with _urc_end_of_stack. resulting abort() called so far.
to fix this problem, i386_w32_fallback_frame_state need to return
_URC_NO_REASON at least.
(gdb) bt
#0 i386_w32_fallback_frame_state (fs=0x22f198, context=<optimized out>)
at ./md-unwind-support.h:134
#1 uw_frame_state_for (context=context@entry=0x22f118, fs=fs@entry=0x22f198)
at ../.././libgcc/unwind-dw2.c:1187
#2 0x6e9545d8 in _Unwind_RaiseException (exc=0x14f63a0)
at ../.././libgcc/unwind.inc:99
#3 0x6968fec9 in _Jv_Throw (value=0x1a48d08)
at ../.././libjava/exception.cc:123
#4 0x696a194e in _Jv_InterpMethod::run (retp=0x22f658, args=0x22f67c,
meth=0x117d000) at ../.././libjava/interpret-run.cc:2695
#5 0x69ce4705 in ffi_closure_raw_SYSV () at ../.././libffi/src/x86/win32.S:777
#6 0x01910911 in ?? ()
#7 0x69ce43e8 in ffi_raw_call (cif=0x1af5d5c, fn=0x19108e0, rvalue=0x22f8bc,
fake_avalue=0x22f724) at ../.././libffi/src/x86/ffi.c:828
#8 0x6969dc4e in _Jv_InterpMethod::run (retp=0x22fa24, args=0x22fa48,
meth=0x12fab68) at ../.././libjava/interpret-run.cc:611
#9 0x69ce4705 in ffi_closure_raw_SYSV () at ../.././libffi/src/x86/win32.S:777
#10 0x019108a1 in ?? ()
#11 0x69ce43e8 in ffi_raw_call (cif=0x1af5d8c, fn=0x1910870, rvalue=0x22fc88,
fake_avalue=0x22fae0) at ../.././libffi/src/x86/ffi.c:828
#12 0x6969dc4e in _Jv_InterpMethod::run (retp=0x22fdf0, args=0x22fe10,
meth=0x1369000) at ../.././libjava/interpret-run.cc:611
#13 0x69ce4705 in ffi_closure_raw_SYSV () at ../.././libffi/src/x86/win32.S:777
---Type <return> to continue, or q <return> to quit---
#14 0x696bf782 in gnu::java::lang::MainThread::call_main (this=0xbf2de0)
at ../.././libjava/gnu/java/lang/natMainThread.cc:54
#15 0x696fcd06 in gnu.java.lang.MainThread.run()void (this=@bf2de0)
at D:/cygwin/tmp/gcc/libjava/gnu/java/lang/MainThread.java:106
#16 0x696ce642 in _Jv_ThreadRun (thread=0xbf2de0)
at ../.././libjava/java/lang/natThread.cc:335
#17 0x69684074 in _Jv_RunMain (vm_args=0x0, klass=klass@entry=0x0,
name=name@entry=0x403064 "org.eclipse.jdt.internal.compile"...,
argc=argc@entry=0xb, argv=argv@entry=0x3d8b70, is_jar=is_jar@entry=0x0)
at ../.././libjava/prims.cc:1795
#18 0x69684266 in _Jv_RunMain (klass=0x0,
name=name@entry=0x403064 "org.eclipse.jdt.internal.compile"...,
argc=argc@entry=0xb, argv=argv@entry=0x3d8b70, is_jar=is_jar@entry=0x0)
at ../.././libjava/prims.cc:1820
#19 0x6968429f in JvRunMainName (
name=0x403064 "org.eclipse.jdt.internal.compile"..., argc=0xb,
argv=0x3d8b70) at ../.././libjava/prims.cc:1832
#20 0x00401d12 in ?? ()
#21 0x004010fd in ?? ()
#22 0x00000000 in ?? ()
(gdb) up
#1 uw_frame_state_for (context=context@entry=0x22f118, fs=fs@entry=0x22f198)
at ../.././libgcc/unwind-dw2.c:1187
1187 return MD_FALLBACK_FRAME_STATE_FOR (context, fs);
(gdb) print context->ra
$21 = (void *) 0x1910911
(gdb) x/i context->ra
0x1910911: ret $0x10
(gdb)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcj/52579] [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function
2012-03-13 17:05 [Bug libgcj/52579] New: [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function jojelino at gmail dot com
@ 2012-03-14 10:36 ` rguenth at gcc dot gnu.org
2012-04-19 8:25 ` jojelino at gmail dot com
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-14 10:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52579
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|4.7.0 |4.8.0
Target Milestone|--- |4.8.0
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcj/52579] [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function
2012-03-13 17:05 [Bug libgcj/52579] New: [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function jojelino at gmail dot com
2012-03-14 10:36 ` [Bug libgcj/52579] " rguenth at gcc dot gnu.org
@ 2012-04-19 8:25 ` jojelino at gmail dot com
2012-09-19 12:18 ` rguenth at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jojelino at gmail dot com @ 2012-04-19 8:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52579
--- Comment #1 from gee <jojelino at gmail dot com> 2012-04-19 08:23:39 UTC ---
i came into conclusion that we need to separate ffi_closure_raw_THISCALL from
ffi_closure_raw_SYSV(not using such as jmp .stubraw), because
ffi_closure_raw_THISCALL is not transparent by CFI so that
_Unwind_RaiseException would not fail with _urc_end_of_stack, modifing CFI of
ffi_closure_raw_THISCALL so that thiscall closure of ffi_closure_raw_THISCALL
would not be shown by reading CFI
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcj/52579] [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function
2012-03-13 17:05 [Bug libgcj/52579] New: [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function jojelino at gmail dot com
2012-03-14 10:36 ` [Bug libgcj/52579] " rguenth at gcc dot gnu.org
2012-04-19 8:25 ` jojelino at gmail dot com
@ 2012-09-19 12:18 ` rguenth at gcc dot gnu.org
2013-03-22 14:41 ` [Bug libgcj/52579] [4.8/4.9 " jakub at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-19 12:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52579
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcj/52579] [4.8/4.9 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function
2012-03-13 17:05 [Bug libgcj/52579] New: [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function jojelino at gmail dot com
` (2 preceding siblings ...)
2012-09-19 12:18 ` rguenth at gcc dot gnu.org
@ 2013-03-22 14:41 ` jakub at gcc dot gnu.org
2013-05-31 10:57 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-03-22 14:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52579
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.8.0 |4.8.1
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-03-22 14:41:43 UTC ---
GCC 4.8.0 is being released, adjusting target milestone.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcj/52579] [4.8/4.9 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function
2012-03-13 17:05 [Bug libgcj/52579] New: [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function jojelino at gmail dot com
` (3 preceding siblings ...)
2013-03-22 14:41 ` [Bug libgcj/52579] [4.8/4.9 " jakub at gcc dot gnu.org
@ 2013-05-31 10:57 ` jakub at gcc dot gnu.org
2013-10-16 9:48 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-05-31 10:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52579
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.8.1 |4.8.2
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.1 has been released.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcj/52579] [4.8/4.9 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function
2012-03-13 17:05 [Bug libgcj/52579] New: [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function jojelino at gmail dot com
` (4 preceding siblings ...)
2013-05-31 10:57 ` jakub at gcc dot gnu.org
@ 2013-10-16 9:48 ` jakub at gcc dot gnu.org
2014-05-22 9:00 ` [Bug libgcj/52579] [4.8/4.9/4.10 " rguenth at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-10-16 9:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52579
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.8.2 |4.8.3
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.2 has been released.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcj/52579] [4.8/4.9/4.10 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function
2012-03-13 17:05 [Bug libgcj/52579] New: [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function jojelino at gmail dot com
` (5 preceding siblings ...)
2013-10-16 9:48 ` jakub at gcc dot gnu.org
@ 2014-05-22 9:00 ` rguenth at gcc dot gnu.org
2014-12-19 13:36 ` [Bug libgcj/52579] [4.8/4.9/5 " jakub at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-05-22 9:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52579
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.8.3 |4.8.4
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 4.8.3 is being released, adjusting target milestone.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcj/52579] [4.8/4.9/5 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function
2012-03-13 17:05 [Bug libgcj/52579] New: [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function jojelino at gmail dot com
` (6 preceding siblings ...)
2014-05-22 9:00 ` [Bug libgcj/52579] [4.8/4.9/4.10 " rguenth at gcc dot gnu.org
@ 2014-12-19 13:36 ` jakub at gcc dot gnu.org
2015-03-12 15:24 ` ktietz at gcc dot gnu.org
2015-03-15 21:26 ` jojelino at gmail dot com
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-12-19 13:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52579
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.8.4 |4.8.5
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.4 has been released.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcj/52579] [4.8/4.9/5 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function
2012-03-13 17:05 [Bug libgcj/52579] New: [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function jojelino at gmail dot com
` (7 preceding siblings ...)
2014-12-19 13:36 ` [Bug libgcj/52579] [4.8/4.9/5 " jakub at gcc dot gnu.org
@ 2015-03-12 15:24 ` ktietz at gcc dot gnu.org
2015-03-15 21:26 ` jojelino at gmail dot com
9 siblings, 0 replies; 11+ messages in thread
From: ktietz at gcc dot gnu.org @ 2015-03-12 15:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52579
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2015-03-12
CC| |ktietz at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #7 from Kai Tietz <ktietz at gcc dot gnu.org> ---
This issue seems to be fixed in 5.0 by Richard's work on libffi.
Could you please check, if issue is fixed for you?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug libgcj/52579] [4.8/4.9/5 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function
2012-03-13 17:05 [Bug libgcj/52579] New: [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function jojelino at gmail dot com
` (8 preceding siblings ...)
2015-03-12 15:24 ` ktietz at gcc dot gnu.org
@ 2015-03-15 21:26 ` jojelino at gmail dot com
9 siblings, 0 replies; 11+ messages in thread
From: jojelino at gmail dot com @ 2015-03-15 21:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52579
gee <jojelino at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |FIXED
--- Comment #8 from gee <jojelino at gmail dot com> ---
(In reply to Kai Tietz from comment #7)
> This issue seems to be fixed in 5.0 by Richard's work on libffi.
>
> Could you please check, if issue is fixed for you?
libffi is now have frame information for raw-stub closure of stdcall calling
convention.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2015-03-15 21:26 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-13 17:05 [Bug libgcj/52579] New: [4.8 regression] i386_w32_fallback_frame_state should care ffi raw-closure stub function jojelino at gmail dot com
2012-03-14 10:36 ` [Bug libgcj/52579] " rguenth at gcc dot gnu.org
2012-04-19 8:25 ` jojelino at gmail dot com
2012-09-19 12:18 ` rguenth at gcc dot gnu.org
2013-03-22 14:41 ` [Bug libgcj/52579] [4.8/4.9 " jakub at gcc dot gnu.org
2013-05-31 10:57 ` jakub at gcc dot gnu.org
2013-10-16 9:48 ` jakub at gcc dot gnu.org
2014-05-22 9:00 ` [Bug libgcj/52579] [4.8/4.9/4.10 " rguenth at gcc dot gnu.org
2014-12-19 13:36 ` [Bug libgcj/52579] [4.8/4.9/5 " jakub at gcc dot gnu.org
2015-03-12 15:24 ` ktietz at gcc dot gnu.org
2015-03-15 21:26 ` jojelino at gmail dot com
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).