Bug 227342 - [dpv] dpv -x is broken
Summary: [dpv] dpv -x is broken
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.1-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: Devin Teske
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-07 12:40 UTC by Eugene Grosbein
Modified: 2018-06-16 23:43 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Grosbein freebsd_committer freebsd_triage 2018-04-07 12:40:05 UTC
An example from dpv(1) manual page does not work:

tar cf - . | dpv -x "gzip -9 > out.tgz" \
                   $( du -s . | awk '{print $1 * 1024}' ):label

In fact, even simplier command cannot work: dd if=/dev/zero bs=10000 count=1 | dpv -x "cat >/dev/null" 10000:label

It just draws initial dialog then sits doing nothing.

The reason is that dpv(3) library uses posix_spawn_file_actions_adddup2() function that effectively clobbers standard input file handle with a call to dup2(terminal, 0) and ktrace(1) assures that.
Comment 1 Devin Teske freebsd_committer freebsd_triage 2018-06-16 05:44:30 UTC
I will try with 11.2, but so far I was unable to replicate with either 11.0-RELEASE-p1 or 11.1-RELEASE (both amd64).
Comment 2 Devin Teske freebsd_committer freebsd_triage 2018-06-16 22:20:32 UTC
Tried with 11.2-RC3 and still unable to replicate
Comment 3 Eugene Grosbein freebsd_committer freebsd_triage 2018-06-16 23:43:43 UTC
I could not reproduce the problem too using recent stable/11. Something got fixed or that was some local problem. Sorry for bothering you. Closing this.