From owner-freebsd-current Thu Nov 1 9: 1: 6 2001 Delivered-To: freebsd-current@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 7F47537B406 for ; Thu, 1 Nov 2001 09:01:00 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.3/8.11.1) id fA1GvSg33024 for current@freebsd.org; Thu, 1 Nov 2001 08:57:28 -0800 (PST) (envelope-from rizzo) Date: Thu, 1 Nov 2001 08:57:28 -0800 From: Luigi Rizzo To: current@freebsd.org Subject: shell coredumps with missing termcap entries ? Message-ID: <20011101085728.I23297@iguana.aciri.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I have been experiencing this problem for sometimes on CURRENT-based picobsd images: the shell coredumps if it does not find an entry for its terminal type in /etc/termcap. It does say something like 'cannot read termcap, using dumb terminal settings' before dying, but then it does not survive to the second failure. My impression is that this is a problem in the shell code or in the termcap library not checking for failure (in the form of a NULL pointer or something like that) when looking up "dumb" terminal type. If this is the case, it should be fairly easy to reproduce -- just remove the "dumb" entry from /etc/termcap, set TERM=dumb and try to run a shell. However i am totally unfamiliar with the code, and do not have a complete CURRENT system where i can run the shell under a debugger (or analyse the coredump). If someone can take care of this... cheers luigi ----------------------------------+----------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . ACIRI/ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 Phone: (510) 666 2927 ----------------------------------+----------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message