ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: memset crash during bootstrap
Date Thu, 15 Apr 2004 14:17:46 GMT
Again, I'd try a different version of Java and/or
reinstall the version you've got...

-Matt

--- "Daniel L. Kunkel" <DanielKunkel@BioWaves.com>
wrote:
> 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 
> 
=== message truncated ===



	
		
__________________________________
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


Mime
View raw message