Hi All, Found an interesting bug today,
GNU bash, version 4.4.18(4)-release (x86_64-unknown-linux-gnu) When running in a graphical terminal (xterm, mate-terminal, gnome-terminal) set to 80x24. I get a SIGSEGV in rl_redisplay doing the following: (Haven't managed to do it on a Virtual Console) mkdir /tmp/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX–XXXXX cd /tmp/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX–XXXXX NOTE: That is an EN Dash, not a hyphen. Building from git (CFLAGS=-g ./configure --enable-static-link) run under gdb in such a terminal: $ gdb ./bash GNU gdb (Ubuntu 8.0.1-0ubuntu1) 8.0.1 ... (gdb) run $ mkdir /tmp/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX–XXXXX $ cd /tmp/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX–XXXXX Program received signal SIGSEGV, Segmentation fault. 0x00000000004bd03b in rl_redisplay () at display.c:823 823 inv_lbreaks[++newlines] = temp; (gdb) bt #0 0x00000000004bd03b in rl_redisplay () at display.c:823 #1 0x00000000004a858c in readline_internal_setup () at readline.c:443 #2 0x00000000004a8a1f in readline_internal () at readline.c:669 #3 0x00000000004a8452 in readline (prompt=0x872208 "j\001") at readline.c:376 #4 0x0000000000407987 in yy_readline_get () at /usr/homes/chet/src/bash/src/parse.y:1456 #5 0x0000000000407a9c in yy_readline_get () at /usr/homes/chet/src/bash/src/parse.y:1487 #6 0x00000000004078d2 in yy_getc () at /usr/homes/chet/src/bash/src/parse.y:1390 #7 0x00000000004087c6 in shell_getc (remove_quoted_newline=1) at /usr/homes/chet/src/bash/src/parse.y:2299 #8 0x0000000000409d31 in read_token (command=0) at /usr/homes/chet/src/bash/src/parse.y:3115 #9 0x00000000004092c9 in yylex () at /usr/homes/chet/src/bash/src/parse.y:2675 #10 0x0000000000404425 in yyparse () at y.tab.c:1834 #11 0x0000000000403fd8 in parse_command () at eval.c:261 #12 0x00000000004040be in read_command () at eval.c:305 #13 0x0000000000403cee in reader_loop () at eval.c:149 #14 0x00000000004017c6 in main (argc=1, argv=0x7fffffffddc8, env=0x7fffffffddd8) at shell.c:792 My host is Ubuntu 17.10, 64-bit Ubuntu shipped kernel 4.13.0-32-generic. Regards, Kieran