avernet
avernet

Reputation: 31753

What is causing the Java VM on OS X to crash with "Invalid memory access of location java"?

The full message that I got on the console is:

Invalid memory access of location 00000000 eip=0117f7e1
Bus error

I don't remember seeing the Java VM crashing with this before, and I wasn't running code that was particularly new. Have you ever seen this before?

I got this error running Java 1.5 on OS X. The precise version is:

java version "1.5.0_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)

Upvotes: 1

Views: 4056

Answers (3)

Christoph
Christoph

Reputation: 4000

I got the same error with

java version "1.6.0_20" Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065) Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)

I am on MacOSX 10.6.4

It happened when I tried to use the http://commons.apache.org/dormant/feedparser/ on a list of a few thousand rss feed urls which I tried to parse with multiple concurrent threads. I tried with 2, 5, 10 concurrent threads in a Executors.newFixedThreadPool(numberOfThreads)

but everytime I got this error. Now I am using just a single thread without the threadpool which is way slower but so far none of those errors. maybe it just happens later on the way, as of the lower throughput (because of single threading)....i will see...

Upvotes: 1

steve
steve

Reputation: 6020

This is an access violation of the jvm, which is a bug. The version of the jvm you are using is already pretty dated. I'd recommend upgrading to a newer version of the jvm

Upvotes: 1

Sean A.O. Harney
Sean A.O. Harney

Reputation: 24507

It looks like a NULL pointer dereference with address 00000000. You should report it to the JRE vendor.

Upvotes: 2

Related Questions