This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Natively compiled SWT segfaults under Windows
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: Olivier Parisy <ml dot olivier dot parisy at free dot fr>
- Cc: java at gcc dot gnu dot org
- Date: Tue, 15 Aug 2006 21:39:42 +0530
- Subject: Re: Natively compiled SWT segfaults under Windows
- Openpgp: url=http://ranjitmathew.hostingzero.com/aa_6C114B8F.txt
- References: <44E0933F.1080808@free.fr> <44E14E86.40009@gmail.com> <44E197FC.70907@free.fr>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Olivier Parisy wrote:
>> The current stack-unwinding code for GCJ/Win32 assumes that
>> all code is compiled to use frame pointers to link together
>> call frames on the stack. I suspect that the SWT code has
>> not been compiled thus (i.e. using -fno-omit-frame-pointer).
>>
> Should I only compile java code (and the SWT jar) with this flag, or
> should the dll be rebuilt with those frame pointers, too?
If you're using a recent GCJ/Win32, -fno-omit-frame-pointer is
already used while compiling Java to native code.
You should compile the native code (SWT DLL) also with frame
pointers enabled.
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
iD8DBQFE4fHGYb1hx2wRS48RAi0TAJ4tTOZ71zIa7oGIRDuZm5PN8kc6vwCfT7UZ
+LWSlNRzomWHf9L4g33yW8g=
=QEV1
-----END PGP SIGNATURE-----