This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Natively compiled SWT segfaults under Windows [Summary]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Olivier Parisy wrote:
>> If you want to continue with the existing kludge, you can modify
>> "libjava/sysdep/i386/backtrace.h" like so:
>> [...]
>>
>> recompile libjava and see if it fixes your problem.
>
> Actually, it did! Moreover, it worked with the original SWT DLL. It seems
> like the functions prologues present in this code were sufficient for
> unwinding
> purpose, after all. The problem was just with their encoding and subsequent
> detection.
Thanks for the confirmation.
> - Compiling with -fno-omit-frame-pointer was not needed.
> - Rebuilding the SWT DLL with the /Oy- flag was not mandatory.
I'm not so sure of these two assertions. Perhaps this was not
necessary in this particular case, but I think it is still
needed in the general case of trying to unwind through such
functions using the current fallback_backtrace() function.
> In the meantime, could you commit your patch to libjava? As I understand
> it, this should have no side effects, and is needed for proper SWT
> operation.
I've committed the patch to the GCC SVN trunk.
Thanks,
Ranjit.
- --
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://rmathew.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFE5zFfYb1hx2wRS48RAvRUAJ9QXUlMsFs2fRJwYYtAYdPwfOhxCwCfW/nV
YeQA81g+oLKzB7m3pwM2tnQ=
=HSGh
-----END PGP SIGNATURE-----