Date: Tue, 13 Jul 2004 04:40:54 GMT From: Michel Lavondes <fox@vader.aacc.cc.md.us> To: freebsd-gnats-submit@FreeBSD.org Subject: java/68972: unpack crashes during make install of linux-sun-jdk-1.4.2.05 Message-ID: <200407130440.i6D4esrV037676@www.freebsd.org> Resent-Message-ID: <200407130450.i6D4oInt028966@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 68972 >Category: java >Synopsis: unpack crashes during make install of linux-sun-jdk-1.4.2.05 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 13 04:50:18 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Michel Lavondes >Release: 4.8-RELEASE-p23 >Organization: Ecdysiasts United for Overdressing >Environment: FreeBSD pauamma.net0.nerim.net 4.8-RELEASE-p23 FreeBSD 4.8-RELEASE-p23 #2: Sat Jul 3 07:27:25 CEST 2004 michel@pauamma.net0.nerim.net:/usr/obj/usr/src/sys/GOOFBALL i386 >Description: This is the actual problem: pauamma# make install ===> Installing for linux-sun-jdk-1.4.2.05 ===> linux-sun-jdk-1.4.2.05 depends on executable: javavm - found ===> linux-sun-jdk-1.4.2.05 depends on file: /compat/linux/etc/redhat-release - found ===> Generating temporary packing list ===> Checking if java/linux-sun-jdk14 already installed /bin/mkdir -p /usr/local/linux-sun-jdk1.4.2 cd /usr/ports/java/linux-sun-jdk14/work/j2sdk1.4.2_05 && /usr/bin/find . -print | /usr/bin/cpio -pdmu -R root:wheel /usr/local/linux-sun-jdk1.4.2 129821 blocks for i in lib/tools.jar jre/lib/rt.jar jre/lib/jsse.jar jre/lib/charsets.jar jre/ lib/ext/localedata.jar jre/lib/plugin.jar jre/javaws/javaws.jar; do if [ -f /us r/local/linux-sun-jdk1.4.2/`dirname $i`/`basename $i .jar`.pack ]; then /usr/lo cal/linux-sun-jdk1.4.2/lib/unpack /usr/local/linux-sun-jdk1.4.2/`dirname $i`/`ba sename $i .jar`.pack /usr/local/linux-sun-jdk1.4.2/$i; /bin/rm -f /usr/local/li nux-sun-jdk1.4.2/`dirname $i`/`basename $i .jar`.pack; fi done Segmentation fault (core dumped) *** Error code 139 Stop in /usr/ports/java/linux-sun-jdk14. This is what I did to document it and try to figure it out. pauamma# cd /usr/local/linux-sun-jdk1.4.2/lib pauamma# ls -lgoa | more total 6436 drwxrwxr-x 2 root wheel - 512 Jul 11 14:41 . drwxr-xr-x 8 root wheel - 512 Jul 11 14:41 .. -rw-rw-r-- 1 root wheel - 139037 Jun 4 06:57 dt.jar -rw-rw-r-- 1 root wheel - 1181028 Jun 4 07:02 htmlconverter.jar -r--r--r-- 1 root wheel - 18381 Jun 4 06:56 ir.idl -r--r--r-- 1 root wheel - 429 Jun 4 06:56 orb.idl -rw-r--r-- 1 root wheel - 5092888 Jul 11 14:41 tools.jar -rwxrwxr-x 1 root wheel - 100514 Jun 4 07:17 unpack pauamma# cd /usr/local/linux-sun-jdk1.4.2/jre/lib pauamma# ls -lgoa | more total 13216 drwxrwxr-x 13 root wheel - 2048 Jul 11 14:40 . drwxrwxr-x 6 root wheel - 512 Jul 11 14:40 .. (content ommited, until) -rw-r--r-- 1 root wheel - 0 Jul 11 14:41 rt.jar -rw-rw-r-- 1 root wheel - 8716289 Jun 4 07:17 rt.pack pauamma# cd /usr/ports/java/linux-sun-jdk14 pauamma# /usr/local/linux-sun-jdk1.4.2/lib/unpack /usr/local/linux-sun-jdk1.4.2/ jre/lib/rt.pack /usr/local/linux-sun-jdk1.4.2/jre/lib/rt.jar Segmentation fault (core dumped) pauamma# gdb /usr/local/linux-sun-jdk1.4.2/lib/unpack unpack.core GNU gdb 4.18 (FreeBSD) Copyright 1998 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 "i386-unknown-freebsd"...Deprecated bfd_read called a t /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2 627 in elfstab_build_psymtabs Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../cont rib/gdb/gdb/dbxread.c line 933 in fill_symbuf Core was generated by `unpack'. Program terminated with signal 11, Segmentation fault. /lib/libc.so.6: No such file or directory. #0 0x804c4eb in expand_bc_ops () (gdb) bt #0 0x804c4eb in expand_bc_ops () #1 0x804c833 in read_bcs () #2 0x804c8c6 in read_pkgfile () #3 0x8049d45 in unpack () #4 0x8049b88 in run () #5 0x8049a66 in main () #6 0x28086336 in ?? () pauamma# limits Resource limits (current): cputime infinity secs filesize infinity kb datasize 524288 kb stacksize 65536 kb coredumpsize infinity kb memoryuse infinity kb memorylocked infinity kb maxprocesses 910 openfiles 1821 sbsize infinity bytes vmemoryuse infinity kb pauamma# limits -H Resource limits (current): cputime infinity secs filesize infinity kb datasize 524288 kb stacksize 65536 kb coredumpsize infinity kb memoryuse infinity kb memorylocked infinity kb maxprocesses 910 openfiles 1821 sbsize infinity bytes vmemoryuse infinity kb pauamma# df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/da0s1a 100750 61466 31224 66% / /dev/da0s1f 33886498 3819162 27356418 12% /usr /dev/da0s1e 1032142 20056 929516 2% /var procfs 4 4 0 100% /proc linprocfs 4 4 0 100% /usr/compat/linux/proc pauamma# pstat -T 190/2024 files 45M/258M swap space pauamma# mount /dev/da0s1a on / (ufs, local, soft-updates) /dev/da0s1f on /usr (ufs, local, nodev, soft-updates) /dev/da0s1e on /var (ufs, local, nodev, noexec, nosuid, soft-updates) procfs on /proc (procfs, local, nodev, noexec, nosuid) linprocfs on /usr/compat/linux/proc (linprocfs, local) pauamma# kldstat Id Refs Address Size Name 1 8 0xc0100000 2d760c kernel 2 4 0xc0c83000 9000 netgraph.ko 3 1 0xc0c90000 3000 ng_ether.ko 4 1 0xc0c94000 5000 ng_pppoe.ko 5 1 0xc0c9a000 3000 ng_socket.ko 6 1 0xc0d06000 4000 logo_saver.ko 7 1 0xc0ddf000 15000 linux.ko 8 1 0xc0dfa000 7000 linprocfs.ko pauamma# kldstat -v -n linux Id Refs Address Size Name 7 1 0xc0ddf000 15000 linux.ko Contains modules: Id Name 113 linuxelf 114 linuxaout pauamma# kldstat -v -n linprocfs Id Refs Address Size Name 8 1 0xc0dfa000 7000 linprocfs.ko Contains modules: Id Name 115 linprocfs At this stage, I'm out of ideas. It could be resource starvation of some kind, or it could be something in jre/lib/rt.pack that unpack chokes on. If you want me to try something, or need my core file or more info, please let me know. >How-To-Repeat: cd /usr/ports/java/linux-sun-jdk14 make install >Fix: Nope, sorry. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407130440.i6D4esrV037676>