From cshenton@mail.hq.nasa.gov  Mon Feb 25 13:23:50 2002
Return-Path: <cshenton@mail.hq.nasa.gov>
Received: from Palimpsest.it.hq.nasa.gov (Palimpsest.it.hq.nasa.gov [131.182.119.44])
	by hub.freebsd.org (Postfix) with SMTP id C382D37B404
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 25 Feb 2002 13:23:49 -0800 (PST)
Received: (qmail 93291 invoked by uid 1001); 25 Feb 2002 21:25:18 -0000
Message-Id: <20020225212518.93290.qmail@Palimpsest.it.hq.nasa.gov>
Date: 25 Feb 2002 21:25:18 -0000
From: Chris Shenton <cshenton@Palimpsest.it.hq.nasa.gov>
Reply-To: Chris Shenton <cshenton@Palimpsest.it.hq.nasa.gov>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: linux-jdk-1.4 JVM fails when running Tomcat4 app
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35320
>Category:       java
>Synopsis:       linux-jdk-1.4 JVM fails when running Tomcat4 app
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    phantom
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 25 13:30:01 PST 2002
>Closed-Date:    Mon Nov 10 02:47:43 PST 2003
>Last-Modified:  Mon Nov 10 02:47:43 PST 2003
>Originator:     Chris Shenton
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD Palimpsest.it.hq.nasa.gov 4.5-STABLE FreeBSD 4.5-STABLE #7: Mon Feb 4 13:14:17 EST 2002 cshenton@Palimpsest.it.hq.nasa.gov:/usr/obj/usr/src/sys/Palimpsest i386


	
>Description:

I'm developing a webapp in Turbine, running on Tomcat4, that
works fine in FreeBSD-native JDK-1.3.1_6.  If I switch to
linux-jdk1.4, the JVM generates an error in the Tomcat logs as
below. The error is the same if I repeat the cause, even if I try as
myself or as root.

  Unexpected Signal : 11 occurred at PC=0x2A225C8C
  Function=[Unknown.]
  Library=(N/A)

  NOTE: We are unable to locate the function name symbol for the error
	just occurred. Please refer to release documentation for possible
	reason and solutions.


  Current Java thread:

  Dynamic libraries:
  Can not get information for pid = 93093

  Local Time = Mon Feb 25 16:01:48 2002
  Elapsed Time = 21
  #
  # HotSpot Virtual Machine Error : 11
  # Error ID : 4F530E43505002D3
  # Please report this error at
  # http://java.sun.com/cgi-bin/bugreport.cgi
  #
  # Java VM: Java HotSpot(TM) Server VM (1.4.0-b92 mixed mode)
  #
  # An error report file has been saved as hs_err_pid93093.log.
  # Please refer to the file for further information.


>How-To-Repeat:

