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:
Category:MySQL Enterprise Monitor Severity:S2 (Serious)
Version: OS:MacOS (Java 1.5 only)
Assigned to: Keith Russell CPU Architecture:Any

[13 Nov 2008 8:30] Eric Herman
[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 (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

Suggested fix:
investigate how build has changed between and
[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

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

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


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"
[13 Nov 2008 19:11] Gary Whizin
bad combination of flags that don't work on older OSX 10 boxes. Should be fixed in (revised catalina.sh)
[14 Nov 2008 3:14] Marcos Palacios
Tested OK with build, with Java 1.5 on Mac OS X 10.5.
[15 Nov 2008 0:23] Marcos Palacios
Verified fixed in build 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