• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1695
  • Last Modified:

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.
0
yasmagic
Asked:
yasmagic
  • 5
  • 4
1 Solution
 
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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
 
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now