I stopped Tomcat4, which was running with a JAVA_HOME of
/usr/local/jdk1.3.1, changed JAVA_HOME to be
/usr/local/linux-jdk1.4.0, then started with the usual script:

  cshenton@Palimpsest(334> export JAVA_HOME=/usr/local/linux-jdk1.4.0
  cshenton@Palimpsest(335> /usr/local/tdk/bin/catalina.sh start

The server starts up, as seen in the /usr/local/tdk/logs/catalina.out:

  Guessing CATALINA_HOME from catalina.sh to /usr/local/tdk/bin/..
  Setting CATALINA_HOME to /usr/local/tdk/bin/..
  Using CLASSPATH: /usr/local/tdk/bin/../bin/bootstrap.jar:/usr/local/linux-jdk1.4.0/lib/tools.jar
  Using CATALINA_HOME: /usr/local/tdk/bin/..
  cshenton@Palimpsest(336>

I can get the standard "your server is running" pages at

  http://palimpsest.it.hq.nasa.gov:8080/

and a view of the top of the webapp tree at

  http://palimpsest.it.hq.nasa.gov:8080/sna/

but if I try to actually run the servlet it fails.  It does this
whether I try and run a stand-alone servlet:

  http://palimpsest.it.hq.nasa.gov:8080/sna/servlet/gov.nasa.hq.sna.intranetbroker.Proxy

or the webapp we've built on top of Turbine using the Turbine
Development Kit (tdk):

  http://palimpsest.it.hq.nasa.gov:8080/sna/servlet/Turbine/

It does this whether I run Tomcat via catalina.sh as myself, or as
root.  (Another user on freebsd-java or freebsd-ports said he couldn't
run something unless he started jdk14 as root).


This same app -- both the standalone part and the Turbine webapp --
run fine under JDK-1.4 on Linux-i386 and Solaris-sparc.

(JDK-1.4 has a new "URL" class I need because it understands "https",
 where the JDK-1.3 does not.)

The config for the JVM, if I understand this, lives in
/usr/local/linux-jdk1.4.0/jre/lib/i386/jvm.cfg and looks like:

  -client KNOWN
  -server KNOWN
  -hotspot ALIASED_TO -client
  -classic WARN
  -native ERROR
  -green ERROR


Only "client" and "server" dirs exist with libjvm.so, the

  client/:  -rwxr-xr-x  1 root  wheel  5003433 Jan 30 11:06 libjvm.so
  server/:  -rwxr-xr-x  1 root  wheel  7409621 Jan 30 11:06 libjvm.so

I did try "server" a couple days ago with the same result.


>Fix:

Unknown. Sorry. :-(


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->znerd 
Responsible-Changed-By: petef 
Responsible-Changed-When: Mon Feb 25 13:41:55 PST 2002 
Responsible-Changed-Why:  
Over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=35320 

From: Ernst de Haan <znerd@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org,
	cshenton@Palimpsest.it.hq.nasa.gov
Cc:  
Subject: Re: ports/35320: linux-jdk-1.4 JVM fails when running Tomcat4 app
Date: Mon, 4 Mar 2002 21:15:39 +0100

 Hmm,
 
 Have you tried asking this on freebsd-java? The guys over there are much more 
 into -hacker-like stuff. I'm just an ordinary ports committer :)
 
 /me hopes he can get away with this ;)
 
 Ernst
Responsible-Changed-From-To: znerd->freebsd-ports 
Responsible-Changed-By: znerd 
Responsible-Changed-When: Sat Aug 10 04:14:33 PDT 2002 
Responsible-Changed-Why:  
I really can't fix this. This is probably linuxulator-related. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35320 
Responsible-Changed-From-To: freebsd-ports->java 
Responsible-Changed-By: znerd 
Responsible-Changed-When: Fri Oct 11 16:38:22 PDT 2002 
Responsible-Changed-Why:  
More appropriate for freebsd-java. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35320 
Responsible-Changed-From-To: java->freebsd-java 
Responsible-Changed-By: znerd 
Responsible-Changed-When: Mon Jul 21 23:59:53 PDT 2003 
Responsible-Changed-Why:  
All PRs for the freebsd-java mailing list are now registered with the alias 
'freebsd-java'. This way, the freebsd-java mailing list will not get reminders 
for both java@FreeBSD.org _and_ freebsd-java@FreeBSD.org. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35320 
State-Changed-From-To: open->feedback 
State-Changed-By: phantom 
State-Changed-When: Mon Nov 10 02:20:41 PST 2003 
State-Changed-Why:  
This problem should be fixed since 4.8-RELEASE.  Can you confirm please ? 



Responsible-Changed-From-To: freebsd-java->phantom 
Responsible-Changed-By: phantom 
Responsible-Changed-When: Mon Nov 10 02:20:41 PST 2003 
Responsible-Changed-Why:  
I'll track response 


http://www.freebsd.org/cgi/query-pr.cgi?pr=35320 
State-Changed-From-To: feedback->closed 
State-Changed-By: phantom 
State-Changed-When: Mon Nov 10 02:46:55 PST 2003 
State-Changed-Why:  
Originator is not reachable anymore.  Close. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=35320 
>Unformatted:
