aspose file tools*
The moose likes Beginning Java and the fly likes EXCEPTION_ILLEGAL_INSTRUCTION Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "EXCEPTION_ILLEGAL_INSTRUCTION " Watch "EXCEPTION_ILLEGAL_INSTRUCTION " New topic
Author

EXCEPTION_ILLEGAL_INSTRUCTION

Hejal Patel
Greenhorn

Joined: Mar 30, 2009
Posts: 7
Tried searching through the bug database and the rest of the site, but can't find this one.

hs_err_pid1668


An unexpected error has been detected by HotSpot Virtual Machine:

EXCEPTION_ILLEGAL_INSTRUCTION (0xc000001d) at pc=0x00610111, pid=1668, tid=272

Java VM: Java HotSpot(TM) Client VM (1.5.0_05-b05 mixed mode, sharing)
Problematic frame:
C 0x00610111

I am using jdk version 1.3.1_07 however while executing even small java HelloWorld.java program it gives me above error.

My java.exe and javac.exe doesnt work.

Regards
Hej
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

I am using jdk version 1.3.1_07

But the JVM used during execution seems to be 1.5.0_05-b05 ! Check your PATH.


[My Blog]
All roads lead to JavaRanch
Hejal Patel
Greenhorn

Joined: Mar 30, 2009
Posts: 7
Hey Christophe

I really appreciate your quick response. I have gone through the class path everything is set proper. Even when I use
below command in command prompt it gives me this error.

C:\jdk1.3.1_07\bin>java

Unexpected Signal : EXCEPTION_ILLEGAL_INSTRUCTION occurred at PC=0x8bd836
Function name=(N/A)
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:
0x00400000 - 0x00405000 C:\jdk1.3.1_07\bin\java.exe
0x7C900000 - 0x7C9AF000 C:\WINDOWS\system32\ntdll.dll
0x7C800000 - 0x7C8F6000 C:\WINDOWS\system32\kernel32.dll
0x77DD0000 - 0x77E6B000 C:\WINDOWS\system32\ADVAPI32.dll
0x77E70000 - 0x77F02000 C:\WINDOWS\system32\RPCRT4.dll
0x77FE0000 - 0x77FF1000 C:\WINDOWS\system32\Secur32.dll
0x77C10000 - 0x77C68000 C:\WINDOWS\system32\MSVCRT.dll
0x6D420000 - 0x6D4F8000 C:\jdk1.3.1_07\jre\bin\hotspot\jvm.dll
0x7E410000 - 0x7E4A1000 C:\WINDOWS\system32\USER32.dll
0x77F10000 - 0x77F59000 C:\WINDOWS\system32\GDI32.dll
0x76B40000 - 0x76B6D000 C:\WINDOWS\system32\WINMM.dll
0x5DAC0000 - 0x5DAC8000 C:\WINDOWS\system32\rdpsnd.dll
0x76360000 - 0x76370000 C:\WINDOWS\system32\WINSTA.dll
0x5B860000 - 0x5B8B5000 C:\WINDOWS\system32\NETAPI32.dll
0x76BF0000 - 0x76BFB000 C:\WINDOWS\system32\PSAPI.DLL
0x6D220000 - 0x6D227000 C:\jdk1.3.1_07\jre\bin\hpi.dll
0x6D3B0000 - 0x6D3BD000 C:\jdk1.3.1_07\jre\bin\verify.dll
0x6D250000 - 0x6D267000 C:\jdk1.3.1_07\jre\bin\java.dll
0x6D3C0000 - 0x6D3CD000 C:\jdk1.3.1_07\jre\bin\zip.dll
0x76C90000 - 0x76CB8000 C:\WINDOWS\system32\imagehlp.dll
0x59A60000 - 0x59B01000 C:\WINDOWS\system32\DBGHELP.dll
0x77C00000 - 0x77C08000 C:\WINDOWS\system32\VERSION.dll

Local Time = Tue Mar 31 09:08:41 2009
Elapsed Time = 0
#
# HotSpot Virtual Machine Error : EXCEPTION_ILLEGAL_INSTRUCTION
# Error ID : 4F530E43505002BD
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1_07-b02 mixed mode)
#
# An error report file has been saved as hs_err_pid1576.log.
# Please refer to the file for further information.

