If you can't use ktrace, you should not try to do pledge work.

You are not tall enough to ride. 

>I'm having a problem with pledge on openbsd
>
>#include <unistd.h>
>void main(void) { pledge("proc", NULL); fork(); }
>
>when I run this I get:
>
>Program received signal SIGABRT, Aborted.
>0x000005f7309c70ba in mprotect () at <stdin>:2
>
>here is a backtrace
>
>#0  0x000005f7309c70ba in mprotect () at <stdin>:2
>#1  0x000005f7309c6cae in *_libc___cxa_finalize (dso=0x0)
>     at /usr/src/lib/libc/stdlib/atexit.c:154
>#2  0x000005f7309c507e in *_libc_exit (status=1702)
>     at /usr/src/lib/libc/stdlib/exit.c:57
>#3  0x000005f44cd009d8 in _start () from testprogram
>#4  0x0000000000000000 in ?? ()
>
>would this be a bug in pledge or am I using it wrong?

Reply via email to