From owner-freebsd-java@FreeBSD.ORG Mon Dec 23 11:06:50 2013 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3595A5A7 for ; Mon, 23 Dec 2013 11:06:50 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0813C11C0 for ; Mon, 23 Dec 2013 11:06:50 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBNB6nEi030045 for ; Mon, 23 Dec 2013 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBNB6nXM030043 for freebsd-java@FreeBSD.org; Mon, 23 Dec 2013 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 23 Dec 2013 11:06:49 GMT Message-Id: <201312231106.rBNB6nXM030043@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Subject: Current problem reports assigned to freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Dec 2013 11:06:50 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/184204 java Undefined symbol "libiconv_open" on startup for java/n f ports/183767 java java/openjdk6: /usr/include/iconv.h:43:10: fatal error o java/183662 java OpenJDK 7 manual pages are misconfigured o java/183081 java java crash on machine with zfs kernel module o ports/182384 java java/linux-sun-jdk16 won't build with demos & samples o ports/181136 java java/icedtea-web not build o ports/180643 java java/openjdk6 build fails on amd64 -current o ports/178856 java java/openjdk6, java/openjdk7: Java fails to print when o ports/178728 java [UPDATE] devel/apache-ant to v1.9.0 o ports/178647 java java/openjdk6 does not build (without extra hack) o ports/177802 java Could not update openfire because of problem in java/o o ports/175300 java java/jamvm fails to compile on ARM6 (raspberry-pi) o ports/174825 java java/openjdk6: fails to build on i386 (64-bit mode not o ports/173603 java java/icedtea-web starts javaws incorrectly o ports/173592 java java/openjdk6 fails on FreeBSD_9_1_RC2 o ports/173210 java java/openjdk6 - use better src placement o java/172962 java Sig11 while compiling OpenJDK6-b26 using clang o ports/171014 java [patch] Correct java/openjdk6 Dependency Declaration o ports/167903 java [PATCH] java/openjdk6: Fix build failure in 8.3 jail r o ports/164941 java [UPDATE] [NEW PORTS] java/classpath-initial, including o ports/162991 java java/openjdk6 fails to build o java/162522 java OpenJDK 6 is not setting close on exec o java/160553 java Jaikoz java based audio tagger core dumps o ports/159787 java java/openjdk6 nio muti-thread bug o ports/154884 java java/openjdk6: Every NetBeans version on FreeBSD 8.1 c f java/147512 java Crash of RXTX-2.1-7 on AMD64 system o java/140002 java java/openjdk6: jconsole dumps tomcat when contacting j o java/128809 java JVM aborted when GNU RXTX write to serial port. o java/123555 java linux-sun-jdk15, linux-sun-jdk16 produce a coredump o java/122513 java native JDKs unbuildable with Linux ones o ports/119732 java java/linux-sun-jre16: linux-sun-jre16 plugin doesn't w o java/119063 java An unexpected error has been detected by Java Runtime o ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to 33 problems total. From owner-freebsd-java@FreeBSD.ORG Wed Dec 25 05:20:01 2013 Return-Path: Delivered-To: freebsd-java@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 984973F1 for ; Wed, 25 Dec 2013 05:20:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 82DD911DC for ; Wed, 25 Dec 2013 05:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBP5K1Ot017591 for ; Wed, 25 Dec 2013 05:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBP5K1AO017590; Wed, 25 Dec 2013 05:20:01 GMT (envelope-from gnats) Date: Wed, 25 Dec 2013 05:20:01 GMT Message-Id: <201312250520.rBP5K1AO017590@freefall.freebsd.org> To: freebsd-java@FreeBSD.org Cc: From: Kevin Zheng Subject: Re: ports/184204: Undefined symbol " libiconv_open" on startup for java/netbeans X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Kevin Zheng List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Dec 2013 05:20:01 -0000 The following reply was made to PR ports/184204; it has been noted by GNATS. From: Kevin Zheng To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/184204: Undefined symbol "libiconv_open" on startup for java/netbeans Date: Tue, 24 Dec 2013 23:13:02 -0600 Hi FreeBSD Java Team, I could not reliably reproduce this bug on similar systems (same architecture, OS, packages, JDK). This issue seemed to be isolated to one machine, and persisted even after package updates. Since the machine in question was reinstalled (due to other reasons), I can no longer reproduce the problem. The ports (both Java and Netbeans) seem to be fine. *Go ahead and close this bug report.* A big thanks goes out to the people who make FreeBSD an excellent system for the Java platform. Thanks, Kevin Zheng From owner-freebsd-java@FreeBSD.ORG Wed Dec 25 17:33:03 2013 Return-Path: Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 271BC6D6 for ; Wed, 25 Dec 2013 17:33:03 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 97691159E for ; Wed, 25 Dec 2013 17:33:01 +0000 (UTC) Received: from 3capp-gmx-bs34.server.lan ([172.19.170.86]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0M0euW-1Vcplw0XgU-00upPi for ; Wed, 25 Dec 2013 18:32:54 +0100 Received: from [178.0.157.82] by 3capp-gmx-bs34.server.lan with HTTP; Wed Dec 25 18:32:54 CET 2013 MIME-Version: 1.0 Message-ID: From: "Hardy Schumacher" To: bug-followup@FreeBSD.org Subject: Re: ports/178728: [UPDATE] devel/apache-ant to v1.9.0 Content-Type: multipart/mixed; boundary=knika-b529ec93-cb52-42c0-a857-9810caaa4ff4 Date: Wed, 25 Dec 2013 18:32:54 +0100 (CET) Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K0:Jilv3g1Z28fBhxAO5/D6hBZiasKEJvAEOwYpbVslwgp 2liSTBdR/g6NNZEiPvRK79C0eFcw+OBGIIxdPygABGCVhDb0Mv zM3cqC364Xw9TaEPYQjVR0JU0Zorsga8UnPUJuspwhjtpknaeM Q794Jyb0nVb8Z3MxLZmTyVqgTfvwcY6WWO/+urs5RNkdje/Yde nHWl6US/WkeWM0CBSq9UOksO17IndvhUpPF4pRDpGz3ZGo8yS5 fctQXeQyNDZLj4d5SfcJWLYKwQpyUgLBfXLXGekH6z7W+YYkyl zQsx+Q= X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Dec 2013 17:33:03 -0000 --knika-b529ec93-cb52-42c0-a857-9810caaa4ff4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Hello, I've updated my patch for port devel/apache-ant for version 1.9.2. See attachment. Best Regards, Hardy --knika-b529ec93-cb52-42c0-a857-9810caaa4ff4 Content-Type: text/plain Content-Disposition: attachment; filename=update_apache-ant-1.9.2.txt diff -ruN /usr/ports/devel/apache-ant/Makefile ./apache-ant/Makefile --- /usr/ports/devel/apache-ant/Makefile 2013-09-21 20:12:48.000000000 +0200 +++ ./apache-ant/Makefile 2013-12-25 18:24:28.000000000 +0100 @@ -2,7 +2,7 @@ # $FreeBSD: head/devel/apache-ant/Makefile 327722 2013-09-20 17:03:26Z bapt $ PORTNAME= apache-ant -PORTVERSION= 1.8.4 +PORTVERSION= 1.9.2 CATEGORIES= devel java MASTER_SITES= ${MASTER_SITE_APACHE:S,%SUBDIR%/,ant/binaries/:bin,} \ LOCAL/hq:man diff -ruN /usr/ports/devel/apache-ant/distinfo ./apache-ant/distinfo --- /usr/ports/devel/apache-ant/distinfo 2012-12-26 19:26:04.000000000 +0100 +++ ./apache-ant/distinfo 2013-12-25 18:24:32.000000000 +0100 @@ -1,6 +1,6 @@ -SHA256 (apache-ant-1.8.4-bin.tar.bz2) = aeaed7d5c2b1e73ffc195d713931047ecc113b8c9844df5cbac2797007455069 -SIZE (apache-ant-1.8.4-bin.tar.bz2) = 4257152 +SHA256 (apache-ant-1.9.2-bin.tar.bz2) = bfe3a90de898d583510d670ae9ea2adb2874aa1567e21a83de2f363474fc9a24 +SIZE (apache-ant-1.9.2-bin.tar.bz2) = 4310740 SHA256 (apache-ant-manpage-20030908.tgz) = 721981f64fae3577c04c527232edab9bfa0755af08319049cec206584dc8830c SIZE (apache-ant-manpage-20030908.tgz) = 9735 -SHA256 (apache-ant-1.8.4-manual.tar.bz2) = d3f47ee52f9b8e75279d259106232da9c3919fb7ea9f9e48bd3f2c7a0303716e -SIZE (apache-ant-1.8.4-manual.tar.bz2) = 1875282 +SHA256 (apache-ant-1.9.2-manual.tar.bz2) = c0560e02c19ad13a7ad0250ba8ae24906f94806ec32c29d40333e18f735d0525 +SIZE (apache-ant-1.9.2-manual.tar.bz2) = 1908295 --knika-b529ec93-cb52-42c0-a857-9810caaa4ff4-- From owner-freebsd-java@FreeBSD.ORG Wed Dec 25 17:40:02 2013 Return-Path: Delivered-To: freebsd-java@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 98D7879B for ; Wed, 25 Dec 2013 17:40:02 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6B64015D3 for ; Wed, 25 Dec 2013 17:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBPHe23I093587 for ; Wed, 25 Dec 2013 17:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBPHe2GX093586; Wed, 25 Dec 2013 17:40:02 GMT (envelope-from gnats) Date: Wed, 25 Dec 2013 17:40:02 GMT Message-Id: <201312251740.rBPHe2GX093586@freefall.freebsd.org> To: freebsd-java@FreeBSD.org Cc: From: "Hardy Schumacher" Subject: Re: ports/178728: [UPDATE] devel/apache-ant to v1.9.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Hardy Schumacher List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Dec 2013 17:40:02 -0000 The following reply was made to PR ports/178728; it has been noted by GNATS. From: "Hardy Schumacher" To: bug-followup@FreeBSD.org Cc: java@FreeBSD.org Subject: Re: ports/178728: [UPDATE] devel/apache-ant to v1.9.0 Date: Wed, 25 Dec 2013 18:32:54 +0100 (CET) --knika-b529ec93-cb52-42c0-a857-9810caaa4ff4 Content-Type: text/html; charset=UTF-8
Hello,

I've updated my patch for port devel/apache-ant for version 1.9.2. See attachment.
 
Best Regards,
Hardy
--knika-b529ec93-cb52-42c0-a857-9810caaa4ff4 Content-Type: text/plain Content-Disposition: attachment; filename=update_apache-ant-1.9.2.txt diff -ruN /usr/ports/devel/apache-ant/Makefile ./apache-ant/Makefile --- /usr/ports/devel/apache-ant/Makefile 2013-09-21 20:12:48.000000000 +0200 +++ ./apache-ant/Makefile 2013-12-25 18:24:28.000000000 +0100 @@ -2,7 +2,7 @@ # $FreeBSD: head/devel/apache-ant/Makefile 327722 2013-09-20 17:03:26Z bapt $ PORTNAME= apache-ant -PORTVERSION= 1.8.4 +PORTVERSION= 1.9.2 CATEGORIES= devel java MASTER_SITES= ${MASTER_SITE_APACHE:S,%SUBDIR%/,ant/binaries/:bin,} \ LOCAL/hq:man diff -ruN /usr/ports/devel/apache-ant/distinfo ./apache-ant/distinfo --- /usr/ports/devel/apache-ant/distinfo 2012-12-26 19:26:04.000000000 +0100 +++ ./apache-ant/distinfo 2013-12-25 18:24:32.000000000 +0100 @@ -1,6 +1,6 @@ -SHA256 (apache-ant-1.8.4-bin.tar.bz2) = aeaed7d5c2b1e73ffc195d713931047ecc113b8c9844df5cbac2797007455069 -SIZE (apache-ant-1.8.4-bin.tar.bz2) = 4257152 +SHA256 (apache-ant-1.9.2-bin.tar.bz2) = bfe3a90de898d583510d670ae9ea2adb2874aa1567e21a83de2f363474fc9a24 +SIZE (apache-ant-1.9.2-bin.tar.bz2) = 4310740 SHA256 (apache-ant-manpage-20030908.tgz) = 721981f64fae3577c04c527232edab9bfa0755af08319049cec206584dc8830c SIZE (apache-ant-manpage-20030908.tgz) = 9735 -SHA256 (apache-ant-1.8.4-manual.tar.bz2) = d3f47ee52f9b8e75279d259106232da9c3919fb7ea9f9e48bd3f2c7a0303716e -SIZE (apache-ant-1.8.4-manual.tar.bz2) = 1875282 +SHA256 (apache-ant-1.9.2-manual.tar.bz2) = c0560e02c19ad13a7ad0250ba8ae24906f94806ec32c29d40333e18f735d0525 +SIZE (apache-ant-1.9.2-manual.tar.bz2) = 1908295 --knika-b529ec93-cb52-42c0-a857-9810caaa4ff4-- From owner-freebsd-java@FreeBSD.ORG Thu Dec 26 12:05:17 2013 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4AE7CE10; Thu, 26 Dec 2013 12:05:17 +0000 (UTC) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id C85021A3B; Thu, 26 Dec 2013 12:05:15 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA23459; Thu, 26 Dec 2013 14:05:13 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1Vw9gf-00054J-Fw; Thu, 26 Dec 2013 14:05:13 +0200 Message-ID: <52BC1B41.2060900@FreeBSD.org> Date: Thu, 26 Dec 2013 14:04:17 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: FreeBSD Current , freebsd-java@FreeBSD.org Subject: latest openjdk7 triggers kernel panic X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=X-VIET-VPS Content-Transfer-Encoding: 7bit Cc: Alan Cox , Marcel Moolenaar X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Dec 2013 12:05:17 -0000 I am running FreeBSD based on the head from a few weeks ago, amd64. It seems that after a recent upgrade of openjdk7 I consistently get a kernel panic when a java process starts: panic: Bad entry start/end for new stack entry KDB: stack backtrace: db_trace_self_wrapper() at 0xffffffff803adc9b = db_trace_self_wrapper+0x2b/frame 0xfffffe02ba6fe6e0 kdb_backtrace() at 0xffffffff805cbd79 = kdb_backtrace+0x39/frame 0xfffffe02ba6fe790 panic() at 0xffffffff80597733 = panic+0x1a3/frame 0xfffffe02ba6fe810 vm_map_stack() at 0xffffffff80719f2e = vm_map_stack+0x3ce/frame 0xfffffe02ba6fe8a0 vm_mmap() at 0xffffffff8071c270 = vm_mmap+0x520/frame 0xfffffe02ba6fea30 sys_mmap() at 0xffffffff8071bad3 = sys_mmap+0x303/frame 0xfffffe02ba6feaf0 amd64_syscall() at 0xffffffff8074d0c8 = amd64_syscall+0x238/frame 0xfffffe02ba6febf0 Xfast_syscall() at 0xffffffff80733e2b = Xfast_syscall+0xfb/frame 0xfffffe02ba6febf0 Specifically, new_entry->end != top condition is true. new_entry->end is consistently greater than top by 3 pages. I suspect that java now does some hacky things with its stack and I suspect that vm_map_simplify_entry() call at the end of vm_map_insert() could be to blame. Although, the call is guarded by a check: 1290 /* 1291 * It may be possible to merge the new entry with the next and/or 1292 * previous entries. However, due to MAP_STACK_* being a hack, a 1293 * panic can result from merging such entries. 1294 */ 1295 if ((cow & (MAP_STACK_GROWS_DOWN | MAP_STACK_GROWS_UP)) == 0) 1296 vm_map_simplify_entry(map, new_entry); But that check seems to be defeated by the fact that vm_map_stack() clears our the relevant bits after saving them locally: 3335 /* 3336 * The stack orientation is piggybacked with the cow argument. 3337 * Extract it into orient and mask the cow argument so that we 3338 * don't pass it around further. 3339 * NOTE: We explicitly allow bi-directional stacks. 3340 */ 3341 orient = cow & (MAP_STACK_GROWS_DOWN|MAP_STACK_GROWS_UP); 3342 cow &= ~orient; -- Andriy Gapon From owner-freebsd-java@FreeBSD.ORG Thu Dec 26 14:05:10 2013 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 633AFDD4; Thu, 26 Dec 2013 14:05:10 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 00BD81306; Thu, 26 Dec 2013 14:05:09 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.7/8.14.7) with ESMTP id rBQE509C040903; Thu, 26 Dec 2013 16:05:00 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua rBQE509C040903 Received: (from kostik@localhost) by tom.home (8.14.7/8.14.7/Submit) id rBQE50rS040902; Thu, 26 Dec 2013 16:05:00 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 26 Dec 2013 16:05:00 +0200 From: Konstantin Belousov To: Andriy Gapon Subject: Re: latest openjdk7 triggers kernel panic Message-ID: <20131226140500.GM59496@kib.kiev.ua> References: <52BC1B41.2060900@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dtz4emBHhXMjtfBB" Content-Disposition: inline In-Reply-To: <52BC1B41.2060900@FreeBSD.org> User-Agent: Mutt/1.5.22 (2013-10-16) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: Alan Cox , FreeBSD Current , peter@freebsd.org, Marcel Moolenaar , freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Dec 2013 14:05:10 -0000 --dtz4emBHhXMjtfBB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 26, 2013 at 02:04:17PM +0200, Andriy Gapon wrote: >=20 > I am running FreeBSD based on the head from a few weeks ago, amd64. >=20 > It seems that after a recent upgrade of openjdk7 I consistently get a ker= nel > panic when a java process starts: >=20 > panic: Bad entry start/end for new stack entry > KDB: stack backtrace: > db_trace_self_wrapper() at 0xffffffff803adc9b =3D db_trace_self_wrapper+0= x2b/frame > 0xfffffe02ba6fe6e0 > kdb_backtrace() at 0xffffffff805cbd79 =3D kdb_backtrace+0x39/frame 0xffff= fe02ba6fe790 > panic() at 0xffffffff80597733 =3D panic+0x1a3/frame 0xfffffe02ba6fe810 > vm_map_stack() at 0xffffffff80719f2e =3D vm_map_stack+0x3ce/frame 0xfffff= e02ba6fe8a0 > vm_mmap() at 0xffffffff8071c270 =3D vm_mmap+0x520/frame 0xfffffe02ba6fea30 > sys_mmap() at 0xffffffff8071bad3 =3D sys_mmap+0x303/frame 0xfffffe02ba6fe= af0 > amd64_syscall() at 0xffffffff8074d0c8 =3D amd64_syscall+0x238/frame 0xfff= ffe02ba6febf0 > Xfast_syscall() at 0xffffffff80733e2b =3D Xfast_syscall+0xfb/frame 0xffff= fe02ba6febf0 >=20 > Specifically, new_entry->end !=3D top condition is true. > new_entry->end is consistently greater than top by 3 pages. >=20 > I suspect that java now does some hacky things with its stack and I suspe= ct that > vm_map_simplify_entry() call at the end of vm_map_insert() could be to bl= ame. > Although, the call is guarded by a check: >=20 > 1290 /* > 1291 * It may be possible to merge the new entry with the next a= nd/or > 1292 * previous entries. However, due to MAP_STACK_* being a ha= ck, a > 1293 * panic can result from merging such entries. > 1294 */ > 1295 if ((cow & (MAP_STACK_GROWS_DOWN | MAP_STACK_GROWS_UP)) =3D= =3D 0) > 1296 vm_map_simplify_entry(map, new_entry); >=20 > But that check seems to be defeated by the fact that vm_map_stack() clear= s our > the relevant bits after saving them locally: >=20 > 3335 /* > 3336 * The stack orientation is piggybacked with the cow argumen= t. > 3337 * Extract it into orient and mask the cow argument so that = we > 3338 * don't pass it around further. > 3339 * NOTE: We explicitly allow bi-directional stacks. > 3340 */ > 3341 orient =3D cow & (MAP_STACK_GROWS_DOWN|MAP_STACK_GROWS_UP); > 3342 cow &=3D ~orient; >=20 I provided the following patch yesterday to Peter, after the similar mail. diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index e3842a3..51b60de 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -1207,6 +1207,7 @@ charged: } else if ((prev_entry !=3D &map->header) && (prev_entry->eflags =3D=3D protoeflags) && + (cow & (MAP_ENTRY_GROWS_DOWN | MAP_ENTRY_GROWS_UP)) =3D=3D 0 && (prev_entry->end =3D=3D start) && (prev_entry->wired_count =3D=3D 0) && (prev_entry->cred =3D=3D cred || But there were no core dump available, and I think that your note is also valid. I do not see why cow should be cleared from the stack direction bits. diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index e3842a3..e15e0ca 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -3339,7 +3340,6 @@ vm_map_stack(vm_map_t map, vm_offset_t addrbos, vm_si= ze_t max_ssize, * NOTE: We explicitly allow bi-directional stacks. */ orient =3D cow & (MAP_STACK_GROWS_DOWN|MAP_STACK_GROWS_UP); - cow &=3D ~orient; KASSERT(orient !=3D 0, ("No stack grow direction")); =20 if (addrbos < vm_map_min(map) || --dtz4emBHhXMjtfBB Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBAgAGBQJSvDeLAAoJEJDCuSvBvK1BmzMP/idHmUFvFRWBzAfi21cDWRSm pD2en4U0dGNCfky8MOCCLQr4bUVvRU64Nbowy/xtwMkoNMPuuTcBEvRT218J5+de RPs3ekx2Ug/Lhc3KhH2gOF6hJKRMqOWZRuSNISZlJMo9j6X/QPPv2SEmw7GPFnTI yad5u8wbkpg7pUciAENA58ibZrNtOB3WgTZTAPqcHjD5QJbp7j3EtsXOTCcYs4d9 AxPKGjbgbZsYjbZFiTH+A4dMOuIHXyi6rQ1A+XuBS0DaBCaQlsKAp91NqGpX7K/+ NAb6Z3a0E00V2yEXIPeNvKInYQUOBcyEIEJVtJSc9NiMW4e4TXQOWV7Z9vNGnpnP 61DMNPelaHz73RI2KS5MziQ+3l+q/Y6SschdyI2MtbV9sb+bGYoWQVsF0+V+4VUe CX5jQhoQ+h1HtjJj1+SH0yg3OcWQOc03b6N17uBU2daFuz8hP/MF+X1s+PH0Cd8k s9d59HOd6/Et7OTpzKB+IM5CfzwDm25eCkgu3vYTRlT8M2wsY6KrjMWdbiKOwe0k vSPLBUrt9XNU8Bc9q1yLK/Q9CwomNYHK+eM007i3ojGYZiqWRUb4u7d5BfcNVVuf S+XtQv7Zd/dmLiZEeVthZDbYHmz+gnes84DHLvMKt33eo9/84g+pER3HHjUo2aHR Bi2kLxBcL5Jyn98r0zYt =YDEG -----END PGP SIGNATURE----- --dtz4emBHhXMjtfBB-- From owner-freebsd-java@FreeBSD.ORG Thu Dec 26 14:33:00 2013 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1D303854; Thu, 26 Dec 2013 14:33:00 +0000 (UTC) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 9D4591554; Thu, 26 Dec 2013 14:32:58 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id QAA25699; Thu, 26 Dec 2013 16:32:55 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1VwBzb-0005CT-Ef; Thu, 26 Dec 2013 16:32:55 +0200 Message-ID: <52BC3DDF.4060503@FreeBSD.org> Date: Thu, 26 Dec 2013 16:31:59 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Konstantin Belousov Subject: Re: latest openjdk7 triggers kernel panic References: <52BC1B41.2060900@FreeBSD.org> <20131226140500.GM59496@kib.kiev.ua> In-Reply-To: <20131226140500.GM59496@kib.kiev.ua> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alan Cox , FreeBSD Current , peter@FreeBSD.org, Marcel Moolenaar , freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Dec 2013 14:33:00 -0000 on 26/12/2013 16:05 Konstantin Belousov said the following: > I provided the following patch yesterday to Peter, after the similar mail. > > diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c > index e3842a3..51b60de 100644 > --- a/sys/vm/vm_map.c > +++ b/sys/vm/vm_map.c > @@ -1207,6 +1207,7 @@ charged: > } > else if ((prev_entry != &map->header) && > (prev_entry->eflags == protoeflags) && > + (cow & (MAP_ENTRY_GROWS_DOWN | MAP_ENTRY_GROWS_UP)) == 0 && > (prev_entry->end == start) && > (prev_entry->wired_count == 0) && > (prev_entry->cred == cred || > > But there were no core dump available, and I think that your note is also > valid. I do not see why cow should be cleared from the stack direction > bits. > > diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c > index e3842a3..e15e0ca 100644 > --- a/sys/vm/vm_map.c > +++ b/sys/vm/vm_map.c > @@ -3339,7 +3340,6 @@ vm_map_stack(vm_map_t map, vm_offset_t addrbos, vm_size_t max_ssize, > * NOTE: We explicitly allow bi-directional stacks. > */ > orient = cow & (MAP_STACK_GROWS_DOWN|MAP_STACK_GROWS_UP); > - cow &= ~orient; > KASSERT(orient != 0, ("No stack grow direction")); > > if (addrbos < vm_map_min(map) || > I can confirm that the patch fixes the problem for me. Thanks! -- Andriy Gapon From owner-freebsd-java@FreeBSD.ORG Thu Dec 26 15:39:46 2013 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BB456524; Thu, 26 Dec 2013 15:39:46 +0000 (UTC) Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com [IPv6:2a00:1450:400c:c05::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B6D4019D5; Thu, 26 Dec 2013 15:39:45 +0000 (UTC) Received: by mail-wi0-f172.google.com with SMTP id en1so13497297wid.5 for ; Thu, 26 Dec 2013 07:39:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=WxkFRuYD2rXO6ijO1Woim3F853XZukZr/jd9iisBF/I=; b=mAj1hxNVOuw/1WtsQFS0nIfkZxby3AFB3YhFYS76znlhCflDXboYIuQ8nPNZ6EkYNf aP/hmXSCz+8zt6hdMla0m8FvLgHzycwlfRD+yxo6PIGpF6z5N68mMRTFR01vRoHuMfA0 LZeVLigb10FveZ4dVb17/8AYyhYt3N7a2R0dF973tfGe6MypXJUoLYN5I1Fa2/hUizbF ccD0LWJtb+vXjW0qsE6vpcOHHel3f8H2pbA79z1cwQKwCRCcUT1aTP+fmdLk5skXzdT6 Kb7K3Mc/V8jPQ/aEi43B065kDa9OepekW174NZrrtRtctDsK0tM3n/lnv6twX5Hl3Gmo 1T5w== MIME-Version: 1.0 X-Received: by 10.180.95.162 with SMTP id dl2mr30011034wib.17.1388072383104; Thu, 26 Dec 2013 07:39:43 -0800 (PST) Sender: antoine.brodin.freebsd@gmail.com Received: by 10.194.33.37 with HTTP; Thu, 26 Dec 2013 07:39:43 -0800 (PST) In-Reply-To: <52BC1B41.2060900@FreeBSD.org> References: <52BC1B41.2060900@FreeBSD.org> Date: Thu, 26 Dec 2013 16:39:43 +0100 X-Google-Sender-Auth: mvFDT5gns5K4BqeqtPqBgzw9mQk Message-ID: Subject: Re: latest openjdk7 triggers kernel panic From: Antoine Brodin To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Cc: Alan Cox , FreeBSD Current , Marcel Moolenaar , freebsd-java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Dec 2013 15:39:46 -0000 On Thu, Dec 26, 2013 at 1:04 PM, Andriy Gapon wrote: > > I am running FreeBSD based on the head from a few weeks ago, amd64. > > It seems that after a recent upgrade of openjdk7 I consistently get a kernel > panic when a java process starts: > > panic: Bad entry start/end for new stack entry > KDB: stack backtrace: > db_trace_self_wrapper() at 0xffffffff803adc9b = db_trace_self_wrapper+0x2b/frame > 0xfffffe02ba6fe6e0 > kdb_backtrace() at 0xffffffff805cbd79 = kdb_backtrace+0x39/frame 0xfffffe02ba6fe790 > panic() at 0xffffffff80597733 = panic+0x1a3/frame 0xfffffe02ba6fe810 > vm_map_stack() at 0xffffffff80719f2e = vm_map_stack+0x3ce/frame 0xfffffe02ba6fe8a0 > vm_mmap() at 0xffffffff8071c270 = vm_mmap+0x520/frame 0xfffffe02ba6fea30 > sys_mmap() at 0xffffffff8071bad3 = sys_mmap+0x303/frame 0xfffffe02ba6feaf0 > amd64_syscall() at 0xffffffff8074d0c8 = amd64_syscall+0x238/frame 0xfffffe02ba6febf0 > Xfast_syscall() at 0xffffffff80733e2b = Xfast_syscall+0xfb/frame 0xfffffe02ba6febf0 > > Specifically, new_entry->end != top condition is true. > new_entry->end is consistently greater than top by 3 pages. > > I suspect that java now does some hacky things with its stack and I suspect that > vm_map_simplify_entry() call at the end of vm_map_insert() could be to blame. > Although, the call is guarded by a check: > > 1290 /* > 1291 * It may be possible to merge the new entry with the next and/or > 1292 * previous entries. However, due to MAP_STACK_* being a hack, a > 1293 * panic can result from merging such entries. > 1294 */ > 1295 if ((cow & (MAP_STACK_GROWS_DOWN | MAP_STACK_GROWS_UP)) == 0) > 1296 vm_map_simplify_entry(map, new_entry); > > But that check seems to be defeated by the fact that vm_map_stack() clears our > the relevant bits after saving them locally: > > 3335 /* > 3336 * The stack orientation is piggybacked with the cow argument. > 3337 * Extract it into orient and mask the cow argument so that we > 3338 * don't pass it around further. > 3339 * NOTE: We explicitly allow bi-directional stacks. > 3340 */ > 3341 orient = cow & (MAP_STACK_GROWS_DOWN|MAP_STACK_GROWS_UP); > 3342 cow &= ~orient; Hello, FWIW, I had a similar panic today on 9.2-RELEASE with a GENERIC kernel: panic: Bad entry start/end for new stack entry cpuid = 1 KDB: stack backtrace: #0 0xffffffff80947986 at kdb_backtrace+0x66 #1 0xffffffff8090d9ae at panic+0x1ce #2 0xffffffff80b81314 at vm_map_stack+0x274 #3 0xffffffff80b83584 at vm_mmap+0x674 #4 0xffffffff80b83d2f at sys_mmap+0x1cf #5 0xffffffff80cf187a at amd64_syscall+0x5ea #6 0xffffffff80cdbff7 at Xfast_syscall+0xf7 It looks like the box was compiling java related ports (java/jaxen and devel/antlr) when it panic'ed. Cheers, Antoine From owner-freebsd-java@FreeBSD.ORG Thu Dec 26 16:28:00 2013 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 76A04C7F; Thu, 26 Dec 2013 16:28:00 +0000 (UTC) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2D34F1E26; Thu, 26 Dec 2013 16:28:00 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.82) with esmtp (envelope-from ) id <1VwDmq-000AxC-9i>; Thu, 26 Dec 2013 17:27:52 +0100 Received: from g225158197.adsl.alicedsl.de ([92.225.158.197] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.82) with esmtpsa (envelope-from ) id <1VwDmq-000TfI-4f>; Thu, 26 Dec 2013 17:27:52 +0100 Date: Thu, 26 Dec 2013 17:27:47 +0100 From: "O. Hartmann" To: Andriy Gapon Subject: Re: latest openjdk7 triggers kernel panic Message-ID: <20131226172747.12138d4c@thor.walstatt.dyndns.org> In-Reply-To: <52BC1B41.2060900@FreeBSD.org> References: <52BC1B41.2060900@FreeBSD.org> Organization: FU Berlin X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/.owTiuHktt=aDC6l_TwWUM9"; protocol="application/pgp-signature" X-Originating-IP: 92.225.158.197 X-ZEDAT-Hint: A Cc: Alan Cox , FreeBSD Current , Marcel Moolenaar , freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Dec 2013 16:28:00 -0000 --Sig_/.owTiuHktt=aDC6l_TwWUM9 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 26 Dec 2013 14:04:17 +0200 Andriy Gapon wrote: >=20 > I am running FreeBSD based on the head from a few weeks ago, amd64. >=20 > It seems that after a recent upgrade of openjdk7 I consistently get a > kernel panic when a java process starts: >=20 > panic: Bad entry start/end for new stack entry > KDB: stack backtrace: > db_trace_self_wrapper() at 0xffffffff803adc9b =3D > db_trace_self_wrapper+0x2b/frame 0xfffffe02ba6fe6e0 > kdb_backtrace() at 0xffffffff805cbd79 =3D kdb_backtrace+0x39/frame > 0xfffffe02ba6fe790 panic() at 0xffffffff80597733 =3D panic+0x1a3/frame > 0xfffffe02ba6fe810 vm_map_stack() at 0xffffffff80719f2e =3D > vm_map_stack+0x3ce/frame 0xfffffe02ba6fe8a0 vm_mmap() at > 0xffffffff8071c270 =3D vm_mmap+0x520/frame 0xfffffe02ba6fea30 > sys_mmap() at 0xffffffff8071bad3 =3D sys_mmap+0x303/frame > 0xfffffe02ba6feaf0 amd64_syscall() at 0xffffffff8074d0c8 =3D > amd64_syscall+0x238/frame 0xfffffe02ba6febf0 Xfast_syscall() at > 0xffffffff80733e2b =3D Xfast_syscall+0xfb/frame 0xfffffe02ba6febf0 >=20 > Specifically, new_entry->end !=3D top condition is true. > new_entry->end is consistently greater than top by 3 pages. >=20 > I suspect that java now does some hacky things with its stack and I > suspect that vm_map_simplify_entry() call at the end of > vm_map_insert() could be to blame. Although, the call is guarded by a > check: >=20 > 1290 /* > 1291 * It may be possible to merge the new entry with the > next and/or 1292 * previous entries. However, due to > MAP_STACK_* being a hack, a 1293 * panic can result from > merging such entries. 1294 */ > 1295 if ((cow & (MAP_STACK_GROWS_DOWN | MAP_STACK_GROWS_UP)) > =3D=3D 0) 1296 vm_map_simplify_entry(map, new_entry); >=20 > But that check seems to be defeated by the fact that vm_map_stack() > clears our the relevant bits after saving them locally: >=20 > 3335 /* > 3336 * The stack orientation is piggybacked with the cow > argument. 3337 * Extract it into orient and mask the cow > argument so that we 3338 * don't pass it around further. > 3339 * NOTE: We explicitly allow bi-directional stacks. > 3340 */ > 3341 orient =3D cow & (MAP_STACK_GROWS_DOWN|MAP_STACK_GROWS_UP); > 3342 cow &=3D ~orient; >=20 I see a similar situation on FreeBSD 11.0-CURRENT #3 r259845: Tue Dec 24 23:40:13 CET 2013 amd64 The crash can be easily triggered by starting any JAVA application (I'm running lates java/openjdk6 from ports). The problem also occurs when loading very large images in firefox (/www/firefox, lates from ports, I looked at some Hubble Space Telescope pictures when I triggered the crash). Oliver --Sig_/.owTiuHktt=aDC6l_TwWUM9 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQEcBAEBAgAGBQJSvFkHAAoJEOgBcD7A/5N87WgH/jiqXFC0Gs+FQDKi9aIiRznE GHXpiNp45IfuJZmgE1FB13apSmje+s/Oh/MepH9dLbhx1XRYLtk1eVDWjmPQm/Sk YnA4J4PveobwbgQGt458Fbh5AVpjsEIvYLuOs1/08yBNeOfZM2NuhgOvzuCMz0uX PsmcE1TKEvYN07YAyvnF9pYqpLfVzU+lMc1m8sHX+Fnbk0xhrLAPpseTG85f3oxH MDiQEQa3BDEqOOldYnOpD3CMEREYojsKqCxmkrDXHZbDEx5WGRwSWbwBy5h97zP/ dYsnjjFx234PLbFp6sLThQNbQBHJKlFDHDax7Us9hlCA0SFvNK6rYjAselSi9lA= =wgR0 -----END PGP SIGNATURE----- --Sig_/.owTiuHktt=aDC6l_TwWUM9-- From owner-freebsd-java@FreeBSD.ORG Thu Dec 26 18:33:02 2013 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2556F14B for ; Thu, 26 Dec 2013 18:33:02 +0000 (UTC) Received: from mail-pb0-x22e.google.com (mail-pb0-x22e.google.com [IPv6:2607:f8b0:400e:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E984D1786 for ; Thu, 26 Dec 2013 18:33:01 +0000 (UTC) Received: by mail-pb0-f46.google.com with SMTP id md12so8492429pbc.33 for ; Thu, 26 Dec 2013 10:33:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wemm.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pcCoX9LI934xtrjsYef6aoJkiwQG8As2FOfOWNIlno4=; b=QUWdjvUdoeag8Qjb5G3/IkcRfjg0MGYzcUVfnjb8G/IVjvf6xb89KY4Sae1knUsaVi MmI8lEQSU9lr55O2E6in/LDYrFlXculgYqvXs6zb6C6s8yeYmM19edhrayNCPOdDWU9+ JuzSDv05VKBnjNg1QWnwnuFm+AEcvt2KI09KM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=pcCoX9LI934xtrjsYef6aoJkiwQG8As2FOfOWNIlno4=; b=DCZrbCyuhcg+pe4B9ZgXse38+bnYWs6LVAjpg4IQKMPvgG2pqzD6tjFHNsVdWhehcY xbIbb4IKTx/dLgHcaMKF8bSQRKbRVbevE+Lw7VBneJo/i1TqpAZNO10jVVHqs0dbfa3y FfshqNns58LLdpsMQGa9bG34UG0cTXsVG3JigPXTeRrLN8FAPwvq/iIYWgYiOmcVXHfb Ygvm9DnuarS7XWFgf3h/9NUpH7Q145WKjfW6e52eeVWbQ1X4f6Vz+4Lz0iWhkvE1V2he zkvdCVFaXlfra4/H/GOF2+fATeYuafpO4wttUp/kS/V/NfcEg5Dw6hiRBP8Sa/e1uHZZ 2+UA== X-Gm-Message-State: ALoCoQmeCn/T8S0Z9wQp6+opygOXZKVojvsEaiCSwmz9p+XbU+7t+42jud7JIoqteqqe/jFeo6dz MIME-Version: 1.0 X-Received: by 10.68.20.1 with SMTP id j1mr46366118pbe.148.1388082781554; Thu, 26 Dec 2013 10:33:01 -0800 (PST) Received: by 10.66.162.3 with HTTP; Thu, 26 Dec 2013 10:33:01 -0800 (PST) In-Reply-To: References: <52BC1B41.2060900@FreeBSD.org> Date: Thu, 26 Dec 2013 10:33:01 -0800 Message-ID: Subject: Re: latest openjdk7 triggers kernel panic From: Peter Wemm To: Antoine Brodin Content-Type: text/plain; charset=ISO-8859-1 Cc: Alan Cox , Marcel Moolenaar , FreeBSD Current , Andriy Gapon , freebsd-java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Dec 2013 18:33:02 -0000 On Thu, Dec 26, 2013 at 7:39 AM, Antoine Brodin wrote: > On Thu, Dec 26, 2013 at 1:04 PM, Andriy Gapon wrote: ... > Hello, > > FWIW, I had a similar panic today on 9.2-RELEASE with a GENERIC kernel: > panic: Bad entry start/end for new stack entry > cpuid = 1 > KDB: stack backtrace: > #0 0xffffffff80947986 at kdb_backtrace+0x66 > #1 0xffffffff8090d9ae at panic+0x1ce > #2 0xffffffff80b81314 at vm_map_stack+0x274 > #3 0xffffffff80b83584 at vm_mmap+0x674 > #4 0xffffffff80b83d2f at sys_mmap+0x1cf > #5 0xffffffff80cf187a at amd64_syscall+0x5ea > #6 0xffffffff80cdbff7 at Xfast_syscall+0xf7 > > It looks like the box was compiling java related ports (java/jaxen and > devel/antlr) when it panic'ed. This is troubling. I'm wondering what's changed and why we haven't seen this before. Just so I'm clear, you're building 9.2 ports on a 9.2-REL kernel, right? and not something like building 9.2-REL ports inside a jail on a 10.x or 11.x host? 10.x / 11.x are not involved and you're seeing this? -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI6FJV From owner-freebsd-java@FreeBSD.ORG Thu Dec 26 18:51:48 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7BF737CE; Thu, 26 Dec 2013 18:51:48 +0000 (UTC) Received: from mail-wg0-x229.google.com (mail-wg0-x229.google.com [IPv6:2a00:1450:400c:c00::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7958318D3; Thu, 26 Dec 2013 18:51:47 +0000 (UTC) Received: by mail-wg0-f41.google.com with SMTP id y10so11606873wgg.4 for ; Thu, 26 Dec 2013 10:51:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Zre8wczz7Cjo2z/gHZ/nYWASQUjShbmGolkLvJmfxYc=; b=qLV6jFq+rOQM2+lcQqXSopQCGScEbByIxE5Y8ynhAPWjwLr5hghDmF+VWZkJ87+gvQ dNPusmbZI5mVEqBebfjIzj0/Dk6wzJmmSicwIZ4Bk3j63A3nYN5/Dqw67FB9NvsOgCHc n5cmYQltjBC6h7EP7atphJYQBNo7VDQf3irDax3MT6nNh5OeX4p47MSA3qgIOvvZLAJJ hyeKa+pacsj7wJERl4KUp7DJ+pUos9fjvA2PtL8nTWyyX/X8ZEqmVjeZeCKLKZuAXSfs sXcT17sYhLIYVyGSrkm3/FltPPcnhlx9rUpybBXt4GNScyCLzkA86BGiTO6uO+8ZY94B bJnA== MIME-Version: 1.0 X-Received: by 10.180.205.138 with SMTP id lg10mr29572567wic.30.1388083906010; Thu, 26 Dec 2013 10:51:46 -0800 (PST) Sender: antoine.brodin.freebsd@gmail.com Received: by 10.194.33.37 with HTTP; Thu, 26 Dec 2013 10:51:45 -0800 (PST) In-Reply-To: References: <52BC1B41.2060900@FreeBSD.org> Date: Thu, 26 Dec 2013 19:51:45 +0100 X-Google-Sender-Auth: IK8IS3hZxbtIF2GuvzJxT7fUTWk Message-ID: Subject: Re: latest openjdk7 triggers kernel panic From: Antoine Brodin To: Peter Wemm Content-Type: text/plain; charset=ISO-8859-1 Cc: Alan Cox , Marcel Moolenaar , FreeBSD Current , Andriy Gapon , freebsd-java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Dec 2013 18:51:48 -0000 On Thu, Dec 26, 2013 at 7:33 PM, Peter Wemm wrote: > On Thu, Dec 26, 2013 at 7:39 AM, Antoine Brodin wrote: >> On Thu, Dec 26, 2013 at 1:04 PM, Andriy Gapon wrote: > ... >> Hello, >> >> FWIW, I had a similar panic today on 9.2-RELEASE with a GENERIC kernel: >> panic: Bad entry start/end for new stack entry >> cpuid = 1 >> KDB: stack backtrace: >> #0 0xffffffff80947986 at kdb_backtrace+0x66 >> #1 0xffffffff8090d9ae at panic+0x1ce >> #2 0xffffffff80b81314 at vm_map_stack+0x274 >> #3 0xffffffff80b83584 at vm_mmap+0x674 >> #4 0xffffffff80b83d2f at sys_mmap+0x1cf >> #5 0xffffffff80cf187a at amd64_syscall+0x5ea >> #6 0xffffffff80cdbff7 at Xfast_syscall+0xf7 >> >> It looks like the box was compiling java related ports (java/jaxen and >> devel/antlr) when it panic'ed. > > This is troubling. I'm wondering what's changed and why we haven't > seen this before. > > Just so I'm clear, you're building 9.2 ports on a 9.2-REL kernel, > right? and not something like building 9.2-REL ports inside a jail on > a 10.x or 11.x host? 10.x / 11.x are not involved and you're seeing > this? This is 9.2-REL host and kernel. The only thing "new" is the ports tree, ports tree from 20 december didn't make the box panic while ports tree from 26 december does. (and there was an openjdk update between) Cheers, Antoine From owner-freebsd-java@FreeBSD.ORG Thu Dec 26 20:01:54 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 45515600; Thu, 26 Dec 2013 20:01:54 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BF7F61E56; Thu, 26 Dec 2013 20:01:53 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.7/8.14.7) with ESMTP id rBQK1iUL074098; Thu, 26 Dec 2013 22:01:44 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua rBQK1iUL074098 Received: (from kostik@localhost) by tom.home (8.14.7/8.14.7/Submit) id rBQK1iaG074097; Thu, 26 Dec 2013 22:01:44 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 26 Dec 2013 22:01:44 +0200 From: Konstantin Belousov To: Antoine Brodin Subject: Re: latest openjdk7 triggers kernel panic Message-ID: <20131226200144.GP59496@kib.kiev.ua> References: <52BC1B41.2060900@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="p2BUbKl1Fxnzi6Vs" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: Marcel Moolenaar , Peter Wemm , Alan Cox , Andriy Gapon , FreeBSD Current , freebsd-java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Dec 2013 20:01:54 -0000 --p2BUbKl1Fxnzi6Vs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 26, 2013 at 07:51:45PM +0100, Antoine Brodin wrote: > On Thu, Dec 26, 2013 at 7:33 PM, Peter Wemm wrote: > > On Thu, Dec 26, 2013 at 7:39 AM, Antoine Brodin w= rote: > >> On Thu, Dec 26, 2013 at 1:04 PM, Andriy Gapon wrote: > > ... > >> Hello, > >> > >> FWIW, I had a similar panic today on 9.2-RELEASE with a GENERIC kerne= l: > >> panic: Bad entry start/end for new stack entry > >> cpuid =3D 1 > >> KDB: stack backtrace: > >> #0 0xffffffff80947986 at kdb_backtrace+0x66 > >> #1 0xffffffff8090d9ae at panic+0x1ce > >> #2 0xffffffff80b81314 at vm_map_stack+0x274 > >> #3 0xffffffff80b83584 at vm_mmap+0x674 > >> #4 0xffffffff80b83d2f at sys_mmap+0x1cf > >> #5 0xffffffff80cf187a at amd64_syscall+0x5ea > >> #6 0xffffffff80cdbff7 at Xfast_syscall+0xf7 > >> > >> It looks like the box was compiling java related ports (java/jaxen and > >> devel/antlr) when it panic'ed. > > > > This is troubling. I'm wondering what's changed and why we haven't > > seen this before. Well, if MAP_STACK was started used only with update, or the condition for coalescing only holds due to changes in the update, this is not much strange. > > > > Just so I'm clear, you're building 9.2 ports on a 9.2-REL kernel, > > right? and not something like building 9.2-REL ports inside a jail on > > a 10.x or 11.x host? 10.x / 11.x are not involved and you're seeing > > this? >=20 >=20 > This is 9.2-REL host and kernel. > The only thing "new" is the ports tree, ports tree from 20 december > didn't make the box panic while ports tree from 26 december does. > (and there was an openjdk update between) I can only repost the following patch. It should be applicable to 9 as well. diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index e3842a3..e15e0ca 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -1207,6 +1207,7 @@ charged: } else if ((prev_entry !=3D &map->header) && (prev_entry->eflags =3D=3D protoeflags) && + (cow & (MAP_ENTRY_GROWS_DOWN | MAP_ENTRY_GROWS_UP)) =3D=3D 0 && (prev_entry->end =3D=3D start) && (prev_entry->wired_count =3D=3D 0) && (prev_entry->cred =3D=3D cred || @@ -3339,7 +3340,6 @@ vm_map_stack(vm_map_t map, vm_offset_t addrbos, vm_si= ze_t max_ssize, * NOTE: We explicitly allow bi-directional stacks. */ orient =3D cow & (MAP_STACK_GROWS_DOWN|MAP_STACK_GROWS_UP); - cow &=3D ~orient; KASSERT(orient !=3D 0, ("No stack grow direction")); =20 if (addrbos < vm_map_min(map) || --p2BUbKl1Fxnzi6Vs Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBAgAGBQJSvIsnAAoJEJDCuSvBvK1BwfkP/i2CGur+KfR139SWuamvrEoa fhTunJH6e9yzoLi81jeq8QTfCHGb9Hnd8XHYO8acu843bJBrv5Czc3at3phXFc/G WrmsDCOzw3sMxAlmi+iiBg9H4QEMAFeClVlH5pPTdRRcOytKBw7n/Q7+tLuuBmDu +L+hHZ8VlOhYuIZE/zZQGDjNlb5ZRbKCNZTed1Pl7Td0zy2l1VNIsu2DzL3rBpFU HkRM4XzYPtCotPK3x3YsvQFWZTSyYx2/IfwBISa/7svIJwQQj/zsdurQPqPvYxpy cmA4NORMWCFhaEtMXSNnhjRz3vYhLKW7KjqyGfhPVX9gwYeXe5XR1TZ7BEY01qHx yp9sLRllrv8rjxwitZjeBks6DirxqfQbqnMNEJky4hWdbBrf2FkurgEvbebf6l+e /X3nWFqTZpDyqmfVXkE5r0Wfna57WGO9Lh+bUjdxl4NWZ7BGuq1YeYatOOvqFu26 ox0+xFS2UUYcQCEz9lds/SPQZKI84fG0f7mZRE5UPW5HsMrLfyKcnoEwq4Rj9rDf ps9RI9156IiJpM7zCtqmVc1tBZuH0AH8+nOIST8ebTs44PdLjSPYPKh+ZMHjx9s6 15Cfa6fUpwa8uZeVBRmCcTPN/EZuUzdI6gDAp9CmSzUY9RGtabMvi1L9ewnoY43M X8+6j0KKdq108HP1PpL3 =YkbL -----END PGP SIGNATURE----- --p2BUbKl1Fxnzi6Vs-- From owner-freebsd-java@FreeBSD.ORG Thu Dec 26 20:43:41 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 93318F1F for ; Thu, 26 Dec 2013 20:43:41 +0000 (UTC) Received: from mail-pd0-x231.google.com (mail-pd0-x231.google.com [IPv6:2607:f8b0:400e:c02::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4535710B7 for ; Thu, 26 Dec 2013 20:43:41 +0000 (UTC) Received: by mail-pd0-f177.google.com with SMTP id q10so8285600pdj.22 for ; Thu, 26 Dec 2013 12:43:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wemm.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=onR8rAGuFhoYtlVFiqUenroUMeZKY/Rxhtl5SaGr0jo=; b=co9H9U8xxuXr3/a4mDivSvKQ7mv3XyNvwbQEV7wXo3s4Klxgdv1Vuk0At7RBhDqxeB 3auODLpcQFSaWEPFZEgCnz6qzvYnam1fclnA3I8ZCOVfPhMpwVz+FzCzc51PxZFb7dcB 14FAtHvcIILYWGScDF12LdfKnaegRY1i05NS0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=onR8rAGuFhoYtlVFiqUenroUMeZKY/Rxhtl5SaGr0jo=; b=mIj1Ny9Tazbl+yqpZKzJydnn3db4eUpvj10hrJ9LM0BS2/riyQeIa6eHi+ihKdy+Nm ZSgLwuZsVUza4SDPcjTFATPt2g3IEsc28ODT3gBZvbS5lf1QkHqA6Av5OmTILTUeP8/5 9fto8ICEit+gWshJGOlxjy3XuGDZD15ylHsG4yUj8mYND5GihR6y2qP5ddEKrjutrviu LL/N2dWe13EwB4eGadH1fH3QLszABFpeKVSIQL3PLrIdGEmQSsKrEIW0YIC15WQrJZWs 5tMyAaiPEl9z46ijQ3skGtm9GDWoRDBBY1KByzuTAb8BGHwOzWNbD4OjBZFd83JMERo/ 0snA== X-Gm-Message-State: ALoCoQl7xmmskDaNMfzEDTZc470eAqKzq78Ix9yVyd1trJshNu+9GQaY1o7tTzesCJam+tZ/ZKx1 MIME-Version: 1.0 X-Received: by 10.68.193.233 with SMTP id hr9mr46841460pbc.26.1388090620835; Thu, 26 Dec 2013 12:43:40 -0800 (PST) Received: by 10.66.162.3 with HTTP; Thu, 26 Dec 2013 12:43:40 -0800 (PST) In-Reply-To: <20131226200144.GP59496@kib.kiev.ua> References: <52BC1B41.2060900@FreeBSD.org> <20131226200144.GP59496@kib.kiev.ua> Date: Thu, 26 Dec 2013 12:43:40 -0800 Message-ID: Subject: Re: latest openjdk7 triggers kernel panic From: Peter Wemm To: Konstantin Belousov Content-Type: text/plain; charset=ISO-8859-1 Cc: Antoine Brodin , Marcel Moolenaar , Alan Cox , Andriy Gapon , FreeBSD Current , freebsd-java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Dec 2013 20:43:41 -0000 On Thu, Dec 26, 2013 at 12:01 PM, Konstantin Belousov wrote: > On Thu, Dec 26, 2013 at 07:51:45PM +0100, Antoine Brodin wrote: >> On Thu, Dec 26, 2013 at 7:33 PM, Peter Wemm wrote: >> > On Thu, Dec 26, 2013 at 7:39 AM, Antoine Brodin wrote: >> >> On Thu, Dec 26, 2013 at 1:04 PM, Andriy Gapon wrote: >> > ... >> >> Hello, >> >> >> >> FWIW, I had a similar panic today on 9.2-RELEASE with a GENERIC kernel: >> >> panic: Bad entry start/end for new stack entry >> >> cpuid = 1 >> >> KDB: stack backtrace: >> >> #0 0xffffffff80947986 at kdb_backtrace+0x66 >> >> #1 0xffffffff8090d9ae at panic+0x1ce >> >> #2 0xffffffff80b81314 at vm_map_stack+0x274 >> >> #3 0xffffffff80b83584 at vm_mmap+0x674 >> >> #4 0xffffffff80b83d2f at sys_mmap+0x1cf >> >> #5 0xffffffff80cf187a at amd64_syscall+0x5ea >> >> #6 0xffffffff80cdbff7 at Xfast_syscall+0xf7 >> >> >> >> It looks like the box was compiling java related ports (java/jaxen and >> >> devel/antlr) when it panic'ed. >> > >> > This is troubling. I'm wondering what's changed and why we haven't >> > seen this before. > Well, if MAP_STACK was started used only with update, or the condition > for coalescing only holds due to changes in the update, this is not > much strange. openjdk7 doesn't appear to use MAP_STACK itself. The mmap(.. MAP_STACK..) caller looks like it is libthr. The only odd thing that stood with a quick browse of the code was that openjdk tinkers with mprotect() for "stack guard pages". These will presumably be right on the boundaries of the stacks. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI6FJV From owner-freebsd-java@FreeBSD.ORG Thu Dec 26 21:22:32 2013 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8225FE0D; Thu, 26 Dec 2013 21:22:32 +0000 (UTC) Received: from mircat.net (mircat.net [81.9.105.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0A14A130D; Thu, 26 Dec 2013 21:22:31 +0000 (UTC) Received: from [192.168.0.77] (port=35584 helo=dooku.mircat.net) by mircat.net with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.77) (envelope-from ) id 1VwI8C-000OqY-EB; Fri, 27 Dec 2013 01:06:12 +0400 Message-ID: <52BC9A44.9030104@samersoff.net> Date: Fri, 27 Dec 2013 01:06:12 +0400 From: Dmitry Samersoff User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Antoine Brodin , Peter Wemm Subject: Re: latest openjdk7 triggers kernel panic References: <52BC1B41.2060900@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: dms@mircat.net Cc: Alan Cox , freebsd-java@freebsd.org, Marcel Moolenaar , Andriy Gapon , FreeBSD Current X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Dec 2013 21:22:32 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Antonie, Do you know which java process is running (if any) when kernel panics? Please, look around - is there any hs_err_.log files in your system. jvm do some tricky things when setting up stack guard pages and it worth to take a look at it. - -Dmitry On 2013-12-26 22:51, Antoine Brodin wrote: > On Thu, Dec 26, 2013 at 7:33 PM, Peter Wemm > wrote: >> On Thu, Dec 26, 2013 at 7:39 AM, Antoine Brodin >> wrote: >>> On Thu, Dec 26, 2013 at 1:04 PM, Andriy Gapon >>> wrote: >> ... >>> Hello, >>> >>> FWIW, I had a similar panic today on 9.2-RELEASE with a >>> GENERIC kernel: panic: Bad entry start/end for new stack entry >>> cpuid = 1 KDB: stack backtrace: #0 0xffffffff80947986 at >>> kdb_backtrace+0x66 #1 0xffffffff8090d9ae at panic+0x1ce #2 >>> 0xffffffff80b81314 at vm_map_stack+0x274 #3 0xffffffff80b83584 >>> at vm_mmap+0x674 #4 0xffffffff80b83d2f at sys_mmap+0x1cf #5 >>> 0xffffffff80cf187a at amd64_syscall+0x5ea #6 0xffffffff80cdbff7 >>> at Xfast_syscall+0xf7 >>> >>> It looks like the box was compiling java related ports >>> (java/jaxen and devel/antlr) when it panic'ed. >> >> This is troubling. I'm wondering what's changed and why we >> haven't seen this before. >> >> Just so I'm clear, you're building 9.2 ports on a 9.2-REL >> kernel, right? and not something like building 9.2-REL ports >> inside a jail on a 10.x or 11.x host? 10.x / 11.x are not >> involved and you're seeing this? > > > This is 9.2-REL host and kernel. The only thing "new" is the ports > tree, ports tree from 20 december didn't make the box panic while > ports tree from 26 december does. (and there was an openjdk update > between) > > Cheers, > > Antoine _______________________________________________ > 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" > - -- Dmitry Samersoff Saint Petersburg, Russia, http://devnull.samersoff.net * There will come soft rains ... -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJSvJpEAAoJEHEy08c4gIAByzUH/17kE0Cod8PimaCoS//APCk8 dCw9UJpFPDxp6s6pHrQFvZib4vFLBo0p/MMBvw6iiwsZeA4btvYQRwwZ89fM671t uw6Ysu/W1REhN/9wdlyp+DABS/kE4Fig/rEu5qJjjFYbJv1fK9CJgD1NdZRuRapl yphxCDkipYF6utSgwSApHXUgAUiRP4GyfMgYvEeo/SCtq5YWsxgAptoSeHQJRYO9 P05uzAfP3U2WmRlruvYkxyrGpk/ZulQpxNCaJXri9EbKcM3RvybjX2vhv8J4sGPe fHkrVXyGuoCoWDo/ONOn7qIdi8i8S8kT3GXQ1yltDqOquSRYPYML0T+/5VIMcpg= =CRQH -----END PGP SIGNATURE----- From owner-freebsd-java@FreeBSD.ORG Thu Dec 26 23:16:00 2013 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6F417B6A; Thu, 26 Dec 2013 23:16:00 +0000 (UTC) Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2E7D51A41; Thu, 26 Dec 2013 23:16:00 +0000 (UTC) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id BEB04BDC2E; Fri, 27 Dec 2013 00:15:58 +0100 (CET) Received: from atuin.in.mat.cc (atuin.in.mat.cc [79.143.241.205]) by prod2.absolight.net (Postfix) with ESMTPA id 95A07BDC3E; Fri, 27 Dec 2013 00:15:58 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by atuin.in.mat.cc (Postfix) with ESMTP id D8108CABD60A; Fri, 27 Dec 2013 00:15:57 +0100 (CET) Date: Fri, 27 Dec 2013 00:15:55 +0100 From: Mathieu Arnold To: Konstantin Belousov , Andriy Gapon Subject: Re: latest openjdk7 triggers kernel panic Message-ID: <2F4F57F208E9238116DEC001@atuin.in.mat.cc> In-Reply-To: <20131226140500.GM59496@kib.kiev.ua> References: <52BC1B41.2060900@FreeBSD.org> <20131226140500.GM59496@kib.kiev.ua> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Alan Cox , Marcel Moolenaar , FreeBSD Current , peter@freebsd.org, freebsd-java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Dec 2013 23:16:00 -0000 +--On 26 d=C3=A9cembre 2013 16:05:00 +0200 Konstantin Belousov wrote: | But there were no core dump available, and I think that your note is also | valid. I do not see why cow should be cleared from the stack direction | bits. I can provide what I have in /var/crash from a 10.0-RC3, if you like. Regards, --=20 Mathieu Arnold