bin/50679: vi invoked from chpass and vipw exits on ^C

Tim Robbins tim at robbins.dropbear.id.au
Mon Apr 7 07:20:15 PDT 2003


>Number:         50679
>Category:       bin
>Synopsis:       vi invoked from chpass and vipw exits on ^C
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 07 07:20:12 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Tim Robbins
>Release:        FreeBSD 5.0-CURRENT, 8 April 2003
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD 5.0-CURRENT, 8 April 2003

Problem also occurs on a system from March 30 ie. before Jeff's thread signal
mask code was committed.

>Description:
If you run chpass or vipw and press ^C in vi, vi exits immediately and says:
	Error: input: Input/output error
instead of writing
Interrupted
	and continuing.

This is a regression over 4.x (specifically 4.8).

It may be necessary to press ^C more than once to trigger the bug sometimes
(esp. for vipw).

>How-To-Repeat:
See above.
>Fix:
Not known. Suspect signal handling bug in libutil. Needing to press ^C twice
to get vipw's vi invocation to die makes me think of SA_RESETHAND.
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list