Saturday, April 25, 2026

Re: ttyplot and amd64 snapshots

matthieu@openbsd.org (Matthieu Herrb), 2026.04.23 (Thu) 08:15 (CEST): > On Wed, Apr 22, 2026 at 09:15:30PM -0600, Chris Lobkowicz wrote: > > I just switched over to snapshots (from 7.8-stable) to take advantage of > > the vmd virtio updates, and then noticed that ttyplot looks to be limited > > by pledge. > > > > When I invoke "vmstat 1 | awk 'NR>2 { print 100-$(NF); fflush(); }' | > > ttyplot -t "Cpu usage" -s 100" > > I get a "waiting for data from stdinttyplot[23086]: pledge "rpath", syscall > > 5" and then Abort trap (core dump). > > > > I assume the dump may not interest you - as either I am doing something > > wrong, or I somehow need to convince pledge/unveil to allow me do my > > ttyplot invocation. > > > > I wanted to let you know, as ttyplot may not be high on the list of > > packages needing attention. > > > > Thank you for your time. > > > > Thanks for the report. This is caused by the pledge tighting changes > that happenned a couple of weeks ago. > > Possible fix is to postpone the pledge() call after /dev/tty has been > opened. Works for me(tm) with your patch. Thanks! Marcus

No comments:

Post a Comment