Thanks
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Sorry, I'll have to pass on that one. Maybe you have some kind of JVM/hardware incompatibility, but I can't tell.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13869
    
  10

Is there a special reason why you are using such an ancient JDK (version 1.3.1)?

If not, then get JDK 6 here and use it instead.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 597

Looks like something gone wrong with your installation. Re-installing (probably a newer JDK) should take care of the problem (It mostly does )


Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
Hejal Patel
Greenhorn

Joined: Mar 30, 2009
Posts: 7
Sam Mercs : Also after reinstalling it doesn't work.

Jesper Young : Special reason of using this JDK is ma entire application is built using it hence i am not planning to change it.

I must say thanks to you all for your support.

Regards
hej
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18108
    
  39

Hejal Patel wrote:Jesper Young : Special reason of using this JDK is ma entire application is built using it hence i am not planning to change it.


If you can't upgrade to the latest version of Java, at least upgrade to the latest version of Java 1.3.1. This is likely caused by a bug in the JVM, which hopefully has been fixed in the latest underscore release.

If this doesn't work, I don't think you have many options though. Sun has EOL Java 1.3.1 a long time ago.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

It appears that this is happening for more than one different JDK install; and he implies that it's happening the very instant the JVM is launched, not at some random point in the program. This suggests the possibility the "illegal instruction" is some x86 CPU instruction that his computer honestly doesn't implement. Maybe it's a cheap knockoff of some kind that's not really compatible? Maybe he's running Windows in emulation? Or maybe there's something grievously wrong with the machine.

So Hejal Patel, tell us about your computer.


[Jess in Action][AskingGoodQuestions]
Hejal Patel
Greenhorn

Joined: Mar 30, 2009
Posts: 7
Hi All

Please help me to get rid off this bug Actually I tried installing upgraded jdk version: 1.3.1_08 but it doesn't work.

Regards
Hej
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Hejal Patel wrote:et rid off this bug Actually I tried installing upgraded jdk version: 1.3.1_08 but it doesn't work.


You're going to have to help us help you. As I said, it sounds like something may be seriously wrong with your computer itself. Tell us something about the computer you're using, please.
Hejal Patel
Greenhorn

Joined: Mar 30, 2009
Posts: 7
Hi All


My application is built using jdk 1.3.1_07 and it was working fine with this version. Now suddenly I started getting error so I am planning to migrate my application on jdk 1.4.2_07. I need your suggestion whether it will create any problem for all deprecated methods or other problem.

hey Crish and Jasper please suggest me.

Regards
Hej
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 3944
    
  17

Hejal Patel wrote:Hi All


My application is built using jdk 1.3.1_07 and it was working fine with this version. Now suddenly I started getting error so I am planning to migrate my application on jdk 1.4.2_07. I need your suggestion whether it will create any problem for all deprecated methods or other problem.

hey Crish and Jasper please suggest me.

Regards
Hej


Hi Hejal,

If you are migrating to a new JDK, why the babystep to another EOL version? Why not move to a current version?

If you want to know how your code will be affected by the change in versions, a few things you should read would be the API for the new version - compare it with the code you use in your application, and read up on alternative methods suggested by the API. This information will also be provided at compile time messages about deprecated methods if you compile with the -Xlint:deprecated flag.

You should also read the release notes for the version of Java you are moving to so you can find all the new, non-API things that may have changed.


Steve
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36478
    
  16
You will get unchecked warnings for all your generic classes.

You might get problems with J5/J6 if there is anything in the old code which might be interpreted as boxing or un-boxing; are there any other potential problems?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Ernest wrote: You're going to have to help us help you. As I said, it sounds like something may be seriously wrong with your computer itself. Tell us something about the computer you're using, please.


If it "suddenly" stopped working--what changed? Anything? Your code? Your platform?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

are there any other potential problems?

Porting our application from 1.2 to 5.0 was a lot of fun on the Swing side It's not just a matter of changing deprecated code.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EXCEPTION_ILLEGAL_INSTRUCTION
 
Similar Threads
Where is the problem in container
Error executing servlet
What is Client VM?
JNI ERROR