Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Apr 2005 13:09:02 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Mike Jakubik <mikej@rogers.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Reproducible sig 11 with bash2
Message-ID:  <20050406200902.GA24227@odin.ac.hmc.edu>
In-Reply-To: <1724.172.16.0.199.1112814116.squirrel@wettoast.dyndns.org>
References:  <1724.172.16.0.199.1112814116.squirrel@wettoast.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050406200902.GA24227>