From owner-freebsd-java@FreeBSD.ORG Mon Mar 23 22:58:04 2015 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5CD32DB1 for ; Mon, 23 Mar 2015 22:58:04 +0000 (UTC) Received: from smtp14.ymlpsrv.net (smtp14.ymlpsrv.net [87.237.8.208]) by mx1.freebsd.org (Postfix) with SMTP id 510FFBAF for ; Mon, 23 Mar 2015 22:58:02 +0000 (UTC) Received: (qmail 32724 invoked by uid 0); 23 Mar 2015 22:51:21 -0000 Date: Mon, 23 Mar 2015 23:51:21 +0100 To: java@freebsd.org From: Theriault International Marine Subject: For Sale: Rebuilt Marine Engines Message-ID: <052f2e5b4b841f4a6548fd320c1ac7ee@smtp14.ymlpsrv.net> X-YMLPcode: 7wqv+3055+90583 MIME-Version: 1.0 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2015 22:58:04 -0000 --------------------------------------------------------------------------= ------ This email newsletter was sent to you in graphical HTML format. If you're seeing this version, your email program prefers plain text = emails. You can read the original version online: http://ymlp249.net/zbHvUH --------------------------------------------------------------------------= ------ Click here to view this email in your browser ( http://ymlp249.net/zbHvUH = ) Phone: + 1 902 467 0239 Fax: +1 902 467 0326 sales@timarine.com ( http://www.timarine.com/index.php/contact-us ) www.timarine.com ( http://www.timarine.com ) Rebuilt Engines Brand: Caterpillar Model: 3406 Rating: 402 HP @ 1800 RPM Type: Marine serial number: 4TB Condition: Rebuild Brand: Caterpillar Model: 3406 Rating: 402 HP @ 1800 RPM Type: Marine serial number: 4TB Condition: 0 Hour Rebuild Price: sales@timarine.com ( http://www.timarine.com/index.php/contact-us ) Unsubscribe / Change Group Of Interest ( http://ymlp249.net/ugjsyhbwgsgysbqmgmsbbggmwbsqb ) Registered Office: Theriault International Ltd. Suite 306, 9049 Commercial Street New Minas, Nova Scotia Canada B4N 5A4 Phone: +1 902 467 0239 Fax: +1 902 467 0239 admin@timarine.com All manufactures name, logo designs, and product graphic images are trademarks or registered trademarks of the respected manufacturer. =C2=A9 Copyright 1994 - 2015 Theriault International Marine, All rights reserved. _____________________________ Unsubscribe / Change Group Of Interest: = http://ymlp249.net/ugjsyhbwgsgysbqmgmsbbggmwbsqb Powered by YourMailingListProvider From owner-freebsd-java@FreeBSD.ORG Wed Mar 25 23:02:40 2015 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3FDF2361 for ; Wed, 25 Mar 2015 23:02:40 +0000 (UTC) Received: from mail-oi0-x22a.google.com (mail-oi0-x22a.google.com [IPv6:2607:f8b0:4003:c06::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 03C23FF4 for ; Wed, 25 Mar 2015 23:02:40 +0000 (UTC) Received: by oiag65 with SMTP id g65so35058724oia.2 for ; Wed, 25 Mar 2015 16:02:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=z49NG44QWRODnZQu0dt0t3OSbc3995xVUpBnBcFSLlc=; b=QnnuHMQI16dRJAlIwnr+Fs3PTFq0E2VJb6eyLLW4wa9mo8uP4EwVaaJg3lULVXStGB j0qHEWPQetHFggkoJ2PPtC2H+5xh2mrtSBZOyxrpYuhboRz3Bn0eRN6Yr8mqcVwyW02q 6/gJqbur1CRgqINEYsuJbsIpChZoyMQe31gDEPmnqyq9y9Gw1YRzpUSM1MBYT2aWkW1L 4qvn6OYFJlM8Fl0/SpGa3BVIOf+Zd5AbJDNn6lRnEUJBqcyz4YZrbSzOWvJw0ta7Y3h8 F1fKheNU3tHmrCGufihpuNOWHlWtkA4fPzDrTD1lRkaPTm4GszlsjtrlLOu8xoM7RR8d bPnw== MIME-Version: 1.0 X-Received: by 10.182.120.3 with SMTP id ky3mr9506196obb.33.1427324559342; Wed, 25 Mar 2015 16:02:39 -0700 (PDT) Received: by 10.202.48.195 with HTTP; Wed, 25 Mar 2015 16:02:39 -0700 (PDT) Date: Thu, 26 Mar 2015 00:02:39 +0100 Message-ID: Subject: dtrace, jstack and lang/openjdk7 or 8 From: Johannes Dieterich To: freebsd-java@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2015 23:02:40 -0000 Hi, I am currently trying to get dtrace to work with either java/openjdk7 or java/openjdk8 (as per Brendan Gregg's howto: http://www.brendangregg.com/blog/2014-06-12/java-flame-graphs.html). Unfortunately, I get exactly what he describes: I am missing everything inside the JVM. I suspect this has to do with jstack() not working. The bundled jstack executable (yes, I know that they are only vaguely related) also seems to work only so-so. Basically, I can get a working stack trace without a variable, with -l, but not with -m, and not with -F. It causes exceptions like this: $ /usr/local/openjdk7/bin/jstack -m 84749 Attaching to process ID 84749, please wait... Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at sun.tools.jstack.JStack.runJStackTool(JStack.java:136) at sun.tools.jstack.JStack.main(JStack.java:102) Caused by: sun.jvm.hotspot.debugger.UnalignedAddressException: 746f705b762f4867 at sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal$1.checkAlignment(BsdDebuggerLocal.java:183) at sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal.readCInteger(BsdDebuggerLocal.java:485) at sun.jvm.hotspot.debugger.DebuggerBase.readAddressValue(DebuggerBase.java:454) at sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal.readAddress(BsdDebuggerLocal.java:430) at sun.jvm.hotspot.debugger.bsd.BsdAddress.getAddressAt(BsdAddress.java:74) at sun.jvm.hotspot.HotSpotTypeDataBase.readVMTypes(HotSpotTypeDataBase.java:154) at sun.jvm.hotspot.HotSpotTypeDataBase.(HotSpotTypeDataBase.java:85) at sun.jvm.hotspot.bugspot.BugSpotAgent.setupVM(BugSpotAgent.java:573) at sun.jvm.hotspot.bugspot.BugSpotAgent.go(BugSpotAgent.java:494) at sun.jvm.hotspot.bugspot.BugSpotAgent.attach(BugSpotAgent.java:332) at sun.jvm.hotspot.tools.Tool.start(Tool.java:163) at sun.jvm.hotspot.tools.JStack.main(JStack.java:86) ... 6 more So, what I am asking is: anybody out there got a working setup for dtrace+openjdk on FreeBSD? If so, it would be fantastic if you could post the necessary steps! Thanks a lot! Johannes From owner-freebsd-java@FreeBSD.ORG Thu Mar 26 20:42:58 2015 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [8.8.178.116]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 51BD1BCD for ; Thu, 26 Mar 2015 20:42:58 +0000 (UTC) Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx2.freebsd.org (Postfix) with ESMTP id 0D83F2AFF; Thu, 26 Mar 2015 20:42:57 +0000 (UTC) Message-ID: <55146F51.3030404@FreeBSD.org> Date: Thu, 26 Mar 2015 16:42:57 -0400 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Johannes Dieterich , freebsd-java@freebsd.org Subject: Re: dtrace, jstack and lang/openjdk7 or 8 References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2015 20:42:58 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 03/25/2015 19:02, Johannes Dieterich wrote: > Hi, > > I am currently trying to get dtrace to work with either > java/openjdk7 or java/openjdk8 (as per Brendan Gregg's howto: > http://www.brendangregg.com/blog/2014-06-12/java-flame-graphs.html). > > Unfortunately, I get exactly what he describes: I am missing > everything inside the JVM. I suspect this has to do with jstack() > not working. The bundled jstack executable (yes, I know that they > are only vaguely related) also seems to work only so-so. Basically, > I can get a working stack trace without a variable, with -l, but > not with -m, and not with -F. It causes exceptions like this: > > $ /usr/local/openjdk7/bin/jstack -m 84749 ... > So, what I am asking is: anybody out there got a working setup for > dtrace+openjdk on FreeBSD? If so, it would be fantastic if you > could post the necessary steps! jstack from java/openjdk8 works fine AFAICT. Unfortunately, dtrace is unimplemented for FreeBSD. BTW, 'jstack -m ' is invalid command, i.e., it does not work with a running process. You need to set '-F' option to force it. % /usr/local/openjdk8/bin/jstack Usage: jstack [-l] (to connect to running process) jstack -F [-m] [-l] (to connect to a hung process) jstack [-m] [-l] (to connect to a core file) jstack [-m] [-l] [server_id@] (to connect to a remote debug server) Options: -F to force a thread dump. Use when jstack does not respond (process is hung) -m to print both java and native frames (mixed mode) -l long listing. Prints additional information about locks -h or -help to print this help message Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJVFG9MAAoJEHyflib82/FG4F0H/3Z+5fTXMzQYBCeWGMZicjMB 092HOaXctRZ5P+I5HZO199bfFLffV6Pu1pd2/jjguOqkmF4eVL6AXwQBglg19RPs BEwhSLRLhuWc11XyikE2RG3PvvDRvhXl6AeqtKkcUi4LedjS3BlqmlGpTorJzpO3 OqarnzGMyAHPS5QxPPUcASG4B+la6o1sVn94UiynUWnd3yXTe4uE4Ed4YeV2oBXh BGVLhTdsWoamNpMwX9JrOMNwRPahYpoDCjeC2jlKPGPCXQiTWthlupLidXuKUI/a OJi+VSAzNPMx5s1p2JSKwAp+tT6oX8BaFK0zA+J6cyBcBqqbWvA6LV+v9f8c/5A= =x1pC -----END PGP SIGNATURE----- From owner-freebsd-java@FreeBSD.ORG Fri Mar 27 00:25:18 2015 Return-Path: Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 51AE44B1 for ; Fri, 27 Mar 2015 00:25:18 +0000 (UTC) Received: from gw.catspoiler.org (cl-1657.chi-02.us.sixxs.net [IPv6:2001:4978:f:678::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D4765221 for ; Fri, 27 Mar 2015 00:25:17 +0000 (UTC) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id t2R0PABj074662 for ; Thu, 26 Mar 2015 16:25:14 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201503270025.t2R0PABj074662@gw.catspoiler.org> Date: Thu, 26 Mar 2015 17:25:10 -0700 (PDT) From: Don Lewis Subject: strange openjdk7 build failure To: java@FreeBSD.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2015 00:25:18 -0000 I recently put together a new package building machine and for some reason it is unable to build openjdk7 for FreeBSD 8 and 9, whereas I don't have any problems on my old package building machine. Both machines have AMD FX CPUs, with the new one with 8 cores and the old one with 4 cores. The new machine is running 11.0-CURRENT with ZFS, the old one is running 10.1-STABLE with UFS. I've tried various settings of USE_TMPFS and ALLOW_MAKE_JOBS in poudriere.conf, with no change to the results. Using the same OS release versions in the poudriere jails on both machines and and the same ports tree revision still produces different results on the two machines. I've tried a number of different ports tree revisions on the new machine and the openjdk7 build always fails. The make.conf file is empty on both machines. When using this jail: 93amd64 9.3-RELEASE-p12 amd64 http 2015-03-23 02:57:43 /var/poudriere/jails/93amd64 [snip] Compiling ../generated/adfiles/ad_x86_64_gen.cpp rm -f ad_x86_64_gen.o c++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DAMD64 -DPRODUCT -I. -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/prims -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/precompiled -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/cpu/x86/vm -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/os_cpu/bsd_x86/vm -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/os/bsd/vm -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"24.76-b04\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"root\"" -DHOTSPOT_LIB_ARCH=\"amd64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -O2 -pipe -fstack-protector -fno-strict-aliasing -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fno! -rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -O3 -fno-strict-aliasing -DVM_LITTLE_ENDIAN -D_LP64=1 -fno-omit-frame-pointer -DINCLUDE_TRACE=1 -Wpointer-arith -Wconversion -Wsign-compare -c -fpch-deps -MMD -MP -MF ../generated/dependencies/ad_x86_64_format.o.d -o ad_x86_64_format.o ../generated/adfiles/ad_x86_64_format.cpp c++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DAMD64 -DPRODUCT -I. -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/prims -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/precompiled -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/cpu/x86/vm -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/os_cpu/bsd_x86/vm -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/os/bsd/vm -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"24.76-b04\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"root\"" -DHOTSPOT_LIB_ARCH=\"amd64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -O2 -pipe -fstack-protector -fno-strict-aliasing -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fno! -rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -O3 -fno-strict-aliasing -DVM_LITTLE_ENDIAN -D_LP64=1 -fno-omit-frame-pointer -DINCLUDE_TRACE=1 -Wpointer-arith -Wconversion -Wsign-compare -c -fpch-deps -MMD -MP -MF ../generated/dependencies/ad_x86_64_gen.o.d -o ad_x86_64_gen.o ../generated/adfiles/ad_x86_64_gen.cpp Compiling ../generated/adfiles/ad_x86_64_misc.cpp rm -f ad_x86_64_misc.o c++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DAMD64 -DPRODUCT -I. -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/prims -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/precompiled -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/cpu/x86/vm -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/os_cpu/bsd_x86/vm -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/os/bsd/vm -I/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"24.76-b04\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"root\"" -DHOTSPOT_LIB_ARCH=\"amd64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -O2 -pipe -fstack-protector -fno-strict-aliasing -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fno! -rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -O3 -fno-strict-aliasing -DVM_LITTLE_ENDIAN -D_LP64=1 -fno-omit-frame-pointer -DINCLUDE_TRACE=1 -Wpointer-arith -Wconversion -Wsign-compare -c -fpch-deps -MMD -MP -MF ../generated/dependencies/ad_x86_64_misc.o.d -o ad_x86_64_misc.o ../generated/adfiles/ad_x86_64_misc.cpp /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/compiler/abstractCompiler.cpp:1: fatal error: had to relocate PCH compilation terminated. /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/src/share/vm/utilities/accessFlags.cpp:1: fatal error: had to relocate PCH compilation terminated. /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/make/bsd/makefiles/rules.make:149: recipe for target 'abstractCompiler.o' failed gmake[6]: *** [abstractCompiler.o] Error 1 gmake[6]: *** Waiting for unfinished jobs.... ../generated/adfiles/ad_x86_64.cpp:1: fatal error: had to relocate PCH compilation terminated. ../generated/adfiles/ad_x86_64_clone.cpp:1: fatal error: had to relocate PCH compilation terminated. /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/make/bsd/makefiles/rules.make:149: recipe for target 'accessFlags.o' failed gmake[6]: *** [accessFlags.o] Error 1 /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/make/bsd/makefiles/rules.make:149: recipe for target 'ad_x86_64_clone.o' failed gmake[6]: *** [ad_x86_64_clone.o] Error 1 /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/make/bsd/makefiles/rules.make:149: recipe for target 'ad_x86_64.o' failed gmake[6]: *** [ad_x86_64.o] Error 1 ../generated/adfiles/ad_x86_64_expand.cpp:1: fatal error: had to relocate PCH compilation terminated. /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/make/bsd/makefiles/rules.make:149: recipe for target 'ad_x86_64_expand.o' failed gmake[6]: *** [ad_x86_64_expand.o] Error 1 ../generated/adfiles/ad_x86_64_gen.cpp:1: fatal error: had to relocate PCH compilation terminated. ../generated/adfiles/ad_x86_64_misc.cpp:1: fatal error: had to relocate PCH compilation terminated. /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/make/bsd/makefiles/rules.make:149: recipe for target 'ad_x86_64_gen.o' failed gmake[6]: *** [ad_x86_64_gen.o] Error 1 /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/make/bsd/makefiles/rules.make:149: recipe for target 'ad_x86_64_misc.o' failed gmake[6]: *** [ad_x86_64_misc.o] Error 1 ../generated/adfiles/ad_x86_64_format.cpp:1: fatal error: had to relocate PCH compilation terminated. /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/make/bsd/makefiles/rules.make:149: recipe for target 'ad_x86_64_format.o' failed gmake[6]: *** [ad_x86_64_format.o] Error 1 gmake[6]: Leaving directory '/wrkdirs/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/hotspot/outputdir/bsd_amd64_compiler2/product' /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/make/bsd/makefiles/top.make:128: recipe for target 'the_vm' failed gmake[5]: *** [the_vm] Error 2 gmake[5]: Leaving directory '/wrkdirs/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/hotspot/outputdir/bsd_amd64_compiler2/product' /wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/make/bsd/Makefile:292: recipe for target 'product' failed gmake[4]: *** [product] Error 2 gmake[4]: Leaving directory '/wrkdirs/usr/ports/java/openjdk7/work/openjdk/build/bsd-amd64/hotspot/outputdir' Makefile:191: recipe for target 'generic_build2' failed gmake[3]: *** [generic_build2] Error 2 gmake[3]: Leaving directory '/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/make' Makefile:151: recipe for target 'product' failed gmake[2]: *** [product] Error 2 gmake[2]: Leaving directory '/wrkdirs/usr/ports/java/openjdk7/work/openjdk/hotspot/make' make/hotspot-rules.gmk:111: recipe for target 'hotspot-build' failed gmake[1]: *** [hotspot-build] Error 2 gmake[1]: Leaving directory '/wrkdirs/usr/ports/java/openjdk7/work/openjdk' Makefile:251: recipe for target 'build_product_image' failed gmake: *** [build_product_image] Error 2 ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** [do-build] Error code 1 Stop in /usr/ports/java/openjdk7. ====>> Cleaning up wrkdir ===> Cleaning for openjdk-7.76.13_1,1 build of java/openjdk7 ended at Wed Mar 25 22:50:46 PDT 2015 build time: 00:05:24 !!! build failure encountered !!! Full log here: From owner-freebsd-java@FreeBSD.ORG Fri Mar 27 07:00:00 2015 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3821D2AB; Fri, 27 Mar 2015 07:00:00 +0000 (UTC) Received: from mail-la0-x22d.google.com (mail-la0-x22d.google.com [IPv6:2a00:1450:4010:c03::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B825DBC; Fri, 27 Mar 2015 06:59:59 +0000 (UTC) Received: by lagg8 with SMTP id g8so63420867lag.1; Thu, 26 Mar 2015 23:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=tLu6VQCZLeFwvLacD3BH53PxFZaEAkxgMu4XI6N15JA=; b=IbN/VWWAihAV/ajC14wGYt7ZgESnNdNSi683TuTFQl6njcTYRRStADCIvsYOHumv6d G4e+DatpnjTFoH4Gu/ORcPgXKt3DYzrCYN+Jd/+LE8NMa+tqJ2qierf5QqAs94aX/Nge guiElAel2w+5b+OGGF/Q8JgDLdP7RLyE3ZG5FKfq2ULEGKhFE01GYVBPFe/gHqX9vyL1 m7QDSqpNzpgoTfFD71SsObOGk0VCQVisDphvOG/AdVqHblciMql6YDGkD+Ho4unP/tFR pXvm/pVGsChQ4XC0AfvyAIoG61HehYMh61oB8bRQ7NwfrVrbK13CYu4JLmVSchUjh823 cZcA== X-Received: by 10.152.3.196 with SMTP id e4mr16801460lae.40.1427439597478; Thu, 26 Mar 2015 23:59:57 -0700 (PDT) Received: from [192.168.0.77] (mircat.net. [81.9.105.50]) by mx.google.com with ESMTPSA id w9sm175692lae.35.2015.03.26.23.59.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Mar 2015 23:59:56 -0700 (PDT) Message-ID: <5514FFEC.6010205@gmail.com> Date: Fri, 27 Mar 2015 09:59:56 +0300 From: Dmitry Samersoff User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Jung-uk Kim , Johannes Dieterich , freebsd-java@freebsd.org Subject: Re: dtrace, jstack and lang/openjdk7 or 8 References: <55146F51.3030404@FreeBSD.org> In-Reply-To: <55146F51.3030404@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2015 07:00:00 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jung-uk Kim, > BTW, 'jstack -m ' is invalid command, i.e., it does not work with > a running process. You need to set '-F' option to force it. jstack -m turns on -F internally so command it self is OK. The problem is jstack -F uses serviceability agent (see hotspot/agent) as a backend and as far as I know this backend is not ported to FreeBSD - -Dmitry On 2015-03-26 23:42, Jung-uk Kim wrote: > On 03/25/2015 19:02, Johannes Dieterich wrote: > > Hi, > > > I am currently trying to get dtrace to work with either > > java/openjdk7 or java/openjdk8 (as per Brendan Gregg's howto: > > http://www.brendangregg.com/blog/2014-06-12/java-flame-graphs.html). > > > Unfortunately, I get exactly what he describes: I am missing > > everything inside the JVM. I suspect this has to do with jstack() > > not working. The bundled jstack executable (yes, I know that they > > are only vaguely related) also seems to work only so-so. Basically, > > I can get a working stack trace without a variable, with -l, but > > not with -m, and not with -F. It causes exceptions like this: > > > $ /usr/local/openjdk7/bin/jstack -m 84749 > ... > > So, what I am asking is: anybody out there got a working setup for > > dtrace+openjdk on FreeBSD? If so, it would be fantastic if you > > could post the necessary steps! > > jstack from java/openjdk8 works fine AFAICT. Unfortunately, dtrace is > unimplemented for FreeBSD. > > BTW, 'jstack -m ' is invalid command, i.e., it does not work with > a running process. You need to set '-F' option to force it. > > % /usr/local/openjdk8/bin/jstack > Usage: > jstack [-l] > (to connect to running process) > jstack -F [-m] [-l] > (to connect to a hung process) > jstack [-m] [-l] > (to connect to a core file) > jstack [-m] [-l] [server_id@] > (to connect to a remote debug server) > > Options: > -F to force a thread dump. Use when jstack does not respond > (process is hung) > -m to print both java and native frames (mixed mode) > -l long listing. Prints additional information about locks > -h or -help to print this help message > > > Jung-uk Kim > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJVFP/sAAoJEHEy08c4gIABIKEH/iGdHwDoMOJJm5eW4Rbasmt/ yFd5HuEXaCDwXGPI7cDlmXDeUZxBEUwy+S9611e9jFRwiS5NuQzYnrpuIZ4d+QQC gP9gCbFvEi8vac34NCt2urar3zfJNgjs3X5A/4cMN6ZpE/NlbNAPEZw/sKbYxij1 rFWxYdqH8zFD2Fcabcs0DQEFFYO2O8B0L7DrvUU0k2sZu/hhkNopp812eNL1ZDWn qFWG8RdBMKOKCZ74FHzjkR8quTzfTDfDC5ijI3lYFUkCTYX5z73zOAOK69de2v+p xefQSvI84/IIZhQJbvgFG9Oe3MtrS5A3thCB4sm2mkukJIB4zS6gPQyebvrvOAw= =IfYl -----END PGP SIGNATURE-----