From owner-freebsd-java@FreeBSD.ORG Sat May 17 12:10:06 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDCC91065734 for ; Sat, 17 May 2008 12:10:06 +0000 (UTC) (envelope-from bofh@redwerk.com) Received: from redwerk.com (redwerk.com [89.105.196.9]) by mx1.freebsd.org (Postfix) with ESMTP id 585C98FC14 for ; Sat, 17 May 2008 12:10:06 +0000 (UTC) (envelope-from bofh@redwerk.com) Received: from 174-193-124-91.pool.ukrtel.net ([91.124.193.174] helo=jdevelop.priv) by redwerk.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1JxKyQ-0006mR-Qk for freebsd-java@freebsd.org; Sat, 17 May 2008 13:53:23 +0200 Received: from bofh by jdevelop.priv with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JxKyL-0000QU-8M for freebsd-java@freebsd.org; Sat, 17 May 2008 14:53:09 +0300 Date: Sat, 17 May 2008 14:53:09 +0300 From: Eugeny N Dzhurinsky To: freebsd-java@freebsd.org Message-ID: <20080517115309.GA1495@jdevelop.priv> Mail-Followup-To: freebsd-java@freebsd.org References: <20080516121927.GA13485@office.redwerk.com> <20080516234056.GB43930@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline In-Reply-To: <20080516234056.GB43930@misty.eyesbeyond.com> User-Agent: Mutt/1.5.17 (2007-11-01) Subject: Re: NetBeans 6.1 Profiler, Sun JDK 1.5/1.6 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 May 2008 12:10:06 -0000 --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 16, 2008 at 04:40:56PM -0700, Greg Lewis wrote: > On Fri, May 16, 2008 at 03:19:27PM +0300, Eugeny N Dzhurinsky wrote: > > Hello everytbody! > >=20 > > I recently installed NetBeans 6.1 from ports and noticed there is no > > libprofilerinterface.so library for FreeBSD, and NetBeans complains the= profiling=20 > > wouldn't work. I've downloaded the sources of NetBeans and was able to = build the=20 > > libprofilerinterface.so from sources, once I placed it into the appropr= iate directory=20 > > NetBeans expects it to appear in - NetBeans stops reporting the error, = however profiling=20 > > still doesn't work for some another reason - it just hands on the "cali= bration" stage. > >=20 > > I had built the module with -ggdb option, and found there is java.core = file and=20 > > GDB shows this stack trace: > >=20 > >=20 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > > (gdb) bt > > #0 0x2817f9fb in kill () from /lib/libc.so.6 > > #1 0x280a3236 in raise () from /lib/libpthread.so.2 > > #2 0x2817e6a8 in abort () from /lib/libc.so.6 > > #3 0x2815a898 in __assert () from /lib/libc.so.6 > > #4 0x28808fda in initializeJVMTI (jvm=3D0x287b6ae0) at > > ../src-jdk15/common_functions.c:122 >=20 > So, in the code you included below, which is line 122? Please see below (actually it was included in the original e-mail, however probably I highlighted it badly). > > assert(res =3D=3D JVMTI_ERROR_NONE); > >=20 > > res =3D (*_jvmti)->SetEventNotificationMode(_jvmti, JVMTI_ENABLE, J= VMTI_EVENT_NATIVE_METHOD_BIND, NULL); > > =20 > > /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! line 122 !!!!!!!!!!!!!!!!= !!!!!!!!!!!!!!!!!!!!!!*/ > > assert(res =3D=3D JVMTI_ERROR_NONE); > >=20 > > res =3D (*_jvmti)->SetEventNotificationMode(_jvmti, JVMTI_ENABLE, J= VMTI_EVENT_MONITOR_CONTENDED_ENTER, NULL); > > assert(res =3D=3D JVMTI_ERROR_NONE); --=20 Eugene N Dzhurinsky --dDRMvlgZJXvWKvBx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkguxyQACgkQy/i/DoZLbHwL3gCeJI/FQb4mSpBnorH7fqzZwYm6 KP0An2A+/PZV21Xhhabo5dkvn8hVlgSR =bSfq -----END PGP SIGNATURE----- --dDRMvlgZJXvWKvBx--