git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Segfault in git 1.8.1.5
@ 2013-03-09 20:16 Strasser Pablo
  2013-03-09 21:13 ` Dennis Kaarsemaker
  2013-03-09 21:16 ` Junio C Hamano
  0 siblings, 2 replies; 4+ messages in thread
From: Strasser Pablo @ 2013-03-09 20:16 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Segfault in git 1.8.1.5
  2013-03-09 20:16 Segfault in git 1.8.1.5 Strasser Pablo
@ 2013-03-09 21:13 ` Dennis Kaarsemaker
  2013-03-09 21:16 ` Junio C Hamano
  1 sibling, 0 replies; 4+ messages in thread
From: Dennis Kaarsemaker @ 2013-03-09 21:13 UTC (permalink / raw)
  To: Strasser Pablo; +Cc: git

On za, 2013-03-09 at 21:16 +0100, Strasser Pablo wrote:
> 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.

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. 
-- 
Dennis Kaarsemaker
www.kaarsemaker.net

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Segfault in git 1.8.1.5
  2013-03-09 20:16 Segfault in git 1.8.1.5 Strasser Pablo
  2013-03-09 21:13 ` Dennis Kaarsemaker
@ 2013-03-09 21:16 ` Junio C Hamano
  2013-03-09 21:31   ` Strasser Pablo
  1 sibling, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2013-03-09 21:16 UTC (permalink / raw)
  To: Strasser Pablo; +Cc: git

Strasser Pablo <strasserpablo@bluewin.ch> writes:

> 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Segfault in git 1.8.1.5
  2013-03-09 21:16 ` Junio C Hamano
@ 2013-03-09 21:31   ` Strasser Pablo
  0 siblings, 0 replies; 4+ messages in thread
From: Strasser Pablo @ 2013-03-09 21:31 UTC (permalink / raw)
  To: gitster, dennis; +Cc: git

On Saturday 09 March 2013 13.16:35 Junio C Hamano wrote:
> Strasser Pablo <strasserpablo@bluewin.ch> writes:
> > 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.

Ok thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-09 21:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-09 20:16 Segfault in git 1.8.1.5 Strasser Pablo
2013-03-09 21:13 ` Dennis Kaarsemaker
2013-03-09 21:16 ` Junio C Hamano
2013-03-09 21:31   ` Strasser Pablo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).