Segmentation fault java error in AIX 5.3

I have installed 64-bit JDK in AIX 5.3 64-bit. Here is the info:

# /usr/java14_64/bin/java -fullversion    
java full version "J2RE 1.4.2 IBM AIX 5L for PowerPC (64 bit JVM) build caix64142sr1aifx-20051020 (SAP 142SR1a + 88494 + 84428 + 83602 + 89528 + 90372 + 88233 + 66827 + 92741 + 95636 + 96556 + 96581)"

But when I try java -version, it throws the following error:

# /usr/java14_64/bin/java -version
Segmentation fault(coredump)

Please help me to fix this. I will award 500 point for this problem. Thanks in advance.
yasmagicAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gheistCommented:
First of all update to latest Java of 1.4.2 branch and latest Maintenance level of your system. (Please post oslevel -r to get exact weblinks for OS update and Java update)

Next is to install "Software Trace Service Aid" from CD which does trace crashing fragment in program.

Please post output of "env" command in place where java is crashing.

More to follow.


0
yasmagicAuthor Commented:
I have  uninstalled and reintalled it. No luck. Well, this JDK is SAP specific. (IBM Java 1.4.2 for SAP Customers
IBM SDK for AIX on 64-bit iSeries / pSeries). I downloaded this JDK from  https://www14.software.ibm.com/webapp/iwm/web/reg/download.do?source=javasap&S_PKG=aix142-1SAP1

and so not sure it includes Software Trace Service Aid.

This one works fine in other AIX 5.3 systems in our office. But not on this server.

# oslevel -r
5300-03

# env
_=/usr/bin/env
LANG=en_US
LOGIN=root
PATH=/usr/java14_64/bin:/usr/java14_64/jre/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/dt/bin:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin:/usr/lpp/X11/bin
AIXTHREAD_MUTEX_DEBUG=OFF
AIXTHREAD_RWLOCK_DEBUG=OFF
LC__FASTMSG=true
AIXTHREAD_COND_DEBUG=OFF
WINDOWID=8388711
LOGNAME=root
MAIL=/usr/spool/mail/root
LOCPATH=/usr/lib/nls/loc
TERMINAL_EMULATOR=dtterm
USER=root
AUTHSTATE=compat
DISPLAY=127.0.0.1:0.0
SHELL=/usr/bin/ksh
ODMDIR=/etc/objrepos
HOME=/
TERM=dtterm
MAILMSG=[YOU HAVE NEW MAIL]
PWD=/usr/java14_64/jre/bin/classic
TZ=EST5EDT
AIXTHREAD_SCOPE=S
A__z=! LOGNAME
LIBPATH=/usr/java14_64/jre/bin:/usr/java14_64/jre/bin/classic
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat

Any ideas? thanks,


0
gheistCommented:
Try setting LANG=C and unsetting AIXTHREAD_XXX variables (for just that shell, not globally)
Does it crash then?
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

yasmagicAuthor Commented:
now it thorws memory fault(core dump) error... it's still there... any other ideas? thanks.
0
gheistCommented:
"Software Trace Service Aid" is on AIX CD's, installed via smitty.

Technology level 4 ( how now ML is called) fixes something around threads which closely relates to java
http://www14.software.ibm.com/webapp/set2/abl/fixinfo?release=53&b=5300-04&c=all

Technology level 4 Service Pack 1 fixes couple more:
http://www14.software.ibm.com/webapp/set2/abl/fixinfo?release=53&b=5300-04-01&c=all

sapjava is something very specialized, unavailable to me. so I ask for bos.rte.trace to identify what library function breaks to look for possible fixes.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
yasmagicAuthor Commented:
Gheist, I have installed TL4, but no luck. I even rebuilt the whole AIX 5.3 box, and trying installing the SAP java 64-bit and it throws the same segmentation fault(core dump) error. I even tried IBM 64-bit java, same problem. Just curious, does 64-bit applications need any special configuration to access the memory? At this time I don't know what else to try. Please help. Thanks dude.
0
gheistCommented:
Have you installed trace to determine where exactly it crashes?
64-bit apps do not need anything special to run.

Try this one - runs for more people, for me it not even shows version, but is even able to launch tomcat webserver.
http://www-128.ibm.com/developerworks/java/jdk/aix/service.html
0
yasmagicAuthor Commented:
Hello, this problem is finally fixed. I spoke to IBM tech support and they identified the problem that there is a bug in the level 8.0.0.3 version of C++ runtime (which we are using) that doesn’t work on this 64-bit Java SDK. So, they advised us to lower the version to 8.0.0.0 (or lower) to fix this. I have lowered the C++ level to 6.0.0.0.13 by doing a force overwrite on our server and the 64-bit Java started working now. Thanks for your support.

I have awarded the points for helping me out in this process.
0
gheistCommented:
You could have traced that by yourself.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.