From nobody Thu Jan  4 16:18:56 2024
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 4T5WxF28yvz56j6D
	for <ports-bugs@mlmmj.nyi.freebsd.org>; Thu,  4 Jan 2024 16:18:57 +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 4T5WxF05M9z4Ydv
	for <ports-bugs@FreeBSD.org>; Thu,  4 Jan 2024 16:18:57 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1704385137;
	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=jvhY0uARDu+5ewZOhqRpU2uhCO4BCZ+oODBoBxoIPEk=;
	b=vGuhjxcre6dwdmU4SQvvePNM9TBJ40XIXdesh/PhgjwtlnVIC5oUerrSsI9lde78UhqEhc
	tEXjBxBII0nWtQm1F5aU2HOuefH5vIA26MEk462vNfy/q629ELof/RzEKE9fx0/Tg0+mwu
	5p5O9Ks16azvM8p89AOtc3wJ/zpCVGktk4CDy2p/fxvCZIyeH8Geu1X8oOLgZPTzXwGipj
	vCG3UZgJbd/OeAxRHtBt1Ydm07KVawPCXLKVUF3zsI2QkBpTC5axURY+cQh51qhc3uTiBR
	K9h3GNiVqEzepc8isaRtokAFHQqi0KM3SnCa8t5X5GaFm4nHDYatzrCaqHDPeA==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704385137; a=rsa-sha256; cv=none;
	b=CBLWD3WhQeBStIPgLnRE/3cYtaCNwvyaKSajGVzntZZciUGUpX5Cnsb5UAwu8vMgyBvG6b
	oe0Alhp7uRBnWe1/MgrDYKUni4tol3m64j7dAHMX3PLCbVOxs3LODw3/GIDeimUX9jKawv
	V7m1ShIZ7W+ut32VZHUa2Mvlpq9zbTkC5A234IIE4CyMaECiShToxojPgkJKjrVPu0wqd2
	YxpxmJr+w11hPJJfaJxc88jTs+nucq4B5132z312r+giBPgqp/xBYdgCuJTJ8V5/pzG4H1
	r8FFN//r3ZcgDs7TJSHYofoE8NBlYdNrikd4bWIk9wzOOx2uYfvtgLcNvXawmw==
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 4T5WxD5z2xzKh8
	for <ports-bugs@FreeBSD.org>; Thu,  4 Jan 2024 16:18:56 +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 404GIuSK085739
	for <ports-bugs@FreeBSD.org>; Thu, 4 Jan 2024 16:18:56 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
Received: (from www@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 404GIum4085738
	for ports-bugs@FreeBSD.org; Thu, 4 Jan 2024 16:18:56 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 276113] lang/julia: fails to run when kern.elf64.allow_wx=0
Date: Thu, 04 Jan 2024 16:18:56 +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 Only Me
X-Bugzilla-Who: Trond.Endrestol@ximalas.info
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform
 op_sys bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-276113-7788@https.bugs.freebsd.org/bugzilla/>
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 <freebsd-ports-bugs.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs
List-Help: <mailto:ports-bugs+help@freebsd.org>
List-Post: <mailto:ports-bugs@freebsd.org>
List-Subscribe: <mailto:ports-bugs+subscribe@freebsd.org>
List-Unsubscribe: <mailto:ports-bugs+unsubscribe@freebsd.org>
Sender: owner-freebsd-ports-bugs@freebsd.org
X-BeenThere: freebsd-ports-bugs@freebsd.org
MIME-Version: 1.0

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276113

            Bug ID: 276113
           Summary: lang/julia: fails to run when kern.elf64.allow_wx=3D0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: Trond.Endrestol@ximalas.info

The following patch adds USES+=3Delfctl and marks the Julia executable as
"wxneeded." While here, sort USES.

Here are samples of what happens when kern.elf64.allow_wx=3D0 and when
kern.elf64.allow_wx=3D1 before the executable is properly tagged:

$ sysctl kern.elf64.allow_wx
kern.elf64.allow_wx: 0
$ julia
fatal: error thrown and no exception handler available.
InitError(mod=3D:Sys, error=3DErrorException("PCRE JIT error: no more memor=
y"))
unknown function (ip: 0x844d5ee08)
unknown function (ip: 0x844da02af)
unknown function (ip: 0x844a7ea39)
unknown function (ip: 0x844d3e8da)
unknown function (ip: 0x844a9a42e)
unknown function (ip: 0x844d59a1d)
unknown function (ip: 0x844d59a78)
ijl_apply_generic at /usr/local/bin/../lib/julia/libjulia-internal.so.1
(unknown line)
ijl_base_relative_to at /usr/local/bin/../lib/julia/libjulia-internal.so.1
(unknown line)
julia_init at /usr/local/bin/../lib/julia/libjulia-internal.so.1 (unknown l=
ine)
julia_init at /usr/local/bin/../lib/julia/libjulia-internal.so.1 (unknown l=
ine)
jl_repl_entrypoint at /usr/local/bin/../lib/julia/libjulia-internal.so.1
(unknown line)
main at /usr/local/bin/julia (unknown line)
_start at /usr/local/bin/julia (unknown line)
unknown function (ip: 0x821877007)

$ sysctl kern.elf64.allow_wx
kern.elf64.allow_wx: 1
$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.9.4 (2023-11-14)
 _/ |\__'_|_|_|\__'_|  |  FreeBSD port lang/julia build
|__/                   |

julia>

--=20
You are receiving this mail because:
You are the assignee for the bug.=