Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #12101

Re: Command-line char insertion segfault

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!not-for-mail
From konsolebox <konsolebox@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Command-line char insertion segfault
Date Wed, 23 Dec 2015 19:35:33 +0800
Lines 49
Approved bug-bash@gnu.org
Message-ID <mailman.438.1450870537.843.bug-bash@gnu.org> (permalink)
References <56789B8E.90604@libero.it> <56796072.5070504@case.edu> <56799F76.9060402@libero.it>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace usenet.stanford.edu 1450870538 18919 208.118.235.17 (23 Dec 2015 11:35:38 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash <bug-bash@gnu.org>, bash@packages.debian.org, Chester Ramey <chet.ramey@case.edu>
To Carlo Milanesi <carlo.milanesi@libero.it>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=TvKfmamyqnxWZcbBUmsznWx4GTiczr54gmVdEL3AbJw=; b=NT2jfsoX5fRRKJxhIth7s0FhV2qejNM2ebDozx4WgSxUHHGd1iLU3v2X9ubibrlwDq t+LWx1ANiBBK3Y9sUT7pfIurmxQ9VBNJaomnBdADVjGBJT7wq5SfhSAZLbBDudTyjTHr EizFWW37yPSjW0par19my9UhZGHJYjMBy7s7V6uyqb9CGSfEEl1CeN0d2R7I2TW54VKZ nho/RcMF2pwX7T+pEf1DBCfVkWkf5u2gTjHBhkSHPLZPvl5pIz9ISNh/1+KPoMWpfLPq paTZ1gZsNGANOsQ2vlC2UzSYurA2KYyrkPucyIqUiz0nu47CBblBi5uNePej9yf2vfG3 H6yQ==
X-Received by 10.28.187.67 with SMTP id l64mr15209484wmf.39.1450870534049; Wed, 23 Dec 2015 03:35:34 -0800 (PST)
In-Reply-To <56799F76.9060402@libero.it>
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 2a00:1450:400c:c09::235
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:12101

Show key headers only | View raw


On Wed, Dec 23, 2015 at 3:07 AM, Carlo Milanesi
<carlo.milanesi@libero.it> wrote:
> On 12/22/2015 03:38 PM, Chet Ramey wrote:
>>
>> On 12/21/15 7:38 PM, Carlo Milanesi wrote:
>>
>>> Bash Version: 4.3
>>> Patch Level: 11
>>> Release Status: release
>>>
>>> Description:
>>>      Every time I insert a character in a command-line in a position
>>>      followed by some characters and some blanks, Bash crashes.
>>>
>>> Repeat-By:
>>>      In a new command line, if I type the following 4 keys:
>>>      [a][SPACE][HOME][s]
>>>      the Bash process terminates printing "Segmentation fault".
>>>      This happens both in a Gnome terminal window, and in
>>>      a text-mode screen.
>>
>>
>> I can't reproduce this.  Can you get a stack traceback of the core dump
>> or attach to the bash process using gdb before it crashes and print the
>> stack traceback (using `where') when it crashes?
>
>
> Here it is:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00000000004a5073 in ?? ()
> (gdb) where
> #0  0x00000000004a5073 in ?? ()
> #1  0x00000000004a64d5 in rl_redisplay ()
> #2  0x00000000004951de in _rl_internal_char_cleanup ()
> #3  0x00000000004959e9 in readline_internal_char ()
> #4  0x0000000000496075 in readline ()
> #5  0x00000000004215da in ?? ()
> #6  0x0000000000423836 in ?? ()
> #7  0x0000000000426712 in ?? ()
> #8  0x0000000000429cf4 in yyparse ()
> #9  0x0000000000420eeb in parse_command ()
> #10 0x0000000000420fbc in read_command ()
> #11 0x00000000004211b9 in reader_loop ()
> #12 0x000000000041f759 in main ()
>

Also try to build bash with simpler flags and perhaps a more stable compiler.

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Command-line char insertion segfault konsolebox <konsolebox@gmail.com> - 2015-12-23 19:35 +0800

csiph-web