This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Segmentation Fault


>>>>> "Kresten" == Kresten Krab Thorup <krab@gnu.org> writes:

Kresten> What is happening here is, that the "module initializer" for
Kresten> the module natClass.cc has not yet been run.  (I.e., the
Kresten> logic that also does C++ file-scope initialization).  This
Kresten> renders the variable `init_name' and `init_signature'
Kresten> unititialized (which asre the null values you observe).  This
Kresten> is strange, since you've reached main, and this stuff happens
Kresten> in __main (which is secretly called as the first thing in
Kresten> main).

This makes it sound like either a Solaris runtime (ld.so) bug, or
perhaps a bug in the linker being used.  Gregor, what linker are you
using?  Can you try a static link and tell me if it works for you?

Kresten> I had the same problem on Solaris a while back, linking
Kresten> statically solved the problem, but that's a pain of cause.

Especially since the LGPL is really a pain when static linking.

Tom

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]