Your message dated Sun, 23 Aug 2009 17:35:54 +0200
with message-id <[email protected]>
and subject line Re: Bug#451263: Patch
has caused the Debian Bug report #451263,
regarding bash: repeatable segfault on interactive input
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
451263: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=451263
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: bash
Version: 3.1dfsg-8
Severity: normal
The following results in a segfault:
$ bash
$ $[/<tab>
In other words, first start a subprocess (to make sure the terminal does
not close when bash segfaults). After that, type '$', '[', '/', and
finally a tab to trigger the segfault.
[ This has been around for a number of years so I figured it would be
about time it was reported. There may be some other sequences, but this
is the shortest one I remember :-) ]
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.23.1+20071013
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages bash depends on:
ii base-files 4.0.1 Debian base system miscellaneous f
ii debianutils 2.25.1 Miscellaneous utilities specific t
ii libc6 2.6.1-6 GNU C Library: Shared libraries
ii libncurses5 5.6+20071013-1 Shared libraries for terminal hand
bash recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 4.0-1
this is fixed in bash-4.0
On 02.01.2009 17:50, Jörgen Tegnér wrote:
tags 451263 patch
thanks
The patch below fixes the segfault. So far no problems elsewhere.
/Jörgen
--- subst.c.orig 2009-01-02 17:36:01.000000000 +0100
+++ subst.c 2009-01-02 17:39:18.000000000 +0100
@@ -2537,6 +2537,9 @@
char *ret;
DECLARE_MBSTATE;
+ if (string == 0)
+ return 0;
+
/* Don't need string length for ADVANCE_CHAR unless multibyte chars
possible. */
slen = (MB_CUR_MAX> 1) ? strlen (string) : 0;
i = saw_quote = 0;
--- End Message ---