From owner-freebsd-java@FreeBSD.ORG Mon Jan 26 08:29:33 2004 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 BFA4216A507 for ; Mon, 26 Jan 2004 08:29:33 -0800 (PST) Received: from diomedes.noc.ntua.gr (diomedes.noc.ntua.gr [147.102.222.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id B249143D1F for ; Mon, 26 Jan 2004 08:29:31 -0800 (PST) (envelope-from past@noc.ntua.gr) Received: from ajax.noc.ntua.gr (ajax.noc.ntua.gr [147.102.220.1]) i0QGTRRj036556; Mon, 26 Jan 2004 18:29:27 +0200 (EET) (envelope-from past@noc.ntua.gr) Received: from noc.ntua.gr (dhcp-144.noc.ntua.gr [147.102.220.144]) by ajax.noc.ntua.gr (8.12.9p1/8.12.9) with ESMTP id i0QGTRKY009650; Mon, 26 Jan 2004 18:29:27 +0200 (EET) (envelope-from past@noc.ntua.gr) Message-ID: <40154059.5040804@noc.ntua.gr> Date: Mon, 26 Jan 2004 18:29:13 +0200 From: Panagiotis Astithas Organization: NTUA/NMC User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040119 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gwk@rahn-koltermann.de References: <27942123$1075128485401528a561a694.54838164@config12.schlund.de> In-Reply-To: <27942123$1075128485401528a561a694.54838164@config12.schlund.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: JDWP error with libthr (-p6) 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: Mon, 26 Jan 2004 16:29:33 -0000 gwk@rahn-koltermann.de wrote: > Hi, > > whenever I try to use Java (JPDA) debugging with jdk14-p6 with libthr, I > get: > > FATAL ERROR in native method: JDWP "util.c" (Jan 24 2004), line 1194: > Unexpected error, error code = 51 (JVMDI_ERROR_NOT_MONITOR_OWNER) > > I think this has been reported before and was attributed to gdb being > incompatible with libthr, but I am most sure gdb is out of the loop > here. > Note I am not debugging the JVM (with gdb), I'm debugging a Java > application using another Java application (Eclipse) as the debugger. > > The problem is easy to reproduce. Just take your favorite hello-world > java program, set a breakpoint on some line, and start the (Eclipse) > debugger on it. You will get the above error if you run with libthr but > > all will be well if you run with libc_r. 1.4.2p5 was linked against libc_r, 1.4.2p6 was linked against libkse. Are you sure you are not mixing threading subsystems? Do you use a global mapping from libc_r and/or libkse to libthr? -- Panagiotis Astithas Electrical & Computer Engineer, PhD Network Management Center National Technical University of Athens, Greece