Bug#548153: some manpages not shown on kbsd

2009-09-24 Thread Peter Palfrader
Package: man-db
Version: 2.5.6-2
Severity: important

Hi,

on our kfreebsd machines, including io.debian.net and
asdfasdf.debian.net, the porting machines, man seems to fail to display
manpages for at least most of the coreutils tools, possibly more.  I
tried it for who, readdir, and cut.

| wea...@asdfasdf:~$ LC_ALL=C PAGER=more man who
| wea...@asdfasdf:~$ 

however:
| wea...@asdfasdf:~$ LC_ALL=de_AT.utf-8 PAGER=more man who
shows me the manpage.

On the other hand,
| wea...@asdfasdf:~$ LC_ALL=de_AT.utf-8 man who | cat
| wea...@asdfasdf:~$ 
produces no output, while
| wea...@asdfasdf:~$ LC_ALL=C PAGER=more man who | cat
does.

These things aren't a 100% reproducible, but they happen like that most
of the time.

Rerunning sometimes helps:

| wea...@asdfasdf:~$ LC_ALL=C PAGER=more man who | head
| wea...@asdfasdf:~$ LC_ALL=C PAGER=more man who | cat
| WHO(1)
 User Commands  

  WHO(1)
[..]
| wea...@asdfasdf:~$ LC_ALL=C PAGER=more man who | head -n 10
| WHO(1)
 User Commands  

  WHO(1)

Cheers,
weasel



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#548153: some manpages not shown on kbsd

2009-09-24 Thread Colin Watson
user man...@packages.debian.org
usertags 548153 target-2.5.7
tags 548153 fixed-upstream
thanks

On Thu, Sep 24, 2009 at 09:41:14AM +0200, Peter Palfrader wrote:
 on our kfreebsd machines, including io.debian.net and
 asdfasdf.debian.net, the porting machines, man seems to fail to display
 manpages for at least most of the coreutils tools, possibly more.  I
 tried it for who, readdir, and cut.
 
 | wea...@asdfasdf:~$ LC_ALL=C PAGER=more man who
 | wea...@asdfasdf:~$ 

Thanks. I investigated a bit on asdfasdf. I think the cause of this is
that, if a subprocess dies before man manages to read data from it, then
man immediately discards that file descriptor rather than draining it.
This is a general bug and I don't know why it should be particularly
specific to the FreeBSD kernel; perhaps it just happens to do things in
a different order most of the time. Fixed upstream.

Thu Sep 24 12:32:48 BST 2009  Colin Watson  cjwat...@debian.org

* lib/pipeline.c (pipeline_pump): When a source pipeline dies, make
  sure to drain its output before discarding its output file
  descriptor (Debian bug #548153). We still record the death to
  avoid duplicate debugging messages.
* NEWS: Document this.

This is http://bzr.savannah.gnu.org/lh/man-db/trunk/revision/1147, if
you want the patch before I get round to a new release of the Debian
package.

Cheers,

-- 
Colin Watson   [cjwat...@debian.org]



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org