From owner-freebsd-current@freebsd.org Mon Aug 3 18:19:11 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6CBE93A4360 for ; Mon, 3 Aug 2020 18:19:11 +0000 (UTC) (envelope-from peter@libassi.se) Received: from smtp.outgoing.loopia.se (smtp.outgoing.loopia.se [93.188.3.37]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BL5kQ2N2sz4DYG for ; Mon, 3 Aug 2020 18:19:09 +0000 (UTC) (envelope-from peter@libassi.se) Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id BB67830A6E57 for ; Mon, 3 Aug 2020 20:19:06 +0200 (CEST) Received: from s630.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 9D200308C884; Mon, 3 Aug 2020 20:19:06 +0200 (CEST) Received: from s471.loopia.se (unknown [172.22.191.5]) by s630.loopia.se (Postfix) with ESMTP id 9400D13ABF26; Mon, 3 Aug 2020 20:19:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -0.999 X-Spam-Level: X-Spam-Status: No, score=-0.999 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, HTML_MESSAGE=0.001] autolearn=disabled Received: from s645.loopia.se ([172.22.191.6]) by s471.loopia.se (s471.loopia.se [172.22.190.11]) (amavisd-new, port 10024) with LMTP id xu4fx003xuxg; Mon, 3 Aug 2020 20:19:05 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: peter@libassi.se X-Loopia-Originating-IP: 217.31.161.79 Received: from [10.0.2.62] (h-161-79.A444.priv.bahnhof.se [217.31.161.79]) (Authenticated sender: peter@libassi.se) by s645.loopia.se (Postfix) with ESMTPSA id 9F531156E4BE; Mon, 3 Aug 2020 20:19:05 +0200 (CEST) From: Peter Libassi Message-Id: <0D73201E-8956-4085-81E0-C50FA96C6657@libassi.se> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: vnet/jail crashdump Date: Mon, 3 Aug 2020 20:19:05 +0200 In-Reply-To: Cc: freebsd-current@freebsd.org To: Ronald Klop References: X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 4BL5kQ2N2sz4DYG X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of peter@libassi.se has no SPF policy when checking 93.188.3.37) smtp.mailfrom=peter@libassi.se X-Spamd-Result: default: False [-1.04 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; NEURAL_HAM_MEDIUM(-0.99)[-0.986]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-0.86)[-0.858]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RWL_MAILSPIKE_VERYGOOD(0.00)[93.188.3.37:from]; AUTH_NA(1.00)[]; DMARC_NA(0.00)[libassi.se]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.59)[-0.592]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[93.188.3.37:from]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:39570, ipnet:93.188.2.0/23, country:SE]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Aug 2020 18:19:11 -0000 Looks like bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234985 = = > and=20 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238326 = = > The workaround in Bug 238326 comment 7 worked for me. /Peter > 3 aug. 2020 kl. 19:36 skrev Ronald Klop : >=20 > Hi, >=20 > After stopping a jail I get a crashdump. > core.txt: = https://www.klop.ws/core_2eef39c581f90f2f0c4921e43f1998c1/core.txt.0 >=20 > Jail.conf: > ---------- > exec.stop =3D "/bin/sh /etc/rc.shutdown"; > exec.clean; >=20 > exec.prestart =3D "ifconfig bridge0 > /dev/null 2> /dev/null || ( = ifconfig bridge0 create && ifconfig bridge0 addm vtnet0 && ifconfig = bridge0 up)"; >=20 > exec.consolelog =3D "/var/log/jail_${name}_console.log"; >=20 > mount.devfs; > path =3D "/data/jails/$name"; > host.hostname =3D "$name"; > mount.fstab =3D "/data/jails/fstab.$name"; > vnet; > allow.mlock; > devfs_ruleset=3D"110"; >=20 > freebsd12 { > osrelease =3D 12.1-RELEASE-p4; > osreldate =3D 1201000; > vnet.interface =3D "epair0b"; > # make sure the exec.prestart has a "+=3D" as we de it in the = global definition > # when checking for the bridge > exec.prestart +=3D "ifconfig epair0 create up"; > exec.prestart +=3D "ifconfig bridge0 addm epair0a"; > exec.prestart +=3D "ifconfig epair0b link 02:xxxxxx:0c"; > exec.start =3D "dhclient epair0b"; > exec.start +=3D "/bin/sh /etc/rc"; > exec.poststop =3D "ifconfig bridge0 deletem epair0a"; > exec.poststop +=3D "ifconfig epair0a destroy"; >=20 > } > freebsd13 { > vnet.interface =3D "epair1b"; > # make sure the exec.prestart has a "+=3D" as we de it in the = global definition > # when checking for the bridge > exec.prestart +=3D "ifconfig epair1 create up"; > exec.prestart +=3D "ifconfig bridge0 addm epair1a"; > exec.prestart +=3D "ifconfig epair1b link 02:xxxxxx:0d"; > exec.start =3D "dhclient epair1b"; > exec.start +=3D "/bin/sh /etc/rc"; > exec.poststop =3D "ifconfig bridge0 deletem epair1a"; > exec.poststop +=3D "ifconfig epair1a destroy"; > } > ---------- >=20 > What can I do to help debug? >=20 > Regards, > Ronald. > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org"