{"thread":{"id":"28104","subject":"Core dump on commit","startedAt":"2011-08-15T14:30:55Z","lastAt":"2011-08-15T16:11:38Z","messageCount":10,"participants":["Marko Vukovic","Michael Witten","Nguyen Thai Ngoc Duy","Carlos Martín Nieto"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"173534","messageId":"loom.20110815T162144-798@post.gmane.org","threadId":"28104","inReplyTo":null,"subject":"Core dump on commit","fromName":"Marko Vukovic","fromEmail":"amasniko@yahoo.com","sentAt":"2011-08-15T14:30:55Z","receivedAt":"2011-08-15T14:30:55Z","isPatch":false,"sender":{"key":"amasniko@yahoo.com","avatar":null},"body":"I get this error after running \"git commit\"\n\nerror: Object 42504431bac2e2054483c1bbc35f1b535f8d11bb is a tag, not a commit\nSegmentation fault (core dumped)\n\n\"git cat-file -p 42504431bac2e2054483c1bbc35f1b535f8d11bb\" gives this:\n\nobject 1b9a97613307b5c7bbc189a0e41506cb1534740a\ntype commit\ntag v1.0\ntagger marko <marko@bib> Sun Aug 14 20:42:12 2011 -0400\n\nThe first release\n\n\nI had created a tag yesterday which I deleted since with \"git tag -d\" command.\n\nCuriously, I could not find file\n\".git/objects/42/504431bac2e2054483c1bbc35f1b535f8d11bb\" which I expected based\non my very limited understanding of the Git internals. So, where does \"git\ncat-file\" pick up that information from? But more importantly, how do I fix this\nproblem?\n"},{"id":"173535","messageId":"CAMOZ1BvbNnmqyXmcfUCeJGEcqHR4UkfZhkx1CFJiPLSfnk0CQA@mail.gmail.com","threadId":"28104","inReplyTo":"loom.20110815T162144-798@post.gmane.org","subject":"Re: Core dump on commit","fromName":"Michael Witten","fromEmail":"mfwitten@gmail.com","sentAt":"2011-08-15T14:41:46Z","receivedAt":"2011-08-15T14:41:46Z","isPatch":false,"sender":{"key":"mfwitten@gmail.com","avatar":"https://avatars.githubusercontent.com/u/597101?v=4"},"body":"On Mon, Aug 15, 2011 at 14:30, Marko Vukovic <amasniko@yahoo.com> wrote:\n> error: Object 42504431bac2e2054483c1bbc35f1b535f8d11bb is a tag, not a commit\n> Segmentation fault (core dumped)\n\nYou found a SHA-1 hash collision!? :-P (but really :-/)\n"},{"id":"173536","messageId":"loom.20110815T170136-356@post.gmane.org","threadId":"28104","inReplyTo":"CAMOZ1BvbNnmqyXmcfUCeJGEcqHR4UkfZhkx1CFJiPLSfnk0CQA@mail.gmail.com","subject":"Re: Core dump on commit","fromName":"Marko Vukovic","fromEmail":"amasniko@yahoo.com","sentAt":"2011-08-15T15:02:46Z","receivedAt":"2011-08-15T15:02:46Z","isPatch":false,"sender":{"key":"amasniko@yahoo.com","avatar":null},"body":"Michael Witten <mfwitten <at> gmail.com> writes:\n\n> You found a SHA-1 hash collision!? :-P (but really :-/)\n> \n\nDo I go out and buy a lottery ticket now?\n\nBut seriously, how do I get out of this mess now?\n"},{"id":"173537","messageId":"CACsJy8AL5D938HA-sQkFkn_d9xuT2Vw8BKfD-h+V=iEkNrS1eA@mail.gmail.com","threadId":"28104","inReplyTo":"loom.20110815T162144-798@post.gmane.org","subject":"Re: Core dump on commit","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2011-08-15T15:12:18Z","receivedAt":"2011-08-15T15:12:18Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Mon, Aug 15, 2011 at 9:30 PM, Marko Vukovic <amasniko@yahoo.com> wrote:\n> I get this error after running \"git commit\"\n>\n> error: Object 42504431bac2e2054483c1bbc35f1b535f8d11bb is a tag, not a commit\n> Segmentation fault (core dumped)\n\nCan you get the stack trace? Does HEAD point to\n42504431bac2e2054483c1bbc35f1b535f8d11bb (iow what does \"git rev-parse\nHEAD\" say).\n\n> \"git cat-file -p 42504431bac2e2054483c1bbc35f1b535f8d11bb\" gives this:\n>\n> object 1b9a97613307b5c7bbc189a0e41506cb1534740a\n> type commit\n> tag v1.0\n> tagger marko <marko@bib> Sun Aug 14 20:42:12 2011 -0400\n>\n> The first release\n\nIf HEAD does point to 42504431, I think you can do \"git reset\n1b9a976133\" to reset the HEAD back to a commit object (as oppose to a\ntag)\n\nBut please backup the repository somewhere, I'm still not sure how you\nget into this situation. The repo may help.\n--\nDuy\n"},{"id":"173540","messageId":"CACsJy8CKFeSXy-QV=qdgtax92TdWCfem9rC-FYzptjd1JA1+AA@mail.gmail.com","threadId":"28104","inReplyTo":"loom.20110815T162144-798@post.gmane.org","subject":"Re: Core dump on commit","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2011-08-15T15:26:42Z","receivedAt":"2011-08-15T15:26:42Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Mon, Aug 15, 2011 at 9:30 PM, Marko Vukovic <amasniko@yahoo.com> wrote:\n> I get this error after running \"git commit\"\n>\n> error: Object 42504431bac2e2054483c1bbc35f1b535f8d11bb is a tag, not a commit\n> Segmentation fault (core dumped)\n\nIf I put a tag to HEAD, I could reproduce this. Let's assume that \"git\ncat-file -t HEAD\" in your repo returns \"tag\", how did you create the\nlast commits? Did you modify a ref manually? What git version did you\nuse?\n-- \nDuy\n"},{"id":"173543","messageId":"loom.20110815T172423-956@post.gmane.org","threadId":"28104","inReplyTo":"CACsJy8AL5D938HA-sQkFkn_d9xuT2Vw8BKfD-h+V=iEkNrS1eA@mail.gmail.com","subject":"Re: Core dump on commit","fromName":"Marko Vukovic","fromEmail":"amasniko@yahoo.com","sentAt":"2011-08-15T15:48:46Z","receivedAt":"2011-08-15T15:48:46Z","isPatch":false,"sender":{"key":"amasniko@yahoo.com","avatar":null},"body":"Nguyen Thai Ngoc Duy <pclouds <at> gmail.com> writes:\n\n> Can you get the stack trace? Does HEAD point to\n\nPlease find the stack trace at the end of the message (I did not want to insert\nit in the middle)\n\n> 42504431bac2e2054483c1bbc35f1b535f8d11bb (iow what does \"git rev-parse\n> HEAD\" say).\n> \n> If HEAD does point to 42504431, I think you can do \"git reset\n> 1b9a976133\" to reset the HEAD back to a commit object (as oppose to a\n> tag)\n> \nIt does print the same hash.\n\nPardon my ignorance, but what does \"git reset\" do? I have got some uncommitted\nchanges in the staging area. What will happen to them?\n\nThe stack trace:\n\n[New Thread 10518]\n[Thread debugging using libthread_db enabled]\nCore was generated by `git commit'.\nProgram terminated with signal 11, Segmentation fault.\n#0  sha1_to_hex (sha1=0x4 <Address 0x4 out of bounds>) at hex.c:60\n60      hex.c: No such file or directory.\n        in hex.c\n\nThread 1 (Thread 0x7f290c8e3720 (LWP 10518)):\n#0  sha1_to_hex (sha1=0x4 <Address 0x4 out of bounds>) at hex.c:60\n        val = <value optimized out>\n        bufno = 3\n        hexbuffer = {'\\000' <repeats 49 times>,\n\"42504431bac2e2054483c1bbc35f1b535f8d11bb\\000\\000\\000\\000\\000\\000\\000\\000\\000\",\n\"583438f1bd3bf58f3defb0cb6adbf32b26a2ce43\\000\\000\\000\\000\\000\\000\\000\\000\\000\",\n'\\000' <repeats 49 times>}\n        hex = \"0123456789abcdef\"\n        buffer = 0x75f936 \"\"\n#1  0x0000000000471fe3 in commit_tree (msg=0x9d5920 \"Weekend and holiday\nfees\\n\", tree=<value optimized out>, parents=0x9d5900, ret=0x7fff55c683f0\n\"\\022\", author=0x989f10 \"Marko Vukovic <marko@bib.(none)> 1313422327 -0400\") at\ncommit.c:855\n        next = 0x0\n        result = <value optimized out>\n        encoding_is_utf8 = 1\n        buffer = {alloc = 8193, len = 46, buf = 0x9d8950 \"tree\n583438f1bd3bf58f3defb0cb6adbf32b26a2ce43\\n\"}\n#2  0x000000000041c223 in cmd_commit (argc=<value optimized out>, argv=<value\noptimized out>, prefix=0x0) at builtin/commit.c:1394\n        sb = {alloc = 12313, len = 25, buf = 0x9d5920 \"Weekend and holiday fees\\\n\nn\"}\n        author_ident = {alloc = 50, len = 49, buf = 0x989f10 \"Marko Vukovic\n<marko@bib.(none)> 1313422327 -0400\"}\n        index_file = 0x7fff55c67330 \"\"\n        reflog_msg = 0x4e6e0f \"commit\"\n        nl = <value optimized out>\n        p = <value optimized out>\n        commit_sha1 =\n\"\\022\\000\\000\\000\\000\\000\\000\\000\\022\\000\\000\\000\\000\\000\\000\\000[\\000\\000\"\n        ref_lock = <value optimized out>\n        parents = 0x9d5900\n        pptr = <value optimized out>\n        statbuf = {st_dev = 0, st_ino = 2, st_nlink = 0, st_mode = 0, st_uid =\n0, st_gid = 1439068784, __pad0 = 32767, st_rdev = 64, st_size = 0, st_blksize =\n0, st_blocks = 0, st_atim = {tv_sec = 206158430210, tv_nsec = 472446402651},\nst_mtim = {tv_sec = 532575944823, tv_nsec = 140734632456832}, st_ctim = {tv_sec\n= 140734632456815, tv_nsec = 140734632457008}, __unused = {4096, 5116818,\n233337090496}}\n        s = {is_initial = 0, branch = 0x9754c0 \"refs/heads/release-1\", reference\n\n= 0x4e3c11 \"HEAD\", pathspec = 0x0, verbose = 0, amend = 0, in_merge = 0, nowarn\n= 1, use_color = 0, relative_paths = 1, submodule_summary = 0,\nshow_ignored_files = 0, show_untracked_files = SHOW_NORMAL_UNTRACKED_FILES,\nignore_submodule_arg = 0x0, color_palette = {'\\000' <repeats 39 times>,\n\"\\033[32m\", '\\000' <repeats 34 times>, \"\\033[31m\", '\\000' <repeats 34 times>,\n\"\\033[31m\", '\\000' <repeats 34 times>, \"\\033[31m\", '\\000' <repeats 34 times>,\n\"\\033[31m\", '\\000' <repeats 34 times>, \"\\033[32m\", '\\000' <repeats 34 times>,\n\"\\033[31m\", '\\000' <repeats 34 times>, \"NIL\", '\\000' <repeats 36 times>},\ncommitable = 1, workdir_dirty = 1, index_file = 0x975480 \".git/index\", fp =\n0x988630, prefix = 0x0, change = {items = 0x98ae60, nr = 10, alloc = 32,\nstrdup_strings = 1}, untracked = {items = 0x9cd490, nr = 14, alloc = 32,\nstrdup_strings = 1}, ignored = {items = 0x0, nr = 0, alloc = 0, strdup_strings =\n 1}}\n#3  0x000000000040462c in run_builtin (argc=1, argv=0x7fff55c686a0) at git.c:290\n\n        status = <value optimized out>\n        help = <value optimized out>\n        st = {st_dev = 7094065766045672051, st_ino = 7308620263551823465,\nst_nlink = 7074996046893509935, st_mode = 28265, st_uid = 0, st_gid = 9916512,\n__pad0 = 0, st_rdev = 233333546946, st_size = 140734632462224, st_blksize = 1,\nst_blocks = 4294967296, st_atim = {tv_sec = 150, tv_nsec = 9916512}, st_mtim =\n{tv_sec = 140734632461552, tv_nsec = 140734632471472}, st_ctim = {tv_sec =\n4210352, tv_nsec = 140734632461648}, __unused = {0, 0, 4992233}}\n        prefix = <value optimized out>\n#4  handle_internal_command (argc=1, argv=0x7fff55c686a0) at git.c:448\n        p = <value optimized out>\n        cmd = <value optimized out>\n        commands = {{cmd = 0x4f481b \"add\", fn = 0x4051d0 <cmd_add>, option = 9},\n\n{cmd = 0x4e1145 \"stage\", fn = 0x4051d0 <cmd_add>, option = 9}, {cmd = 0x4e114b\n\"annotate\", fn = 0x405bf0 <cmd_annotate>, option = 1}, {cmd = 0x4e1949 \"apply\",\nfn = 0x40c9e0 <cmd_apply>, option = 2}, {cmd = 0x4e3426 \"archive\", fn = 0x40d6d0\n\n<cmd_archive>, option = 0}, {cmd = 0x4e1154 \"bisect--helper\", fn = 0x40d940\n<cmd_bisect__helper>, option = 9}, {cmd = 0x4e1163 \"blame\", fn = 0x410210\n<cmd_blame>, option = 1}, {cmd = 0x4f49e0 \"branch\", fn = 0x412a00 <cmd_branch>,\noption = 1}, {cmd = 0x4e6363 \"bundle\", fn = 0x413b30 <cmd_bundle>, option = 2},\n{cmd = 0x4e1169 \"cat-file\", fn = 0x413e30 <cmd_cat_file>, option = 1}, {cmd =\n0x4e649d \"checkout\", fn = 0x4168e0 <cmd_checkout>, option = 9}, {cmd = 0x4e1172\n\"checkout-index\", fn = 0x4150c0 <cmd_checkout_index>, option = 9}, {cmd =\n0x4e1181 \"check-ref-format\", fn = 0x414b20 <cmd_check_ref_format>, option = 0},\n{cmd = 0x4e1192 \"check-attr\", fn = 0x4147b0 <cmd_check_attr>, option = 1}, {cmd\n= 0x4e119d \"cherry\", fn = 0x4360c0 <cmd_cherry>, option = 1}, {cmd = 0x50432a\n\"cherry-pick\", fn = 0x45a1a0 <cmd_cherry_pick>, option = 9}, {cmd = 0x4e11a4\n\"clone\", fn = 0x418d30 <cmd_clone>, option = 0}, {cmd = 0x4e11aa \"clean\", fn =\n0x417fa0 <cmd_clean>, option = 9}, {cmd = 0x4e6e0f \"commit\", fn = 0x41b2b0\n<cmd_commit>, option = 9}, {cmd = 0x4e11b0 \"commit-tree\", fn = 0x419f80\n<cmd_commit_tree>, option = 1}, {cmd = 0x4e1392 \"config\", fn = 0x41e010\n<cmd_config>, option = 2}, {cmd = 0x4e11bc \"count-objects\", fn = 0x41e740\n<cmd_count_objects>, option = 1}, {cmd = 0x4e11ca \"describe\", fn = 0x41f8f0\n<cmd_describe>, option = 1}, {cmd = 0x4fd07d \"diff\", fn = 0x420910 <cmd_diff>,\noption = 0}, {cmd = 0x4e11d3 \"diff-files\", fn = 0x41fe80 <cmd_diff_files>,\noption = 9}, {cmd = 0x4e11de \"diff-index\", fn = 0x4200d0 <cmd_diff_index>,\noption = 1}, {cmd = 0x4e11e9 \"diff-tree\", fn = 0x420270 <cmd_diff_tree>, option\n= 1}, {cmd = 0x506d5a \"fast-export\", fn = 0x421d20 <cmd_fast_export>, option =\n1}, {cmd = 0x4e63e3 \"fetch\", fn = 0x426a70 <cmd_fetch>, option = 1}, {cmd =\n0x4e11f3 \"fetch-pack\", fn = 0x4245e0 <cmd_fetch_pack>, option = 1}, {cmd =\n0x4e11fe \"fmt-merge-msg\", fn = 0x427a20 <cmd_fmt_merge_msg>, option = 1}, {cmd =\n\n0x4e120c \"for-each-ref\", fn = 0x4296b0 <cmd_for_each_ref>, option = 1}, {cmd =\n0x4e1219 \"format-patch\", fn = 0x434930 <cmd_format_patch>, option = 1}, {cmd =\n0x4fe34e \"fsck\", fn = 0x42a910 <cmd_fsck>, option = 1}, {cmd = 0x4e1226\n\"fsck-objects\", fn = 0x42a910 <cmd_fsck>, option = 1}, {cmd = 0x4ebe68 \"gc\", fn\n= 0x42b490 <cmd_gc>, option = 1}, {cmd = 0x4e1233 \"get-tar-commit-id\", fn =\n0x460a10 <cmd_get_tar_commit_id>, option = 0}, {cmd = 0x4ec25b \"grep\", fn =\n0x42cbe0 <cmd_grep>, option = 2}, {cmd = 0x4e1245 \"hash-object\", fn = 0x42e540\n<cmd_hash_object>, option = 0}, {cmd = 0x4e0f80 \"help\", fn = 0x42f210\n<cmd_help>, option = 0}, {cmd = 0x4e1251 \"index-pack\", fn = 0x4307c0\n<cmd_index_pack>, option = 2}, {cmd = 0x4e6527 \"init\", fn = 0x432920\n<cmd_init_db>, option = 0}, {cmd = 0x4e125c \"init-db\", fn = 0x432920\n<cmd_init_db>, option = 0}, {cmd = 0x503888 \"log\", fn = 0x434850 <cmd_log>,\noption = 1}, {cmd = 0x4e1264 \"ls-files\", fn = 0x436bc0 <cmd_ls_files>, option =\n1}, {cmd = 0x4e126d \"ls-tree\", fn = 0x438560 <cmd_ls_tree>, option = 1}, {cmd =\n0x4e1275 \"ls-remote\", fn = 0x437e20 <cmd_ls_remote>, option = 2}, {cmd =\n0x4e127f \"mailinfo\", fn = 0x439fb0 <cmd_mailinfo>, option = 0}, {cmd = 0x4e1288\n\"mailsplit\", fn = 0x43b4d0 <cmd_mailsplit>, option = 0}, {cmd = 0x4f01d7\n\"merge\", fn = 0x43d170 <cmd_merge>, option = 9}, {cmd = 0x4e1292 \"merge-base\",\nfn = 0x43ece0 <cmd_merge_base>, option = 1}, {cmd = 0x4e129d \"merge-file\", fn =\n0x43f060 <cmd_merge_file>, option = 2}, {cmd = 0x4e12a8 \"merge-index\", fn =\n0x43f820 <cmd_merge_index>, option = 1}, {cmd = 0x4e12b4 \"merge-ours\", fn =\n0x43fa50 <cmd_merge_ours>, option = 1}, {cmd = 0x4e12bf \"merge-recursive\", fn =\n0x43fb20 <cmd_merge_recursive>, option = 9}, {cmd = 0x4e12cf\n\"merge-recursive-ours\", fn = 0x43fb20 <cmd_merge_recursive>, option = 9}, {cmd =\n\n0x4e12e4 \"merge-recursive-theirs\", fn = 0x43fb20 <cmd_merge_recursive>, option =\n\n9}, {cmd = 0x4e12fb \"merge-subtree\", fn = 0x43fb20 <cmd_merge_recursive>, option\n\n= 9}, {cmd = 0x4e1309 \"merge-tree\", fn = 0x440340 <cmd_merge_tree>, option = 1},\n\n{cmd = 0x4e1314 \"mktag\", fn = 0x440710 <cmd_mktag>, option = 1}, {cmd = 0x4e131a\n\n\"mktree\", fn = 0x440c70 <cmd_mktree>, option = 1}, {cmd = 0x4e1321 \"mv\", fn =\n0x441450 <cmd_mv>, option = 9}, {cmd = 0x4e1324 \"name-rev\", fn = 0x4421c0\n<cmd_name_rev>, option = 1}, {cmd = 0x4f108c \"notes\", fn = 0x443880 <cmd_notes>,\n\noption = 1}, {cmd = 0x4fad16 \"pack-objects\", fn = 0x448240 <cmd_pack_objects>,\noption = 1}, {cmd = 0x4e132d \"pack-redundant\", fn = 0x449b70\n<cmd_pack_redundant>, option = 1}, {cmd = 0x4e133c \"patch-id\", fn = 0x44b100\n<cmd_patch_id>, option = 0}, {cmd = 0x4e1345 \"peek-remote\", fn = 0x437e20\n<cmd_ls_remote>, option = 2}, {cmd = 0x4e1351 \"pickaxe\", fn = 0x410210\n<cmd_blame>, option = 1}, {cmd = 0x4f4757 \"prune\", fn = 0x44b750 <cmd_prune>,\noption = 1}, {cmd = 0x4e1359 \"prune-packed\", fn = 0x44b520 <cmd_prune_packed>,\noption = 1}, {cmd = 0x506773 \"push\", fn = 0x44bdd0 <cmd_push>, option = 1}, {cmd\n= 0x4e1366 \"read-tree\", fn = 0x44c8d0 <cmd_read_tree>, option = 1}, {cmd =\n0x4f6fcf \"receive-pack\", fn = 0x44da50 <cmd_receive_pack>, option = 0}, {cmd =\n0x4e4514 \"reflog\", fn = 0x4503f0 <cmd_reflog>, option = 1}, {cmd = 0x4f4614\n\"remote\", fn = 0x4519a0 <cmd_remote>, option = 1}, {cmd = 0x4e1370 \"remote-ext\",\n\nfn = 0x454c20 <cmd_remote_ext>, option = 0}, {cmd = 0x4e137b \"remote-fd\", fn =\n0x454dd0 <cmd_remote_fd>, option = 0}, {cmd = 0x4e1385 \"replace\", fn = 0x4551f0\n<cmd_replace>, option = 1}, {cmd = 0x4e138d \"repo-config\", fn = 0x41e010\n<cmd_config>, option = 2}, {cmd = 0x4e1399 \"rerere\", fn = 0x455540 <cmd_rerere>,\n\noption = 1}, {cmd = 0x4e5743 \"reset\", fn = 0x455ff0 <cmd_reset>, option = 1},\n{cmd = 0x4eaa47 \"rev-list\", fn = 0x456f30 <cmd_rev_list>, option = 1}, {cmd =\n0x4e13a0 \"rev-parse\", fn = 0x457930 <cmd_rev_parse>, option = 0}, {cmd =\n0x4e13aa \"revert\", fn = 0x45a150 <cmd_revert>, option = 9}, {cmd = 0x4e13b1\n\"rm\", fn = 0x45a1b0 <cmd_rm>, option = 1}, {cmd = 0x4e13b4 \"send-pack\", fn =\n0x45b3d0 <cmd_send_pack>, option = 1}, {cmd = 0x4e13be \"shortlog\", fn = 0x45c640\n\n<cmd_shortlog>, option = 6}, {cmd = 0x4e13c7 \"show-branch\", fn = 0x45d2f0\n<cmd_show_branch>, option = 1}, {cmd = 0x4e13d3 \"show\", fn = 0x434390\n<cmd_show>, option = 1}, {cmd = 0x4f6f44 \"status\", fn = 0x41b000 <cmd_status>,\noption = 9}, {cmd = 0x4e13d8 \"stripspace\", fn = 0x45f170 <cmd_stripspace>,\noption = 0}, {cmd = 0x4e13e3 \"symbolic-ref\", fn = 0x45f260 <cmd_symbolic_ref>,\noption = 1}, {cmd = 0x50640d \"tag\", fn = 0x45f9a0 <cmd_tag>, option = 1}, {cmd =\n\n0x4e13f0 \"tar-tree\", fn = 0x460880 <cmd_tar_tree>, option = 0}, {cmd = 0x4e13f9\n\"unpack-file\", fn = 0x460af0 <cmd_unpack_file>, option = 1}, {cmd = 0x4e1405\n\"unpack-objects\", fn = 0x461510 <cmd_unpack_objects>, option = 1}, {cmd =\n0x4e1414 \"update-index\", fn = 0x463550 <cmd_update_index>, option = 1}, {cmd =\n0x4e1421 \"update-ref\", fn = 0x464150 <cmd_update_ref>, option = 1}, {cmd =\n0x4e142c \"update-server-info\", fn = 0x4643e0 <cmd_update_server_info>, option =\n1}, {cmd = 0x4e341f \"upload-archive\", fn = 0x4647e0 <cmd_upload_archive>, option\n\n= 0}, {cmd = 0x4e143f \"var\", fn = 0x464ac0 <cmd_var>, option = 2}, {cmd =\n0x4e1443 \"verify-tag\", fn = 0x4653b0 <cmd_verify_tag>, option = 1}, {cmd =\n0x50005d \"version\", fn = 0x48ebd0 <cmd_version>, option = 0}, {cmd = 0x4e144e\n\"whatchanged\", fn = 0x434280 <cmd_whatchanged>, option = 1}, {cmd = 0x4f9c35\n\"write-tree\", fn = 0x4655c0 <cmd_write_tree>, option = 1}, {cmd = 0x4e145a\n\"verify-pack\", fn = 0x465090 <cmd_verify_pack>, option = 0}, {cmd = 0x4e1466\n\"show-ref\", fn = 0x45ed70 <cmd_show_ref>, option = 1}, {cmd = 0x4e146f\n\"pack-refs\", fn = 0x44ac80 <cmd_pack_refs>, option = 1}}\n        i = <value optimized out>\n#5  0x0000000000404848 in run_argv (argc=1, argv=0x7fff55c686a0) at git.c:492\n        done_alias = 0\n#6  main (argc=1, argv=0x7fff55c686a0) at git.c:565\n        done_help = 0\n        was_alias = 0\n        cmd = 0x7fff55c6a2dc \"commit\"\nFrom                To                  Syms Read   Shared Object Library\n0x0000003cb5c01e70  0x0000003cb5c0e678  Yes         /lib64/libz.so.1\n0x0000003654805630  0x00000036548108b8  Yes (*)     /lib64/libpthread.so.0\n0x0000003653c1eba0  0x0000003653d45f5c  Yes (*)     /lib64/libc.so.6\n0x0000003653800b20  0x0000003653818c46  Yes (*)     /lib64/ld-linux-x86-64.so.2\n0x00007f290c6d9120  0x00007f290c6e0448  Yes (*)     /lib64/libnss_files.so.2\n(*): Shared library is missing debugging information.\n$1 = 0x0\nNo symbol \"__glib_assert_msg\" in current context.\nrax            0x75f936 7731510\nrbx            0x9d5900 10311936\nrcx            0x4fb256 5222998\nrdx            0x0      0\nrsi            0x2e     46\nrdi            0x4      4\nrbp            0x0      0x0\nrsp            0x7fff55c66e88   0x7fff55c66e88\nr8             0x1      1\nr9             0x28     40\nr10            0x3261363262323366       3630242364661052262\nr11            0x2001   8193\nr12            0x9d5920 10311968\nr13            0x7fff55c683f0   140734632461296\nr14            0x7fff55c66ea0   140734632455840\nr15            0x989f10 10002192\nrip            0x48ec78 0x48ec78 <sha1_to_hex+40>\neflags         0x10206  [ PF IF RF ]\ncs             0x33     51\nss             0x2b     43\nds             0x0      0\nes             0x0      0\nfs             0x0      0\ngs             0x0      0\nDump of assembler code for function sha1_to_hex:\n   0x000000000048ec50 <+0>:     mov    0x2d0d12(%rip),%eax        # 0x75f968\n   0x000000000048ec56 <+6>:     xor    %edx,%edx\n   0x000000000048ec58 <+8>:     add    $0x1,%eax\n   0x000000000048ec5b <+11>:    mov    %eax,0x2d0d07(%rip)        # 0x75f968\n   0x000000000048ec61 <+17>:    and    $0x3,%eax\n   0x000000000048ec64 <+20>:    lea    (%rax,%rax,4),%rax\n   0x000000000048ec68 <+24>:    lea    (%rax,%rax,4),%rax\n   0x000000000048ec6c <+28>:    lea    0x75f8a0(%rax,%rax,1),%rax\n   0x000000000048ec74 <+36>:    nopl   0x0(%rax)\n=> 0x000000000048ec78 <+40>:    movzbl (%rdi),%ecx\n   0x000000000048ec7b <+43>:    add    $0x1,%rdi\n   0x000000000048ec7f <+47>:    mov    %ecx,%esi\n   0x000000000048ec81 <+49>:    and    $0xf,%ecx\n   0x000000000048ec84 <+52>:    shr    $0x4,%esi\n   0x000000000048ec87 <+55>:    movzbl 0x4fec80(%rcx),%ecx\n   0x000000000048ec8e <+62>:    mov    %esi,%esi\n   0x000000000048ec90 <+64>:    movzbl 0x4fec80(%rsi),%esi\n   0x000000000048ec97 <+71>:    mov    %cl,0x1(%rax,%rdx,1)\n   0x000000000048ec9b <+75>:    mov    %sil,(%rax,%rdx,1)\n   0x000000000048ec9f <+79>:    add    $0x2,%rdx\n   0x000000000048eca3 <+83>:    cmp    $0x28,%rdx\n   0x000000000048eca7 <+87>:    jne    0x48ec78 <sha1_to_hex+40>\n   0x000000000048eca9 <+89>:    movb   $0x0,0x28(%rax)\n   0x000000000048ecad <+93>:    retq\nEnd of assembler dump.\n"},{"id":"173544","messageId":"loom.20110815T174958-742@post.gmane.org","threadId":"28104","inReplyTo":"CACsJy8CKFeSXy-QV=qdgtax92TdWCfem9rC-FYzptjd1JA1+AA@mail.gmail.com","subject":"Re: Core dump on commit","fromName":"Marko Vukovic","fromEmail":"amasniko@yahoo.com","sentAt":"2011-08-15T15:55:06Z","receivedAt":"2011-08-15T15:55:06Z","isPatch":false,"sender":{"key":"amasniko@yahoo.com","avatar":null},"body":"Nguyen Thai Ngoc Duy <pclouds <at> gmail.com> writes:\n\n> If I put a tag to HEAD, I could reproduce this. Let's assume that \"git\n> cat-file -t HEAD\" in your repo returns \"tag\", how did you create the\n> last commits? Did you modify a ref manually? What git version did you\n> use?\n\nSorry, I do not understand what you mean by \"modifying a ref manually\". I\ncreated the last commit and the tag with the Eclipse plugin \"eGit\". Later when I\ncould not create more commits, I deleted the tag from the command line and also\ntried to commit from the command line which gave me the core dump.\n\nI have got git.x86_64 package 1.7.4.4-1.fc14 installed on my computer.\n"},{"id":"173545","messageId":"CACsJy8BBvgJauL4a9MxWAXGN-_qiAKprt15hizyBp0O9knwKrg@mail.gmail.com","threadId":"28104","inReplyTo":"loom.20110815T172423-956@post.gmane.org","subject":"Re: Core dump on commit","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2011-08-15T16:03:13Z","receivedAt":"2011-08-15T16:03:13Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Mon, Aug 15, 2011 at 10:48 PM, Marko Vukovic <amasniko@yahoo.com> wrote:\n> Pardon my ignorance, but what does \"git reset\" do? I have got some uncommitted\n> changes in the staging area. What will happen to them?\n\nI should have written \"git reset --soft 1b9a976133\", which resets HEAD\nref back to (assuming) good commit. See [1] for more information. I\nthink for some reason, eGit put a tag object to HEAD, while it should\nbe a commit object. By resetting it back to the commit that the tag\npoints to, you may be able to commit again.\n\nNo history would be lost. Also if you use --soft, index should be\nuntouched. As always, back up your repository (copy the whole\ndirectory, including .git) before doing anything.\n\n[1] http://www.kernel.org/pub/software/scm/git/docs/git-reset.html\n-- \nDuy\n"},{"id":"173546","messageId":"loom.20110815T180732-236@post.gmane.org","threadId":"28104","inReplyTo":"CACsJy8BBvgJauL4a9MxWAXGN-_qiAKprt15hizyBp0O9knwKrg@mail.gmail.com","subject":"Re: Core dump on commit","fromName":"Marko Vukovic","fromEmail":"amasniko@yahoo.com","sentAt":"2011-08-15T16:09:11Z","receivedAt":"2011-08-15T16:09:11Z","isPatch":false,"sender":{"key":"amasniko@yahoo.com","avatar":null},"body":"Nguyen Thai Ngoc Duy <pclouds <at> gmail.com> writes:\n\n> I should have written \"git reset --soft 1b9a976133\", which resets HEAD\n> ref back to (assuming) good commit. See [1] for more information. I\n> think for some reason, eGit put a tag object to HEAD, while it should\n> be a commit object. By resetting it back to the commit that the tag\n> points to, you may be able to commit again.\n> \n> No history would be lost. Also if you use --soft, index should be\n> untouched. As always, back up your repository (copy the whole\n> directory, including .git) before doing anything.\n> \n> [1] http://www.kernel.org/pub/software/scm/git/docs/git-reset.html\n\nThank you very much, I was able to commit after the reset.\n\nI shall remember never to use eGit for tagging in the future!\n"},{"id":"173547","messageId":"1313424698.12213.1.camel@centaur.lab.cmartin.tk","threadId":"28104","inReplyTo":"loom.20110815T180732-236@post.gmane.org","subject":"Re: Core dump on commit","fromName":"Carlos Martín Nieto","fromEmail":"cmn@elego.de","sentAt":"2011-08-15T16:11:38Z","receivedAt":"2011-08-15T16:11:38Z","isPatch":false,"sender":{"key":"cmn@elego.de","avatar":"https://avatars.githubusercontent.com/u/335443?v=4"},"body":"On Mon, 2011-08-15 at 16:09 +0000, Marko Vukovic wrote:\n> Nguyen Thai Ngoc Duy <pclouds <at> gmail.com> writes:\n> \n> > I should have written \"git reset --soft 1b9a976133\", which resets HEAD\n> > ref back to (assuming) good commit. See [1] for more information. I\n> > think for some reason, eGit put a tag object to HEAD, while it should\n> > be a commit object. By resetting it back to the commit that the tag\n> > points to, you may be able to commit again.\n> > \n> > No history would be lost. Also if you use --soft, index should be\n> > untouched. As always, back up your repository (copy the whole\n> > directory, including .git) before doing anything.\n> > \n> > [1] http://www.kernel.org/pub/software/scm/git/docs/git-reset.html\n> \n> Thank you very much, I was able to commit after the reset.\n> \n> I shall remember never to use eGit for tagging in the future!\n\nA (probably) more useful way to deal with it would be to report a bug to\nEGIT so they know about it and can fix it.\n\nCheers,\n   cmn\n\n"}]}