Segfault in git 1.8.1.5
Hello,
I segfault with the following command:
git checkout HEAD~1
git branch -u origin/master
I think it's because i'm in detached head.
A error message like cannot use this command in would be a better responce than a segfault.
Good day.
Quoted 10 lines · Strasser Pablo
Hello,
I segfault with the following command:
git checkout HEAD~1
git branch -u origin/masterI think it's because i'm in detached head.
A error message like cannot use this command in would be a better responce than a segfault.
Confirmed.
dennis@lightning:/tmp/hacks$ gdb --args ~/code/git/git branch -u origin/master (gdb) run Starting program: /home/dennis/code/git/git branch -u origin/master [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault. cmd_branch (argc=0, argv=0xbfffec08, prefix=0x0) at builtin/branch.c:886
886 if (!ref_exists(branch->refname))
(gdb) bt
#0 cmd_branch (argc=0, argv=0xbfffec08, prefix=0x0) at builtin/branch.c:886 #1 0x0804c26c in run_builtin (argv=0xbfffec08, argc=3, p=0x819f3f4 <commands.21695+84>) at git.c:273 #2 handle_internal_command (argc=3, argv=0xbfffec08) at git.c:435 #3 0x0804b656 in run_argv (argv=0xbfffeb74, argcp=0xbfffeb70) at git.c:481 #4 main (argc=3, argv=0xbfffec08) at git.c:556
But it's already been fixed by 8efb889: branch: segfault fixes and validation.
Signature · 2 lines
Dennis Kaarsemaker www.kaarsemaker.net
Quoted 4 lines · Strasser Pablo
I segfault with the following command:
git checkout HEAD~1
git branch -u origin/master
A patch to address this in cooking in 'next', and is expected to be in 1.8.2.1 or later.
Quoted 8 lines · On Saturday 09 March 2013 13.16:35 Junio C Hamano wrote:
Quoted 4 lines · Strasser Pablo
I segfault with the following command:
git checkout HEAD~1
git branch -u origin/masterA patch to address this in cooking in 'next', and is expected to be in 1.8.2.1 or later.
Ok thanks.