git/list[1] front-page[2] threads[3] people[4] search[5] about
 

'git -m' dumps core

From
Stefan Näwe <stefan.naewe@atlas-elektronik.com>
Date
Nov 2, 2011, 14:29 UTC
Message-ID
<4EB153B4.6070404@atlas-elektronik.com>

$ /usr/local/git-v1.7.8-rc0/bin/git version git version 1.7.8.rc0

$ /usr/local/git-v1.7.8-rc0/bin/git branch -m Speicherzugriffsfehler (core dumped)

$ /usr/local/git-v1.7.8-rc0/bin/git branch --move Speicherzugriffsfehler (core dumped)

GDB says:
(gdb) bt
#0  0xb74694f3 in strlen () from /lib/i686/cmov/libc.so.6
#1  0x0810f1ad in strbuf_branchname (sb=0xbfb20bbc, name=0x0) at sha1_name.c:873
#2  0x0810f20e in strbuf_check_branch_ref (sb=0xbfb20bbc, name=0x0) at sha1_name.c:882
#3  0x080b516a in validate_new_branchname (name=0x0, ref=0xbfb20bbc, force=0, attr_only=0) at branch.c:142
#4  0x080b550c in create_branch (head=0x94e32ab "master", name=0x0, start_name=0x94e32ab "master", force=0, reflog=0, track=BRANCH_TRACK_REMOTE)
    at branch.c:177
#5  0x0805a8fe in cmd_branch (argc=0, argv=0xbfb215f8, prefix=0x0) at builtin/branch.c:729
#6  0x0804ba29 in handle_internal_command (argc=2, argv=0xbfb215f8) at git.c:308
#7  0x0804bc67 in main (argc=2, argv=0xbfb215f8) at git.c:512
Stefan
-- 
----------------------------------------------------------------
/dev/random says: If ignorance is bliss, you must be ecstatic.
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')"
Next: Tay Ray Chuan
Message 1 of 6 in “'git -m' dumps core”
  1. Stefan NäweNov 2, 2011
  2. branch -m: handle no arg properlyTay Ray Chuan, Nov 2, 2011
  3. Stefan NäweNov 2, 2011
  4. Tay Ray ChuanNov 2, 2011
  5. t3200: add test case for 'branch -m'Stefan Naewe, Nov 2, 2011
  6. Junio C HamanoNov 2, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.