NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/55979 (sh single quotes removes nul characters)



    Date:        Tue, 9 Feb 2021 20:08:50 -0800
    From:        Justine Tunney <jtunney%gmail.com@localhost>
    Message-ID:  <CANtdasQJxExVw_fpBHGX=qPWMs56PC-6RH6nufTYM-X25CCORQ%mail.gmail.com@localhost>

One more thing:

  |      11172      1 sh       CALL mmap(0,0x1000,PROT_READ|PROT_WRITE,0x1002<PRIVATE,ANONYMOUS,ALIGN=NONE>,0xffffffff,0,0)
  |      11172      1 sh       RET   mmap 126131311058944/0x72b73bfda000

That's very odd, sh doesn't call mmap() anywhere (and doesn't use stdio
for input/output either) and doesn't dynamically load anything either
(libc and libedit should have been loaded at startup).   Are you sure
that's the NetBSD /bin/sh doing that?

In that sh, do "echo $NETBSD_SHELL" and show what it says please.

kre




Home | Main Index | Thread Index | Old Index