Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4959691
Votes 0
Synopsis tomcat fails to start on linux with tiger b29 sharing on
Category java:runtime
Reported Against tiger-beta
Release Fixed 1.5(tiger-b31)
State 10-Fix Delivered, Verified, bug
Priority: 3-Medium
Related Bugs 4963095
Submit Date 25-NOV-2003
Description
Tomcat fails to start on linux with tiger b29 if sharing is turned on.

Test machine: jtg-linux7.sfbay (Linux jtg-linux7 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 i386 GNU/Linux)

How to reproduce the problem:
1. cp
/net/animorphic.sfbay/export/kbr/tmp/sharing_test_classlists/classlist.linux
 /usr/j2se/jre/lib/classlist
2. generated the shared archive 
/usr/j2se/bin/java -Xshare:dump
3. export JAVA_HOME=/usr/j2se
4. execute the tomcat test script /net/jtgb4u4c.sfbay/export/sail8/bigapps/tests/runtomcat.ksh -client

Tomcat server can not start at all. (SEG fault and core dump, the server log
file "catalina.out" under /bt/Tomcat*/tomcat4.1.24 is empty)

By comparion, with sharing off, tomcat server starts successfuly with tiger b29.

The heap setting of Tomcat test script is -Xmx512m -Xmx1024m
jtg-linux7 has 512M memory. 
If the heap is set to less than 280M, the problem goes away.

  xxxxx@xxxxx   2003-11-25

----------------------------------------------------------------------------

  xxxxx@xxxxx   2003-12-10

J2SE Version (please include all output from java -version flag):
  java version "1.5.0-beta"
  Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b30)
  Java HotSpot(TM) Client VM (build 1.5.0-beta-b30, mixed mode)

Does this problem occur on J2SE 1.4 or 1.4.1 or 1.4.2?  Yes / No (pick one)
  No, just related to class sharing

Operating System Configuration Information (be specific):
  Linux dhcp-196.pirobase.de 2.6.0-test6 #1 SMP Mon Sep 29 12:12:55 CEST 2003 i686 unknown unknown GNU/Linux

Hardware Configuration Information (be specific):
  Dual  customer  P4 Xeon @1.8GHz using Hyperthreading (-> 4 virtual CPUs)

Bug Description:
 Eclipse installation (3.0M4) does not start up, when class sharing is 
 not explicitly turned off. A core dump occurs.

 Attached the core file.

Steps to Reproduce (be specific):
- Install Eclipse 3.0M4
- Install J2SDK 1.5.0-b30
- Just start Eclipse either using the provided shell script or:
/usr/java/j2sdk1.5.0/bin/java -Xms256m -Xmx512m -cp /usr/local/eclipse/startup.jar org.eclipse.core.launcher.Main -os linux -ws gtk -arch x86 -showsplash /usr/local/eclipse/eclipse -showsplash 600

If -Xshare:off is added to the JVM options, eclipse starts without a core dump. 
Work Around
N/A
Evaluation
This is caused by incorrect (or nonexistent) error handling logic in the new
heap placement code. Will be fixed ASAP.

  xxxxx@xxxxx   2003-11-25


Fixed in 1.5.0 b31.

  xxxxx@xxxxx   2003-12-02
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang