ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel L. Kunkel" <DanielKun...@BioWaves.com>
Subject Re: memset crash during bootstrap
Date Thu, 15 Apr 2004 01:00:31 GMT
Hi

Quick couple comments incase something comes to mind...

I tried to hack past the bin/env command, however, it turns our that 
other commands are all failing too, chmod, etc.

Then I discovered it's not related to ant at all, unless it's something 
simple in the setup since the following code wouldn't run either...

   import java.io.*;
   
   public class UnixGMT {
   
     public static void main(String[] args) {
       try {
         Runtime rt = Runtime.getRuntime();
         System.out.println("Before the Call");
         Process process = rt.exec("ps -ef");
         System.out.println("After the Call");
   
         BufferedReader in = new BufferedReader(
               new InputStreamReader(process.getInputStream()));
   
         String line = in.readLine();
         if ( line == null ) {
           System.out.println("Unexpected eof encountered.");
         } else {
           System.out.println(line);
         }
       } catch(IOException e) {
         System.out.println("Errors encountered:");
         System.out.println(e);
       }
       System.out.println("End Program.");
     }   
   }

The output:

Before the Call

An unexpected exception has been detected in native code outside 
the VM.
Unexpected Signal : 11 occurred at PC=0x400FBEF8
Function=memset+0x48
Library=/lib/i686/libc.so.6

Current Java thread:
	at java.lang.UNIXProcess.forkAndExec(Native Method)
	at 
java.lang.UNIXProcess.access$900(UNIXProcess.java:20)
	at java.lang.UNIXProcess$2.run(UNIXProcess.java:108)

Dynamic libraries:
08048000-0804e000 r-xp 00000000 09:02 1655427    
/usr/local/j2sdk1.4.2_04/bin/java

...

Heap at VM Abort:
Heap
 def new generation   total 576K, used 120K [0x44790000, 
0x44830000, 0x44c70000)
  eden space 512K,  23% used [0x44790000, 0x447ae2d0, 
0x44810000)
  from space 64K,   0% used [0x44810000, 0x44810000, 
0x44820000)
  to   space 64K,   0% used [0x44820000, 0x44820000, 
0x44830000)
 tenured generation   total 1408K, used 0K [0x44c70000, 
0x44dd0000, 0x48790000)
   the space 1408K,   0% used [0x44c70000, 0x44c70000, 
0x44c70200, 0x44dd0000)
 compacting perm gen  total 4096K, used 979K [0x48790000, 
0x48b90000, 0x4c790000)
   the space 4096K,  23% used [0x48790000, 0x48884f28, 
0x48885000, 0x48b90000)

Local Time = Wed Apr 14 19:54:12 2004
Elapsed Time = 0
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed 
mode)
#
# An error report file has been saved as hs_err_pid14882.log.
# Please refer to the file for further information.
#
After the Call
Unexpected eof encountered.
End Program.

Any ideas where to go from here? It's RedHat 2.1 ES running 
Sphera a VDS  system, with Java 1.4.2_04b5 (the latest)

Thanks



Send reply to:  	"Ant Users List" <user@ant.apache.org>
Date sent:      	Wed, 14 Apr 2004 07:39:54 -0700 (PDT)
From:           	Matt Benson <gudnabrsam@yahoo.com>
Subject:        	Re: memset crash during bootstrap
To:             	Ant Users List <user@ant.apache.org>

