Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Strange terminal resizing behavior on macOS 11.6 and calling pwsh under zsh




> On Oct 6, 2021, at 8:51 PM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> 
> On Wed, Oct 6, 2021 at 6:44 PM Andrew Owen
> <andrew.owen@xxxxxxxxxxxxxxxxxxxx> wrote:
>> 
>> SYSCALL(args)  = return
>> dtrace: error on enabled probe ID 1657 (ID 258: syscall::sigprocmask:return): invalid user access in action #5 at DIF offset 0
>> dtrace: error on enabled probe ID 1657 (ID 258: syscall::sigprocmask:return): invalid user access in action #5 at DIF offset 0
>> dtrace: error on enabled probe ID 2212 (ID 270: syscall::ioctl:return): invalid user access in action #5 at DIF offset 0
>> dtrace: error on enabled probe ID 2082 (ID 530: syscall::sigreturn:return): invalid user access in action #5 at DIF offset 0
> 
> I would guess that means you need to "sudo dtruss ..."

My results were gathered with "sudo dtruss -p PID", I think that macOS locks some things down more than not 

>> 2) Try using "exec /usr/local/bin/pwsh ..." in the script
>> 
>> This makes it so that the reproduction steps I listed before no longer lead to the crash.
> 
> Well, there's your workaround, then.  It's marginally more "correct" as well.

It is a viable workaround, this error seems notable for occurring only with zsh and not dash or sh on osx though.



Messages sorted by: Reverse Date, Date, Thread, Author