{"thread":{"id":"25548","subject":"Fwd: git status & seg.fault","startedAt":"2010-10-26T06:44:56Z","lastAt":"2010-11-07T09:31:56Z","messageCount":7,"participants":["Rado Dr.","Ævar Arnfjörð Bjarmason","Nguyen Thai Ngoc Duy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"154438","messageId":"AANLkTinghepgdMRjEBhpAMz-Mr0g7szKyYEDfE=ttstS@mail.gmail.com","threadId":"25548","inReplyTo":"AANLkTinymMtDKt1V9xb+adJiSoOKT8YSy1qHuHc_=yVq@mail.gmail.com","subject":"Fwd: git status & seg.fault","fromName":"Rado Dr.","fromEmail":"radodr@gmail.com","sentAt":"2010-10-26T06:44:56Z","receivedAt":"2010-10-26T06:44:56Z","isPatch":false,"sender":{"key":"radodr@gmail.com","avatar":"https://gravatar.com/avatar/764d40381eb0625c79a7a1df8d04eb9d20229014325a84ee6fb081494adc952e?d=mp&s=160"},"body":"Hi there,\n\nI have \"Segmentation fault\" error after \"git status\" command in one of\nmy local repos. Just i one repo, other repos are OK. I can't find any\nclue how to fix it, and as usually I need work with that repo ;-)\n\nI tried this:\n - git gc  -> OK\n - git fsck ->\nmissing blob 0000000000000000000000000000000000000000\ndangling blob 2f1f0144f786ca887c4911a064bbb28a047f1f77\ndangling blob 7ffb0f4e430cd60261661138df61ecb50cf1d0a4\n\nIs this the reason of fault? If yes, how can I fix it.\n\nMy system info:\nLinux 32bit, Ubuntu 10.04 LTS - Lucid Lynx,\ngit version 1.7.0.4\n\nThank you for help\nRado Dr.\n"},{"id":"154440","messageId":"AANLkTikhU+hBwsh24JYGmwHoNFGMseAx_+rUMYH4XGkT@mail.gmail.com","threadId":"25548","inReplyTo":"AANLkTinghepgdMRjEBhpAMz-Mr0g7szKyYEDfE=ttstS@mail.gmail.com","subject":"Re: git status & seg.fault","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2010-10-26T08:03:07Z","receivedAt":"2010-10-26T08:03:07Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"On Tue, Oct 26, 2010 at 08:44, Rado Dr. <radodr@gmail.com> wrote:\n> I have \"Segmentation fault\" error after \"git status\" command in one of\n> my local repos. Just i one repo, other repos are OK. I can't find any\n> clue how to fix it, and as usually I need work with that repo ;-)\n>\n> I tried this:\n>  - git gc  -> OK\n>  - git fsck ->\n> missing blob 0000000000000000000000000000000000000000\n> dangling blob 2f1f0144f786ca887c4911a064bbb28a047f1f77\n> dangling blob 7ffb0f4e430cd60261661138df61ecb50cf1d0a4\n>\n> Is this the reason of fault? If yes, how can I fix it.\n>\n> My system info:\n> Linux 32bit, Ubuntu 10.04 LTS - Lucid Lynx,\n> git version 1.7.0.4\n\nCan you reproduce it on the latest version of git built from git.git?\n\nCan you run it under gdb and provide a \"bt full\" backtrace?\n"},{"id":"154441","messageId":"AANLkTimRBmJkXh9LjgL51bwFD=AGBJRc2d1R0g=z0v2t@mail.gmail.com","threadId":"25548","inReplyTo":"AANLkTikhU+hBwsh24JYGmwHoNFGMseAx_+rUMYH4XGkT@mail.gmail.com","subject":"Re: git status & seg.fault","fromName":"Rado Dr.","fromEmail":"radodr@gmail.com","sentAt":"2010-10-26T09:45:33Z","receivedAt":"2010-10-26T09:45:33Z","isPatch":false,"sender":{"key":"radodr@gmail.com","avatar":"https://gravatar.com/avatar/764d40381eb0625c79a7a1df8d04eb9d20229014325a84ee6fb081494adc952e?d=mp&s=160"},"body":"there is output:\nReading symbols from /usr/local/bin/git...done.\n(gdb) run\nStarting program: /usr/local/bin/git status\n[Thread debugging using libthread_db enabled]\n\nProgram received signal SIGSEGV, Segmentation fault.\nhash_index_entry (istate=<value optimized out>, ce=0xb7c00c90) at name-hash.c:44\n44\t\thash = hash_name(ce->name, ce_namelen(ce));\n(gdb) bt full\n#0  hash_index_entry (istate=<value optimized out>, ce=0xb7c00c90) at\nname-hash.c:44\n        pos = <value optimized out>\n        hash = 3198509075\n#1  0x080dde47 in lazy_init_name_hash (istate=0x8194180,\nname=0xbfffb34b \"src/FotoPlusServer/build.xml\", namelen=28, icase=0)\n    at name-hash.c:59\n        nr = 16273\n#2  index_name_exists (istate=0x8194180, name=0xbfffb34b\n\"src/FotoPlusServer/build.xml\", namelen=28, icase=0) at\nname-hash.c:108\n        hash = <value optimized out>\n        ce = <value optimized out>\n#3  0x080cf190 in dir_add_name (dir=<value optimized out>, base=<value\noptimized out>, baselen=<value optimized out>, check_only=0,\n    simplify=0x0) at dir.c:449\nNo locals.\n#4  read_directory_recursive (dir=<value optimized out>, base=<value\noptimized out>, baselen=<value optimized out>, check_only=0,\n    simplify=0x0) at dir.c:809\n        len = 28\n        de = <value optimized out>\n        path = \"src/FotoPlusServer/build.xml\", '\\000' <repeats 305\ntimes>, \"s\\232\\352\\267\", '\\000' <repeats 12 times>,\n\"s\\232\\352\\267\\v\\000\\000\\000\n\\273\\377\\277\\v\\000\\000\\000\\364_\\371\\267\\214\\272\\377\\277\n\\273\\377\\277X\\272\\377\\277\\036\\315緌\\272\\377\\277\\200I\\024\\b\\v\\000\\000\\000\\\"\\322緜\\272\\377\\277\\331[\\023\\b\",\n'\\000' <repeats 92 times>\"\\377, \\377\\377\\377\", '\\000' <repeats 28\ntimes>, \" \", '\\000' <repeats 31 times>\"\\300,\n\\271\\377\\277\\000\\000\\000\\000v\\373\\377\\377\", '\\000' <repeats 16\ntimes>\"\\352, \\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\202\\357\\347\\267\n\\273\\377\\277\\002\\000\\000\\000\\213I\\024\\b\\000\\000\\000\\000Ի\\377\\277\\200I\\024\\b\\v\\000\\000\\000\\000\\000\\000\\000\\020\\274\\377\\277\\327[\\023\\b\\026\",\n'\\000' <repeats 947 times>, \"s\\232\\352\\267\", '\\000' <repeats 12\ntimes>, \"s\\232\\352\\267\\v\\000\\000\\000\\020\\300\\377\\277\\v\\000\\000\\000\\364_\\371\\267|\\277\\377\\277\\020\\300\\377\\277H\\277\\377\\277\\036\\315\\347\\267|\\277\\377\\277\\200I\\024\\b\\v\"...\n        fdir = 0x8488b30\n        contents = 1\n#5  0x080cf24f in read_directory_recursive (dir=<value optimized out>,\nbase=<value optimized out>, baselen=<value optimized out>,\n    check_only=0, simplify=0x0) at dir.c:797\n        len = 19\n        de = <value optimized out>\n        path = \"src/FotoPlusServer/\", '\\000' <repeats 746 times>,\n\"s\\232\\352\\267\", '\\000' <repeats 16 times>,\n\"\\005\\000\\000\\000@\\315\\377\\277\\005\\000\\000\\000\\364_\\371\\267\\254\\314\\377\\277\\370\\032\\024\\bx\\314\\377\\277\\\"\\322緬\\314\\377\\277\\363\\032\\024\\b\\005\",\n'\\000' <repeats 23 times>, \"\\005\", '\\000' <repeats 67 times>\"\\377,\n\\377\\377\\377\", '\\000' <repeats 28 times>, \" \", '\\000' <repeats 31\ntimes>\"\\320, \\313\\377\\277\\000\\000\\000\\000v\\373\\377\\377\\000\\000\\000\\000\\362\\032\\024\\b\\000\\000\\000\\000\\000\\000\\000\\000\\374\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\202\\357\\347\\267\\000\\000\\000\\000\\363\\032\\024\\b\\340V\\371\\267\\370\\032\\024\\b@\\315\\377\\277\\002\\000\\000\\000\\357\\032\\024\\b\\000\\000\\000\\000\\344\\315\\377\\277\\342\\032\\024\\b\\026\",\n'\\000' <repeats 555 times>, \"q\\a\\347\\267\", '\\000' <repeats 40\ntimes>\"\\377, \\377\\377\\377\\000\\000\\000\\000\\005\\000\\000\\000\\260\\312\\377\\277\",\n'\\000' <repeats 12 times>\"\\231, \\231\\231\\031\\024\\274<\"...\n        fdir = 0x84140b8\n        contents = 0\n#6  0x080cf24f in read_directory_recursive (dir=<value optimized out>,\nbase=<value optimized out>, baselen=<value optimized out>,\n    check_only=0, simplify=0x0) at dir.c:797\n        len = 4\n        de = <value optimized out>\n        path = \"src/\\000\\001\\000\\000\\000\\204\\324\\377\\277\\250\\324\\377\\277+5\\f\\b\\001\\000\\000\\000\\000\\000\\000\\000\\204\\324\\377\\277\\250\\363\\377\\277\\000\\000\\000\\000\\244\\000\\000\\000\\363-\\217\\343\\300s\\371\\267\\240\\000\\000\\000\\350\\263E\\b\\030,\\000\\000\\244\\201\\000\\000Ll\\276\\267\\250\\363\\377\\277`\\361\\377\\277\\360\\263E\\b4\\264E\\b\\000\\000\\000\\000Ll\\276\\267\\244\\201\\000\\000\\250\\324\\377\\277\\315\\376귨\\324\\377\\277(\\360\\377\\277(\\360\\377\\277<\\316D\\bH\\326\\377\\277\\070/\\021\\b\\354\\325\\377\\277(\\360\\377\\277\\060\\316D\\b\\222\\063\\020\\b@\\331\\032\\b\\250\\236\\255\\003\\000\\000\\000\\000T\\326\\377\\277U\\000\\000\\000\\314\\325\\377\\277\\310\\325\\377\\277\\354\\325\\377\\277L\\325\\377\\277@\\331\\032\\bX\\326\\377\\277\\000\\000\\000\\000[\\000\\000\\000(\\360\\377\\277\\244\\201\\000\\000\\000\\200\\000\\000(\\360\\377\\277\\000\\000\\000\\000\\001\\000\\000\\000\\000\n\\000\\000P\\326\\377\\277\\034\\264E\\b\\360\\263E\\b\\001\\000\\000\\000\\300s\\371\\267\\364_\\371\\267\\030\\020#\\b-\\020#\\b\\037\\020#\\b\\244\\201\\000\\000O\\000\\000\\000\\373%\\021\\b\\346i\\276\\267\\066\\000\\000\\000\\000\\200\\000\\000\\250\\236\\255\\003\\000\\000\\000\\000\\022\\064\\273^\\031\\253@\\360J\\276'yp1\\366\\002c_\\016u@\\331\\032\\b\\000\\065YF\\256\\331\\352\\267\\034\\340\\377\\277\\000\\000\\000\\000P\\326\\377\\277T\\326\\377\\277X\\326\\377\\277\\330\\325\\377\\277\\333-\\020\\b\\b\"...\n        fdir = 0x840c098\n        contents = 0\n#7  0x080cf7ef in read_directory (dir=0xbfffe514, path=0x8128050 \"\",\nlen=0, pathspec=0x0) at dir.c:916\n        simplify = 0x0\n#8  0x080cf951 in fill_directory (dir=0xbfffe514, pathspec=0x0) at dir.c:70\n        path = <value optimized out>\n        len = 0\n#9  0x081196c5 in wt_status_collect_untracked (s=0xbffff5ac) at wt-status.c:390\n        i = <value optimized out>\n        dir = {nr = 0, alloc = 0, ignored_nr = 0, ignored_alloc = 0,\nflags = 6, entries = 0x0, ignored = 0x0,\n          exclude_per_dir = 0x8128031 \".gitignore\", exclude_list =\n{{nr = 0, alloc = 0, excludes = 0x0}, {nr = 11, alloc = 24,\n              excludes = 0x82a8a98}, {nr = 0, alloc = 0, excludes =\n0x0}}, exclude_stack = 0x83f0d80,\n          basebuf = \"src/FotoPlusServer/\\000gitignore\", '\\000'\n<repeats 4066 times>}\n#10 0x08062384 in cmd_status (argc=1, argv=0xbffff968, prefix=0x0) at\nbuiltin/commit.c:1104\n        s = {is_initial = 0, branch = 0x81952a0\n\"refs/heads/uploadFiles\", reference = 0x81268be \"HEAD\", pathspec =\n0x0, verbose = 0,\n          amend = 0, in_merge = 0, nowarn = 0, use_color = -1,\nrelative_paths = 1, submodule_summary = 0, show_ignored_files = 0,\n          show_untracked_files = SHOW_NORMAL_UNTRACKED_FILES,\nignore_submodule_arg = 0x0, color_palette = {'\\000' <repeats 39\ntimes>,\n            \"\\033[33m\", '\\000' <repeats 34 times>, \"\\033[32m\", '\\000'\n<repeats 34 times>, \"\\033[36m\", '\\000' <repeats 34 times>,\n            \"\\033[31m\", '\\000' <repeats 34 times>, \"\\033[31m\", '\\000'\n<repeats 34 times>, \"\\033[32m\", '\\000' <repeats 34 times>,\n            \"\\033[31m\", '\\000' <repeats 34 times>}, commitable = 0,\nworkdir_dirty = 1, index_file = 0x81951a0 \".git/index\",\n          fp = 0xb7f964e0, prefix = 0x0, change = {items = 0x8477190,\nnr = 430, alloc = 448, strdup_strings = 1}, untracked = {\n            items = 0x0, nr = 0, alloc = 0, strdup_strings = 1},\nignored = {items = 0x0, nr = 0, alloc = 0, strdup_strings = 1}}\n        fd = <value optimized out>\n        sha1 = \"j\\201\\033YO;}d\\323\\v\\313\\062\\372\\205\\264{A\\353Hh\"\n        builtin_status_options = {{type = OPTION_BOOLEAN, short_name =\n118, long_name = 0x8124a8d \"verbose\", value = 0x8158074,\n            argh = 0x0, help = 0x8124a8a \"be verbose\", flags = 2,\ncallback = 0, defval = 0}, {type = OPTION_SET_INT, short_name = 115,\n            long_name = 0x81376d5 \"short\", value = 0x8155f60, argh =\n0x0, help = 0x812984a \"show status concisely\", flags = 2,\n            callback = 0, defval = 1}, {type = OPTION_BOOLEAN,\nshort_name = 98, long_name = 0x8136139 \"branch\", value = 0x81580c4,\n            argh = 0x0, help = 0x8129860 \"show branch information\",\nflags = 2, callback = 0, defval = 0}, {type = OPTION_SET_INT,\n            short_name = 0, long_name = 0x814434e \"porcelain\", value =\n0x8155f60, argh = 0x0,\n            help = 0x8129878 \"show porcelain output format\", flags =\n2, callback = 0, defval = 2}, {type = OPTION_BOOLEAN,\n            short_name = 122, long_name = 0x813e113 \"null\", value =\n0x81580c0, argh = 0x0, help = 0x8129895 \"terminate entries with NUL\",\n            flags = 2, callback = 0, defval = 0}, {type =\nOPTION_STRING, short_name = 117, long_name = 0x81298ef\n\"untracked-files\",\n            value = 0x8158090, argh = 0x812e1e0 \"mode\",\n            help = 0x812a1ec \"show untracked files, optional modes:\nall, normal, no. (Default: all)\", flags = 1, callback = 0,\n            defval = 135440244}, {type = OPTION_BOOLEAN, short_name =\n0, long_name = 0x8138e1e \"ignored\", value = 0x81580ac, argh = 0x0,\n            help = 0x812993c \"show ignored files\", flags = 2, callback\n= 0, defval = 0}, {type = OPTION_STRING, short_name = 0,\n            long_name = 0x8139d7b \"ignore-submodules\", value =\n0x8158098, argh = 0x8126ec1 \"when\",\n            help = 0x812a234 \"ignore changes to submodules, optional\nwhen: all, dirty, untracked. (Default: all)\", flags = 1,\n            callback = 0, defval = 135440244}, {type = OPTION_END,\nshort_name = 0, long_name = 0x0, value = 0x0, argh = 0x0, help = 0x0,\n            flags = 0, callback = 0, defval = 0}}\n#11 0x0804b868 in run_builtin (argc=<value optimized out>, argv=<value\noptimized out>) at git.c:275\n        status = <value optimized out>\n        st = {st_dev = 13256754246612680856, __pad1 = 24564, __st_ino\n= 3086578624, st_mode = 0, st_nlink = 3221223416,\n          st_uid = 3085631181, st_gid = 136, st_rdev =\n13835049485613071968, __pad2 = 64776, st_size = 581093732451874840,\n          st_blksize = -1073743820, st_blocks = 0, st_atim = {tv_sec =\n1, tv_nsec = -1073743820}, st_mtim = {tv_sec = -1073743820,\n            tv_nsec = -1073743800}, st_ctim = {tv_sec = 135073352,\ntv_nsec = -1073743820}, st_ino = 4430843936}\n        prefix = 0x0\n#12 handle_internal_command (argc=<value optimized out>, argv=<value\noptimized out>) at git.c:431\n        p = 0x8149760\n        cmd = <value optimized out>\n        commands = {{cmd = 0x8135f74 \"add\", fn = 0x804c400 <cmd_add>,\noption = 9}, {cmd = 0x8124034 \"stage\", fn = 0x804c400 <cmd_add>,\n            option = 9}, {cmd = 0x812403a \"annotate\", fn = 0x804cf20\n<cmd_annotate>, option = 1}, {cmd = 0x8124ad9 \"apply\",\n            fn = 0x8053c70 <cmd_apply>, option = 2}, {cmd = 0x8126142\n\"archive\", fn = 0x8054b50 <cmd_archive>, option = 0}, {\n            cmd = 0x8124043 \"bisect--helper\", fn = 0x8054d90\n<cmd_bisect__helper>, option = 9}, {cmd = 0x8124052 \"blame\",\n            fn = 0x80571a0 <cmd_blame>, option = 1}, {cmd = 0x8136139\n\"branch\", fn = 0x805a0c0 <cmd_branch>, option = 1}, {\n            cmd = 0x8128b6a \"bundle\", fn = 0x805b260 <cmd_bundle>,\noption = 2}, {cmd = 0x8124058 \"cat-file\",\n            fn = 0x805ba80 <cmd_cat_file>, option = 1}, {cmd =\n0x8128cb6 \"checkout\", fn = 0x805e100 <cmd_checkout>, option = 9}, {\n            cmd = 0x8124061 \"checkout-index\", fn = 0x805c9e0\n<cmd_checkout_index>, option = 9}, {cmd = 0x8124070\n\"check-ref-format\",\n            fn = 0x805c3f0 <cmd_check_ref_format>, option = 0}, {cmd =\n0x8124081 \"check-attr\", fn = 0x805c090 <cmd_check_attr>,\n           option = 1}, {cmd = 0x812408c \"cherry\", fn = 0x807b630\n<cmd_cherry>, option = 1}, {cmd = 0x814277b \"cherry-pick\",\n            fn = 0x80a2420 <cmd_cherry_pick>, option = 9}, {cmd =\n0x8124093 \"clone\", fn = 0x8060630 <cmd_clone>, option = 0}, {\n            cmd = 0x8124099 \"clean\", fn = 0x805f960 <cmd_clean>,\noption = 9}, {cmd = 0x81294a3 \"commit\", fn = 0x8063ef0 <cmd_commit>,\n            option = 9}, {cmd = 0x812409f \"commit-tree\", fn =\n0x8061b50 <cmd_commit_tree>, option = 1}, {cmd = 0x8124264 \"config\",\n            fn = 0x8065c80 <cmd_config>, option = 2}, {cmd = 0x81240ab\n\"count-objects\", fn = 0x80665b0 <cmd_count_objects>, option = 1}, {\n            cmd = 0x81240b9 \"describe\", fn = 0x8067540 <cmd_describe>,\noption = 1}, {cmd = 0x813dac6 \"diff\", fn = 0x80687f0 <cmd_diff>,\n            option = 0}, {cmd = 0x81240c2 \"diff-files\", fn = 0x8067cf0\n<cmd_diff_files>, option = 9}, {cmd = 0x81240cd \"diff-index\",\n            fn = 0x8067f70 <cmd_diff_index>, option = 1}, {cmd =\n0x81240d8 \"diff-tree\", fn = 0x8068130 <cmd_diff_tree>, option = 1}, {\n            cmd = 0x8144e9d \"fast-export\", fn = 0x8069a00\n<cmd_fast_export>, option = 1}, {cmd = 0x8128bfb \"fetch\",\n            fn = 0x806ee10 <cmd_fetch>, option = 1}, {cmd = 0x81240e2\n\"fetch-pack\", fn = 0x806c8c0 <cmd_fetch_pack>, option = 1}, {\n            cmd = 0x81240ed \"fmt-merge-msg\", fn = 0x806fde0\n<cmd_fmt_merge_msg>, option = 1}, {cmd = 0x81240fb \"for-each-ref\",\n            fn = 0x8071960 <cmd_for_each_ref>, option = 1}, {cmd =\n0x8124108 \"format-patch\", fn = 0x807d350 <cmd_format_patch>,\n            option = 1}, {cmd = 0x813e95e \"fsck\", fn = 0x8072a40\n<cmd_fsck>, option = 1}, {cmd = 0x8124115 \"fsck-objects\",\n            fn = 0x8072a40 <cmd_fsck>, option = 1}, {cmd = 0x812e20c\n\"gc\", fn = 0x80736f0 <cmd_gc>, option = 1}, {\n            cmd = 0x8124122 \"get-tar-commit-id\", fn = 0x80a8e60\n<cmd_get_tar_commit_id>, option = 0}, {cmd = 0x812e5d7 \"grep\",\n            fn = 0x8074da0 <cmd_grep>, option = 2}, {cmd = 0x8124134\n\"hash-object\", fn = 0x80766a0 <cmd_hash_object>, option = 0}, {\n            cmd = 0x8123e78 \"help\", fn = 0x80773f0 <cmd_help>, option\n= 0}, {cmd = 0x8124140 \"index-pack\",\n            fn = 0x8078a20 <cmd_index_pack>, option = 2}, {cmd =\n0x8128d4a \"init\", fn = 0x807ae70 <cmd_init_db>, option = 0}, {\n            cmd = 0x812414b \"init-db\", fn = 0x807ae70 <cmd_init_db>,\noption = 0}, {cmd = 0x81419a8 \"log\", fn = 0x807cb50 <cmd_log>,\n            option = 1}, {cmd = 0x8124153 \"ls-files\", fn = 0x807f0c0\n<cmd_ls_files>, option = 1}, {cmd = 0x812415c \"ls-tree\",\n            fn = 0x8080770 <cmd_ls_tree>, option = 1}, {cmd =\n0x8124164 \"ls-remote\", fn = 0x8080360 <cmd_ls_remote>, option = 2}, {\n            cmd = 0x812416e \"mailinfo\", fn = 0x80823a0 <cmd_mailinfo>,\noption = 0}, {cmd = 0x8124177 \"mailsplit\",\n            fn = 0x8083960 <cmd_mailsplit>, option = 0}, {cmd =\n0x8132243 \"merge\", fn = 0x8085700 <cmd_merge>, option = 9}, {\n            cmd = 0x8124181 \"merge-base\", fn = 0x8087450\n<cmd_merge_base>, option = 1}, {cmd = 0x812418c \"merge-file\",\n            fn = 0x8087800 <cmd_merge_file>, option = 2}, {cmd =\n0x8124197 \"merge-index\", fn = 0x8087ec0 <cmd_merge_index>, option =\n1}, {\n            cmd = 0x81241a3 \"merge-ours\", fn = 0x80880f0\n<cmd_merge_ours>, option = 1}, {cmd = 0x81241ae \"merge-recursive\",\n            fn = 0x80881e0 <cmd_merge_recursive>, option = 9}, {cmd =\n0x81241be \"merge-recursive-ours\",\n            fn = 0x80881e0 <cmd_merge_recursive>, option = 9}, {cmd =\n0x81241d3 \"merge-recursive-theirs\",\n            fn = 0x80881e0 <cmd_merge_recursive>, option = 9}, {cmd =\n0x81241ea \"merge-subtree\", fn = 0x80881e0 <cmd_merge_recursive>,\n            option = 9}, {cmd = 0x81241f8 \"merge-tree\", fn = 0x8088a30\n<cmd_merge_tree>, option = 1}, {cmd = 0x8124203 \"mktag\",\n            fn = 0x8088de0 <cmd_mktag>, option = 1}, {cmd = 0x8124209\n\"mktree\", fn = 0x8089350 <cmd_mktree>, option = 1}, {\n            cmd = 0x8124210 \"mv\", fn = 0x8089b60 <cmd_mv>, option =\n9}, {cmd = 0x8124213 \"name-rev\", fn = 0x808a600 <cmd_name_rev>,\n            option = 1}, {cmd = 0x8133035 \"notes\", fn = 0x808c0b0\n<cmd_notes>, option = 1}, {cmd = 0x813b98c \"pack-objects\",\n            fn = 0x80905e0 <cmd_pack_objects>, option = 1}, {cmd =\n0x812421c \"pack-redundant\", fn = 0x8091fd0 <cmd_pack_redundant>,\n            option = 1}, {cmd = 0x812422b \"patch-id\", fn = 0x80934b0\n<cmd_patch_id>, option = 0}, {cmd = 0x8124234 \"peek-remote\",\n            fn = 0x8080360 <cmd_ls_remote>, option = 2}, {cmd =\n0x8124240 \"pickaxe\", fn = 0x80571a0 <cmd_blame>, option = 1}, {\n            cmd = 0x81362fb \"prune\", fn = 0x8093b10 <cmd_prune>,\noption = 1}, {cmd = 0x8124248 \"prune-packed\",\n            fn = 0x8093900 <cmd_prune_packed>, option = 1}, {cmd =\n0x81448f6 \"push\", fn = 0x8094250 <cmd_push>, option = 1}, {\n            cmd = 0x8124255 \"read-tree\", fn = 0x8094ce0\n<cmd_read_tree>, option = 1}, {cmd = 0x813833b \"receive-pack\",\n            fn = 0x8096040 <cmd_receive_pack>, option = 0}, {cmd =\n0x8126f2e \"reflog\", fn = 0x80987b0 <cmd_reflog>, option = 1}, {\n            cmd = 0x8135e0e \"remote\", fn = 0x809b140 <cmd_remote>,\noption = 1}, {cmd = 0x8139d95 \"replace\", fn = 0x809cf90 <cmd_replace>,\n            option = 1}, {cmd = 0x812425f \"repo-config\", fn =\n0x8065c80 <cmd_config>, option = 2}, {cmd = 0x812426b \"rerere\",\n            fn = 0x809d320 <cmd_rerere>, option = 1}, {cmd = 0x8127fb4\n\"reset\", fn = 0x809dd30 <cmd_reset>, option = 1}, {\n            cmd = 0x812d009 \"rev-list\", fn = 0x809ee30 <cmd_rev_list>,\noption = 1}, {cmd = 0x8124272 \"rev-parse\",\n            fn = 0x809f9f0 <cmd_rev_parse>, option = 0}, {cmd =\n0x812427c \"revert\", fn = 0x80a2440 <cmd_revert>, option = 9}, {\n            cmd = 0x8124283 \"rm\", fn = 0x80a2490 <cmd_rm>, option =\n1}, {cmd = 0x8124286 \"send-pack\", fn = 0x80a3710 <cmd_send_pack>,\n            option = 1}, {cmd = 0x8124290 \"shortlog\", fn = 0x80a49f0\n<cmd_shortlog>, option = 6}, {cmd = 0x8124299 \"show-branch\",\n            fn = 0x80a5640 <cmd_show_branch>, option = 1}, {cmd =\n0x81242a5 \"show\", fn = 0x807cdf0 <cmd_show>, option = 1}, {\n            cmd = 0x81382b0 \"status\", fn = 0x8062200 <cmd_status>,\noption = 9}, {cmd = 0x81242aa \"stripspace\",\n            fn = 0x80a7670 <cmd_stripspace>, option = 0}, {cmd =\n0x81242b5 \"symbolic-ref\", fn = 0x80a7760 <cmd_symbolic_ref>,\n            option = 1}, {cmd = 0x81446b1 \"tag\", fn = 0x80a7ef0\n<cmd_tag>, option = 1}, {cmd = 0x81242c2 \"tar-tree\",\n            fn = 0x80a8f40 <cmd_tar_tree>, option = 0}, {cmd =\n0x81242cb \"unpack-file\", fn = 0x80a90d0 <cmd_unpack_file>, option =\n1}, {\n            cmd = 0x81242d7 \"unpack-objects\", fn = 0x80a9a90\n<cmd_unpack_objects>, option = 1}, {cmd = 0x81242e6 \"update-index\",\n            fn = 0x80ab010 <cmd_update_index>, option = 1}, {cmd =\n0x81242f3 \"update-ref\", fn = 0x80ac150 <cmd_update_ref>, option = 1},\n{\n            cmd = 0x81242fe \"update-server-info\", fn = 0x80ac3d0\n<cmd_update_server_info>, option = 1}, {\n            cmd = 0x812613b \"upload-archive\", fn = 0x80ac780\n<cmd_upload_archive>, option = 0}, {cmd = 0x8124311 \"var\",\n            fn = 0x80aca40 <cmd_var>, option = 2}, {cmd = 0x8124315\n\"verify-tag\", fn = 0x80ad540 <cmd_verify_tag>, option = 1}, {\n            cmd = 0x814696b \"version\", fn = 0x80d5510 <cmd_version>,\noption = 0}, {cmd = 0x8124320 \"whatchanged\",\n            fn = 0x807cc10 <cmd_whatchanged>, option = 1}, {cmd =\n0x813a9a9 \"write-tree\", fn = 0x80ad760 <cmd_write_tree>, option = 1},\n{\n            cmd = 0x812432c \"verify-pack\", fn = 0x80ad1b0\n<cmd_verify_pack>, option = 0}, {cmd = 0x8124338 \"show-ref\",\n            fn = 0x80a6fb0 <cmd_show_ref>, option = 1}, {cmd =\n0x8124341 \"pack-refs\", fn = 0x80930b0 <cmd_pack_refs>, option = 1}}\n        i = 88\n#13 0x0804ba63 in run_argv (argc=1, argv=0xbffff968) at git.c:475\n        done_alias = 0\n#14 main (argc=1, argv=0xbffff968) at git.c:548\n        done_help = 0\n        was_alias = 0\n        cmd = <value optimized out>\n(gdb)\n\n\n2010/10/26 Ævar Arnfjörð Bjarmason <avarab@gmail.com>:\n> On Tue, Oct 26, 2010 at 08:44, Rado Dr. <radodr@gmail.com> wrote:\n>> I have \"Segmentation fault\" error after \"git status\" command in one of\n>> my local repos. Just i one repo, other repos are OK. I can't find any\n>> clue how to fix it, and as usually I need work with that repo ;-)\n>>\n>> I tried this:\n>>  - git gc  -> OK\n>>  - git fsck ->\n>> missing blob 0000000000000000000000000000000000000000\n>> dangling blob 2f1f0144f786ca887c4911a064bbb28a047f1f77\n>> dangling blob 7ffb0f4e430cd60261661138df61ecb50cf1d0a4\n>>\n>> Is this the reason of fault? If yes, how can I fix it.\n>>\n>> My system info:\n>> Linux 32bit, Ubuntu 10.04 LTS - Lucid Lynx,\n>> git version 1.7.0.4\n>\n> Can you reproduce it on the latest version of git built from git.git?\n>\n> Can you run it under gdb and provide a \"bt full\" backtrace?\n>\n\n\n\n-- \nRado Dr.\n"},{"id":"154442","messageId":"AANLkTinpUKP8XaLR6d530BW8DuFqUzettuivin88xwuE@mail.gmail.com","threadId":"25548","inReplyTo":"AANLkTimRBmJkXh9LjgL51bwFD=AGBJRc2d1R0g=z0v2t@mail.gmail.com","subject":"Re: git status & seg.fault","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2010-10-26T09:47:30Z","receivedAt":"2010-10-26T09:47:30Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"On Tue, Oct 26, 2010 at 11:45, Rado Dr. <radodr@gmail.com> wrote:\n> there is output:\n> Reading symbols from /usr/local/bin/git...done.\n> (gdb) run\n> Starting program: /usr/local/bin/git status\n> [Thread debugging using libthread_db enabled]\n>\n> Program received signal SIGSEGV, Segmentation fault.\n> hash_index_entry (istate=<value optimized out>, ce=0xb7c00c90) at name-hash.c:44\n> 44              hash = hash_name(ce->name, ce_namelen(ce));\n> (gdb) bt full\n> #0  hash_index_entry (istate=<value optimized out>, ce=0xb7c00c90) at\n> name-hash.c:44\n>        pos = <value optimized out>\n>        hash = 3198509075\n> #1  0x080dde47 in lazy_init_name_hash (istate=0x8194180,\n> name=0xbfffb34b \"src/FotoPlusServer/build.xml\", namelen=28, icase=0)\n>    at name-hash.c:59\n>        nr = 16273\n> #2  index_name_exists (istate=0x8194180, name=0xbfffb34b\n> \"src/FotoPlusServer/build.xml\", namelen=28, icase=0) at\n> name-hash.c:108\n>        hash = <value optimized out>\n>        ce = <value optimized out>\n> #3  0x080cf190 in dir_add_name (dir=<value optimized out>, base=<value\n> optimized out>, baselen=<value optimized out>, check_only=0,\n>    simplify=0x0) at dir.c:449\n> No locals.\n\nI haven't tried to grok all that, but you'd get a better backtrace if\nyou compiled git with debug flags, e.g.:\n\n    make CFLAGS=\"-O0 -ggdb3\"\n\nAnd then did gdb ./git .... Sorry for not mentioning it to begin with.\n"},{"id":"154443","messageId":"AANLkTi=7ZHmN5NU4RGY+xH2=w=5B-0JDbniwn03zCfcO@mail.gmail.com","threadId":"25548","inReplyTo":"AANLkTinpUKP8XaLR6d530BW8DuFqUzettuivin88xwuE@mail.gmail.com","subject":"Re: git status & seg.fault","fromName":"Rado Dr.","fromEmail":"radodr@gmail.com","sentAt":"2010-10-26T09:54:48Z","receivedAt":"2010-10-26T09:54:48Z","isPatch":false,"sender":{"key":"radodr@gmail.com","avatar":"https://gravatar.com/avatar/764d40381eb0625c79a7a1df8d04eb9d20229014325a84ee6fb081494adc952e?d=mp&s=160"},"body":"Here we are:\n\n(gdb) run\nStarting program: /usr/local/bin/git status\n[Thread debugging using libthread_db enabled]\n\nProgram received signal SIGSEGV, Segmentation fault.\n0x080ed94d in hash_name (name=0xb7c09000 <Address 0xb7c09000 out of\nbounds>, namelen=-33580) at name-hash.c:28\n28\t\t\tunsigned char c = *name++;\n(gdb) bt full\n#0  0x080ed94d in hash_name (name=0xb7c09000 <Address 0xb7c09000 out\nof bounds>, namelen=-33580) at name-hash.c:28\n        c = 0 '\\000'\n        hash = 3198509075\n#1  0x080ed9d5 in hash_index_entry (istate=0x81b5600, ce=0xb7c00c90)\nat name-hash.c:44\n        pos = 0x0\n        hash = 1031650602\n#2  0x080eda52 in lazy_init_name_hash (istate=0x81b5600) at name-hash.c:59\n        nr = 16272\n#3  0x080edbe3 in index_name_exists (istate=0x81b5600, name=0xbfffb36b\n\"src/FotoPlusServer/build.xml\", namelen=28, icase=0) at\nname-hash.c:108\n        hash = 842511099\n        ce = 0xbfffb358\n#4  0x080dbea1 in dir_add_name (dir=0xbfffe4f4, pathname=0xbfffb36b\n\"src/FotoPlusServer/build.xml\", len=28) at dir.c:449\nNo locals.\n#5  0x080dc916 in read_directory_recursive (dir=0xbfffe4f4,\nbase=0xbfffc3cb \"src/FotoPlusServer/\", baselen=19, check_only=0,\nsimplify=0x0) at dir.c:809\n        len = 28\n        de = 0x84a9bf0\n        path = \"src/FotoPlusServer/build.xml\", '\\000' <repeats 481\ntimes>, \"s\\232\\352\\267Q\\275\\377\\277\\250\\316\\377\\277\\026\\000\\000\\000\\\\\\273\\377\\277\\v\\000\\000\\000\\360\\273\\377\\277\\v\\000\\000\\000\\364_\\371\\267\\\\\\273\\377\\277\\360\\273\\377\\277(\\273\\377\\277\\036\\315\\347\\267\\\\\\273\\377\\277Z\\031\\026\\b\\v\",\n'\\000' <repeats 91 times>\"\\377, \\377\\377\\377\", '\\000' <repeats 28\ntimes>, \" \", '\\000' <repeats 31 times>\"\\200,\n\\272\\377\\277\\000\\000\\000\\000v\\373\\377\\377\", '\\000' <repeats 16\ntimes>\"\\352, \\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\202\\357\\347\\267\\000\\000\\000\\000j\\031\\026\\b\\340V\\371\\267j\\031\\026\\b\\360\\273\\377\\277\\002\\000\\000\\000e\\031\\026\\b\\000\\000\\000\\000\\204\\274\\377\\277Z\\031\\026\\b\\v\",\n'\\000' <repeats 963 times>,\n\"s\\232\\352\\267A\\302\\377\\277\\230\\323\\377\\277\\026\\000\\000\\000L\\300\\377\\277\\v\\000\\000\\000\\340\\300\\377\\277\\v\\000\\000\\000\\364_\\371\\267L\\300\\377\\277\\340\\300\\377\\277\\030\\300\\377\\277\\036\\315\\347\\267L\\300\\377\\277Z\\031\\026\\b\\v\",\n'\\000' <repeats 91 times>\"\\377,\n\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\364\"...\n        fdir = 0x84a9bd8\n        contents = 1\n#6  0x080dc8df in read_directory_recursive (dir=0xbfffe4f4,\nbase=0xbfffd42b \"src/\", baselen=4, check_only=0, simplify=0x0) at\ndir.c:797\n        len = 19\n        de = 0x8435168\n        path = \"src/FotoPlusServer/\", '\\000' <repeats 874 times>,\n\"s\\232\\352\\267\", '\\000' <repeats 16 times>,\n\"\\005\\000\\000\\000\\320\\315\\377\\277\\005\\000\\000\\000\\364_\\371\\267<\\315\\377\\277;\\032\\026\\b\\b\\315\\377\\277\\\"\\322\\347\\267<\\315\\377\\277\\066\\032\\026\\b\\005\",\n'\\000' <repeats 23 times>, \"\\005\", '\\000' <repeats 67 times>\"\\377,\n\\377\\377\\377\", '\\000' <repeats 28 times>, \" \", '\\000' <repeats 31\ntimes>, \"`\\314\\377\\277\\000\\000\\000\\000v\\373\\377\\377\\000\\000\\000\\000\\065\\032\\026\\b\\000\\000\\000\\000\\000\\000\\000\\000\\374\\377\\377\\377\\000\\000\\000\\000\\000\\000\\000\\000\\202\\357\\347\\267\\000\\000\\000\\000\\066\\032\\026\\b\\340V\\371\\267;\\032\\026\\b\\320\\315\\377\\277\\002\\000\\000\\000\\062\\032\\026\\b\\000\\000\\000\\000t\\316\\377\\277%\\032\\026\\b\\026\",\n'\\000' <repeats 395 times>, \"q\\a\\347\\267\", '\\000' <repeats 40\ntimes>\"\\377, \\377\\377\\377\\000\\000\\000\\000\\005\\000\\000\\000\\240\\312\\377\\277\",\n'\\000' <repeats 12 times>\"\\231\"...\n        fdir = 0x8435150\n        contents = 0\n#7  0x080dc8df in read_directory_recursive (dir=0xbfffe4f4,\nbase=0x815dbde \"\", baselen=0, check_only=0, simplify=0x0) at dir.c:797\n        len = 4\n        de = 0x842d148\n        path = \"src/\\000vl\\276\\267I\\000\\000\\000\\000\\200\\000\\000ܻ2\\b\\307E\\353\\267\\000\\000\\000\\000\\244\\327\\377\\277\\022\\322\\017\\b~l\\276\\267\\267\\314A\\b\\a\\000\\000\\000\\000\\000\\000\\000vl\\276\\267\\000\\000\\000\\000\\a\\000\\000\\000[\\000//dk\\276\\267\\026\\000\\000\\000\\310\\324\\377\\277\\224\\237\\022\\b~l\\276\\267A\\000\\000\\000\\000\\200\\000\\000\\267\\314A\\b\\307E\\353\\267\\000\\000\\000\\000\\244\\327\\377\\277\\022\\322\\017\\b\\206l\\276\\267~GD\\b\\a\\000\\000\\000\\000\\000\\000\\000~l\\276\\267\\000\\000\\000\\000\\a\\000\\000\\000[\\000//\\001\\000\\000\\000\\000\\000\\000\\000\\030\\325\\377\\277\\224\\237\\022\\b\\206l\\276\\267\\071\\000\\000\\000\\000\\200\\000\\000~GD\\b\\307E\\353\\267\\000\\000\\000\\000\\244\\327\\377\\277\\022\\322\\017\\b\\216l\\276\\267\\024\\362D\\b\\b\\000\\000\\000\\000\\000\\000\\000\\206l\\276\\267\\000\\000\\000\\000\\b\\000\\000\\000[\\000//#\\227\\067\\b\\270\\325\\377\\277h\\325\\377\\277\\224\\237\\022\\b\\216l\\276\\267\\061\\000\\000\\000\\000\\200\\000\\000\\024\\362D\\b\\307E\\353\\267\\000\\000\\000\\000\\244\\327\\377\\277\\022\\322\\017\\b\\227l\\276\\267d\\t%\\b\\b\\000\\000\\000\\000\\000\\000\\000\\216l\\276\"...\n        fdir = 0x842d130\n        contents = 0\n#8  0x080dcd3b in read_directory (dir=0xbfffe4f4, path=0x815dbde \"\",\nlen=0, pathspec=0x0) at dir.c:916\n        simplify = 0x0\n#9  0x080db157 in fill_directory (dir=0xbfffe4f4, pathspec=0x0) at dir.c:70\n        path = 0x815dbde \"\"\n          basebuf = \"src/FotoPlusServer/\\000gitignore\", '\\000'\n<repeats 4066 times>}\n#11 0x081307a2 in wt_status_collect (s=0xbffff5a8) at wt-status.c:423\nNo locals.\n#12 0x0806632d in cmd_status (argc=0, argv=0xbffff968, prefix=0x0) at\nbuiltin/commit.c:1104\n        s = {is_initial = 0, branch = 0x81b62a0\n\"refs/heads/uploadFiles\", reference = 0x8167a22 \"HEAD\", pathspec =\n0x0, verbose = 0, amend = 0, in_merge = 0, nowarn = 0, use_color = -1,\n          relative_paths = 1, submodule_summary = 0,\nshow_ignored_files = 0, show_untracked_files =\nSHOW_NORMAL_UNTRACKED_FILES, ignore_submodule_arg = 0x0, color_palette\n= {'\\000' <repeats 39 times>,\n            \"\\033[33m\", '\\000' <repeats 34 times>, \"\\033[32m\", '\\000'\n<repeats 34 times>, \"\\033[36m\", '\\000' <repeats 34 times>, \"\\033[31m\",\n'\\000' <repeats 34 times>,\n            \"\\033[31m\", '\\000' <repeats 34 times>, \"\\033[32m\", '\\000'\n<repeats 34 times>, \"\\033[31m\", '\\000' <repeats 34 times>}, commitable\n= 0, workdir_dirty = 1,\n          index_file = 0x81b61a0 \".git/index\", fp = 0xb7f964e0, prefix\n= 0x0, change = {items = 0x8498228, nr = 430, alloc = 448,\nstrdup_strings = 1}, untracked = {items = 0x0, nr = 0, alloc = 0,\n            strdup_strings = 1}, ignored = {items = 0x0, nr = 0, alloc\n= 0, strdup_strings = 1}}\n        fd = 5\n        sha1 = \"j\\201\\033YO;}d\\323\\v\\313\\062\\372\\205\\264{A\\353Hh\"\n        builtin_status_options = {{type = OPTION_BOOLEAN, short_name =\n118, long_name = 0x8145c5d \"verbose\", value = 0x8179434, argh = 0x0,\nhelp = 0x8145c65 \"be verbose\", flags = 2, callback = 0,\n            defval = 0}, {type = OPTION_SET_INT, short_name = 115,\nlong_name = 0x8145f97 \"short\", value = 0x8179484, argh = 0x0, help =\n0x8145f9d \"show status concisely\", flags = 2, callback = 0,\n            defval = 1}, {type = OPTION_BOOLEAN, short_name = 98,\nlong_name = 0x8145fb3 \"branch\", value = 0x8179488, argh = 0x0, help =\n0x8145fba \"show branch information\", flags = 2, callback = 0,\n            defval = 0}, {type = OPTION_SET_INT, short_name = 0,\nlong_name = 0x8145fd2 \"porcelain\", value = 0x8179484, argh = 0x0, help\n= 0x8145fdc \"show porcelain output format\", flags = 2,\n            callback = 0, defval = 2}, {type = OPTION_BOOLEAN,\nshort_name = 122, long_name = 0x8145ff9 \"null\", value = 0x8179480,\nargh = 0x0, help = 0x8145ffe \"terminate entries with NUL\", flags = 2,\n            callback = 0, defval = 0}, {type = OPTION_STRING,\nshort_name = 117, long_name = 0x814605e \"untracked-files\", value =\n0x8179450, argh = 0x814606e \"mode\",\n            help = 0x8146d78 \"show untracked files, optional modes:\nall, normal, no. (Default: all)\", flags = 1, callback = 0, defval =\n135552702}, {type = OPTION_BOOLEAN, short_name = 0,\n            long_name = 0x8146dbe \"ignored\", value = 0x817946c, argh =\n0x0, help = 0x8146dc6 \"show ignored files\", flags = 2, callback = 0,\ndefval = 0}, {type = OPTION_STRING, short_name = 0,\n            long_name = 0x8146dd9 \"ignore-submodules\", value =\n0x8179458, argh = 0x8146deb \"when\",\n            help = 0x8146df0 \"ignore changes to submodules, optional\nwhen: all, dirty, untracked. (Default: all)\", flags = 1, callback = 0,\ndefval = 135552702}, {type = OPTION_END, short_name = 0,\n            long_name = 0x0, value = 0x0, argh = 0x0, help = 0x0,\nflags = 0, callback = 0, defval = 0}}\n#13 0x0804bbb4 in run_builtin (p=0x816a760, argc=1, argv=0xbffff968)\nat git.c:275\n        status = -1209323120\n        help = 0\n        st = {st_dev = 7165064483209180463, __pad1 = 50624, __st_ino =\n3086589952, st_mode = 1920169263, st_nlink = 4294967295, st_uid =\n3087003636, st_gid = 134519560, st_rdev = 13258579662338732358,\n          __pad2 = 1699, st_size = -5189937631567283536, st_blksize =\n1, st_blocks = 1, st_atim = {tv_sec = 1, tv_nsec = 134517876}, st_mtim\n= {tv_sec = 135701220, tv_nsec = 0}, st_ctim = {\n            tv_sec = -1209743936, tv_nsec = -1208393740}, st_ino = 0}\n        prefix = 0x0\n#14 0x0804bd12 in handle_internal_command (argc=1, argv=0xbffff968) at git.c:431\n        p = 0x816a760\n        cmd = 0xbffffae4 \"status\"\n        commands = {{cmd = 0x8140240 \"add\", fn = 0x804cc5c <cmd_add>,\noption = 9}, {cmd = 0x8140244 \"stage\", fn = 0x804cc5c <cmd_add>,\noption = 9}, {cmd = 0x814024a \"annotate\",\n            fn = 0x804d210 <cmd_annotate>, option = 1}, {cmd =\n0x8140253 \"apply\", fn = 0x805501a <cmd_apply>, option = 2}, {cmd =\n0x8140259 \"archive\", fn = 0x8055cc9 <cmd_archive>, option = 0}, {\n            cmd = 0x8140261 \"bisect--helper\", fn = 0x8055ea4\n<cmd_bisect__helper>, option = 9}, {cmd = 0x8140270 \"blame\", fn =\n0x805a3d8 <cmd_blame>, option = 1}, {cmd = 0x8140276 \"branch\",\n            fn = 0x805c4d1 <cmd_branch>, option = 1}, {cmd = 0x814027d\n\"bundle\", fn = 0x805cc64 <cmd_bundle>, option = 2}, {cmd = 0x8140284\n\"cat-file\", fn = 0x805d798 <cmd_cat_file>, option = 1}, {\n            cmd = 0x814028d \"checkout\", fn = 0x8060b0d <cmd_checkout>,\noption = 9}, {cmd = 0x8140296 \"checkout-index\", fn = 0x805e849\n<cmd_checkout_index>, option = 9}, {\n            cmd = 0x81402a5 \"check-ref-format\", fn = 0x805e06b\n<cmd_check_ref_format>, option = 0}, {cmd = 0x81402b6 \"check-attr\", fn\n= 0x805dd3a <cmd_check_attr>, option = 1}, {\n            cmd = 0x81402c1 \"cherry\", fn = 0x80830c9 <cmd_cherry>,\noption = 1}, {cmd = 0x81402c8 \"cherry-pick\", fn = 0x80a96f2\n<cmd_cherry_pick>, option = 9}, {cmd = 0x81402d4 \"clone\",\n            fn = 0x8062aa5 <cmd_clone>, option = 0}, {cmd = 0x81402da\n\"clean\", fn = 0x80616a4 <cmd_clean>, option = 9}, {cmd = 0x81402e0\n\"commit\", fn = 0x80669b5 <cmd_commit>, option = 9}, {\n            cmd = 0x81402e7 \"commit-tree\", fn = 0x80637c4\n<cmd_commit_tree>, option = 1}, {cmd = 0x81402f3 \"config\", fn =\n0x8067d09 <cmd_config>, option = 2}, {cmd = 0x81402fa \"count-objects\",\n            fn = 0x80688b2 <cmd_count_objects>, option = 1}, {cmd =\n0x8140308 \"describe\", fn = 0x80699da <cmd_describe>, option = 1}, {cmd\n= 0x8140311 \"diff\", fn = 0x806b3ab <cmd_diff>, option = 0}, {\n            cmd = 0x8140316 \"diff-files\", fn = 0x8069ed4\n<cmd_diff_files>, option = 9}, {cmd = 0x8140321 \"diff-index\", fn =\n0x806a170 <cmd_diff_index>, option = 1}, {cmd = 0x814032c \"diff-tree\",\n            fn = 0x806a735 <cmd_diff_tree>, option = 1}, {cmd =\n0x8140336 \"fast-export\", fn = 0x806d187 <cmd_fast_export>, option =\n1}, {cmd = 0x8140342 \"fetch\", fn = 0x8071ee4 <cmd_fetch>,\n            option = 1}, {cmd = 0x8140348 \"fetch-pack\", fn = 0x806f4e8\n<cmd_fetch_pack>, option = 1}, {cmd = 0x8140353 \"fmt-merge-msg\", fn =\n0x8072f63 <cmd_fmt_merge_msg>, option = 1}, {\n            cmd = 0x8140361 \"for-each-ref\", fn = 0x8075280\n<cmd_for_each_ref>, option = 1}, {cmd = 0x814036e \"format-patch\", fn =\n0x8081df4 <cmd_format_patch>, option = 1}, {cmd = 0x814037b \"fsck\",\n            fn = 0x8076899 <cmd_fsck>, option = 1}, {cmd = 0x8140380\n\"fsck-objects\", fn = 0x8076899 <cmd_fsck>, option = 1}, {cmd =\n0x814038d \"gc\", fn = 0x807711f <cmd_gc>, option = 1}, {\n            cmd = 0x8140390 \"get-tar-commit-id\", fn = 0x80b0e11\n<cmd_get_tar_commit_id>, option = 0}, {cmd = 0x81403a2 \"grep\", fn =\n0x80790a3 <cmd_grep>, option = 2}, {cmd = 0x81403a7 \"hash-object\",\n            fn = 0x807a6ce <cmd_hash_object>, option = 0}, {cmd =\n0x814018c \"help\", fn = 0x807b78f <cmd_help>, option = 0}, {cmd =\n0x81403b3 \"index-pack\", fn = 0x807db0d <cmd_index_pack>, option = 2},\n          {cmd = 0x81403be \"init\", fn = 0x807f55a <cmd_init_db>,\noption = 0}, {cmd = 0x81403c3 \"init-db\", fn = 0x807f55a <cmd_init_db>,\noption = 0}, {cmd = 0x81403cb \"log\", fn = 0x8080ce2 <cmd_log>,\n            option = 1}, {cmd = 0x81403cf \"ls-files\", fn = 0x80846ce\n<cmd_ls_files>, option = 1}, {cmd = 0x81403d8 \"ls-tree\", fn =\n0x80857c5 <cmd_ls_tree>, option = 1}, {cmd = 0x81403e0 \"ls-remote\",\n            fn = 0x80850df <cmd_ls_remote>, option = 2}, {cmd =\n0x81403ea \"mailinfo\", fn = 0x8087f61 <cmd_mailinfo>, option = 0}, {cmd\n= 0x81403f3 \"mailsplit\", fn = 0x8088b19 <cmd_mailsplit>,\n\n            option = 0}, {cmd = 0x81403fd \"merge\", fn = 0x808b8cb\n<cmd_merge>, option = 9}, {cmd = 0x8140403 \"merge-base\", fn =\n0x808ca8d <cmd_merge_base>, option = 1}, {cmd = 0x814040e\n\"merge-file\",\n            fn = 0x808ccc0 <cmd_merge_file>, option = 2}, {cmd =\n0x8140419 \"merge-index\", fn = 0x808d48f <cmd_merge_index>, option =\n1}, {cmd = 0x8140425 \"merge-ours\", fn = 0x808d5f4 <cmd_merge_ours>,\n            option = 1}, {cmd = 0x8140430 \"merge-recursive\", fn =\n0x808d6b6 <cmd_merge_recursive>, option = 9}, {cmd = 0x8140440\n\"merge-recursive-ours\", fn = 0x808d6b6 <cmd_merge_recursive>,\n            option = 9}, {cmd = 0x8140455 \"merge-recursive-theirs\", fn\n= 0x808d6b6 <cmd_merge_recursive>, option = 9}, {cmd = 0x814046c\n\"merge-subtree\", fn = 0x808d6b6 <cmd_merge_recursive>,\n            option = 9}, {cmd = 0x814047a \"merge-tree\", fn = 0x808e43a\n<cmd_merge_tree>, option = 1}, {cmd = 0x8140485 \"mktag\", fn =\n0x808e9f9 <cmd_mktag>, option = 1}, {cmd = 0x814048b \"mktree\",\n            fn = 0x808f046 <cmd_mktree>, option = 1}, {cmd = 0x8140492\n\"mv\", fn = 0x808f3e4 <cmd_mv>, option = 9}, {cmd = 0x8140495\n\"name-rev\", fn = 0x809040f <cmd_name_rev>, option = 1}, {\n            cmd = 0x814049e \"notes\", fn = 0x8092d45 <cmd_notes>,\noption = 1}, {cmd = 0x81404a4 \"pack-objects\", fn = 0x809779e\n<cmd_pack_objects>, option = 1}, {cmd = 0x81404b1 \"pack-redundant\",\n            fn = 0x8099044 <cmd_pack_redundant>, option = 1}, {cmd =\n0x81404c0 \"patch-id\", fn = 0x8099aa7 <cmd_patch_id>, option = 0}, {cmd\n= 0x81404c9 \"peek-remote\", fn = 0x80850df <cmd_ls_remote>,\n            option = 2}, {cmd = 0x81404d5 \"pickaxe\", fn = 0x805a3d8\n<cmd_blame>, option = 1}, {cmd = 0x81404dd \"prune\", fn = 0x809a2d9\n<cmd_prune>, option = 1}, {cmd = 0x81404e3 \"prune-packed\",\n            fn = 0x8099d63 <cmd_prune_packed>, option = 1}, {cmd =\n0x81404f0 \"push\", fn = 0x809ac29 <cmd_push>, option = 1}, {cmd =\n0x81404f5 \"read-tree\", fn = 0x809b2e0 <cmd_read_tree>, option = 1}, {\n            cmd = 0x81404ff \"receive-pack\", fn = 0x809d6a6\n<cmd_receive_pack>, option = 0}, {cmd = 0x814050c \"reflog\", fn =\n0x809f614 <cmd_reflog>, option = 1}, {cmd = 0x8140513 \"remote\",\n            fn = 0x80a3710 <cmd_remote>, option = 1}, {cmd = 0x814051a\n\"replace\", fn = 0x80a3d9e <cmd_replace>, option = 1}, {cmd = 0x8140522\n\"repo-config\", fn = 0x8067d09 <cmd_config>, option = 2}, {\n            cmd = 0x814052e \"rerere\", fn = 0x80a442a <cmd_rerere>,\noption = 1}, {cmd = 0x8140535 \"reset\", fn = 0x80a4f5e <cmd_reset>,\noption = 1}, {cmd = 0x814053b \"rev-list\",\n            fn = 0x80a60c1 <cmd_rev_list>, option = 1}, {cmd =\n0x8140544 \"rev-parse\", fn = 0x80a744a <cmd_rev_parse>, option = 0},\n{cmd = 0x814054e \"revert\", fn = 0x80a96b4 <cmd_revert>, option = 9}, {\n            cmd = 0x8140555 \"rm\", fn = 0x80a9ae5 <cmd_rm>, option =\n1}, {cmd = 0x8140558 \"send-pack\", fn = 0x80aac7e <cmd_send_pack>,\noption = 1}, {cmd = 0x8140562 \"shortlog\",\n            fn = 0x80abe10 <cmd_shortlog>, option = 6}, {cmd =\n0x814056b \"show-branch\", fn = 0x80ad6ae <cmd_show_branch>, option =\n1}, {cmd = 0x8140577 \"show\", fn = 0x80806fa <cmd_show>, option = 1}, {\n            cmd = 0x814057c \"status\", fn = 0x8066142 <cmd_status>,\noption = 9}, {cmd = 0x8140583 \"stripspace\", fn = 0x80af2f3\n<cmd_stripspace>, option = 0}, {cmd = 0x814058e \"symbolic-ref\",\n            fn = 0x80af479 <cmd_symbolic_ref>, option = 1}, {cmd =\n0x814059b \"tag\", fn = 0x80b0330 <cmd_tag>, option = 1}, {cmd =\n0x814059f \"tar-tree\", fn = 0x80b0c44 <cmd_tar_tree>, option = 0}, {\n            cmd = 0x81405a8 \"unpack-file\", fn = 0x80b1018\n<cmd_unpack_file>, option = 1}, {cmd = 0x81405b4 \"unpack-objects\", fn\n= 0x80b2366 <cmd_unpack_objects>, option = 1}, {\n            cmd = 0x81405c3 \"update-index\", fn = 0x80b3c1b\n<cmd_update_index>, option = 1}, {cmd = 0x81405d0 \"update-ref\", fn =\n0x80b45af <cmd_update_ref>, option = 1}, {\n            cmd = 0x81405db \"update-server-info\", fn = 0x80b4894\n<cmd_update_server_info>, option = 1}, {cmd = 0x81405ee\n\"upload-archive\", fn = 0x80b4d42 <cmd_upload_archive>, option = 0}, {\n            cmd = 0x81405fd \"var\", fn = 0x80b513a <cmd_var>, option =\n2}, {cmd = 0x8140601 \"verify-tag\", fn = 0x80b5cc0 <cmd_verify_tag>,\noption = 1}, {cmd = 0x814060c \"version\",\n            fn = 0x80e475f <cmd_version>, option = 0}, {cmd =\n0x8140614 \"whatchanged\", fn = 0x808037e <cmd_whatchanged>, option =\n1}, {cmd = 0x8140620 \"write-tree\", fn = 0x80b5dcc <cmd_write_tree>,\n            option = 1}, {cmd = 0x814062b \"verify-pack\", fn =\n0x80b57ac <cmd_verify_pack>, option = 0}, {cmd = 0x8140637 \"show-ref\",\nfn = 0x80aeeda <cmd_show_ref>, option = 1}, {\n            cmd = 0x8140640 \"pack-refs\", fn = 0x8099468\n<cmd_pack_refs>, option = 1}}\n        i = 88\n        ext = \"\"\n#15 0x0804bdee in run_argv (argcp=0xbffff8c0, argv=0xbffff8c4) at git.c:475\n        done_alias = 0\n#16 0x0804bf60 in main (argc=1, argv=0xbffff968) at git.c:548\n        done_help = 0\n        was_alias = 0\n        cmd = 0xbffffae4 \"status\"\n(gdb)\n\n\n\n2010/10/26 Ævar Arnfjörð Bjarmason <avarab@gmail.com>:\n> On Tue, Oct 26, 2010 at 11:45, Rado Dr. <radodr@gmail.com> wrote:\n>> there is output:\n>> Reading symbols from /usr/local/bin/git...done.\n>> (gdb) run\n>> Starting program: /usr/local/bin/git status\n>> [Thread debugging using libthread_db enabled]\n>>\n>> Program received signal SIGSEGV, Segmentation fault.\n>> hash_index_entry (istate=<value optimized out>, ce=0xb7c00c90) at name-hash.c:44\n>> 44              hash = hash_name(ce->name, ce_namelen(ce));\n>> (gdb) bt full\n>> #0  hash_index_entry (istate=<value optimized out>, ce=0xb7c00c90) at\n>> name-hash.c:44\n>>        pos = <value optimized out>\n>>        hash = 3198509075\n>> #1  0x080dde47 in lazy_init_name_hash (istate=0x8194180,\n>> name=0xbfffb34b \"src/FotoPlusServer/build.xml\", namelen=28, icase=0)\n>>    at name-hash.c:59\n>>        nr = 16273\n>> #2  index_name_exists (istate=0x8194180, name=0xbfffb34b\n>> \"src/FotoPlusServer/build.xml\", namelen=28, icase=0) at\n>> name-hash.c:108\n>>        hash = <value optimized out>\n>>        ce = <value optimized out>\n>> #3  0x080cf190 in dir_add_name (dir=<value optimized out>, base=<value\n>> optimized out>, baselen=<value optimized out>, check_only=0,\n>>    simplify=0x0) at dir.c:449\n>> No locals.\n>\n> I haven't tried to grok all that, but you'd get a better backtrace if\n> you compiled git with debug flags, e.g.:\n>\n>    make CFLAGS=\"-O0 -ggdb3\"\n>\n> And then did gdb ./git .... Sorry for not mentioning it to begin with.\n>\n\n\n\n-- \nRado Dr.\n"},{"id":"155314","messageId":"AANLkTinfrkp6_AG=G_hHiWe9t0ke=bm_pg=_ecShXsbB@mail.gmail.com","threadId":"25548","inReplyTo":"AANLkTinghepgdMRjEBhpAMz-Mr0g7szKyYEDfE=ttstS@mail.gmail.com","subject":"Re: git status & seg.fault","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2010-11-07T09:23:07Z","receivedAt":"2010-11-07T09:23:07Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Tue, Oct 26, 2010 at 1:44 PM, Rado Dr. <radodr@gmail.com> wrote:\n> Hi there,\n>\n> I have \"Segmentation fault\" error after \"git status\" command in one of\n> my local repos. Just i one repo, other repos are OK. I can't find any\n> clue how to fix it, and as usually I need work with that repo ;-)\n\nHas anybody resolved this? If not, Rado can you send me your\n$GIT_DIR/index if the fault still happens?\n-- \nDuy\n"},{"id":"155315","messageId":"AANLkTi=3eeZteCBAPoQUq3PCqkRssfnNPc8x+=yaQ3N1@mail.gmail.com","threadId":"25548","inReplyTo":"AANLkTinfrkp6_AG=G_hHiWe9t0ke=bm_pg=_ecShXsbB@mail.gmail.com","subject":"Re: git status & seg.fault","fromName":"Rado Dr.","fromEmail":"radodr@gmail.com","sentAt":"2010-11-07T09:31:56Z","receivedAt":"2010-11-07T09:31:56Z","isPatch":false,"sender":{"key":"radodr@gmail.com","avatar":"https://gravatar.com/avatar/764d40381eb0625c79a7a1df8d04eb9d20229014325a84ee6fb081494adc952e?d=mp&s=160"},"body":"No, i don't resolved that problem. I had to use that repo so I had to\nrecreate my git dir from source backups. Now I don't have any\nproblems. I don't have that faulty index now.\n\nRado.\n\n2010/11/7 Nguyen Thai Ngoc Duy <pclouds@gmail.com>:\n> On Tue, Oct 26, 2010 at 1:44 PM, Rado Dr. <radodr@gmail.com> wrote:\n>> Hi there,\n>>\n>> I have \"Segmentation fault\" error after \"git status\" command in one of\n>> my local repos. Just i one repo, other repos are OK. I can't find any\n>> clue how to fix it, and as usually I need work with that repo ;-)\n>\n> Has anybody resolved this? If not, Rado can you send me your\n> $GIT_DIR/index if the fault still happens?\n> --\n> Duy\n>\n\n\n\n-- \nRado Dr.\n"}]}