Bug: git push crashing

2013-04-12 Thread Pali Rohár
 = 0x463f50 cmd_symbolic_ref, option = 1}, {cmd = 0x51d96d 
tag, fn = 0x464920 cmd_tag, option = 1}, {cmd = 
0x4f54a5 tar-tree, fn = 0x4657e0 cmd_tar_tree, option = 0}, {cmd = 0x4f54ae 
unpack-file, 
fn = 0x465a50 cmd_unpack_file, option = 1}, {cmd = 0x4f54ba 
unpack-objects, fn = 0x466440 cmd_unpack_objects, 
option = 1}, {cmd = 0x4f54c9 update-index, fn = 0x468400 cmd_update_index, 
option = 1}, {
cmd = 0x4f54d6 update-ref, fn = 0x468f00 cmd_update_ref, option 
= 1}, {cmd = 0x4f54e1 update-server-info, fn = 
0x469190 cmd_update_server_info, option = 1}, {cmd = 0x4f755f 
upload-archive, 
fn = 0x469490 cmd_upload_archive, option = 0}, {cmd = 0x4f54f4 
upload-archive--writer, fn = 0x4692d0 
cmd_upload_archive_writer, option = 0}, {cmd = 0x4f550b var, fn = 0x4696b0 
cmd_var, option = 2}, {
cmd = 0x4f550f verify-pack, fn = 0x4697b0 cmd_verify_pack, 
option = 0}, {cmd = 0x4f551b verify-tag, fn = 0x469b60 
cmd_verify_tag, option = 1}, {cmd = 0x5167b6 version, fn = 0x497a30 
cmd_version, 
option = 0}, {cmd = 0x4f5526 whatchanged, fn = 0x438ae0 
cmd_whatchanged, option = 1}, {cmd = 0x50f5d5 write-
tree, fn = 0x469dc0 cmd_write_tree, option = 1}}
---Type return to continue, or q return to quit---
i = optimized out
#8  0x00404b92 in run_argv (argv=0x7fffdce0, argcp=0x7fffdcec) 
at git.c:513
done_alias = 0
#9  main (argc=3, argv=0x7fffde50) at git.c:588
done_help = 0
was_alias = 0
cmd = 0x7fffe206 push
(gdb) quit


-- 
Pali Rohár
pali.ro...@gmail.com


signature.asc
Description: This is a digitally signed message part.


Re: Bug: git push crashing

2013-04-12 Thread Pali Rohár
On Friday 12 April 2013 21:06:31 John Keeping wrote:
 On Fri, Apr 12, 2013 at 08:50:25PM +0200, Pali Rohár wrote:
  when I'm trying to push one specific branch from my git
  repository to server, git push crashing. Pushing branch is
  rejected by server (because non fast forward), but local
  git app should not crash.
  
  I'm using git from ubuntu apt repository (compiled myself
  for debug symbols), version git_1.7.10.4-1ubuntu1 on amd64
  ubuntu system:
  http://packages.ubuntu.com/source/quantal/git
  
  Here are gdb backtrace and valgrind outputs. I changed
  server, repo and branch strings from output. It looks like
  that git crashing in strcmp function because one of
  arguments is NULL.
  
  If you need more info, I can send it. This crash occur
  always. I can reproduce it again and again...
 
 This looks like the same issue that was fixed by commit
 1d2c14d (push: fix segfault when HEAD points nowhere -
 2013-01-31).
 
 Can you try again with Git 1.8.2 and see if the crash still
 happens?

Hello, now I tried version 1.8.2.1 and git push not crashing :-) 
I also tried version 1.8.1 and as expected it crashed.

So thanks for quick reply, seems that this problem is already 
fixed in 1.8.2.

-- 
Pali Rohár
pali.ro...@gmail.com


signature.asc
Description: This is a digitally signed message part.