Bug 57639 - man -- /path/to/file segfaults
man -- /path/to/file segfaults
Status: CLOSED RAWHIDE
Product: Red Hat Raw Hide
Classification: Retired
Component: man (Show other bugs)
1.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-12-17 18:37 EST by Bill Crawford
Modified: 2007-04-18 12:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-03-08 21:00:11 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Backtrace showing source location where segfault occurs. (2.73 KB, text/plain)
2002-03-08 20:34 EST, Bill Crawford
no flags Details

  None (edit)
Description Bill Crawford 2001-12-17 18:37:36 EST
Description of Problem:
Since the upgrade to man-1.5j, lesspipe.sh fails when trying to view a man
page ...

Version-Release number of selected component (if applicable):
man-1.5j-1

How Reproducible:
less /usr/share/doc/rpm-devel-4.0.4/apidocs/man/man3/queryformat.3.gz 
man -- /tmp/queryformat.3

Basically lesspipe.sh fails to work as expected because man -- /filename
segfaults.  Rebuilding the source package on the current Raw Hide snapshot
failed to make any difference (it did fix netpbm-progs though :o)

It looks like the new option-processing code in 1.5j doesn't like the bare
-- option.  Downgrading the man-1.5i-whatever fixes it for now.
Comment 1 Bernhard Rosenkraenzer 2002-01-17 11:40:46 EST
I can't reproduce this with man-1.5j-2 and less-358-24, assuming it's fixed.
Comment 2 Bill Crawford 2002-01-18 00:47:49 EST
[bill@pikachu bill]$ man --
/usr/share/doc/rpm-devel-4.0.4/apidocs/man/man3/queryformat.3.gz 
Segmentation fault
[bill@pikachu bill]$ man --version 
man, version 1.5j

[bill@pikachu bill]$ rpm -q man
man-1.5j-2
[bill@pikachu bill]$ rpm -q less
less-358-24
Comment 3 Bill Crawford 2002-01-18 00:57:23 EST
Also:

[root@pikachu root]# rpm -V man less
[root@pikachu root]# 

I think the problem relates to option processing, so it could be a glibc issue?

[bill@pikachu bill]$ ldd /usr/bin/man
        libc.so.6 => /lib/i686/libc.so.6 (0x40037000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
[bill@pikachu bill]$ rpm -q glibc
glibc-2.2.90-3

But it was segfaulting with glibc 2.2.3, too.

(by the way, "man /path/to/file works fine, it's only with the -- as the only
option that it faults)

I wonder if it's a feature of the i686 glibc on an Athlon?  I'll try this at
work on a PII.
Comment 4 Bill Crawford 2002-03-08 20:34:41 EST
Created attachment 47981 [details]
Backtrace showing source location where segfault occurs.
Comment 5 Bill Crawford 2002-03-08 21:00:06 EST
Looks like it may actually be a glibc bug ... _getopt_internal gets called
twice, the second time for some reason with argv = { "dummy", ... } and that
segfaults.
Comment 6 Karsten Hopp 2002-09-03 09:29:48 EDT
fixed in man-1.5j-10

Note You need to log in before you can comment on or make changes to this bug.