Just realized that if I edit the subject it will create a new thread in marc.info.
So.. closing the thread, the solution is here:
https://marc.info/?l=openbsd-misc&m=168594789107213&w=2
Sorry for the mess.
On Sat, 3 Jun 2023 17:37:08 -0500
Andrew Daugherity <andrew.daugherity@gmail.com> wrote:
> Unfortunately it looks like sh -x does not trace into functions, and
> it is something inside "main" which is crashing:
>
> > > set -x or something.
> > Sorry, I should have started with that.
> >
> > test73# doas -u _pfbadhost pf-badhost -O openbsd
> > [ ... ]
> > + command -v typeset
> > + > /dev/null
> > + 2>&1
> > + main -O openbsd
> > Illegal instruction
> > [ ... ]
> > Illegal instruction (core dumped)
> >
> > No blocklist changes...
> > Illegal instruction (core dumped)
>
> Both sh and ksh seem to behave that way, but bash will trace inside
> functions. Try calling the script with 'bash -x' and hopefully you
> can pinpoint which binary called by main() is crashing.
>
> -Andrew
>
Radek
No comments:
Post a Comment