Re: Reproducible sig 11 with bash2

From: Garance A Drosihn <drosih_at_rpi.edu>
Date: Wed, 6 Apr 2005 17:45:39 -0500
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_at_gilead.netel.rpi.edu
Senior Systems Programmer           or  gad_at_freebsd.org
Rensselaer Polytechnic Institute    or  drosih_at_rpi.edu
Received on Wed Apr 06 2005 - 19:45:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:31 UTC