Re: 9.1: nested functions crash

2020-10-23 Thread Mouse
>> Presumably this is NetBSD trying to break execute-out-of-the-stack >> malware. This is not an unreasonable default, but, for this use >> case, it's a crippling misfeature. How do I disable it? > Have a look at paxctl(8). paxctl +m works nicely. For the moment, per-executable granularity is f

Re: 9.1: nested functions crash

2020-10-23 Thread Martin Husemann
On Fri, Oct 23, 2020 at 10:56:50AM -0400, Mouse wrote: > Presumably this is NetBSD trying to break execute-out-of-the-stack > malware. This is not an unreasonable default, but, for this use case, > it's a crippling misfeature. How do I disable it? sysctl -a output > contains nothing promising (I

9.1: nested functions crash

2020-10-23 Thread Mouse
I just installed 9.1 (absolutely stock) for work. I tried to compile one of my own tools on it, and it crashes. (This is on amd64.) gdb says the stack trace looks like #0 0x7e9f36d6791a in _lwp_kill () from /usr/lib/libc.so.12 #1 0x7e9f36d671ca in abort () at /usr/src/lib/libc/stdlib/