From owner-freebsd-ports@FreeBSD.ORG Wed Apr 6 20:09:04 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F06216A4CE; Wed, 6 Apr 2005 20:09:04 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 324BA43D49; Wed, 6 Apr 2005 20:09:04 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j36K93Zk026944; Wed, 6 Apr 2005 13:09:03 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j36K92jY026936; Wed, 6 Apr 2005 13:09:02 -0700 Date: Wed, 6 Apr 2005 13:09:02 -0700 From: Brooks Davis To: Mike Jakubik Message-ID: <20050406200902.GA24227@odin.ac.hmc.edu> References: <1724.172.16.0.199.1112814116.squirrel@wettoast.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SLDf9lqlvOQaIe6s" Content-Disposition: inline In-Reply-To: <1724.172.16.0.199.1112814116.squirrel@wettoast.dyndns.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: freebsd-current@freebsd.org cc: freebsd-ports@freebsd.org Subject: Re: Reproducible sig 11 with bash2 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2005 20:09:04 -0000 --SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 06, 2005 at 03:01:56PM -0400, Mike Jakubik wrote: > Hello, >=20 > 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. >=20 >=20 > 1) Type in "blah`" and press enter 4 times. >=20 > --- > # blah` > > > > > > > > > --- >=20 > 2) Hit Ctrl-D. >=20 > --- > > -bash: unexpected EOF while looking for matching ``' > -bash: syntax error: unexpected end of file > --- >=20 > 3) Hit the arrow up key, to repeat the last command. >=20 > --- > # blah` >=20 >=20 >=20 >=20 > --- >=20 > 4) Hit the backspace key 4 times, to return to the value "blah`" >=20 > --- > # blah` > --- >=20 > 5) Hit enter. Bash will now exit with sig 11. >=20 > Dmesg will show the following >=20 > pid 83287 (bash), uid 0: exited on signal 11 (core dumped) >=20 > This only happens on -CURRENT, 5.4 is ok. I am running FreeBSD 6.0-CURRENT > #0: Wed Mar 30 20:17:38 EST 2005. I can verify this doesn't happen on at least one RedHat box as well. This leads me to think malloc debuggin options might be helping trigger this. Could you try either starting bash with "env MALLOC_OPTIONS=3Daj" or modifying your /etc/malloc.conf accordingly? If that causes it to stop failing (or even if it doesn't), you may want to try installing devel/valgrind and seeing that shows anything obvious. You will, of course, want to compile bash with debugging symbols in that case. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --SLDf9lqlvOQaIe6s Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCVEHcXY6L6fI4GtQRAgXbAKDifUOmjLc0QmFQjHhoBE1iJBMFzgCdHB3N oqT0HfHCdFzGbC2JicoAM7c= =Z3iL -----END PGP SIGNATURE----- --SLDf9lqlvOQaIe6s--