From owner-freebsd-java@FreeBSD.ORG Thu Dec 11 07:25:59 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BF4016A4CE; Thu, 11 Dec 2003 07:25:59 -0800 (PST) Received: from ulysses.noc.ntua.gr (ulysses.noc.ntua.gr [147.102.222.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DEEA43D1F; Thu, 11 Dec 2003 07:25:55 -0800 (PST) (envelope-from past@noc.ntua.gr) Received: from ajax.noc.ntua.gr (ajax.noc.ntua.gr [147.102.220.1]) by ulysses.noc.ntua.gr (8.12.9p1/8.12.9) with ESMTP id hBBFPuLI095684; Thu, 11 Dec 2003 17:25:56 +0200 (EET) (envelope-from past@noc.ntua.gr) Received: from hal.noc.ntua.gr (hal.noc.ntua.gr [147.102.220.45]) by ajax.noc.ntua.gr (8.12.9p1/8.12.9) with ESMTP id hBBFPpKY017909; Thu, 11 Dec 2003 17:25:51 +0200 (EET) (envelope-from past@noc.ntua.gr) From: Panagiotis Astithas Organization: NTUA/NMC To: Alexey Zelkin , java@freebsd.org Date: Thu, 11 Dec 2003 17:25:54 +0200 User-Agent: KMail/1.5.4 References: <20031208123259.GA2382@phantom.cris.net> <200312081753.32100.past@noc.ntua.gr> <20031208214833.GA33835@noc.ntua.gr> In-Reply-To: <20031208214833.GA33835@noc.ntua.gr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312111725.54954.past@noc.ntua.gr> Subject: Re: jdk1.4.2: plugin & javaws users feedback request X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Dec 2003 15:25:59 -0000 On Monday 08 December 2003 23:48, Panagiotis Astithas wrote: > On Mon, Dec 08, 2003 at 05:53:32PM +0200, Panagiotis Astithas wrote: > > On Monday 08 December 2003 14:32, Alexey Zelkin wrote: > > > Gentelmen, > > > > > > If you are using jdk1.4.2p5 and also use plugin and/or javaws, then > > > I would ask you send me your feedbacks (positive and/or negative) about > > > their correctnes and functionality. I am not using them heavily, so > > > not able to test them a lot. > > > > > > Thank you in advance! > > > > I am quite happy with the plugin, but javaws gives me this when I invoke > > it: > > > > edgar% bash /usr/local/jdk1.4.2/jre/javaws/javaws > > javawsbin in malloc(): error: allocation failed > > Abort (core dumped) > > > > edgar% gdb /usr/local/jdk1.4.2/jre/javaws/javawsbin javawsbin.core > > GNU gdb 5.2.1 (FreeBSD) > > Copyright 2002 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-undermydesk-freebsd"... > > (no debugging symbols found)... > > Core was generated by `javawsbin'. > > Program terminated with signal 6, Aborted. > > Reading symbols from /usr/X11R6/lib/libX11.so.6... > > (no debugging symbols found)...done. > > Loaded symbols for /usr/X11R6/lib/libX11.so.6 > > Reading symbols from /usr/local/lib/libiconv.so.3... > > (no debugging symbols found)...done. > > Loaded symbols for /usr/local/lib/libiconv.so.3 > > Reading symbols from /lib/libc.so.5...(no debugging symbols > > found)...done. Loaded symbols for /lib/libc.so.5 > > Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols > > found)... done. > > Loaded symbols for /libexec/ld-elf.so.1 > > #0 0x2829edbf in kill () from /lib/libc.so.5 > > (gdb) bt > > #0 0x2829edbf in kill () from /lib/libc.so.5 > > #1 0x28293848 in raise () from /lib/libc.so.5 > > #2 0x2830bff2 in abort () from /lib/libc.so.5 > > #3 0x2830a76e in tcflow () from /lib/libc.so.5 > > #4 0x2830b00b in tcflow () from /lib/libc.so.5 > > #5 0x2830b3c6 in malloc () from /lib/libc.so.5 > > #6 0x08051612 in ReadFileToBuffer () > > #7 0x0804df88 in parsePropertyFile () > > #8 0x0804b16e in LoadCfgFile () > > #9 0x0804b116 in LoadConfigurationFile () > > #10 0x08049a4a in main () > > #11 0x080498a2 in _start () > > > > This is from a bleeding-edge 5.2-CURRENT, but the jdk14 port was built > > about a month ago. Any clues? > > I got a trace, although I can't make anything useful out of it yet. > It's at http://noc.ntua.gr/~past/ktrace.out I have made some more digging around and there is definitely a configuration file parsing issue. When I don't have the necessary deployment.properties file I get malloc() failures. When I create an empty one I get javawsbin hanging in waitpid() - or wait4() to be precise. It seems to be trying to make a fork with doodoo data. In order to dig some more I tried to make -DWITH_DEBUG, but I don't seem to be getting any debug symbols in javawsbin. Is this right? Any clues on how I can enable the debugging symbols? -- Panagiotis Astithas Electrical & Computer Engineer, PhD Network Management Center National Technical University of Athens, Greece