• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

How to fix JDK 1.0.2 segfaulting in Docker?

 
Greenhorn
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For purely academic purposes, I'm trying to get the classic Sun JDK 1.0.2 working again (in Docker!). I've gotten old JDKs working before, from 1.5 down to 1.1, but 1.0.2 keeps segfaulting no matter how I try to configure my Docker image. Any tips?

Dockerfile: https://github.com/mcandre/docker-java/blob/java-0/Dockerfile

strace: https://gist.github.com/mcandre/e2abe38d12896640d0c3

gdb: https://gist.github.com/mcandre/84db54c924a812cefb18
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont encourage you to try this project in a cgroups compute option like docker containers. There are my reasons:

- older java versions came up with an idea of containing compute power in a JVM that did not depend on the hardware or OS type
- the idea of portability from older java versions
- older java was very slow
- the management of memory and CPU resources from Docker and from the JVM itself
- non existent flgas to restrict or optimize Java use in a server

Please find more details at Blog Java in Docker its limitations and behaviour.

I am switching to just use vagrant boxes containing the older Java versions to make sure they run more natively.

Refer to the Oracle Java Archive
 
Marshal
Posts: 69494
277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch
 
Saloon Keeper
Posts: 22126
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're answering a question that was asked 7 years ago. I doubt that Andrew even cares anymore. Though I suspect that the root of the problem was that Docker was running an OS that had changed too much since JDK 1.0.2 was in its prime. Indeed, Docker was probably running a 64-bit OS for an app from the time where 32-bits was the norm.

It was only an academic exercise anyway, so no real loss.
 
Tim Holloway
Saloon Keeper
Posts: 22126
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

andres leonRangel wrote:There are my reasons:

- older java versions came up with an idea of containing compute power in a JVM that did not depend on the hardware or OS type


That is equally true today. No difference at all.

andres leonRangel wrote:
- the idea of portability from older java versions

The deprecation and down-level abilities of Java have been in there since the very beginning, as far as I can recall. No difference there, either.

andres leonRangel wrote:
- older java was very slow

No arguments. Those days didn't have JIT compiling, for one.

andres leonRangel wrote:
- the management of memory and CPU resources from Docker and from the JVM itself

Whatevever that means, it didn't translate into English very well.

andres leonRangel wrote:
- non existent flgas to restrict or optimize Java use in a server


If you're referring the the "server" JVM run mode flag, that doesn't affect the executability of the JVM, only what it does run-time optimization on. I don't think Andrew was concerned about that.
 
A "dutch baby" is not a baby. But this tiny ad is baby sized:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic