Hi all, Does anyone see a segfault on `git show-branch --reflog refs/pullreqs/1`? It seems files_reflog_path() creates a wrong path with the above command using REF_WORKTREE_SHARED. refs/pullreqs is from GitHub if you have the following line in .git/config: fetch = +refs/pull/*/head:refs/pullreqs/* (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 0x00007ffff7e101cf in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78 #2 0x00007ffff7dc2472 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #3 0x00007ffff7dac4b2 in __GI_abort () at ./stdlib/abort.c:79 #4 0x00007ffff7dad1ed in __libc_message (fmt=fmt@entry=0x7ffff7f1f78c "%s\n") at ../sysdeps/posix/libc_fatal.c:150 #5 0x00007ffff7e19ae5 in malloc_printerr (str=str@entry=0x7ffff7f1d22c "free(): invalid pointer") at ./malloc/malloc.c:5658 #6 0x00007ffff7e1b864 in _int_free (av=<optimized out>, p=<optimized out>, have_lock=have_lock@entry=0) at ./malloc/malloc.c:4432 #7 0x00007ffff7e1e1df in __GI___libc_free (mem=<optimized out>) at ./malloc/malloc.c:3367 #8 0x0000555555625ae2 in cmd_show_branch (ac=<optimized out>, av=<optimized out>, prefix=<optimized out>) at builtin/show-branch.c:801 #9 0x0000555555572250 in run_builtin (argv=0x7fffffffe080, argc=3, p=0x5555558ca198 <commands+2712>) at git.c:469 #10 handle_builtin (argc=3, argv=0x7fffffffe080) at git.c:724 #11 0x00005555555731b4 in run_argv (argcp=argcp@entry=0x7fffffffde6c, argv=argv@entry=0x7fffffffde60) at git.c:788 #12 0x0000555555573d38 in cmd_main (argc=<optimized out>, argc@entry=4, argv=<optimized out>, argv@entry=0x7fffffffe078) at git.c:923 #13 0x0000555555571f10 in main (argc=4, argv=0x7fffffffe078) at common-main.c:62 Best, -- yashi