> When running env from the command line, are you sure
> the version in /bin is the one you are hitting?  If
> not try the command line /bin/env and make sure that
> is successful.  Your Linux box could be weird, maybe? 
> If all seems well from the command line you could dig
> through the Java stuff... write a quick test harness
> that tries to run /bin/env in a Process, the way
> Execute is... or point to ant.jar on your classpath
> for compilation and execution and call
> Execute.getProcEnvironment() from your test class the
> way Property.loadEnvironment() does...  never hurts to
> try a different Java version either...
> 
> HTH,
> Matt
> 
> 
> --- "Daniel L. Kunkel" <DanielKunkel@BioWaves.com>
> wrote:
> > Hi
> > 
> > Thank you for your fast response... 
> > 
> > I added:
> > 
> >
> System.out.println(Commandline.describeCommand(command));
> > 
> > and got:
> > ...
> > &&& 94 null:[Ljava.lang.String;@f7f540:null:null
> > Executing '/bin/env' with 
> > 
> > An unexpected exception has been detected in native
> > code outside 
> > the VM.
> > Unexpected Signal : 11 occurred at PC=0x400FBEF8
> > Function=memset+0x48
> > Library=/lib/i686/libc.so.6
> > ...
> > 
> > Any ideas?  Any thoughts on what to try, look at,
> > consider, next?
> > 
> > my env output is:
> > 
> > PWD=/usr/local/ant 
> > LD_PRELOAD= 
> > HOSTNAME=biowaves.com 
> > VISUAL=/bin/vi 
> > USER=biowaves 
> > MACHTYPE=i386-redhat-linux-gnu 
> > LC_ALL=C 
> > MAIL=/var/mail/biowaves 
> > EDITOR=/bin/vi 
> > LANG=C 
> > LOGNAME=biowaves 
> > SHLVL=1 
> > SHELL=/bin/sh 
> > HOSTTYPE=i386 
> > OSTYPE=linux-gnu 
> > HOME=/ 
> > TERM=vt100 
> >
> PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/ant/bin
> > 
> > SSH_TTY=/dev/pts/2 
> > SPHERA_monitor=xxxx 
> > SPHERA_service=xxxxx 
> > SPHERA_fifoPath=xxxxxxxxxxxxxxxxxxxxxx 
> > SPHERA_execName=xxx 
> > SPHERA_pIOr=xxxxx 
> > SPHERA_pIOw=x 
> > SPHERA_pNETr=x 
> > SPHERA_pNETw=x 
> > SPHERA_fd0=xxxxxxxxxx 
> > SPHERA_fd1=xxxxx 
> > SPHERA_fd2= 
> > SPHERA_fd255=xxxxxxxxxxxxxxxxxxxxxxxxx 
> > SPHERA_config=x 
> > 
> > Send reply to:  	"Ant Users List"
> > <user@ant.apache.org>
> > Date sent:      	Tue, 13 Apr 2004 15:55:07 -0700
> > (PDT)
> > From:           	Matt Benson <gudnabrsam@yahoo.com>
> > Subject:        	Re: memset crash during bootstrap
> > To:             	Ant Users List
> > <user@ant.apache.org>
> > 
> > > --- "Daniel L. Kunkel" <DanielKunkel@BioWaves.com>
> > > wrote:
> > > > Hi
> > > > 
> > > > Does "[Ljava.lang.String" mean anything to
> > anyone?
> > > This is where you are calling toString() against
> > the
> > > commandline, a String[].  That's what the [L
> > > indicates.  Try
> > >
> >
> oata.types.Commandline.describeCommand(yourStringArray).
> > > 
> > > -Matt
> > > 
> > > 
> > > 	
> > > 		
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Tax Center - File online by April 15th
> > > http://taxes.yahoo.com/filing.html
> > > 
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail:
> > user-help@ant.apache.org
> > 
> > 
> > Daniel
> > 
> >
> *-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-
> > Have a GREAT Day!
> > 
> > Daniel Kunkel		DanielKunkel@BioWaves.com
> > BioWaves, LLC
> > 14150 NE 20th Street, Suite 121
> > Bellevue, WA  98007
> > 800-734-3588    425-895-0050
> > http://www.BioWaves.com
> >
> *-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-
> > 
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
> > 
> 
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online by April 15th
> http://taxes.yahoo.com/filing.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


Daniel

*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-
Have a GREAT Day!

Daniel Kunkel		DanielKunkel@BioWaves.com
BioWaves, LLC
14150 NE 20th Street, Suite 121
Bellevue, WA  98007
800-734-3588    425-895-0050
http://www.BioWaves.com
*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message