From nobody Mon Feb 14 18:36:50 2022 X-Original-To: ports-bugs@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 60EE719BC0ED for ; Mon, 14 Feb 2022 18:36:51 +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 4JyCcM1cHTz3thB for ; Mon, 14 Feb 2022 18:36:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 13DE313BBF for ; Mon, 14 Feb 2022 18:36:51 +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 21EIapOa040631 for ; Mon, 14 Feb 2022 18:36:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21EIapHh040630 for ports-bugs@FreeBSD.org; Mon, 14 Feb 2022 18:36:51 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: ports-bugs@FreeBSD.org Subject: [Bug 261952] coredump building www/node16 if kern.elf64.allow_wx=0 Date: Mon, 14 Feb 2022 18:36:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: sean@rogue-research.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bhughes@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644863811; 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; bh=8pygijmrG0vjdg4gxAXSJEidhNhRqVKfo/VB05JKvQc=; b=xJLYr977dqQXypevRvKRTm7hby2MixwPWH2b+/bKupWPoBkDFxvgMeR+k/KuX+N0VA5w9n +gsaC0MCuZbVNXYNi7CDNJg4/NJgXFXIhcOhue4aDY4UO1K1fh0CyxTQBEpHr1PqAnlVa8 6I8rxm1/6DpVjDlPPo/HDf0wYtx0DcNMiN9+nedJMiatkXUj1fuWDlyX7xLpzat29tsH0s D/RwX94g+lNcepWvhfsRNVPcUJWMVeQ5kTOaThDAKXvQrDVnVSbP/oQFZDe1VSeom65nnk i4dvO1zpGFdozEMSEZ3jP3oEylJqsTUKZjTZdxXSQaEVYcpX5Ixajp8bhGjD9g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644863811; a=rsa-sha256; cv=none; b=PoCXX5xfX+m8isbGy2BZPFxIYBa+52pYF75/sRsUDElcZwN1d6bSJUZcj39qsY+zjz5Df0 uPApnkPohry8WcbeULOvfudBFDcPD/WoxcVvIo+Edl+Ojs0L/LEDcXKpc0euNBJOpuXshd rIlCzzR3GcZxkAxkSYuhVFZYQ1vdkBiwMNmEwXREXsnR+GV96ymsA9FPdWFtggkSP6jOqp oxjLOECF1NLWEniD/sO8KQ+ymKMKHkxea0Ps7+SbFEUZ5MB/FbdUG/9ObRkgA1x79MVMI7 uV+Hk2FSSwfKcKd98wRkHexHUv+e4pQc5rrjHtDThPG9CpiN7INwe3PVUlfcbg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261952 Bug ID: 261952 Summary: coredump building www/node16 if kern.elf64.allow_wx=3D0 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: bhughes@freebsd.org Reporter: sean@rogue-research.com Assignee: bhughes@freebsd.org Flags: maintainer-feedback?(bhughes@freebsd.org) With kern.elf64.allow_wx=3D0 building www/node16 on my x86_64 box coredumps= . It works if I allow write+execute though. See also: https://github.com/nodejs/node/issues/40467 Here's the output: ``` =20 LD_LIBRARY_PATH=3D/wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Rele= ase/lib.host:/wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/l= ib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../tools/v8_gypfiles; mkdir -p /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/obj.target/v8_= snapshot/geni; "/wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot" --turbo_instruction_scheduling "--target_os=3Dfreebsd" "--target_arch=3Dx64" --startup_src "/wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/obj.target/v8= _snapshot/geni/snapshot.cc" --embedded_variant Default --embedded_src "/wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/obj.target/v8= _snapshot/geni/embedded.S" --no-native-code-counters # # Fatal error in , line 0 # Check failed: reservation_.SetPermissions(unprotect_start, unprotect_size, FLAG_write_code_using_rwx ? PageAllocator::kReadWriteExecute : PageAllocator::kReadWrite). # # # #FailureMessage Object: 0x7fffff95af20 =3D=3D=3D=3D C stack trace =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0x1178a43 at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot 0x1177d76 = at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot 0x116c579 at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot 0xcbb81d at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot 0xc3d516 at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot 0xc0f4a7 at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot 0xc43194 at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot 0xc43291 at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot 0xc0dfc9 = at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot 0xc0d7ab at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot 0xc0e4be at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot 0x1478d3d at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot 0x1479135 at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot 0xbdaf6a at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot 0xbda57f at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot 0xabd476 at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot 0xfde440 at /wrkdirs/usr/ports/www/node16/work/node-v16.13.0/out/Release/mksnapshot gmake[2]: *** [tools/v8_gypfiles/v8_snapshot.target.mk:17: 55e82413e48292794813dbce7e3f16f89bec13df.intermediate] Trace/BPT trap (core dumped) gmake[2]: *** Deleting file '55e82413e48292794813dbce7e3f16f89bec13df.intermediate' rm 7366b23a885e2f1bb33829c97d4e4b37850c727f.intermediate e4668546dd931d40401bd01b7734fd91640edb89.intermediate a8710b5b7ebbdd958954c5a6584028b1f8bd4bad.intermediate gmake[1]: *** [Makefile:110: node] Error 2 gmake[1]: Leaving directory '/wrkdirs/usr/ports/www/node16/work/node-v16.13= .0' *** Error code 1 Stop. make: stopped in /usr/ports/www/node16 =3D>> Cleaning up wrkdir =3D=3D=3D> Cleaning for node16-16.13.0 build of www/node16 | node16-16.13.0 ended at Sun Feb 13 20:41:02 EST 2022 build time: 02:18:22 !!! build failure encountered !!! ``` --=20 You are receiving this mail because: You are the assignee for the bug.=