From nobody Sat Apr 6 23:52:43 2024 X-Original-To: jail@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VBsbw4pSbz5FdH9 for ; Sat, 6 Apr 2024 23:52:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VBsbw3kpmz4sFH for ; Sat, 6 Apr 2024 23:52:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712447564; a=rsa-sha256; cv=none; b=IAfMsjyLzpdV88MpAy0lPyI9eBlKYWeejqXBqgZT3LzIK0kNqRzjrgrS+OP5RVwgbMlXfG 72ocwQECEWZVVZETcrObhI64jQipupyjvaURNE40Rl/aBASN9UelH5nNCNx5QHLvUP+QcM E/QDJ6oMDrKby29P5I5cBwZvtPJUphwiZWStlwxZPBaxtnPMi2Rtc3R3//q5YasFrykaHB PAySkQrEWfWmuLaPHIji4VA2aU/k7qVx0j+USmpQrk03hwVAViAdRTcH6/lf4kph9p9r7C nVBu4DUyYWlYfWqJ0am88ZfozAk8E8iWQITOOowDPv9nxj3xUMBF9FdNszrfog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712447564; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Qw4lyAen20q8Vc9RBlWFnTwSNE/WCQkEYmdsrrm3HE4=; b=NvwtbfIErnD3h/1Tbvda8PtWQDhK/YQIjv2t9wm4bqd3UoO2jTYaEvgpl66qvu1VDvGlFs D5HMeSMWtBsYqJHmp3C2oxKtliBlmuVYtV6IwVmyID1YPz1KXSK1dPRcYVdTtmg8glyVnL enxQ4z9agt79pVVpPQg6vDO3Fk/F09wGIqpid0nAJPrFH0AFuJEK6uvtB92Fy86sdTIwJz hcwzyzs4PvZNpLKYNKB2c0D8Xf3D2+Vsp9nXWN6jAhcqaU/+YfSI/adKRbY9CGOCm1bCvz UDAQy2t0LorNo5n3+6mD6UO5e+masPn7u2OZJ7ILbnEA9ngQKV9QcCPpvqZ9IQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VBsbw3LXWz14Jk for ; Sat, 6 Apr 2024 23:52:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 436NqiN1041797 for ; Sat, 6 Apr 2024 23:52:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 436Nqi8I041787 for jail@FreeBSD.org; Sat, 6 Apr 2024 23:52:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: jail@FreeBSD.org Subject: [Bug 278195] daemon in jail is exiting without informing that it failed to execute Date: Sat, 06 Apr 2024 23:52:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords short_desc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion about FreeBSD jail(8) List-Archive: https://lists.freebsd.org/archives/freebsd-jail List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-jail@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278195 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Summary|daemon is exiting without |daemon in jail is exiting |informing that it failed to |without informing that it |execute |failed to execute Assignee|bugs@FreeBSD.org |jail@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Apr 7 05:17:40 2024 X-Original-To: jail@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VC0pt46xsz5GCrs for ; Sun, 7 Apr 2024 05:17:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VC0pt1BQzz4Psy for ; Sun, 7 Apr 2024 05:17:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712467062; a=rsa-sha256; cv=none; b=AacqgWPq5eqR1Jd5SYpSeSvpayrN1PG729MTCxoEJ0yMXNpfqZLloGpmwAyS7+I1NkmAfm bkwuHPTcx3XrK1AmyKpm7SQurJrw4VVG7BdiN2zyHDLH3PFzF4ogXAJlXff0uTqoPT+XDx tPeQKnN2wtUEEsvxBrqvDWtT+NHbox7L87XrclU9T3chbhDF8gaEPJykF4Eg8h+e1HmMzD xzyjugR/YHZCYU7dtU/jP72Ct9lhMjSCJmnZSty6QOb95RCZJo8QtSqWahBz5cgNOLEm9l npEoi4Of1AqMAdVnM9kex8tomaH0sFMYEyffc4I87sHfh8eCefB0q1E6qRjmrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712467062; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KhILhzaqoCpu44w6yenzAYfHAb7k1EVotmyQAcHUkLI=; b=X9V9xe+ra96GZymRci4hAdqMVaTSrthhV2AQfJwqbBF0s2w38Z6v0bmGrbJSqBoRh1pRg7 yuibzwcjkqHikAIsjv76KKL395axf+aZMsQB/9qkrZ/ZFHAe2fyHtyETCEa3rTgyDDhr5Z 3D6rB7eS3SyyXz3HpvSK9eSlK/rIat9RzdlyUmdM12FniNmsrjJtmFKPjLF9+jCJHKbYNm YUMO0QyFzcS+DyPRDqwXFExfb/pMAWKEr+zCcci7deH3hsfWVke/mVGp/oUzYbHoPEdthQ eCD6ZFPb6DtRu0zPMlY+bsLWGE7pYOY2iw5U5TGmzlPxYPudUOOzk6RlHt/cew== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VC0pt0mzWzFK1 for ; Sun, 7 Apr 2024 05:17:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4375HgMq054268 for ; Sun, 7 Apr 2024 05:17:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4375Hgii054261 for jail@FreeBSD.org; Sun, 7 Apr 2024 05:17:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: jail@FreeBSD.org Subject: [Bug 278195] daemon in jail is exiting without informing that it failed to execute Date: Sun, 07 Apr 2024 05:17:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: zlei@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion about FreeBSD jail(8) List-Archive: https://lists.freebsd.org/archives/freebsd-jail List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-jail@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278195 Zhenlei Huang changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zlei@FreeBSD.org --- Comment #1 from Zhenlei Huang --- (In reply to skenizen from comment #0) > When launching a daemon in the jail (as a specified user) /usr/sbin/daemo= n was exiting with return code 0 and not outputting anything in the syslogs. > This happened on a jail I've erroneously upgraded from FreeBSD 13.2-RELEA= SE to FreeBSD 13.3-RELEASE on a system host with 13.2-RELEASE. For stable branches, the kernel ABI compatibility ensures that old binaries= can still run on new kernels. i.e., 13.3 kernel with 13.2 userland. But not the opposite. > I've seen other users mentioning similar issues on TrueNAS forums pinpoin= ting to kqueuex() being the culprit for ABI incompatibility (https://www.tr= uenas.com/community/threads/warning-dont-upgrade-your-truenas-core-jails-to= -freebsd-13-3-just-yet.117018). I think that is a good example to illuminate the ABI compatibility issue. > Although my bug report is not about this, but more about the lack of info= rmation on the user that something wrong happened. I'd expect at minimum a = different return code than 0 (and preferably an explicit error in the log t= oo). Run daemon(8) from FreeBSD 13.3 on 13.1: ``` root@:~ # /tmp/daemon -l daemon echo OK ld-elf.so.1: /tmp/daemon: Undefined symbol "kqueuex@FBSD_1.7" ``` The parent does return 0. The child will complain with "Undefined symbol". --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Apr 7 14:44:50 2024 X-Original-To: jail@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VCFPK5p2kz5GxGt for ; Sun, 7 Apr 2024 14:44:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VCFPJ4Pj9z476B for ; Sun, 7 Apr 2024 14:44:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712501092; a=rsa-sha256; cv=none; b=PHdVH5sQldP2UQqJ6LCHka4I7LgyKP2qvpw8ePBBfTQyTznbsZ7NUgbYcNO5QiWI0pNLXl ofpmnNKRyTstoXknL0f+2+vW0jjiTUPVgrQRtUKsVx3hVSfZyfpeViNrnqgubeiPxmunzm sk3+4WjEIrZs0yLn4p4ki6BIAO89HjHYWBVSSV2hmR+1/XzjKphd919MTpK+Du74wIok35 S3nzm8bb0E9Ceo8v+jy/1VWWw+DdIaXVEDceet3iukCSg/rB0WDA9n3KDw92xYlcdFj56e p3NCKAIkLACwIQrxUqYraeVyJUMMnLXDSZIRDHQCrOq1pjHZhVSxZQZNgoFrbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712501092; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c/0JMjztths27zJb5Gf3ZKOhZcXdrv51dxBbQLthdAg=; b=PEj4CVFOKpK+iTOdAkkpC1oGpA9iqUoZPjUTXJQFlebcV8LKIH0/cxSmRJ9eeZG0sywB4+ gF7uUTiU2z12eqvB1hm3x35jjPAnKu658Y0gzHlmaiyRiLJ3cFKGzFICyP5FP4Lk/caKK9 kbvepLDbV9Ois8mfMcZPGnPoxhRF6pj7sCR6SD7sYsHSFIGs7vs1mYWU7e5fx5Sqxg/l3v SRPNzKYO/wcXYT8P8pbJiBOGMIbW2U7/Zu3I7xULdr3g6tHkSIjJUd2g0mb46PhY9Am63g FdtEIDwfhgnO8WDlm3LnlcYpY1OqmILTulsTAhu7gTDcqha02bGFki8muhp0aQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VCFPJ3hTVzXGR for ; Sun, 7 Apr 2024 14:44:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 437EiqQZ031636 for ; Sun, 7 Apr 2024 14:44:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 437EiqCo031605 for jail@FreeBSD.org; Sun, 7 Apr 2024 14:44:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: jail@FreeBSD.org Subject: [Bug 278195] daemon in jail is exiting without informing that it failed to execute Date: Sun, 07 Apr 2024 14:44:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: zlei@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion about FreeBSD jail(8) List-Archive: https://lists.freebsd.org/archives/freebsd-jail List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-jail@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278195 --- Comment #2 from Zhenlei Huang --- > The parent does return 0. The child will complain with "Undefined symbol". truss(1) shows that clearly. ``` # truss -f /tmp/daemon -l daemon echo OK ... 1543: sigaction(SIGHUP,{ SIG_IGN 0x0 ss_t },{ SIG_IGN SA_RESTART ss_t }) = =3D 0 (0x0) 1544: 1543: fork() =3D 1544 (0x608) 1544: setsid() =3D 1544 (0x608) 1544: sigaction(SIGHUP,{ SIG_IGN SA_RESTART ss_t },0x0) =3D 0 (0x0) 1544: madvise(0x0,0,MADV_PROTECT) =3D 0 (0x0) 1544: pipe2(0x7fffffffe950,0) =3D 0 (0x0) ld-elf.so.1: 1544: write(2,"ld-elf.so.1: ",13) =3D 13 (0xd) /tmp/daemon: Undefined symbol "kqueuex@FBSD_1.7" 1544: write(2,"/tmp/daemon: Undefined symbol "k"...,48) =3D 48 (0x30) 1544: write(2,"\n",1) =3D 1 (0x1) 1544: exit(0x1)=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 1544: process exit, rval =3D 1 1543: exit(0x0)=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 1543: process exit, rval =3D 0 ``` --=20 You are receiving this mail because: You are the assignee for the bug.=