Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
IBM jdk crash
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
dyurne
Guru
Guru


Joined: 19 Aug 2003
Posts: 475
Location: Lille, France

PostPosted: Sat Jan 27, 2007 12:53 pm    Post subject: IBM jdk crash Reply with quote

Hello,

I've emerged the ibm-jdk-bin ( 1.5.0.3-r1) without any problem on my ibook G4 but when i'm trying to execute java programs, I get this error :

Code:
Unhandled exception
Type=Segmentation error vmState=0x00000000
J9Generic_Signal_Number=00000004 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001
Handler1=0FAC8B80 Handler2=0FA2A9E0
[...]
Module=/lib/libc.so.6
Module_base_address=0FE08000 Symbol=strlen
Symbol_address=0FE87CEC
Target=2_30_20060915_08260_bHdSMR (Linux 2.6.18-gentoo-r3)
CPU=ppc (1 logical CPUs) (0x1f644000 RAM)


I tried export JITC_PROCESSOR_TYPE=6 and -Xnojit without success.

Any pointers to the cause or to a solution are appreciated
_________________
- Ah bah nan...
- Si !
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Sat Jan 27, 2007 4:13 pm    Post subject: Reply with quote

Install ibm-jdk-bin-1.4* also. Then use java-config-1 and java-config-2 to set the jdk and see if the problem goes away.
Code:
emerge =java-config-1.* =java-config-2.*
emerge =ibm-jdk-bin-1.4.* =ibm-jdk-bin-1.5.*
I actually use gcj-overlay as I had similar problems with ibm-jdk. I could not get java code to run reliably on ppc without using gcj as the jdk. gcj-overlay is an experimental overlay which uses gcj as the jdk.
Code:
david@pmac ~ $ java-config-1 -L
The following JDKs are available for generation-1:
*)      GCJ 4.2.0_alpha20070110 [gcj-jdk-4.2.0_alpha20070110]
2)      IBM JDK 1.4.2.6 [ibm-jdk-bin-1.4.2.6]
david@pmac ~ $ java-config-2 -L
The following VMs are available for generation-2:
1)      GCJ 4.2.0_alpha20070110 [gcj-jdk-4.2]
2)      IBM JDK 1.4.2.6 [ibm-jdk-bin-1.4]
*)      IBM JDK 1.5.0 [ibm-jdk-bin-1.5]
That sets gcj as my build jdk and ibm-jdk-1.5 as my user jvm. There are some problems with this method. The first is the ram requirement. I would not do with less than 768MB ram. The second is maintaining multiple overlays as gcj-overlay requires migrated-java-experimental-overlay. Most problems have been fixable.
Back to top
View user's profile Send private message
dyurne
Guru
Guru


Joined: 19 Aug 2003
Posts: 475
Location: Lille, France

PostPosted: Mon Jan 29, 2007 11:31 am    Post subject: Reply with quote

I tried with ibm-jdk-bin (1.4.*) but it does crash in the same way.

I'm kind of in a hurry right now and needed a linux install on my ibook for using eclipse ( OSX's version is _very_ slow ).
So I've installed another distribution and it works fine.
When my project will be finished I'll come back to gentoo and try again.

Anyway, thanks for your help.
_________________
- Ah bah nan...
- Si !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum