From owner-freebsd-questions@FreeBSD.ORG Sun Apr 23 20:12:21 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 57AE816A40B for ; Sun, 23 Apr 2006 20:12:21 +0000 (UTC) (envelope-from m@obmail.net) Received: from unclebob.obfuscated.net (stewie.obfuscated.net [66.118.188.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 770F743D64 for ; Sun, 23 Apr 2006 20:12:19 +0000 (GMT) (envelope-from m@obmail.net) Received: from [192.168.2.2] (10-50.124-70.tampabay.res.rr.com [70.124.50.10]) by unclebob.obfuscated.net (Postfix) with ESMTP id 6FDD117024 for ; Sun, 23 Apr 2006 16:12:18 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v749.3) Content-Transfer-Encoding: 7bit Message-Id: <75004E39-C70C-4508-AEEE-738430F25AE6@obmail.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: FreeBSD Mailing List From: Michael Conlen Date: Sun, 23 Apr 2006 16:12:19 -0400 X-Mailer: Apple Mail (2.749.3) Subject: JDK1.5 build and linux-sun-java1.4 problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Apr 2006 20:12:21 -0000 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