Bug 17192

Summary: man crashes after upgrade to man-1.5h1-2.5.x
Product: [Retired] Red Hat Linux Reporter: mal
Component: manAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2CC: jeremy, petr.novotny
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-09-06 07:21:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mal 2000-09-02 22:25:04 UTC
After applying all updates
ftp://ftp.redhat.com/pub/redhat/updates/5.2/i386/* 
from RedHat 5.2
man crashes on avery request
ftp://ftp.redhat.com/pub/redhat/updates/5.2/i386/man-1.5h1-2.5.x.i386.rpm 
man man
Segmentation fault
gdb man
GNU gdb 4.17.0.4 with Linux/x86 hardware watchpoint and FPU support
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(no debugging symbols found)...
(gdb) run man
Starting program: /usr/bin/man man

Program received signal SIGSEGV, Segmentation fault.
0x4002b434 in __open_catalog (catalog=0x80624d0, with_path=1)
    at open_catalog.c:91
open_catalog.c:91: No such file or directory.
(gdb) bt
#0  0x4002b434 in __open_catalog (catalog=0x80624d0, with_path=1)
    at open_catalog.c:91
#1  0x4002b157 in catgets (catalog_desc=0x80624d0, set=2, message=40, 
    string=0x804e983 "") at catgets.c:137
#2  0x804d584 in _start ()
#3  0x804d5e0 in _start ()
#4  0x804a1c2 in _start ()
#5  0x804a43b in _start ()
#6  0x804a540 in _start ()
#7  0x804a859 in _start ()
#8  0x804b087 in _start ()
(gdb)

Comment 1 mal 2000-09-02 22:32:54 UTC
after downgrade to
man-1.5f-1.i386.rpm
man works OK

Comment 2 mal 2000-09-02 22:34:49 UTC
In addition:
some files in new man package in the directory
/var/catman/cat1/
have rw-rw-rw permissions
what is incorrect.

Comment 3 Need Real Name 2000-09-04 19:18:34 UTC
A backtrace of this problem, which I am also experiencing, with a version of 
this RPM built with debugging symbols, shows that we are crashing with glibc 
(!).  Specifically, in __open_catalog(), which is called by catgets().  Here's 
the trace:

#0  0x40029434 in __open_catalog (catalog=0x80888b8, with_path=1)
    at open_catalog.c:91
#1  0x40029157 in catgets (catalog_desc=0x80888b8, set=2, message=40, 
    string=0x804e983 "") at catgets.c:137
#2  0x804d584 in getmsg (n=40) at gripes.c:67
#3  0x804d5e0 in gripe (n=40) at gripes.c:85
#4  0x804a1c2 in make_cat_file (path=0x8088668 "/usr/man", 
    man_file=0x80886c8 "/usr/man/man1/man.1.gz", 
    cat_file=0x8088738 "/var/catman/cat1/man.1.gz") at man.c:694
#5  0x804a43b in make_and_display_cat_file (path=0x8088668 "/usr/man", 
    man_file=0x80886c8 "/usr/man/man1/man.1.gz") at man.c:783
#6  0x804a540 in format_and_display (
    man_file=0x8088678 "/usr/man/man1/man.1.gz") at man.c:844
#7  0x804a859 in man (name=0xbffffe39 "man", section=0x0) at man.c:961
#8  0x804b087 in main (argc=2, argv=0xbffffd24) at man.c:1177

Comment 4 Need Real Name 2000-09-05 08:57:47 UTC
This behaviour seems to have been triggered by upgrade to glibc. Everything 
worked OK untill yesterday with glibc-2.0.7-19. However, after upgrade to 
current glibc-2.0.7-29, man doesn't work anymore. That kinda sucks.

Comment 5 Need Real Name 2000-09-06 07:21:51 UTC
This bug is a duplicate of bug 17187. Hello, maintainer, please mark it as such.

Comment 6 Jeff Johnson 2000-10-06 22:18:18 UTC

*** This bug has been marked as a duplicate of 17187 ***