On Thu, 11 May 2000, Eli Zaretskii wrote:

> > Date: Sat, 6 May 2000 14:46:33 +0200
> > From: Josip Rodin <[EMAIL PROTECTED]>
> > 
> >  if there is in a package a wrongly named manpage, that is,the
> >  manpage is called foo.1, but foo.1 is a gzipped file or a
> >  link to a gzipped file, then info segfaults when it tries to
> >  look at this file (info foo).
> 
> Thank you for your report.
> 
> Unfortunately, I cannot reproduce this on my system.  What I get is an
> empty man-page node, but no segfault.
> 
> Are you sure that it's `info' that crashes?  Is it possible that `man'
> or the programs it invokes (`troff', `col', etc.) crash instead?
> 
> If you are sure that `info' crashes, please send the backtrace
> produced by a debugger when you load the core file.
> 
> Also, please tell what version of `info' do you use ("info --version"
> should print it).

Okay, I downloaded the texinfo source (4.0) and compiled it with debug
information. Here is a typescript of a run (sorry for some long lines):

ujr@pkfp20 [~/texinfo-4.0/info] > ./ginfo --version
info (GNU texinfo) 4.0

Copyright (C) 1999 Free Software Foundation, Inc.
There is NO warranty.  You may redistribute this software
under the terms of the GNU General Public License.
For more information about these matters, see the files named COPYING.
ujr@pkfp20 [~/texinfo-4.0/info] > gdb ./ginfo
GNU gdb 19990928
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 "i686-pc-linux-gnu"...
(gdb) r mp3asm
Starting program: /home/ujr/texinfo-4.0/info/./ginfo mp3asm

Program received signal SIGSEGV, Segmentation fault.
0x400a9b3c in free () from /lib/libc.so.6
(gdb) bt
#0  0x400a9b3c in free () from /lib/libc.so.6
#1  0x400a9aed in free () from /lib/libc.so.6
#2  0x8053886 in clean_manpage (
    manpage=0x8071320 "ndocumented.7V�o�8~�_     �6l-zM     �A~`(�E�c]l     
�);nz..+fQG2\n.a!`i�OpJk�4|9S[�(y9�?jg�*�p<8�/_>j�k+J63�y�X+K-        eccjo�s�$\n�V/k 
=..S=c�0J�;6�:D�G[80iX�p%Z^�Z�X:� b�P�r�o  4kQ     �kSj�A�hc\n3R"...)
    at man.c:407
#3  0x80537f7 in get_manpage_contents (pagename=0x8069038 "mp3asm")
    at man.c:372
#4  0x805316b in get_manpage_node (file_buffer=0x806d018, 
    pagename=0x8069038 "mp3asm") at man.c:80
#5  0x8054693 in info_get_node_of_file_buffer (nodename=0x8069038 "mp3asm", 
    file_buffer=0x806d018) at nodes.c:168
#6  0x805458b in info_get_node (filename=0x8063789 "*manpages*", 
    nodename=0xbffffe32 "mp3asm") at nodes.c:110
#7  0x8053136 in make_manpage_node (pagename=0xbffffe32 "mp3asm") at man.c:64
#8  0x805907d in info_follow_menus (initial_node=0x8069220, menus=0xbffffd18, 
    errstr=0xbffffc9c, errarg1=0xbffffca0, errarg2=0xbffffca4)
    at session.c:2416
#9  0x804f9b9 in main (argc=2, argv=0xbffffd14) at info.c:383
(gdb) q
The program is running.  Exit anyway? (y or n) y
ujr@pkfp20 [~/texinfo-4.0/info] > locate mp3asm.1
/usr/man/man1/mp3asm.1
ujr@pkfp20 [~/texinfo-4.0/info] > file /usr/man/man1/mp3asm.1
/usr/man/man1/mp3asm.1: symbolic link to ../man7/undocumented.7.gz
ujr@pkfp20 [~/texinfo-4.0/info] > file /usr/man/man7/undocumented.7.gz 
/usr/man/man7/undocumented.7.gz: symbolic link to 
../../share/man/man7/undocumented.7.gz
ujr@pkfp20 [~/texinfo-4.0/info] > file /usr/share/man/man7/undocumented.7.gz
/usr/share/man/man7/undocumented.7.gz: gzip compressed data, deflated, original 
filename, last modified: Thu Mar  9 02:30:02 2000, max compression, os: Unix

Hope it helps,

  Ulf


Reply via email to