Subject: Re: "vi: No terminal database found"
To: Jeremy C. Reed <reed@reedmedia.net>
From: Peter Seebach <seebs@plethora.net>
List: current-users
Date: 08/07/2002 11:31:52
In message <Pine.LNX.4.43.0208070918110.6158-100000@pilchuck.reedmedia.net>, "J
eremy C. Reed" writes:
>On Wed, 7 Aug 2002, Peter Seebach wrote:
>
>> Did the terminal database get moved?  What file should I be looking for (in
>> 1.6D or so) to see whether or not it exists.
>
>ktrace?
>
>Anyways, on 1.5.3, it tries:
>.termcap.db
>/usr/share/misc/termcap.db

ktrace is surreal.

On a healthy machine, ktrace | grep NAMI shows
   428 ktrace   NAMI  "/bin/vi"
   428 ktrace   NAMI  "/usr/bin/vi"
   428 ktrace   NAMI  "/usr/libexec/ld.elf_so"
   428 vi       NAMI  "/etc/ld.so.conf"
   428 vi       NAMI  "/usr/lib/libcurses.so.5"
   428 vi       NAMI  "/usr/lib/libcurses.so.5"
   428 vi       NAMI  "/usr/lib/libcurses.so.5"
   428 vi       NAMI  "/usr/lib/libc.so.12"
   428 vi       NAMI  "/usr/lib/libc.so.12"
   428 vi       NAMI  "/usr/lib/libc.so.12"
   428 vi       NAMI  "/etc/malloc.conf"
   428 vi       NAMI  "/home/seebs/.termcap.db"
   428 vi       NAMI  "/home/seebs/.termcap.db"
   428 vi       NAMI  "/home/seebs/.termcap"
   428 vi       NAMI  "/usr/share/misc/termcap.db"
   428 vi       NAMI  "/usr/share/misc/termcap.db"
 [...]

On this machine, it stops right after /etc/malloc.conf.  (There's no such
file).

...

Ah-hah!  Rebuilding and reinstalling libc fixed it.  Looks like malloc was
b0rked in such a way that only vi was affected.

TOO STRANGE!

-s