[re] Java executables can abort trying to access a null pointer in a leaf function

Andrew Haley aph@redhat.com
Thu Feb 2 17:36:00 GMT 2006


Bryce McKinlay writes:
 > Andrew Haley wrote:
 > >  > I'm getting the same result (program exit with abort) using
 > >  > gcc-4.1-20051029 under FreeBSD 5.4.  This happens reliably on many
 > >  > machines.  This code works fine using the same gcc source under Gentoo
 > >  > Linux with a 2.6.x kernel, so I assume FreeBSD is handling things a
 > >  > bit differently and causing the abort.
 > >
 > > I just realized that no-one has ever attempted to port the signal
 > > handling layer to FreeBSD.  On that platform you must compile with
 > > -fcheck-references.
 > >
 > > As far as I can see, configure.host in libjava is wrong: It should
 > > contain the line 
 > >
 > > CHECKREFSPEC=-fcheck-references
 > >
 > > under 
 > >
 > > *-*-freebsd*
 > >   
 > 
 > That's not necessary, as -fcheck-references is the default for all 
 > platforms unless can_unwind_signal in specified in configure.host.

OK, well spotted.

So, tsuraan, forget that.  But do give us the assembly...

Andrew.



More information about the Java mailing list