public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
       [not found] <bug-41991-8172@http.gcc.gnu.org/bugzilla/>
@ 2013-09-14 12:01 ` iains at gcc dot gnu.org
  2014-02-16 13:15 ` jackie.rosen at hushmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 18+ messages in thread
From: iains at gcc dot gnu.org @ 2013-09-14 12:01 UTC (permalink / raw)
  To: java-prs

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

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #55 from Iain Sandoe <iains at gcc dot gnu.org> ---
this is actually a duplicate of 44107 - it is the unwinder failing that causes
java codes (including ejc1) to hang/fail.

*** This bug has been marked as a duplicate of bug 44107 ***


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
       [not found] <bug-41991-8172@http.gcc.gnu.org/bugzilla/>
  2013-09-14 12:01 ` [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9 iains at gcc dot gnu.org
@ 2014-02-16 13:15 ` jackie.rosen at hushmail dot com
  2014-11-03 19:44 ` fxcoudert at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 18+ messages in thread
From: jackie.rosen at hushmail dot com @ 2014-02-16 13:15 UTC (permalink / raw)
  To: java-prs

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

Jackie Rosen <jackie.rosen at hushmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jackie.rosen at hushmail dot com

--- Comment #56 from Jackie Rosen <jackie.rosen at hushmail dot com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
       [not found] <bug-41991-8172@http.gcc.gnu.org/bugzilla/>
  2013-09-14 12:01 ` [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9 iains at gcc dot gnu.org
  2014-02-16 13:15 ` jackie.rosen at hushmail dot com
@ 2014-11-03 19:44 ` fxcoudert at gcc dot gnu.org
  2021-02-28 15:36 ` egallager at gcc dot gnu.org
  2023-05-16 19:14 ` iains at gcc dot gnu.org
  4 siblings, 0 replies; 18+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-11-03 19:44 UTC (permalink / raw)
  To: java-prs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41991
Bug 41991 depends on bug 44107, which changed state.

Bug 44107 Summary: gcc emits frame (epilogue) info incompatible with the darwin {8,9}-unwinder,10-compacter
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44107

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
       [not found] <bug-41991-8172@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2014-11-03 19:44 ` fxcoudert at gcc dot gnu.org
@ 2021-02-28 15:36 ` egallager at gcc dot gnu.org
  2023-05-16 19:14 ` iains at gcc dot gnu.org
  4 siblings, 0 replies; 18+ messages in thread
From: egallager at gcc dot gnu.org @ 2021-02-28 15:36 UTC (permalink / raw)
  To: java-prs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41991
Bug 41991 depends on bug 44107, which changed state.

Bug 44107 Summary: gcc emits frame (epilogue) info incompatible with the darwin {8,9}-unwinder,10-compacter
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44107

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |ASSIGNED
         Resolution|WONTFIX                     |---

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
       [not found] <bug-41991-8172@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2021-02-28 15:36 ` egallager at gcc dot gnu.org
@ 2023-05-16 19:14 ` iains at gcc dot gnu.org
  4 siblings, 0 replies; 18+ messages in thread
From: iains at gcc dot gnu.org @ 2023-05-16 19:14 UTC (permalink / raw)
  To: java-prs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41991
Bug 41991 depends on bug 44107, which changed state.

Bug 44107 Summary: gcc emits frame (epilogue) info incompatible with the darwin {8,9}-unwinder,10-compacter
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44107

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
  2009-11-09  0:24 [Bug java/41991] New: gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin* howarth at nitro dot med dot uc dot edu
                   ` (11 preceding siblings ...)
  2010-08-22  4:56 ` howarth at nitro dot med dot uc dot edu
@ 2010-08-23 16:32 ` howarth at nitro dot med dot uc dot edu
  12 siblings, 0 replies; 18+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-08-23 16:32 UTC (permalink / raw)
  To: java-prs



------- Comment #54 from howarth at nitro dot med dot uc dot edu  2010-08-23 16:32 -------
http://llvm.org/svn/llvm-project/lldb/trunk/source/Plugins/Process/Utility/libunwind/src/UnwindLevel1-gcc-ext.c

contains the sources for the libunwind in darwin10 (which shows the aborting
and non-functional unwinder calls.


-- 


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
  2009-11-09  0:24 [Bug java/41991] New: gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin* howarth at nitro dot med dot uc dot edu
                   ` (10 preceding siblings ...)
  2010-08-21  2:24 ` howarth at nitro dot med dot uc dot edu
@ 2010-08-22  4:56 ` howarth at nitro dot med dot uc dot edu
  2010-08-23 16:32 ` howarth at nitro dot med dot uc dot edu
  12 siblings, 0 replies; 18+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-08-22  4:56 UTC (permalink / raw)
  To: java-prs



------- Comment #53 from howarth at nitro dot med dot uc dot edu  2010-08-22 04:56 -------
gcc/unwind-dw2-fde-darwin.c only uses

          __deregister_frame_info_bases (image->fde);

out of the non-functional unwinder calls for SL's libunwind.


-- 


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
  2009-11-09  0:24 [Bug java/41991] New: gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin* howarth at nitro dot med dot uc dot edu
                   ` (9 preceding siblings ...)
  2010-08-21  0:55 ` howarth at nitro dot med dot uc dot edu
@ 2010-08-21  2:24 ` howarth at nitro dot med dot uc dot edu
  2010-08-22  4:56 ` howarth at nitro dot med dot uc dot edu
  2010-08-23 16:32 ` howarth at nitro dot med dot uc dot edu
  12 siblings, 0 replies; 18+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-08-21  2:24 UTC (permalink / raw)
  To: java-prs



------- Comment #52 from howarth at nitro dot med dot uc dot edu  2010-08-21 02:24 -------
Also the additional clarification that...

> The UnwindLevel1-gcc-ext.c source file in lldb is the same as in SnowLeopard.


-- 


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
  2009-11-09  0:24 [Bug java/41991] New: gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin* howarth at nitro dot med dot uc dot edu
                   ` (8 preceding siblings ...)
  2010-08-21  0:31 ` howarth at nitro dot med dot uc dot edu
@ 2010-08-21  0:55 ` howarth at nitro dot med dot uc dot edu
  2010-08-21  2:24 ` howarth at nitro dot med dot uc dot edu
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 18+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-08-21  0:55 UTC (permalink / raw)
  To: java-prs



------- Comment #51 from howarth at nitro dot med dot uc dot edu  2010-08-21 00:55 -------
An additional clarification from the darwin unwinder developers on the status
of the libunwind sources from Snow Leopard...

> Everything down in the darwin layer is supposed to be open source.  It was
> a glitch that our libunwind did not get the right sign offs to make that
> happen in SnowLeopard.
>
> A fork was made in libunwind and incorporated into the open source lldb  
> project.  You can view those sources at:
> 
> http://llvm.org/svn/llvmproject/lldb/trunk/source/Plugins/Process/Utility/libunwind/src/UnwindLevel1-gcc-ext.c
>


-- 


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
  2009-11-09  0:24 [Bug java/41991] New: gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin* howarth at nitro dot med dot uc dot edu
                   ` (7 preceding siblings ...)
  2010-08-17 13:13 ` iains at gcc dot gnu dot org
@ 2010-08-21  0:31 ` howarth at nitro dot med dot uc dot edu
  2010-08-21  0:55 ` howarth at nitro dot med dot uc dot edu
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 18+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-08-21  0:31 UTC (permalink / raw)
  To: java-prs



------- Comment #50 from howarth at nitro dot med dot uc dot edu  2010-08-21 00:31 -------
According to the darwin unwinder maintainers in the Snow Leopard libunwind
sources...

// The following functions are implemented to just call abort
_Unwind_GetDataRelBase
_Unwind_GetTextRelBase
_Unwind_FindEnclosingFunction

//  The following functions are empty and do nothing
__register_frame_info_bases
__register_frame_info
__register_frame_info_table_bases
__register_frame_info_table
__register_frame_table
__deregister_frame_info
__deregister_frame_info_bases


-- 


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
  2009-11-09  0:24 [Bug java/41991] New: gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin* howarth at nitro dot med dot uc dot edu
                   ` (6 preceding siblings ...)
  2010-08-11 15:23 ` howarth at nitro dot med dot uc dot edu
@ 2010-08-17 13:13 ` iains at gcc dot gnu dot org
  2010-08-21  0:31 ` howarth at nitro dot med dot uc dot edu
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 18+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-08-17 13:13 UTC (permalink / raw)
  To: java-prs



------- Comment #49 from iains at gcc dot gnu dot org  2010-08-17 13:13 -------
the patch attached to 

http://gcc.gnu.org/ml/gcc-patches/2010-08/msg01249.html

solves the problem by suppression of the epilogues in _eh_frames;
 the patch might be an incomplete solution to darwin<->dwarf2 issues.


-- 


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
  2009-11-09  0:24 [Bug java/41991] New: gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin* howarth at nitro dot med dot uc dot edu
                   ` (5 preceding siblings ...)
  2010-08-11 13:42 ` howarth at nitro dot med dot uc dot edu
@ 2010-08-11 15:23 ` howarth at nitro dot med dot uc dot edu
  2010-08-17 13:13 ` iains at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 18+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-08-11 15:23 UTC (permalink / raw)
  To: java-prs



------- Comment #48 from howarth at nitro dot med dot uc dot edu  2010-08-11 15:23 -------
These messages from the Apple developers also are useful in explaining the
situation...

http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-September/025894.html
http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-September/025898.html
http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-September/025900.html


-- 


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
  2009-11-09  0:24 [Bug java/41991] New: gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin* howarth at nitro dot med dot uc dot edu
                   ` (4 preceding siblings ...)
  2010-08-11 13:14 ` howarth at nitro dot med dot uc dot edu
@ 2010-08-11 13:42 ` howarth at nitro dot med dot uc dot edu
  2010-08-11 15:23 ` howarth at nitro dot med dot uc dot edu
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 18+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-08-11 13:42 UTC (permalink / raw)
  To: java-prs



------- Comment #47 from howarth at nitro dot med dot uc dot edu  2010-08-11 13:42 -------
Also from a the darwin unwinder maintainer...

> I  took a look at the bug report you made.   Right off, I can tell that  
> the problem is that _Unwind_FindEnclosingFunction() is not  
> implemented.  Well, it is implemented as a not_implemented macro...   
> It is an FSF extension and has some semantics that can't be supported.
...
> _Unwind_Find_FDE is implemented on 10.6.
> 
> The general issue is that on 10.6 and later the dwarf unwind info may  
> not exist.  It may be replaced (by the linker tool) with compact  
> unwind info.  So any function that assumes FDEs exist may not work.

This is the reason that the  _Unwind_FindEnclosingFunction() call is
re-exported
under a different name in libgcc_ext. This call requires _Unwind_Find_FDE and
has been replaced with a not_implemented macro which silently aborts. A radar
is open to have the gross use of not_implemented macros replaced with a check
if -no-compact-unwind is in use. In that case, the compatibility unwinder in
libSystem (which supports FDEs) would be in use and those calls could be made
functional again.
    Note that this all stems from the fact that darwin10 has the compact unwind
code generation as the default. 


-- 


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
  2009-11-09  0:24 [Bug java/41991] New: gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin* howarth at nitro dot med dot uc dot edu
                   ` (3 preceding siblings ...)
  2010-08-11 12:50 ` andreast at gcc dot gnu dot org
@ 2010-08-11 13:14 ` howarth at nitro dot med dot uc dot edu
  2010-08-11 13:42 ` howarth at nitro dot med dot uc dot edu
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 18+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-08-11 13:14 UTC (permalink / raw)
  To: java-prs



------- Comment #46 from howarth at nitro dot med dot uc dot edu  2010-08-11 13:14 -------
(In reply to comment #44)
> I do not think the current solution is complete/correct.

Don't confuse the darwin9 and darwin10 unwinder issues. They are 
different incompatiibilities with the darwin unwinder. Also keep in mind
that darwin9 uses an unwinder derived from libgcc whereas darwin10
uses a compatibility unwinder from libSystem.


> Taking the case of Darwin9/OSX 10.5:
> 
> (a) the code for _Unwind_FindEnclosingFunction &c. as posted on
> http://www.opensource.apple.com/release/mac-os-x-1058/ is the same as fsf-gcc
> (AFAICT from browsing it online) --  so I'm not sure why we added in the
> darwin10_Unwind_FindEnclosingFunction (it's the same code as already present in
> the system lib).   [having said that, even if the system code _is_ broken and
> unusable, (b) applies. and one needs to work around the breakage without
> bypassing said system code] 
> 

Read http://gcc.gnu.org/ml/gcc-patches/2009-12/msg00998.html which explains
the logic of re-exporting _Unwind_FindEnclosingFunction() under a different
name for
darwin10.


-- 


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
  2009-11-09  0:24 [Bug java/41991] New: gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin* howarth at nitro dot med dot uc dot edu
                   ` (2 preceding siblings ...)
  2010-08-11 12:32 ` iains at gcc dot gnu dot org
@ 2010-08-11 12:50 ` andreast at gcc dot gnu dot org
  2010-08-11 13:14 ` howarth at nitro dot med dot uc dot edu
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 18+ messages in thread
From: andreast at gcc dot gnu dot org @ 2010-08-11 12:50 UTC (permalink / raw)
  To: java-prs



------- Comment #45 from andreast at gcc dot gnu dot org  2010-08-11 12:50 -------
I no longer have time to work on this.


-- 

andreast at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|andreast at gcc dot gnu dot |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
  2009-11-09  0:24 [Bug java/41991] New: gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin* howarth at nitro dot med dot uc dot edu
  2010-02-03  3:33 ` [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9 howarth at nitro dot med dot uc dot edu
  2010-06-20  6:57 ` gcc at ryandesign dot com
@ 2010-08-11 12:32 ` iains at gcc dot gnu dot org
  2010-08-11 12:50 ` andreast at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 18+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-08-11 12:32 UTC (permalink / raw)
  To: java-prs



------- Comment #44 from iains at gcc dot gnu dot org  2010-08-11 12:32 -------
I do not think the current solution is complete/correct.

For 4.5.x and current trunk we still have a significant problem.  (4.4.x 
apparently still works, as of 4.4.5/r163091, at least for trivial cases)

[apollo is i686-darwin9 with r163091 bootstrapped and installed;
CWD=build-top-level].

apollo:gcc-4-5-branch-build$ /GCC/gcc-4-5-install/bin/gcj-4.5
../tests/HelloWorld.java --main=HelloWorld -o hw
gcj-4.5: Internal error: Abort trap (program ecj1):
FAILS

apollo:gcc-4-5-branch-build$ DYLD_LIBRARY_PATH=gcc
/GCC/gcc-4-5-install/bin/gcj-4.5 ../tests/HelloWorld.java --main=HelloWorld -o
hw
.................................................^^^^^^^^^^^^^^^^^^^^
OK - builds...

try to invoke the generated exe:
apollo:gcc-4-5-branch-build./hw
... a long wait ...   (on powerpc-darwin9 .. you get some interesting error
messages about repeated allocation of 1Gb memory chunks :/).
Abort trap

apollo:gcc-4-5-branch-build$ DYLD_LIBRARY_PATH=gcc ./hw
Hello, World

Incidentally, this applies equally if one starts from  HelloWorld.class

It seems to me that we have some dependancy issue that is causing libgcj to
link (some) symbols from <fsf>/libgcc_s.1dylib that should really be linked
from /usr/lib/libgcc_s.1.dylib - i.e. the unwinder is being invoked in two
different libs :(  see ****

=========

4.6-trunk behaves the same on Darwin9,   I've not tried Darwin10 (for reasons
which should be evident below).

=========

Taking the case of Darwin9/OSX 10.5:

(a) the code for _Unwind_FindEnclosingFunction &c. as posted on
http://www.opensource.apple.com/release/mac-os-x-1058/ is the same as fsf-gcc
(AFAICT from browsing it online) --  so I'm not sure why we added in the
darwin10_Unwind_FindEnclosingFunction (it's the same code as already present in
the system lib).   [having said that, even if the system code _is_ broken and
unusable, (b) applies. and one needs to work around the breakage without
bypassing said system code] 

(b) As the design(s) stand, we can only have one unwinder..
the choices are:

 1/ to use the system one in which case you can integrate your code with
system-supplied libraries [which is what, I suspect, the majority of users
want]

 2/ You can replace the system unwinder with the one in
<fsf-path>/libgcc_s.1.dylib - in which case you must point DYLD to that before
invoking any code generated by gcj (including the compiler itself).  That code
cannot use _any_ system facilities that might require the unwinder.
(ergo, the test-suite passes, but one can't build a general application using
arbitrary system facilities).

it seems we have (2) at present, and I wonder how useful that is to the
majority of end users?

(I guess there is also option (3) -> overwrite the system libgcc_s with the
<fsf> one .. but, if you do that, then you must take responsibility for any
other system breakage or security issues you cause ... not a route I'd
recommend for most end-users ;)).

=========

**** Incidentally, this is the whole reason we implemented the libgcc_ext.dylib
--- so that extensions to gcc (like emutls) could be applied to OSX without
interfering with the unwinder ;)  

.. and that is the reason that both /usr/lib/libgccs.1.dylib  _and_
<fsf>/libgcc_s.1.dylib are linked into darwin executables, (taking advantage of
the different namespaces).

However, in this case,  if  I regress the darwin10_Unwind_FindEnclosingFunction
change out, the code still fails - which indicates to me that:

(i)  somewhere else in the build of libgcj or the classpath there is a
dependency on some part of the unwinder that is being satisfied by a link from
<fsf>/libgcc_s.1dylib  (although a look at the Makefile didn't show anything
obvious, perhaps someone more familiar with libjava would be able to spot it?). 

(ii) or..  that there's a bug/incompatibility between the system unwinder & fsf
gcc that we haven't worked around.

in the case of (ii) the endgame is much the same as for darwin 10 .... 

=========

For Darwin10/OSX10.6

(a) I'm not sure that the current libjava design applies; it seems that the
relevant routines might have been replaced by no-ops (from comments posted
elsewhere, and a quick check of otool -tv -p _Unwind_FindEnclosingFunction).  
I.E the unwinder has changed to a different implementation.. 

However, as for darwin9,  (b) applies - one can "replace" the system unwinder
with the one in libgcc - but, again, that means the user will be limited to
self-contained code.

=====

If no-one has time to implement an integration of libjava with the Darwin 10
unwinders [and/or fix the breakage with Darwin9] (I don't, sorry), then
essentially gcj > 4.5 is unusable on current Darwin in any other manner than
stand-alone (and, frankly, I wonder how generally useful that is?).


-- 

iains at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mrs at gcc dot gnu dot org,
                   |                            |iains at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
  2009-11-09  0:24 [Bug java/41991] New: gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin* howarth at nitro dot med dot uc dot edu
  2010-02-03  3:33 ` [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9 howarth at nitro dot med dot uc dot edu
@ 2010-06-20  6:57 ` gcc at ryandesign dot com
  2010-08-11 12:32 ` iains at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 18+ messages in thread
From: gcc at ryandesign dot com @ 2010-06-20  6:57 UTC (permalink / raw)
  To: java-prs



------- Comment #43 from gcc at ryandesign dot com  2010-06-20 06:57 -------
Is there a reason the 3 fixes Andreas committed in February were not backported
to the 4.4 branch? I just ran into "Internal error: Abort trap (program ecj1)"
with 4.4.4 on Snow Leopard 10.6.4 and applying those patches fixed it.


-- 

gcc at ryandesign dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gcc at ryandesign dot com


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9
  2009-11-09  0:24 [Bug java/41991] New: gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin* howarth at nitro dot med dot uc dot edu
@ 2010-02-03  3:33 ` howarth at nitro dot med dot uc dot edu
  2010-06-20  6:57 ` gcc at ryandesign dot com
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 18+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-02-03  3:33 UTC (permalink / raw)
  To: java-prs



------- Comment #42 from howarth at nitro dot med dot uc dot edu  2010-02-03 03:33 -------
Fixed on *-apple-darwin10. The gcj failures on intel darwin9 are due to a
different unwinder bug. Leaving open for darwin9.


-- 

howarth at nitro dot med dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  GCC build triplet|i686/x86_64-apple-darwin*   |i686/x86_64-apple-darwin9
   GCC host triplet|i686/x86_64-apple-darwin*   |i686/x86_64-apple-darwin9
 GCC target triplet|i686/x86_64-apple-darwin*   |i686/x86_64-apple-darwin9
            Summary|gcj segfaults on i686-apple-|gcj segfaults on i686-apple-
                   |darwin* and x86_64-apple-   |darwin9 and x86_64-apple-
                   |darwin*                     |darwin9


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-05-16 19:14 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-41991-8172@http.gcc.gnu.org/bugzilla/>
2013-09-14 12:01 ` [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9 iains at gcc dot gnu.org
2014-02-16 13:15 ` jackie.rosen at hushmail dot com
2014-11-03 19:44 ` fxcoudert at gcc dot gnu.org
2021-02-28 15:36 ` egallager at gcc dot gnu.org
2023-05-16 19:14 ` iains at gcc dot gnu.org
2009-11-09  0:24 [Bug java/41991] New: gcj segfaults on i686-apple-darwin* and x86_64-apple-darwin* howarth at nitro dot med dot uc dot edu
2010-02-03  3:33 ` [Bug java/41991] gcj segfaults on i686-apple-darwin9 and x86_64-apple-darwin9 howarth at nitro dot med dot uc dot edu
2010-06-20  6:57 ` gcc at ryandesign dot com
2010-08-11 12:32 ` iains at gcc dot gnu dot org
2010-08-11 12:50 ` andreast at gcc dot gnu dot org
2010-08-11 13:14 ` howarth at nitro dot med dot uc dot edu
2010-08-11 13:42 ` howarth at nitro dot med dot uc dot edu
2010-08-11 15:23 ` howarth at nitro dot med dot uc dot edu
2010-08-17 13:13 ` iains at gcc dot gnu dot org
2010-08-21  0:31 ` howarth at nitro dot med dot uc dot edu
2010-08-21  0:55 ` howarth at nitro dot med dot uc dot edu
2010-08-21  2:24 ` howarth at nitro dot med dot uc dot edu
2010-08-22  4:56 ` howarth at nitro dot med dot uc dot edu
2010-08-23 16:32 ` howarth at nitro dot med dot uc dot edu

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).