SEGV
Johannes Zellner
johannes@zellner.org
Fri Sep 21 23:12:00 GMT 2001
On Sat, Sep 22, 2001 at 02:58:05PM +1200, Bryce McKinlay wrote:
> On Saturday, September 22, 2001, at 07:20 AM, Johannes Zellner wrote:
>> >after some frustrations with both blackdown's and gcj's jni, I compiled
> >libgcj / libgcjgc with symbols and immediatly run into SEGFAULTS:
>> This is happening because, for some reason, libgcj's C++ static
> initializers havn't been run yet. The linker should have arranged for
> them to be run prior to main() being called. Are you doing anything
> special when compiling/linking your Java app which might be causing
> that? If not, something may be screwy with your GCC installation.
static! yes! I tried indeed to link statically. Did I forget to tell you?
If I link dynamically, everything works fine.
--
Johannes
More information about the Java
mailing list