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


Groups > gnu.bash.bug > #12101

Re: Command-line char insertion segfault

From konsolebox <konsolebox@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Command-line char insertion segfault
Date 2015-12-23 19:35 +0800
Message-ID <mailman.438.1450870537.843.bug-bash@gnu.org> (permalink)
References <56789B8E.90604@libero.it> <56796072.5070504@case.edu> <56799F76.9060402@libero.it>

Show all headers | 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