Package: bash Version: 5.2.15-2+b7 Severity: normal X-Debbugs-Cc: deb-b...@larsluthman.net
Dear Maintainer, Bash crashed with SIGABRT after I typed a command ('git diff'). An error message was printed but I did not have time to read it before the terminal window tab that Bash was running in was closed, but I think it is the one listed in the detailed backtrace below, in the frame for malloc_printerr(). I have not been able to reproduce the bug but I have systemd-coredump installed and I also installed bash-dbgsym to get more detailed information. Here is the output of running 'bt' after launching gdb using coredumpctl: Reading symbols from /usr/bin/bash... Reading symbols from /usr/lib/debug/.build-id/f6/101dbf7496e744703ecab8c33c2cc348805f7f.debug... [New LWP 3171] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `bash'. Program terminated with signal SIGABRT, Aborted. #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44 44 ./nptl/pthread_kill.c: No such file or directory. (gdb) bt #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44 #1 0x00007f1d7c8bfe9f in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78 #2 0x00007f1d7c870fb2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #3 0x00007f1d7c85b4fc in __GI_abort () at ./stdlib/abort.c:100 #4 0x00007f1d7c8b4430 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7f1d7c9ce459 "%s\n") at ../sysdeps/posix/libc_fatal.c:155 #5 0x00007f1d7c8c97ba in malloc_printerr (str=str@entry=0x7f1d7c9d10c8 "free(): invalid next size (fast)") at ./malloc/malloc.c:5660 #6 0x00007f1d7c8cb62a in _int_free (av=0x7f1d7ca07c60 <main_arena>, p=0x55b6f5baedc0, have_lock=have_lock@entry=0) at ./malloc/malloc.c:4518 #7 0x00007f1d7c8cde9f in __GI___libc_free (mem=mem@entry=0x55b6f5baedd0) at ./malloc/malloc.c:3385 #8 0x000055b6f4716d3a in xfree (string=string@entry=0x55b6f5baedd0) at .././xmalloc.c:150 #9 0x000055b6f4765038 in free_history_entry (hist=0x55b6f5baedd0) at ../../.././lib/readline/history.c:361 #10 add_history (string=string@entry=0x55b6f5d50e60 "git diff") at ../../.././lib/readline/history.c:295 #11 0x000055b6f4707114 in really_add_history (line=0x55b6f5d50e60 "git diff") at .././bashhist.c:967 #12 bash_add_history (line=line@entry=0x55b6f5d50e60 "git diff") at .././bashhist.c:951 #13 0x000055b6f47074a0 in check_add_history (force=<optimized out>, line=<optimized out>) at .././bashhist.c:806 #14 check_add_history (line=0x55b6f5d50e60 "git diff", force=0) at .././bashhist.c:789 #15 0x000055b6f470755f in maybe_add_history (line=line@entry=0x55b6f5d50e60 "git diff") at .././bashhist.c:782 #16 0x000055b6f470763f in pre_process_line (line=<optimized out>, print_changes=print_changes@entry=1, addit=addit@entry=1) at .././bashhist.c:638 #17 0x000055b6f46b1e2b in shell_getc (remove_quoted_newline=remove_quoted_newline@entry=1) at /usr/local/src/chet/src/bash/src/parse.y:2485 #18 0x000055b6f46b3f5b in read_token (command=0) at /usr/local/src/chet/src/bash/src/parse.y:3402 #19 0x000055b6f46b80bb in yylex () at /usr/local/src/chet/src/bash/src/parse.y:2890 #20 yyparse () at ./build-bash/y.tab.c:1854 #21 0x000055b6f46ae5b6 in parse_command () at .././eval.c:348 #22 0x000055b6f46ae744 in read_command () at .././eval.c:392 #23 0x000055b6f46ae8f6 in reader_loop () at .././eval.c:139 #24 0x000055b6f46ad3d9 in main (argc=1, argv=0x7ffc6df49bb8, env=0x7ffc6df49bc8) at .././shell.c:833 -- System Information: Debian Release: 12.7 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.1.0-25-amd64 (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_WARN Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages bash depends on: ii base-files 12.4+deb12u7 ii debianutils 5.7-0.5~deb12u1 ii libc6 2.36-9+deb12u8 ii libtinfo6 6.4-4 Versions of packages bash recommends: ii bash-completion 1:2.11-6 Versions of packages bash suggests: pn bash-doc <none> -- no debconf information