On Thu, May 05, 2016 at 10:30:04AM +0200, Piotr Grzybowski wrote: > hi, > > I cannot replicate it in anyway on mac os x or linux. > Could you please define "sometimes", and supply the exact version of bash > that shows this behavior, and the version you refer to as "my old bash"? I > have a distinct feeling that it is something different than my old bash. > > cheers, > pg >
I'm able to replicate with the master branch. | dualbus@yaqui ...src/gnu/bash % INPUTRC=/dev/fd/3 gdb --batch ./bash -ex r 3<<<'set isearch-terminators "\r"' | dualbus@yaqui:~/local/src/gnu/bash$ ls | | malloc: unknown:0: assertion botched | malloc: block on free list clobbered | last command: ls | Aborting... | Program received signal SIGABRT, Aborted. | 0x00007ffff763a107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 | 56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. | | | Program received signal SIGABRT, Aborted. | 0x00007ffff763a107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 | 56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. | (gdb) bt | #0 0x00007ffff763a107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 | #1 0x00007ffff763b4e8 in __GI_abort () at abort.c:89 | #2 0x0000000000447470 in programming_error (format=0x4f9bf0 "malloc: block on free list clobbered") at error.c:176 | #3 0x00000000004d8bc2 in xbotch (mem=0x8a2e08, e=0, s=0x4f9bf0 "malloc: block on free list clobbered", file=0x4dcd68 "make_cmd.c", line=100) at malloc.c:319 | #4 0x00000000004d9516 in internal_malloc (n=3, file=0x4dcd68 "make_cmd.c", line=100, flags=1) at malloc.c:801 | #5 0x00000000004d9ee2 in sh_malloc (bytes=3, file=0x4dcd68 "make_cmd.c", line=100) at malloc.c:1187 | #6 0x00000000004882e6 in sh_xmalloc (bytes=3, file=0x4dcd68 "make_cmd.c", line=100) at xmalloc.c:183 | #7 0x000000000042fd5a in make_bare_word (string=0x72b0a8 "ls") at make_cmd.c:100 | #8 0x00000000004464b7 in copy_word (w=0x731d28) at copy_cmd.c:61 | #9 0x00000000004464f5 in copy_word_list (list=0x731788) at copy_cmd.c:75 | #10 0x000000000046543e in expand_word_list_internal (list=0x731788, eflags=31) at subst.c:9656 | #11 0x0000000000464a5e in expand_words (list=0x731788) at subst.c:9280 | #12 0x000000000043b3cc in execute_simple_command (simple_command=0x733a88, pipe_in=-1, pipe_out=-1, async=0, fds_to_close=0x731d08) at execute_cmd.c:4000 | #13 0x0000000000435829 in execute_command_internal (command=0x733a48, asynchronous=0, pipe_in=-1, pipe_out=-1, fds_to_close=0x731d08) at execute_cmd.c:787 | #14 0x0000000000434e8a in execute_command (command=0x733a48) at execute_cmd.c:390 | #15 0x0000000000420d00 in reader_loop () at eval.c:160 | #16 0x000000000041eb21 in main (argc=1, argv=0x7fffffffe528, env=0x7fffffffe538) at shell.c:756 | | dualbus@yaqui ...src/gnu/bash % INPUTRC=/dev/fd/3 gdb --batch ./bash -ex 'b ' -ex r 3<<<'set isearch-terminators "\n"' | No default breakpoint address now. | dualbus@yaqui:~/local/src/gnu/bash$ ls | | malloc: make_cmd.c:100: assertion botched | malloc: block on free list clobbered | last command: ls | Aborting... | Program received signal SIGABRT, Aborted. | 0x00007ffff763a107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 | 56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. | dualbus@yaqui ...src/gnu/bash % INPUTRC=/dev/fd/3 gdb --batch ./bash -ex 'b ' -ex r 3<<<'set isearch-terminators "a"' | No default breakpoint address now. | dualbus@yaqui:~/local/src/gnu/bash$ ls | | malloc: /usr/src/local/bash/bash-4.3-patched/parse.y:6226: assertion botched | malloc: block on free list clobbered | last command: ls | Aborting... | Program received signal SIGABRT, Aborted. | 0x00007ffff763a107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 | 56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. | dualbus@yaqui ...src/gnu/bash % INPUTRC=/dev/fd/3 gdb --batch ./bash -ex 'b ' -ex r 3<<<'set isearch-terminators "123"' | No default breakpoint address now. | dualbus@yaqui:~/local/src/gnu/bash$ ls | | malloc: make_cmd.c:100: assertion botched | malloc: block on free list clobbered | last command: ls | Aborting... | Program received signal SIGABRT, Aborted. | 0x00007ffff763a107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 | 56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. Forgive the extraneus -ex 'b ' on gdb, I'm lazy and I left it :-D I can't reproduce it in devel. -- Eduardo Bustamante https://dualbus.me/