On Mon, 3 Dec 2007, Tam Wei Xiang wrote:


Hi Frank,

Thanks for your quick reply.

If you crash in memset(), it's usually because you try to access unmapped > 
memory - i.e. an invalid/NULL pointer.Do we need to handle this in our java 
application? Usually while this happen, could it be due to the JRE we are using 
may not compatible with the Solaris 10? The JRE we are using is (1.5.0_10-b03) for 
solaris-sparc.

Difficult to say without more details. The JVM is attempting to create a thread there and that fails, but whether that's a JVM/JRE bug, a bug in your Java code (mis-calling some interface) or a Solaris libc-level or even platform bug is impossible to say just from the stacktrace.

It could even be something as "mundane" as an environment setting - ulimits come to mind, e.g. stacksize/VA size constraints, as the application crash occurs trying to initialize the stack memory of a newly-created thread.


FrankH.


Regards
Wei Xiang



Date: Mon, 3 Dec 2007 02:34:24 +0000> From: [EMAIL PROTECTED]> Subject: Re: [osol-code] question about the library libc_psr.so.1> To: [EMAIL 
PROTECTED]> CC: [email protected]> > On Sun, 2 Dec 2007, Tam Wei Xiang wrote:> > > Hi all,> >> > Could I know what 
is the library libc_psr.so.1 use for?> > Platform-specific optimized routines from libc. That's things like the > str*() and mem*() functions or 
bcopy()/bzero(), tuned to the CPU you're > running on.> Unless you disable it by environment variable (LD_NOAUXFLTR, I think), > these will be 
automatically loaded during libc`_init when your > applications initialize.> > > I observes the following stack trace after invoking the java 
Thread.start(); Any idea? is the JVM trying to get the memory allocation from the Solaris OS?> > If you crash in memset(), it's usually because you try to 
access unmapped > memory - i.e. an invalid/NULL pointer.> That shouldn't be specific to libc_psr, but if you want to make 100%!
 sure > o
_________________________________________________________________
Put your friends on the big screen with Windows Vista� + Windows Live�.
http://www.microsoft.com/windows/shop/specialoffers.mspx?ocid=TXT_TAGLM_CPC_MediaCtr_bigscreen_102007


------------------------------------------------------------------------------
No good can come from selling your freedom, not for all the gold in the world,
for the value of this heavenly gift far exceeds that of any fortune on earth.
------------------------------------------------------------------------------
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to