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


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

Re: Crash when moving full-width glyphs across lines

Started byChet Ramey <chet.ramey@case.edu>
First post2019-12-21 14:09 -0500
Last post2019-12-21 14:09 -0500
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 Chet Ramey <chet.ramey@case.edu> - 2019-12-21 14:09 -0500

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

FromChet Ramey <chet.ramey@case.edu>
Date2019-12-21 14:09 -0500
SubjectRe: Crash when moving full-width glyphs across lines
Message-ID<mailman.1233.1576955377.1979.bug-bash@gnu.org>
On 12/20/19 3:43 PM, Chet Ramey wrote:
> On 12/19/19 2:00 PM, Kirill Chibisov wrote:
>> 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>)
> 
> Well, the values for `end' are obviously suspicious, but you can't really
> tell too much from this traceback, especially since other values of
> interest are optimized out. The value of `end' is computed in the caller,
> from `oe - old'. Since those are pointers into the same string, the value
> shouldn't be that far out of whack. The values of `old' and `new' are
> helpful, though. I'll see if I can find it.

I found it.


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

[toc] | [standalone]


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


csiph-web