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


Groups > gnu.bash.bug > #15757 > unrolled thread

Re: Crash when moving full-width glyphs across lines

Started byKirill Chibisov <wchibisovkirill@gmail.com>
First post2019-12-19 22:00 +0300
Last post2019-12-19 22:00 +0300
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Crash when moving full-width glyphs across lines Kirill Chibisov <wchibisovkirill@gmail.com> - 2019-12-19 22:00 +0300

#15757 — Re: Crash when moving full-width glyphs across lines

FromKirill Chibisov <wchibisovkirill@gmail.com>
Date2019-12-19 22:00 +0300
SubjectRe: Crash when moving full-width glyphs across lines
Message-ID<mailman.1146.1576782051.1979.bug-bash@gnu.org>
I was able to capture the stack trace under gdb. However you should
probably use the following command in it to repro the issue.

`set disable-randomization off`

The issue happens quite randomly, however the important thing is exit code
from bash (139). So there's something with memory access, I guess.

(gdb) info stack
#0  0x00007fe30e6955ba in _rl_col_width (flags=<optimized out>, end=1735628519, start=<optimized out>, str=0x557e988c691a "/こんにち")
    at /usr/src/debug/sys-libs/readline-8.0_p1-r1/readline-8.0/display.c:3206
#1  _rl_col_width (str=0x557e988c691a "/こんにち", start=<optimized out>, end=1735628519, flags=<optimized out>)
    at /usr/src/debug/sys-libs/readline-8.0_p1-r1/readline-8.0/display.c:3138
#2  0x00007fe30e698378 in update_line (old=<optimized out>, new=0x557e988c819a "こんにち", current_line=current_line@entry=1, omax=<optimized out>,
    nmax=<optimized out>, inv_botlin=inv_botlin@entry=1) at /usr/src/debug/sys-libs/readline-8.0_p1-r1/readline-8.0/display.c:2200
#3  0x00007fe30e699712 in rl_redisplay () at /usr/src/debug/sys-libs/readline-8.0_p1-r1/readline-8.0/display.c:1154
#4  0x00007fe30e683ec3 in _rl_internal_char_cleanup () at /usr/src/debug/sys-libs/readline-8.0_p1-r1/readline-8.0/readline.c:517
#5  0x00007fe30e684863 in readline_internal_char () at /usr/src/debug/sys-libs/readline-8.0_p1-r1/readline-8.0/readline.c:641
#6  0x00007fe30e685065 in readline_internal_charloop () at /usr/src/debug/sys-libs/readline-8.0_p1-r1/readline-8.0/readline.c:659
#7  readline_internal () at /usr/src/debug/sys-libs/readline-8.0_p1-r1/readline-8.0/readline.c:671
#8  readline (prompt=<optimized out>) at /usr/src/debug/sys-libs/readline-8.0_p1-r1/readline-8.0/readline.c:377
#9  0x0000557e97f0b1a2 in yy_readline_get () at /usr/homes/chet/src/bash/src/parse.y:1487
#10 0x0000557e97f0d560 in yy_getc () at /usr/homes/chet/src/bash/src/parse.y:2345
#11 shell_getc (remove_quoted_newline=1) at /usr/homes/chet/src/bash/src/parse.y:2345
#12 shell_getc (remove_quoted_newline=1) at /usr/homes/chet/src/bash/src/parse.y:2264
#13 0x0000557e97f10aba in read_token (command=<optimized out>) at /usr/homes/chet/src/bash/src/parse.y:3252
#14 read_token (command=0) at /usr/homes/chet/src/bash/src/parse.y:3202
#15 0x0000557e97f143cf in yylex () at /usr/homes/chet/src/bash/src/parse.y:2761
#16 yyparse () at y.tab.c:1842
#17 0x0000557e97f0a876 in parse_command () at eval.c:303
#18 0x0000557e97f0a983 in read_command () at eval.c:347
#19 0x0000557e97f0aba2 in reader_loop () at eval.c:143
#20 0x0000557e97f094f2 in main (argc=1, argv=0x7fff57b1b8c8, env=0x7fff57b1b8d8) at shell.c:805

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web