From owner-freebsd-java@FreeBSD.ORG Wed May 15 04:36:20 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 81944FFF; Wed, 15 May 2013 04:36:20 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from mail1.ozon.ru (mx4.ozon.ru [194.186.179.140]) by mx1.freebsd.org (Postfix) with ESMTP id 9AC2C66A; Wed, 15 May 2013 04:36:19 +0000 (UTC) Received: from intmail03msk.ozon (intmail03msk.ozon [10.18.18.171]) by mail1.ozon.ru (Postfix) with ESMTP id E3DFB71A4F8; Wed, 15 May 2013 08:36:18 +0400 (MSK) Received: from mail pickup service by intmail03msk.ozon with Microsoft SMTPSVC; Wed, 15 May 2013 08:36:16 +0400 Received: from intmail03msk.ozon ([10.18.18.171]) by intmail02msk.ozon with Microsoft SMTPSVC(6.0.3790.4675); Mon, 13 May 2013 23:15:24 +0400 Received: from mail1.ozon.ru ([194.186.179.140]) by intmail03msk.ozon with Microsoft SMTPSVC(6.0.3790.4675); Mon, 13 May 2013 22:24:19 +0400 Received: from localhost (localhost [127.0.0.1]) by mail1.ozon.ru (Postfix) with ESMTP id 6F0F171AA63 for ; Mon, 13 May 2013 22:24:19 +0400 (MSK) X-Virus-Scanned: amavisd-new at ozon.ru Received: from mail1.ozon.ru ([127.0.0.1]) by localhost (mx4.ozon.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KnN10Yuwj2ij for ; Mon, 13 May 2013 22:24:12 +0400 (MSK) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received-SPF: pass (freebsd.org: 8.8.178.116 is authorized to use 'owner-freebsd-current@freebsd.org' in 'mfrom' identity (mechanism 'ip4:8.8.178.116' matched)) receiver=mx4.ozon.ru; identity=mfrom; envelope-from="owner-freebsd-current@freebsd.org"; helo=mx2.freebsd.org; client-ip=8.8.178.116 Received: from mx2.freebsd.org (mx2.FreeBSD.org [8.8.178.116]) by mail1.ozon.ru (Postfix) with ESMTP id C7C0F71AA5E for ; Mon, 13 May 2013 22:24:11 +0400 (MSK) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:1900:2254:206c::16:88]) by mx2.freebsd.org (Postfix) with ESMTP id BE5FE5473; Mon, 13 May 2013 18:24:08 +0000 (UTC) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:1900:2254:206c::16:88]) by hub.freebsd.org (Postfix) with ESMTP id AE7A8481; Mon, 13 May 2013 18:24:08 +0000 (UTC) (envelope-from owner-freebsd-current@freebsd.org) Delivered-To: freebsd-current@freebsd.org Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by hub.freebsd.org (Postfix) with ESMTP id 4A78538E; Mon, 13 May 2013 18:24:05 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Message-ID: <51912EFD.3090509@FreeBSD.org> Date: Mon, 13 May 2013 14:20:45 -0400 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130408 Thunderbird/17.0.5 MIME-Version: 1.0 To: "O. Hartmann" Subject: Re: openjdk6 broken on current References: <20130505082750.GY12114@ithaqua.etoilebsd.net> <072097222ecf7a0454b6bf3c5a345e7a@webmail.lerctr.org> <3b07abf009691a0c1292f44568f0a380@webmail.lerctr.org> <55c89ac05cb6cb17d056be00b9da1279@webmail.lerctr.org> <15bba76880d792dca6eec4b6c91ec7f8@webmail.lerctr.org> <1368264341.33341.51.camel@thor.walstatt.dyndns.org> In-Reply-To: <1368264341.33341.51.camel@thor.walstatt.dyndns.org> X-Enigmail-Version: 1.5.1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: owner-freebsd-current@freebsd.org Sender: owner-freebsd-current@freebsd.org X-OriginalArrivalTime: 13 May 2013 18:24:19.0486 (UTC) FILETIME=[156E33E0:01CE5007] Cc: Daniel Eischen , Larry Rosenman , Freebsd current , freebsd-java@freebsd.org X-BeenThere: freebsd-java@freebsd.org List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 May 2013 04:36:20 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2013-05-11 05:25:41 -0400, O. Hartmann wrote: > On Thu, 2013-05-09 at 17:16 -0500, Larry Rosenman wrote: >> On 2013-05-09 06:16, Damjan Jovanovic wrote: >>> On Wed, May 8, 2013 at 8:52 PM, Larry Rosenman >>> wrote: On 2013-05-08 13:37, Larry Rosenman wrote: >>> >>> On 2013-05-08 12:46, Larry Rosenman wrote: On 2013-05-08 12:00, >>> Daniel Eischen wrote: On Wed, 8 May 2013, Daniel Eischen >>> wrote: >>> >>> On Wed, 8 May 2013, Larry Rosenman wrote: >>> >>> Daniel Eischen wrote: On Wed, 8 May >>> 2013, Larry Rosenman wrote: >>> >>> Can SOMEONE please look at this? >>> >>> I have a real need to get java back on my -CURRENT server >>> soon. >>> >>> Did/can you try just backing out r249606? >>> >>> -- DE >>> >>> How can I generate a patch to do that? >>> >>> Go here: >>> >>> >>> http://svnweb.freebsd.org/base/head/lib/libthr/thread/thr_sig.c?sortby=date&view=log >>> >>> >>> then click on "Diff to previous 249606", then click on "Patch" >>> at the top. You can try backing out each/all of the recent >>> changes to thr_sig.c to see what the culprit is. >>> >>> You'll have to use "-R" to reverse the patch I believe. >>> >>> Or, if you have a checked out svn repo, you can always use svn >>> to generate the patch: >>> >>> $ cd /path/to/svn/src $ svn diff -r249606:249605 # no need to >>> use -R on this patch I've done this, and dealt with a chunk >>> reject, and am recompiling the world. >>> >>> Will let you know if this fixes it...... Still fails. >>> >>> /bin/mkdir -p >>> >>> /usr/ports/java/openjdk6/work/build/bsd-amd64/classes/javax/management/remote/rmi >>> >>> rm -f >>> >>> /usr/ports/java/openjdk6/work/build/bsd-amd64/classes/javax/management/remote/rmi/RMIConnectionImpl_Stub.class >>> >>> /usr/ports/java/openjdk6/work/build/bsd-amd64/bin/java -Xmx896m >>> -Xms128m -cp >>> /usr/ports/java/openjdk6/work/build/bsd-amd64/classes >>> sun.rmi.rmic.Main -classpath >>> "/usr/ports/java/openjdk6/work/build/bsd-amd64/classes" \ -d >>> /usr/ports/java/openjdk6/work/build/bsd-amd64/classes >>> \ -v1.2 \ -keepgenerated >>> \ javax.management.remote.rmi.RMIConnectionImpl /bin/mkdir -p >>> >>> /usr/ports/java/openjdk6/work/build/bsd-amd64/gensrc/javax/management/remote/rmi >>> >>> /bin/cp >>> >>> /usr/ports/java/openjdk6/work/build/bsd-amd64/classes/javax/management/remote/rmi/RMIConnectionImpl_Stub.java >>> >>> \ >>> >>> /usr/ports/java/openjdk6/work/build/bsd-amd64/gensrc/javax/management/remote/rmi >>> >>> /usr/ports/java/openjdk6/work/build/bsd-amd64/bin/java -Xmx896m >>> -Xms128m -cp >>> /usr/ports/java/openjdk6/work/build/bsd-amd64/classes >>> sun.rmi.rmic.Main -classpath >>> "/usr/ports/java/openjdk6/work/build/bsd-amd64/classes" \ -d >>> /usr/ports/java/openjdk6/work/build/bsd-amd64/classes >>> \ -iiop -v1.2 \ >>> javax.management.remote.rmi.RMIConnectionImpl gmake[5]: *** >>> >>> [/usr/ports/java/openjdk6/work/build/bsd-amd64/classes/javax/management/remote/rmi/RMIConnectionImpl_Stub.class] >>> >>> Segmentation fault (core dumped) >>> gmake[5]: *** Deleting file >>> >>> `/usr/ports/java/openjdk6/work/build/bsd-amd64/classes/javax/management/remote/rmi/RMIConnectionImpl_Stub.class' >>> >>> gmake[5]: Leaving directory >>> `/usr/ports/java/openjdk6/work/jdk/make/com/sun/jmx' gmake[4]: >>> *** [all] Error 1 gmake[4]: Leaving directory >>> `/usr/ports/java/openjdk6/work/jdk/make/com/sun' gmake[3]: *** >>> [all] Error 1 gmake[3]: Leaving directory >>> `/usr/ports/java/openjdk6/work/jdk/make/com' gmake[2]: *** >>> [all] Error 1 gmake[2]: Leaving directory >>> `/usr/ports/java/openjdk6/work/jdk/make' gmake[1]: *** >>> [jdk-build] Error 2 gmake[1]: Leaving directory >>> `/usr/ports/java/openjdk6/work' gmake: *** >>> [build_product_image] Error 2 *** [do-build] Error code 1 >>> >>> Stop in /usr/ports/java/openjdk6. *** [build] Error code 1 >>> >>> Stop in /usr/ports/java/openjdk6. >>> >>> ===>>> make failed for java/openjdk6 ===>>> Aborting update >>> >>> ===>>> Killing background jobs Terminated >>> >>> ===>>> You can restart from the point of failure with this >>> command line: portmaster java/openjdk6 >>> >>> ===>>> Exiting # # >>> >>> >>> I **CAN** give SSH/SUDO access to whoever..... >>> >>> (gdb) bt >>> >>> #0 0x0000000801e2da93 in JVM_handle_bsd_signal () from >>> /usr/ports/java/openjdk6/work/build/bsd-amd64/lib/amd64/server/libjvm.so >>> >>> #1 0x0000000800a49136 in swapcontext () from /lib/libthr.so.3 >>> >>> #2 0x0000000800a48d39 in sigaction () from /lib/libthr.so.3 #3 >>> 0x00007ffffffff1d3 in ?? () #4 0x0000000800a48c20 in sigaction >>> () from /lib/libthr.so.3 #5 0x0000000801ba9540 in >>> Deoptimization::unpack_frames () from >>> /usr/ports/java/openjdk6/work/build/bsd-amd64/lib/amd64/server/libjvm.so >>> >>> #6 0x0000000803869f7e in ?? () >>> #7 0x00007fffffbfa450 in ?? () >>> >>> #8 0x000000080383b828 in ?? () #9 0x000000080685e6e0 in ?? >>> () #10 0x000000080684f000 in ?? () #11 0x00007fffffbfa4a0 in ?? >>> () #12 0x00007fffffbfa518 in ?? () >>> >>> #13 0x000000080308f000 in ?? () #14 0x0000000806bac750 in ?? >>> () >>> >>> #15 0x0000000803869eb9 in ?? () #16 0x0000000000000000 in ?? >>> () (gdb) >>> >>> That backtrace would probably be clearer if you got it from a >>> debug build of OpenJDK. Also you could find the exact commit >>> that broke it by doing a bisection-search in SVN like "git >>> bisect" would do. >>> >>> Regards Damjan Jovanovic > >> interestingly, I set both DEBUG and FASTDEBUG, and it compiles >> cleanly now. >> >> > > > Thanks for this hint! > > The port java/openjdk6 fails compiling for me with the above > specified error (Segmentation fault) for a couple of weeks now. > With the DEBUG flags set in the port's configuration, it compiles > well. > > It is very intersting that it seems to depend on the hardware/CPU > in conjunction with LLVMCLANG 3.3, whether this port compiles or > not. In my case, I have two FreeBSD 10.0-CURRENT boxes running > Core2Duo CPUs (E8400, Q6600) on which the port compiles. On an > Ivy-Bridge i3-3220, the port also compiles well, even with > -march=native -O3 flags set to the compiler. But it fails on the > Sandy-Bridge-E machine (i7-3930K) with either -O3 or -O2 (but both > ways -march=native set). How recent is your -CURRENT? FYI, recently we fixed couple of auto-vectorization bugs, i.e., http://svnweb.freebsd.org/base?view=revision&revision=249817 http://svnweb.freebsd.org/base?view=revision&revision=250593 I have feeling that one of these might fix your problem. BTW, please note adding custom compiler/linker flags are not supported. Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iQEcBAEBAgAGBQJRkS79AAoJECXpabHZMqHO4NkIAMt0TZ7RK0z6uCOnXOHxv4va fYRoy3om/Xkw8Rzmix9QSgSPIApOlXUjHGhtoUlxdavAItKjZEaPOaDDErw8gbzs F4JIJJwdLJTcmwbUZJNQP/j06Rldlh2KjhA8nrXPgcuwR2laK66JPtObudkdlGHq L47L+ag/b8vuLDiLrwN8fa+LZfslN919RYYdo9nGMaPDaJV1BVRbCq+0haUaVKEx 9GDrrSxHqzJpx4ACYAAoAoDSAgBniL6e2W34Y+AxRO8fWjKhMjVo6nX4XolA3rGc +fqmGdymZndjixFKy9nFTP47oUeOVmhMARMpR32Vw8UU0kg9nEJzHmgaRJgwpHU= =Th80 -----END PGP SIGNATURE----- _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"