ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17287] New: - Attempts to use the system class loader may crash the JVM.
Date Fri, 21 Feb 2003 14:41:13 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17287>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17287

Attempts to use the system class loader may crash the JVM.

           Summary: Attempts to use the system class loader may crash the
                    JVM.
           Product: Ant
           Version: 1.5.1
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: dbrown@monroehardware.com


My build script makes a call to execute (java) a small program I have written
that calls the system ClassLoader to load a resource from a file. The problem is
that the AntClassLoader gets called and craps out somewhere in native code for
retrieving data from zip files. I have tested this under Java 1.3.1 for Windows,
Java 1.4.1 for Windows, HotSpot 1.3.1 for MacOS X and HotSpot 1.4.1 for MacOS X.
I have had the same results from all implementations. The program executes
perfectly outside of Ant using the normal class loader. The following is a log
dump from MacOS X with HotSpot 1.4.1:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : Bus Error occurred at PC=0x9605A94C
Function=[Unknown.]
Library=/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Libraries/libzip.jnilib

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:
	at java.util.zip.ZipFile.getEntry(Native Method)
	at java.util.zip.ZipFile.getEntry(ZipFile.java:145)
	at org.apache.tools.ant.AntClassLoader.getResourceStream(AntClassLoader.java:606)
	at
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:914)
	at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:898)
	at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:801)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
	- locked <0x3650098> (a org.apache.tools.ant.AntClassLoader)
	at unidyne.db.DataManager.<clinit>(Unknown Source)
	at com.monroehardware.customer.Main.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:554)

Dynamic libraries and executable:
[0x00001e94-0x000048f0]
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Home//bin/java
[0x90b60aa8-0x90b62a54]
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
[0x90130b38-0x901c5cf0]
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
[0x90000dc0-0x900c9e84] /usr/lib/libSystem.B.dylib
[0x907e18a4-0x908bf290]
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
[0x93a40d80-0x93a425d4] /usr/lib/system/libmathCommon.A.dylib
[0x92b30aa0-0x92b448d8]
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
[0x90a50618-0x90a60380]
/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
[0x906818a0-0x9068c7e8] /usr/lib/libobjc.A.dylib
[0x99001590-0x99220480]
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Libraries/libclient.dylib
[0x96040e2c-0x960491a4]
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Libraries/libverify.dylib
[0x95f50968-0x95f671b8]
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Libraries/libjava.jnilib
[0x960514c8-0x9605b25c]
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Libraries/libzip.jnilib

Local Time = Thu Feb 20 20:14:22 2003
Elapsed Time = 30664
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1_01_beta-9 mixed mode)
#

Mime
View raw message