From owner-freebsd-current@FreeBSD.ORG Wed Apr 6 21:45:41 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC89B16A4CE; Wed, 6 Apr 2005 21:45:41 +0000 (GMT) Received: from smtp4.server.rpi.edu (smtp4.server.rpi.edu [128.113.2.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EA9043D46; Wed, 6 Apr 2005 21:45:41 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp4.server.rpi.edu (8.13.0/8.13.0) with ESMTP id j36LjdoN021035; Wed, 6 Apr 2005 17:45:40 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <1724.172.16.0.199.1112814116.squirrel@wettoast.dyndns.org> References: <1724.172.16.0.199.1112814116.squirrel@wettoast.dyndns.org> Date: Wed, 6 Apr 2005 17:45:39 -0500 To: "Mike Jakubik" , freebsd-current@freebsd.org, freebsd-ports@freebsd.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) on 128.113.2.4 Subject: Re: Reproducible sig 11 with bash2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2005 21:45:41 -0000 At 3:01 PM -0400 4/6/05, Mike Jakubik wrote: >Hello, > >I ran in to this odd problem by making a typo. By following the >below steps, bash2 will exit with signal 11 and dump core. The >user will get booted out of the system if it is their primary >shell. > > >1) Type in .. >2) Hit Ctrl-D. >3) Hit the arrow up key, ... >4) Hit the backspace key ... >5) Hit enter. Bash will now exit with sig 11. There is a PR for this, I think. The problem, as I remember it, is a mismatch between the version of readline in bash2, and the version which is in the base system. The bash2 port uses readline from the base system, but it also uses an include file from it's own version of readline. See: http://www.FreeBSD.org/cgi/query-pr.cgi?pr=ports/75315 As noted in that PR, there are a number of much easier ways to reproduce the bug. Basically you just need to re-enter some line which originally spanned multiple lines. This includes things like a 'for' loop, that you originally type in one line at a time. The PR includes instructions on a quick way around the problem, if it's something that you personally trip over very often (which I did, because I like typing in 'for' loops initially with 'echo' commands, and then I want to re-enter them without the 'echo's once I'm sure they will generate the correct set of commands). -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu