$ git dt error: git died of signal 11 with kernel log: Feb 15 02:52:43 heisenberg kernel: git[633078]: segfault at 557a50000000 ip 00007faddc054435 sp 00007ffcd3acc600 error 4 in libc.so.6[a2435,7faddbfda000+165000] likely on CPU 0 (core 0, socket 0) Feb 15 02:52:43 heisenberg kernel: Code: 56 14 00 a8 04 74 26 48 8b 15 97 4d 14 00 48 8d 04 95 00 00 00 00 48 f7 d8 48 85 d2 48 c7 c2 00 00 00 fc 48 0f 44 c2 48 21 f0 <48> 8b 38 31 d2 e8 a1 d5 ff ff 64 89 2b 48 83 c4 18 5b 5d c3 0f 1f and when creating a core dump of that and looking at it with gdb: $ gdb /usr/lib/git-core/git core.633078 GNU gdb (Debian 16.2-1) 16.2 Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/lib/git-core/git... Reading symbols from /usr/lib/debug/.build-id/21/a30636041d46556cf064a7ea3e3a744c89bee2.debug... [New LWP 633078] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `/usr/lib/git-core/git difftool --dir-diff'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007faddc054435 in arena_for_chunk (ptr=0x557a509f69cc) at ./malloc/arena.c:153 warning: 153 ./malloc/arena.c: No such file or directory (gdb) bt #0 0x00007faddc054435 in arena_for_chunk (ptr=0x557a509f69cc) at ./malloc/arena.c:153 #1 arena_for_chunk (ptr=0x557a509f69cc) at ./malloc/arena.c:151 #2 __GI___libc_free (mem=<optimized out>) at ./malloc/malloc.c:3397 #3 0x0000557a508a5e9b in free_individual_entries (map=map@entry=0x7ffcd3acc920, entry_offset=0) at ./hashmap.c:188 #4 0x0000557a508a61c8 in hashmap_clear_ (map=map@entry=0x7ffcd3acc920, entry_offset=entry_offset@entry=0) at ./hashmap.c:207 #5 0x0000557a5076161b in run_dir_diff (extcmd=0x0, symlinks=1, prefix=<optimized out>, child=0x7ffcd3acc980) at builtin/difftool.c:666 #6 cmd_difftool (argc=<optimized out>, argv=<optimized out>, prefix=<optimized out>, repo=<optimized out>) at builtin/difftool.c:801 #7 0x0000557a50724593 in run_builtin (p=0x557a50acdb50 <commands+912>, argc=2, argv=0x7ffcd3acd630, repo=0x557a50affec0 <the_repo>) at ./git.c:483 #8 handle_builtin (argc=2, argv=0x7ffcd3acd630) at ./git.c:749 #9 0x0000557a50725515 in run_argv (argcp=argcp@entry=0x7ffcd3acd40c, argv=argv@entry=0x7ffcd3acd400) at ./git.c:819 #10 0x0000557a50726088 in cmd_main (argc=<optimized out>, argc@entry=3, argv=<optimized out>, argv@entry=0x7ffcd3acd628) at ./git.c:954 #11 0x0000557a50724209 in main (argc=3, argv=0x7ffcd3acd628) at ./common-main.c:64 (gdb) Once I also got: $ git dt free(): invalid pointer error: git died of signal 6 with no kernel message and I think the following was the corresponding core dump: $ gdb /usr/lib/git-core/git core.633069 GNU gdb (Debian 16.2-1) 16.2 Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/lib/git-core/git... Reading symbols from /usr/lib/debug/.build-id/21/a30636041d46556cf064a7ea3e3a744c89bee2.debug... [New LWP 633069] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `/usr/lib/git-core/git difftool --dir-diff'. 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 warning: 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 0x00007fb22ef18e2f in __pthread_kill_internal (threadid=<optimized out>, signo=6) at ./nptl/pthread_kill.c:78 #2 0x00007fb22eec4d02 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #3 0x00007fb22eead4f0 in __GI_abort () at ./stdlib/abort.c:79 #4 0x00007fb22eeae32d in __libc_message_impl (fmt=fmt@entry=0x7fb22f030303 "%s\n") at ../sysdeps/posix/libc_fatal.c:134 #5 0x00007fb22ef22965 in malloc_printerr (str=str@entry=0x7fb22f02e082 "free(): invalid pointer") at ./malloc/malloc.c:5772 #6 0x00007fb22ef24bf4 in _int_free (av=0x34fbb8158b0200, p=<optimized out>, have_lock=have_lock@entry=0) at ./malloc/malloc.c:4507 #7 0x00007fb22ef2743f in __GI___libc_free (mem=<optimized out>) at ./malloc/malloc.c:3398 #8 0x000055b4e4106e9b in free_individual_entries (map=map@entry=0x7ffee0e35a30, entry_offset=0) at ./hashmap.c:188 #9 0x000055b4e41071c8 in hashmap_clear_ (map=map@entry=0x7ffee0e35a30, entry_offset=entry_offset@entry=0) at ./hashmap.c:207 #10 0x000055b4e3fc261b in run_dir_diff (extcmd=0x0, symlinks=1, prefix=<optimized out>, child=0x7ffee0e35a90) at builtin/difftool.c:666 #11 cmd_difftool (argc=<optimized out>, argv=<optimized out>, prefix=<optimized out>, repo=<optimized out>) at builtin/difftool.c:801 #12 0x000055b4e3f85593 in run_builtin (p=0x55b4e432eb50 <commands+912>, argc=2, argv=0x7ffee0e36740, repo=0x55b4e4360ec0 <the_repo>) at ./git.c:483 #13 handle_builtin (argc=2, argv=0x7ffee0e36740) at ./git.c:749 #14 0x000055b4e3f86515 in run_argv (argcp=argcp@entry=0x7ffee0e3651c, argv=argv@entry=0x7ffee0e36510) at ./git.c:819 #15 0x000055b4e3f87088 in cmd_main (argc=<optimized out>, argc@entry=3, argv=<optimized out>, argv@entry=0x7ffee0e36738) at ./git.c:954 #16 0x000055b4e3f85209 in main (argc=3, argv=0x7ffee0e36738) at ./common-main.c:64 (gdb) The same happens also on a fresh and empty repo: $ git init foo; cd foo $ gdb --args git difftool --dir-diff GNU gdb (Debian 16.2-1) 16.2 Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from git... Reading symbols from /usr/lib/debug/.build-id/21/a30636041d46556cf064a7ea3e3a744c89bee2.debug... (gdb) run Starting program: /usr/bin/git difftool --dir-diff [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Detaching after fork from child process 635588] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7d7c435 in arena_for_chunk (ptr=0x5555558489cc) at ./malloc/arena.c:153 warning: 153 ./malloc/arena.c: No such file or directory (gdb) bt #0 0x00007ffff7d7c435 in arena_for_chunk (ptr=0x5555558489cc) at ./malloc/arena.c:153 #1 arena_for_chunk (ptr=0x5555558489cc) at ./malloc/arena.c:151 #2 __GI___libc_free (mem=<optimized out>) at ./malloc/malloc.c:3397 #3 0x00005555556f7e9b in free_individual_entries (map=map@entry=0x7fffffffd220, entry_offset=0) at ./hashmap.c:188 #4 0x00005555556f81c8 in hashmap_clear_ (map=map@entry=0x7fffffffd220, entry_offset=entry_offset@entry=0) at ./hashmap.c:207 #5 0x00005555555b361b in run_dir_diff (extcmd=0x0, symlinks=1, prefix=<optimized out>, child=0x7fffffffd280) at builtin/difftool.c:666 #6 cmd_difftool (argc=<optimized out>, argv=<optimized out>, prefix=<optimized out>, repo=<optimized out>) at builtin/difftool.c:801 #7 0x0000555555576593 in run_builtin (p=0x55555591fb50 <commands+912>, argc=2, argv=0x7fffffffdf30, repo=0x555555951ec0 <the_repo>) at ./git.c:483 #8 handle_builtin (argc=2, argv=0x7fffffffdf30) at ./git.c:749 #9 0x0000555555577515 in run_argv (argcp=argcp@entry=0x7fffffffdd0c, argv=argv@entry=0x7fffffffdd00) at ./git.c:819 #10 0x0000555555578088 in cmd_main (argc=<optimized out>, argc@entry=3, argv=<optimized out>, argv@entry=0x7fffffffdf28) at ./git.c:954 #11 0x0000555555576209 in main (argc=3, argv=0x7fffffffdf28) at ./common-main.c:64 (gdb) quit A debugging session is active. Inferior 1 [process 635585] will be killed. Quit anyway? (y or n) quit EOF [assumed Y] calestyo@heisenberg:~/xx/foo$ l total 0 drwxr-xr-x 1 calestyo calestyo 8 Feb 15 02:58 . drwxr-xr-x 1 calestyo calestyo 12 Feb 15 02:59 .. drwxr-xr-x 1 calestyo calestyo 98 Feb 15 02:58 .git calestyo@heisenberg:~/xx/foo$ calestyo@heisenberg:~/xx/foo$ calestyo@heisenberg:~/xx/foo$ calestyo@heisenberg:~/xx/foo$ calestyo@heisenberg:~/xx/foo$ calestyo@heisenberg:~/xx/foo$ calestyo@heisenberg:~/xx/foo$ gdb --args git difftool --dir-diff GNU gdb (Debian 16.2-1) 16.2 Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from git... Reading symbols from /usr/lib/debug/.build-id/21/a30636041d46556cf064a7ea3e3a744c89bee2.debug... (gdb) looking slightly different, and I can directly get the backtrace without the coredump (presumably the alias handling get's otherwise in the way with this?). That's all on Debian unstable, with their git package 1:2.47.2-0.1. Cheers, Chris.