This is the mail archive of the java@gcc.gnu.org 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]
Other format: [Raw text]

Re: Weird segmentation fault (2)


>>>>> "Geert" == Geert Bevin <gbevin at uwyn dot com> writes:

Geert> I just compile this with 'gcc -o main main.cc -lgcj', execute with
Geert> ./main and get a segmentation fault again.

Geert> The above code should function, no?

It is really a lot easier if you make `main' a Java method.
I suggest doing this unless there is some reason you absolutely
cannot.

In that case you'll have to read through the list archives a bit.
People occasionally have problems with the CNI invocation API.  I'm
not up-to-date on all the problems with it.

We need to add some test cases for this; currently we don't test it at
all...  If you have some simple code that works, send it and I'll try
to get it in the test suite.

Tom


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