NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/54343: "man -k config | less" broken
The following reply was made to PR bin/54343; it has been noted by GNATS.
From: Thomas Klausner <wiz%netbsd.org@localhost>
To: Abhinav Upadhyay <er.abhinav.upadhyay%gmail.com@localhost>
Cc: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
Subject: Re: bin/54343: "man -k config | less" broken
Date: Thu, 15 Aug 2019 10:55:43 +0200
On Thu, Aug 15, 2019 at 02:17:13PM +0530, Abhinav Upadhyay wrote:
> That is weird. What if you try apropos config | less?
That's worse :)
# apropos config | less
zsh: segmentation fault (core dumped) apropos config |
zsh: done less
[New process 1]
Core was generated by `apropos'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007d546d97d310 in strlen () from /usr/lib/libc.so.12
(gdb) bt
#0 0x00007d546d97d310 in strlen () from /usr/lib/libc.so.12
#1 0x00007d546d8bb131 in _strdup (str=0x0) at /usr/src/lib/libc/string/strdup.c:60
#2 0x00007d546e00f682 in estrdup (s=<optimized out>) at /usr/src/lib/libutil/efun.c:89
#3 0x0000000083a22d6e in ul_pager (s=<optimized out>, ul=0) at /usr/src/usr.sbin/makemandb/apropos-utils.c:877
#4 callback_pager (callback_args=0x7f7fff236890) at /usr/src/usr.sbin/makemandb/apropos-utils.c:955
#5 0x0000000083a23231 in execute_search_query (args=0x7f7fff236a40,
query=0x7d546f3b4008 "SELECT section, name, name_desc, machine, snippet(mandb, '', '', '...', -1, 40 ), rank_func(matchinfo(mandb, \"pclxn\")) AS rank FROM mandb WHERE name NOT IN ( SELECT target FROM mandb_links WHERE link="..., db=<optimized out>) at /usr/src/usr.sbin/makemandb/apropos-utils.c:721
#6 run_query_internal (db=<optimized out>, snippet_args=<optimized out>, args=0x7f7fff236a40) at /usr/src/usr.sbin/makemandb/apropos-utils.c:748
#7 0x0000000083a239c0 in run_query_pager (args=<optimized out>, db=<optimized out>) at /usr/src/usr.sbin/makemandb/apropos-utils.c:1032
#8 run_query (db=0x7d546f426008, fmt=<optimized out>, args=0x7f7fff236a40) at /usr/src/usr.sbin/makemandb/apropos-utils.c:1153
#9 0x0000000083a25851 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/usr.sbin/makemandb/apropos.c:248
(gdb)
> Also, just to be sure could you provide the output of ident `which
> apropos` | grep apropos :)
# ident /usr/bin/apropos| grep apropos
/usr/bin/apropos:
$NetBSD: apropos.c,v 1.24 2017/11/25 14:29:38 abhinav Exp $
$NetBSD: apropos-utils.c,v 1.45 2019/06/07 16:43:58 leot Exp $
Thomas
Home |
Main Index |
Thread Index |
Old Index