amd64 and Intel processors problem (was: Re: jdk15 fail compile under amd64)

huang wen hui huanghwh at yahoo.com
Fri Jan 21 04:51:28 PST 2005


 --- Alexey Zelkin <phantom at FreeBSD.org.ua> µÄÕýÎÄ£º
> On Fri, Jan 21, 2005 at 07:38:27PM +0800, huang wen
> hui wrote:
> >  --- Alexey Zelkin <phantom at FreeBSD.org.ua>
> ????????
> > > hi,
> > > 
> > > Thank you for posting of your dmesg and
> backtraces. 
> > > They described
> > > a problem.
> > > 
> > > Unfortunatelly, JVM building/built for amd64,
> > > expects to be running
> > > at real amd64 hardware.  And in your case,
> you're
> > > using Intel hardware
> > > running in amd64 emulation mode (as far as I
> > > understand).
> > > 
> > > At this point -- it's impossible to use such
> > > combination, sorry.
> > :(
> > > 
> > > You need to build i386 version of jdk at
> > > FreeBSD/i386, and just copy
> > > it to your Intel/amd64.  Can you please, try it
> and
> > > report your results ?
> > I had tried it before, 
> > jdk1.5.0 always "Segmentation fault (core dumped)"
> > jdk1.4.2 is ok.
> 
> gdb backtrace from core file ?
> 
>  
may be I lost somethings, I setenv:
setenv LD_32_LIBRARY_PATH
/lib32:/usr/lib32:/usr/local/jdk1.5.0/jre/lib/i386:/usr/local/jdk1.5.0/jre/lib/i386/client:/usr/local/jdk1.5.0/jre/lib/i386/server

and I don't know much gdb on COMPAT32:

%./java_g
Segmentation fault (core dumped)
%gdb -core java_g.core java_g
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General
Public License, and you are
welcome to change it and/or distribute copies of it
under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show
warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
"/usr/local/jdk1.5.0/bin/java_g.core" is not a core
dump: File format not recognized
(gdb) quit


%gdb java_g
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General
Public License, and you are
welcome to change it and/or distribute copies of it
under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show
warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
(gdb) run
Starting program: /usr/local/jdk1.5.0/bin/java_g

Program received signal SIGTRAP, Trace/breakpoint
trap.
0x2805b970 in ?? ()
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x286a7403 in ?? ()
(gdb) bt
#0  0x286a7403 in ?? ()
#1  0x08060040 in ?? ()
#2  0x288f61ec in ?? ()
#3  0xffffd198 in ?? ()
#4  0x2872c2d4 in ?? ()
#5  0x08054acd in ?? ()
#6  0x00000012 in ?? ()
#7  0x080547e4 in ?? ()
#8  0x00000001 in ?? ()
#9  0x2828fad3 in ?? ()
#10 0x281755f9 in ?? ()
#11 0x2817fe4c in ?? ()
#12 0x288f611c in ?? ()
#13 0x28966b68 in ?? ()
#14 0x01ffd094 in ?? ()
#15 0x28079ab8 in ?? ()
#16 0x280820d0 in ?? ()
#17 0x00000000 in ?? ()
#18 0xffffd0b4 in ?? ()
#19 0x2805f2e3 in ?? ()
#20 0x080489fb in ?? ()
#21 0xffffd050 in ?? ()
#22 0x00000000 in ?? ()
#23 0x00000000 in ?? ()
#24 0x000000b0 in ?? ()
#25 0x28058f90 in ?? ()
#26 0x01ffd0c4 in ?? ()
#27 0x28079ab8 in ?? ()
#28 0x00000000 in ?? ()
#29 0x2805d5d8 in ?? ()
#30 0xffffd144 in ?? ()
#31 0x2805f174 in ?? ()
#32 0x2817fe4c in ?? ()
#33 0x08060040 in ?? ()
#34 0xffffdb10 in ?? ()
#35 0xffffd1e8 in ?? ()
#36 0x28151dca in ?? ()
#37 0xffffd180 in ?? ()
#38 0x08054acd in ?? ()
#39 0xffffd1fc in ?? ()
#40 0x28108f3e in ?? ()
#41 0x00000000 in ?? ()
#42 0x00000000 in ?? ()
#43 0x00000000 in ?? ()
#44 0x00000000 in ?? ()
#45 0x00000000 in ?? ()
#46 0x00000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#47 0x00000000 in ?? ()
#48 0x00000000 in ?? ()
#49 0x00000000 in ?? ()
#50 0x00000100 in ?? ()
#51 0x00000005 in ?? ()
#52 0x2817fe4c in ?? ()
#53 0x00000020 in ?? ()
#54 0x00000000 in ?? ()
#55 0xffffd138 in ?? ()
#56 0x28109222 in ?? ()
#57 0x00000020 in ?? ()
#58 0x00000000 in ?? ()
#59 0x00000000 in ?? ()
#60 0x2817fe4c in ?? ()
#61 0x00000000 in ?? ()
#62 0xffffdb10 in ?? ()
#63 0xffffd188 in ?? ()
#64 0x28109b3f in ?? ()
#65 0x00000020 in ?? ()
#66 0x00000000 in ?? ()
#67 0x00000000 in ?? ()
#68 0x00000000 in ?? ()
#69 0x00000000 in ?? ()
#70 0x2837f638 in ?? ()
#71 0xffffd168 in ?? ()
#72 0x2837f608 in ?? ()
#73 0x00000000 in ?? ()
#74 0x288f61ec in ?? ()
#75 0xffffd178 in ?? ()
#76 0x2837f5e8 in ?? ()
#77 0x00000000 in ?? ()
#78 0x288f61ec in ?? ()
#79 0xffffd198 in ?? ()
#80 0x284c2d2e in ?? ()
#81 0x08060040 in ?? ()
#82 0xffffdb10 in ?? ()
#83 0xffffd1a8 in ?? ()
#84 0x00000000 in ?? ()
#85 0x288f61ec in ?? ()
#86 0x08060040 in ?? ()
#87 0xffffd1c8 in ?? ()
#88 0x28572ae3 in ?? ()
#89 0xffffd1f0 in ?? ()
#90 0xffffd1c0 in ?? ()
#91 0xffffd1c8 in ?? ()
#92 0x28572a3c in ?? ()
#93 0x00000020 in ?? ()
---Type <return> to continue, or q <return> to quit---
#94 0x00000029 in ?? ()
#95 0x080582d8 in __JCR_LIST__ ()
#96 0x00000000 in ?? ()
#97 0x00000001 in ?? ()
#98 0x080582d8 in __JCR_LIST__ ()
#99 0xffffd208 in ?? ()
#100 0x0804ae22 in InitializeJVM (pvm=0x8054acd,
penv=0x12, ifn=0x80547e4) at
../../../../src/share/bin/java.c:1025
Previous frame inner to this frame (corrupt stack?)
(gdb)quit



_________________________________________________________
Do You Yahoo!? 
ÏÓÓÊÏä̫С£¿ÑÅ»¢µçÓÊ×ÔÖúÀ©ÈÝ£¡
http://cn.rd.yahoo.com/mail_cn/tag/10m/*http://cn.mail.yahoo.com/event/10m.html


More information about the freebsd-java mailing list