bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] 4.1.1 breaks makewhatis -w


From: Daryl F
Subject: Re: [bug-gawk] 4.1.1 breaks makewhatis -w
Date: Wed, 23 Apr 2014 00:30:32 -0500 (CDT)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)

On Tue, 22 Apr 2014, Andrew J. Schorr wrote:

On Sat, Apr 19, 2014 at 11:06:24PM -0500, Daryl F wrote:
The readline function seems to be affected. The script complains of
a broken pipe at line #219 but doesn't do it on all man pages.

Is it the script or gzip that complains of a broken pipe?
I see an error message from gzip using both gawk 4.1.0 and 4.1.1:

  gzip: stdout: Broken pipe

That makes perfect sense, since the script closes the zcat pipe after reading
line 134 of perlapi.1pm [.SH "DESCRIPTION"].  It is natural that gzip would
complain about that.

Are you seeing something else?  If so, what precise error message do you see?

Regards,
Andy


Hi Andy,

Hrm, it's odd that the new version doesn't fail for you.

I see no other error messages just repetitions of broken pipe message on some of the man pages it is working its way through. Some man pages work. Some don't. I stripped down the makewhatis script to just the awk portion (attached man.awk) and ran some tests as if it was being invoked by the makewhatis script and was able to reproduce the error (attached gawk.test)

I just assumed it was gzip complaining about the broken pipe given it is trying to unzip the compressed man page and the reader of stdout must've closed stdin. I'm not that familiar with gawk.

The distro is CRUX which has is simple source-based distro ref: http://crux.nu. I've attached the Pkgfile showing the configure/make process that built 4.1.1 and scrounged the git repo for the 4.1.0 Pkgfile. Nothing changed but the version.A

gawk is compiled as a 64-bit elf
  $ file /usr/bin/gawk
  /usr/bin/gawk: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
  dynamically linked (uses shared libs), for GNU/Linux 2.6.39, not
  stripped

And linked:

  $ ldd /usr/bin/gawk
        linux-vdso.so.1 (0x00007fffbfe6d000)
        libsigsegv.so.2 => /usr/lib/libsigsegv.so.2 (0x00007f950760f000)
        libc.so.6 => /lib/libc.so.6 (0x00007f9507269000)
        libreadline.so.6 => /lib/libreadline.so.6 (0x00007f9507025000)
        libmpfr.so.4 => /usr/lib/libmpfr.so.4 (0x00007f9506dcb000)
        libgmp.so.10 => /usr/lib/libgmp.so.10 (0x00007f9506b57000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f9506953000)
        libm.so.6 => /lib/libm.so.6 (0x00007f9506659000)
        /lib/ld-linux-x86-64.so.2 (0x00007f9507812000)
        libncurses.so.5 => /lib/libncurses.so.5 (0x00007f9506409000)


Regards,
-Daryl

Attachment: Pkgfile.4.1.0
Description: Pkgfile.4.1.0

Attachment: Pkgfile
Description: Pkgfile.4.1.1

Attachment: gawk.test
Description: gawk.test

Attachment: man.awk
Description: man.awk


reply via email to

[Prev in Thread] Current Thread [Next in Thread]