JDK1.5 build and linux-sun-java1.4 problems

Michael Conlen m at obmail.net
Sun Apr 23 20:12:21 UTC 2006


I'm having problems building jdk1.5. It segfaults early in the build.  
I believe I've tracked it down to the linux-sun-java1.4.2 build not  
working. I get the following

# pwd
/usr/local/linux-sun-jdk1.4.2/bin
# ./java -v
Segmentation fault (core dumped)
#

Further I get the following

# truss ./java -v
linux_newuname(0xbfbfe658)                       = 0 (0x0)
linux_brk(0x0)                                   = 134565888 (0x8055000)
linux_open("/etc/ld.so.preload",0x0,00)          ERR#2 'No such file  
or directory'
linux_open("/etc/ld.so.cache",0x0,00)            = 3 (0x3)
linux_fstat64(0x3,0xbfbfded8,0x480655c0)         = 0 (0x0)
linux_mmap(0xbfbfdea8)                           = 1208377344  
(0x48066000)
close(3)                                         = 0 (0x0)
linux_open("/lib/libpthread.so.0",0x0,00)        = 3 (0x3)
read(0x3,0xbfbfe06c,0x200)                       = 512 (0x200)
linux_fstat64(0x3,0xbfbfdf88,0x480655c0)         = 0 (0x0)
linux_mmap(0xbfbfde58)                           = 1208389632  
(0x48069000)
linux_mmap(0xbfbfde58)                           = 1208446976  
(0x48077000)
linux_mmap(0xbfbfde58)                           = 1208459264  
(0x4807a000)
close(3)                                         = 0 (0x0)
linux_open("/lib/libdl.so.2",0x0,00)             = 3 (0x3)
read(0x3,0xbfbfe05c,0x200)                       = 512 (0x200)
linux_fstat64(0x3,0xbfbfdf78,0x480655c0)         = 0 (0x0)
linux_mmap(0xbfbfde78)                           = 1208721408  
(0x480ba000)
linux_mmap(0xbfbfde68)                           = 1208725504  
(0x480bb000)
linux_mmap(0xbfbfde68)                           = 1208733696  
(0x480bd000)
close(3)                                         = 0 (0x0)
linux_open("/lib/libc.so.6",0x0,00)              = 3 (0x3)
read(0x3,0xbfbfe04c,0x200)                       = 512 (0x200)
linux_fstat64(0x3,0xbfbfdf68,0x480655c0)         = 0 (0x0)
linux_mmap(0xbfbfde38)                           = 1208737792  
(0x480be000)
linux_mmap(0xbfbfde38)                           = 1209929728  
(0x481e1000)
linux_mmap(0xbfbfde38)                           = 1209950208  
(0x481e6000)
close(3)                                         = 0 (0x0)
munmap(0x48066000,0x21a5)                        = 0 (0x0)
linux_getrlimit(0x3,0xbfbfe50c)                  = 0 (0x0)
linux_setrlimit(0x3,0xbfbfe50c)                  = 0 (0x0)
SIGNAL 11 (SIGSEGV)
SIGNAL 11 (SIGSEGV)
Process stopped because of:  16
process exit, rval = 139
Segmentation fault

I got the same result from the linux-sun-java1.5 port as well. This  
error and the build error are consistent. I've even gone through the  
step of rebuilding the entire system just to make sure there wasn't  
some bizarre problem with this particular hardware.

FreeBSD system 6.0-RELEASE-p7 FreeBSD 6.0-RELEASE-p7 #0: Wed Apr 19  
14:15:18 EDT 2006     root@:/usr/obj/usr/src/sys/AD  i386

It was installed as 6.0-RELEASE, updated and purpose built for  
running java (and later tomcat) so there's not a bunch of other junk  
on it.

Any thoughts on how to debug why java is seg faulting?

--
Michael Conlen


More information about the freebsd-questions mailing list