Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2021 05:45:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 255964] net-p2p/transmission-remote-gui: fails to start when W^X protection is activated
Message-ID:  <bug-255964-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255964

            Bug ID: 255964
           Summary: net-p2p/transmission-remote-gui: fails to start when
                    W^X protection is activated
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: acm@FreeBSD.org
          Reporter: alster@vinterdalen.se
             Flags: maintainer-feedback?(acm@FreeBSD.org)
          Assignee: acm@FreeBSD.org

In FreeBSD 13.0 release appeared new memory protection mechanism: W^X (write
XOR execute) [0]. But unfortunately, some ports are still not adapted their
code to be able to run in this mode. One of them is
net-p2p/transmission-remote-gui, written in pascal language.

% transgui
exec_new_vmspace: mapping stack size 0x20000000 prot 0x7 failed mach error 2
errno 13
Abort

Workaround [1] with setting `elfctl -e +wxneeded` didn't help either.

Also wonder, what could possibly make this port incompatible with W^X?
Whether FreePascal does have some custom runtime routines that triggers it?
I thought it could be seen only with languages with JIT runtimes, like Java=
=E2=80=A6


[0] https://cgit.freebsd.org/src/commit/?id=3D2e1c94aa1fd5
[1] https://forums.freebsd.org/threads/rclone-not-working-with-w-x.80279/

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255964-7788>