Bug #40689 OS X; Java 1.5; tomcat crashes on launch w/ "Invalid memory access of location"

Submitted: 13 Nov 2008 8:30 Modified: 21 Nov 2008 16:18
Reporter: Eric Herman Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor Severity:S2 (Serious)
Version:2.0.0.7095 OS:MacOS (Java 1.5 only)
Assigned to: Keith Russell CPU Architecture:Any

[13 Nov 2008 8:30] Eric Herman
Description:
[08:54]  <gary> "Invalid memory access of location 00000007 eip=013df179"
[08:54]  <gary> that's what I see in catalina.out after fresh full install of 2.0.0.7095 (latest)

gary found and emailed his JavaNativeCrash_pid27413.crash.log to the team.

JohanI also had the issue, with Java 1.5 on OS X 10.5; JohanI tried again with Java 1.6 and had no problems.

I suspect we have a 1.5 vs. 1.6 build/packaging issue of some sort.

How to repeat:
OS X 10.4 or 10.5; Java 1.5; install 2.0.0.7095

Suggested fix:
investigate how build has changed between 2.0.0.7092 and 2.0.0.7095
[13 Nov 2008 8:37] Eric Herman
while this is so far only a OS X Java 1.5 issue; (where we don't distribute a JRE) I have set to P1 and S2 because I believe that makes this RC build a "NO GO" for the OS X 32 bit platform at least.

OS X users who have Java 6 may use that.

Alternatively they may use build 2.0.0.7092.

Otherwise we hope to have a good build later Thurs PDT.
[13 Nov 2008 8:52] Eric Herman
Gary's JavaNativeCrash crash.log file

Attachment: JavaNativeCrash_pid27413.crash.log (application/octet-stream, text), 7.02 KiB.

[13 Nov 2008 14:40] Eric Herman
this is a problem with using BOTH -XX:+UseBiasedLocking AND -server

http://pastebin.com/f620f8c03
[13 Nov 2008 15:23] Mark Matthews
The fix, seems to be to only use -server on the mac, we need to fix catalina.sh to change the following

JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$CATALINA_BASE/tmp -Xmx768M -Xms768M -Xss128k -XX:+UseParallelOldGC -XX:+UseBiasedLocking -server"

to

JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$CATALINA_BASE/tmp -Xmx768M -Xms768M -Xss128k -XX:+UseParallelOldGC -server"

if [ $darwin != true ]; then
  JAVA_OPTS="$JAVA_OPTS -XX:+UseBiasedLocking"
fi
[13 Nov 2008 19:11] Gary Whizin
bad combination of flags that don't work on older OSX 10 boxes. Should be fixed in 2.0.0.7096 (revised catalina.sh)
[14 Nov 2008 3:14] Marcos Palacios
Tested OK with build 2.0.0.7097, with Java 1.5 on Mac OS X 10.5.
[15 Nov 2008 0:23] Marcos Palacios
Verified fixed in build 2.0.0.7097 on both Mac OS X 10.4 and 10.5 w/Java 1.5.
[21 Nov 2008 16:18] Tony Bedford
An entry was added to the 2.0 changelog:

On OS X with Java 1.5, Tomcat crashed on launch with the error:

Invalid memory access of location 00000007 eip=013df179

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.057 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.