there is output: Reading symbols from /usr/local/bin/git...done. (gdb) run Starting program: /usr/local/bin/git status [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. hash_index_entry (istate=<value optimized out>, ce=0xb7c00c90) at name-hash.c:44 44 hash = hash_name(ce->name, ce_namelen(ce)); (gdb) bt full #0 hash_index_entry (istate=<value optimized out>, ce=0xb7c00c90) at name-hash.c:44 pos = <value optimized out> hash = 3198509075 #1 0x080dde47 in lazy_init_name_hash (istate=0x8194180, name=0xbfffb34b "src/FotoPlusServer/build.xml", namelen=28, icase=0) at name-hash.c:59 nr = 16273 #2 index_name_exists (istate=0x8194180, name=0xbfffb34b "src/FotoPlusServer/build.xml", namelen=28, icase=0) at name-hash.c:108 hash = <value optimized out> ce = <value optimized out> #3 0x080cf190 in dir_add_name (dir=<value optimized out>, base=<value optimized out>, baselen=<value optimized out>, check_only=0, simplify=0x0) at dir.c:449 No locals. #4 read_directory_recursive (dir=<value optimized out>, base=<value optimized out>, baselen=<value optimized out>, check_only=0, simplify=0x0) at dir.c:809 len = 28 de = <value optimized out> path = "src/FotoPlusServer/build.xml", '\000' <repeats 305 times>, "s\232\352\267", '\000' <repeats 12 times>, "s\232\352\267\v\000\000\000 \273\377\277\v\000\000\000\364_\371\267\214\272\377\277 \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", '\000' <repeats 92 times>"\377, \377\377\377", '\000' <repeats 28 times>, " ", '\000' <repeats 31 times>"\300, \271\377\277\000\000\000\000v\373\377\377", '\000' <repeats 16 times>"\352, \377\377\377\000\000\000\000\000\000\000\000\202\357\347\267 \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", '\000' <repeats 947 times>, "s\232\352\267", '\000' <repeats 12 times>, "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"... fdir = 0x8488b30 contents = 1 #5 0x080cf24f in read_directory_recursive (dir=<value optimized out>, base=<value optimized out>, baselen=<value optimized out>, check_only=0, simplify=0x0) at dir.c:797 len = 19 de = <value optimized out> path = "src/FotoPlusServer/", '\000' <repeats 746 times>, "s\232\352\267", '\000' <repeats 16 times>, "\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", '\000' <repeats 23 times>, "\005", '\000' <repeats 67 times>"\377, \377\377\377", '\000' <repeats 28 times>, " ", '\000' <repeats 31 times>"\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", '\000' <repeats 555 times>, "q\a\347\267", '\000' <repeats 40 times>"\377, \377\377\377\000\000\000\000\005\000\000\000\260\312\377\277", '\000' <repeats 12 times>"\231, \231\231\031\024\274<"... fdir = 0x84140b8 contents = 0 #6 0x080cf24f in read_directory_recursive (dir=<value optimized out>, base=<value optimized out>, baselen=<value optimized out>, check_only=0, simplify=0x0) at dir.c:797 len = 4 de = <value optimized out> 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 \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"... fdir = 0x840c098 contents = 0 #7 0x080cf7ef in read_directory (dir=0xbfffe514, path=0x8128050 "", len=0, pathspec=0x0) at dir.c:916 simplify = 0x0 #8 0x080cf951 in fill_directory (dir=0xbfffe514, pathspec=0x0) at dir.c:70 path = <value optimized out> len = 0 #9 0x081196c5 in wt_status_collect_untracked (s=0xbffff5ac) at wt-status.c:390 i = <value optimized out> dir = {nr = 0, alloc = 0, ignored_nr = 0, ignored_alloc = 0, flags = 6, entries = 0x0, ignored = 0x0, exclude_per_dir = 0x8128031 ".gitignore", exclude_list = {{nr = 0, alloc = 0, excludes = 0x0}, {nr = 11, alloc = 24, excludes = 0x82a8a98}, {nr = 0, alloc = 0, excludes = 0x0}}, exclude_stack = 0x83f0d80, basebuf = "src/FotoPlusServer/\000gitignore", '\000' <repeats 4066 times>} #10 0x08062384 in cmd_status (argc=1, argv=0xbffff968, prefix=0x0) at builtin/commit.c:1104 s = {is_initial = 0, branch = 0x81952a0 "refs/heads/uploadFiles", reference = 0x81268be "HEAD", pathspec = 0x0, verbose = 0, amend = 0, in_merge = 0, nowarn = 0, use_color = -1, relative_paths = 1, submodule_summary = 0, show_ignored_files = 0, show_untracked_files = SHOW_NORMAL_UNTRACKED_FILES, ignore_submodule_arg = 0x0, color_palette = {'\000' <repeats 39 times>, "\033[33m", '\000' <repeats 34 times>, "\033[32m", '\000' <repeats 34 times>, "\033[36m", '\000' <repeats 34 times>, "\033[31m", '\000' <repeats 34 times>, "\033[31m", '\000' <repeats 34 times>, "\033[32m", '\000' <repeats 34 times>, "\033[31m", '\000' <repeats 34 times>}, commitable = 0, workdir_dirty = 1, index_file = 0x81951a0 ".git/index", fp = 0xb7f964e0, prefix = 0x0, change = {items = 0x8477190, nr = 430, alloc = 448, strdup_strings = 1}, untracked = { items = 0x0, nr = 0, alloc = 0, strdup_strings = 1}, ignored = {items = 0x0, nr = 0, alloc = 0, strdup_strings = 1}} fd = <value optimized out> sha1 = "j\201\033YO;}d\323\v\313\062\372\205\264{A\353Hh" builtin_status_options = {{type = OPTION_BOOLEAN, short_name = 118, long_name = 0x8124a8d "verbose", value = 0x8158074, argh = 0x0, help = 0x8124a8a "be verbose", flags = 2, callback = 0, defval = 0}, {type = OPTION_SET_INT, short_name = 115, long_name = 0x81376d5 "short", value = 0x8155f60, argh = 0x0, help = 0x812984a "show status concisely", flags = 2, callback = 0, defval = 1}, {type = OPTION_BOOLEAN, short_name = 98, long_name = 0x8136139 "branch", value = 0x81580c4, argh = 0x0, help = 0x8129860 "show branch information", flags = 2, callback = 0, defval = 0}, {type = OPTION_SET_INT, short_name = 0, long_name = 0x814434e "porcelain", value = 0x8155f60, argh = 0x0, help = 0x8129878 "show porcelain output format", flags = 2, callback = 0, defval = 2}, {type = OPTION_BOOLEAN, short_name = 122, long_name = 0x813e113 "null", value = 0x81580c0, argh = 0x0, help = 0x8129895 "terminate entries with NUL", flags = 2, callback = 0, defval = 0}, {type = OPTION_STRING, short_name = 117, long_name = 0x81298ef "untracked-files", value = 0x8158090, argh = 0x812e1e0 "mode", help = 0x812a1ec "show untracked files, optional modes: all, normal, no. (Default: all)", flags = 1, callback = 0, defval = 135440244}, {type = OPTION_BOOLEAN, short_name = 0, long_name = 0x8138e1e "ignored", value = 0x81580ac, argh = 0x0, help = 0x812993c "show ignored files", flags = 2, callback = 0, defval = 0}, {type = OPTION_STRING, short_name = 0, long_name = 0x8139d7b "ignore-submodules", value = 0x8158098, argh = 0x8126ec1 "when", help = 0x812a234 "ignore changes to submodules, optional when: all, dirty, untracked. (Default: all)", flags = 1, callback = 0, defval = 135440244}, {type = OPTION_END, short_name = 0, long_name = 0x0, value = 0x0, argh = 0x0, help = 0x0, flags = 0, callback = 0, defval = 0}} #11 0x0804b868 in run_builtin (argc=<value optimized out>, argv=<value optimized out>) at git.c:275 status = <value optimized out> st = {st_dev = 13256754246612680856, __pad1 = 24564, __st_ino = 3086578624, st_mode = 0, st_nlink = 3221223416, st_uid = 3085631181, st_gid = 136, st_rdev = 13835049485613071968, __pad2 = 64776, st_size = 581093732451874840, st_blksize = -1073743820, st_blocks = 0, st_atim = {tv_sec = 1, tv_nsec = -1073743820}, st_mtim = {tv_sec = -1073743820, tv_nsec = -1073743800}, st_ctim = {tv_sec = 135073352, tv_nsec = -1073743820}, st_ino = 4430843936} prefix = 0x0 #12 handle_internal_command (argc=<value optimized out>, argv=<value optimized out>) at git.c:431 p = 0x8149760 cmd = <value optimized out> commands = {{cmd = 0x8135f74 "add", fn = 0x804c400 <cmd_add>, option = 9}, {cmd = 0x8124034 "stage", fn = 0x804c400 <cmd_add>, option = 9}, {cmd = 0x812403a "annotate", fn = 0x804cf20 <cmd_annotate>, option = 1}, {cmd = 0x8124ad9 "apply", fn = 0x8053c70 <cmd_apply>, option = 2}, {cmd = 0x8126142 "archive", fn = 0x8054b50 <cmd_archive>, option = 0}, { cmd = 0x8124043 "bisect--helper", fn = 0x8054d90 <cmd_bisect__helper>, option = 9}, {cmd = 0x8124052 "blame", fn = 0x80571a0 <cmd_blame>, option = 1}, {cmd = 0x8136139 "branch", fn = 0x805a0c0 <cmd_branch>, option = 1}, { cmd = 0x8128b6a "bundle", fn = 0x805b260 <cmd_bundle>, option = 2}, {cmd = 0x8124058 "cat-file", fn = 0x805ba80 <cmd_cat_file>, option = 1}, {cmd = 0x8128cb6 "checkout", fn = 0x805e100 <cmd_checkout>, option = 9}, { cmd = 0x8124061 "checkout-index", fn = 0x805c9e0 <cmd_checkout_index>, option = 9}, {cmd = 0x8124070 "check-ref-format", fn = 0x805c3f0 <cmd_check_ref_format>, option = 0}, {cmd = 0x8124081 "check-attr", fn = 0x805c090 <cmd_check_attr>, option = 1}, {cmd = 0x812408c "cherry", fn = 0x807b630 <cmd_cherry>, option = 1}, {cmd = 0x814277b "cherry-pick", fn = 0x80a2420 <cmd_cherry_pick>, option = 9}, {cmd = 0x8124093 "clone", fn = 0x8060630 <cmd_clone>, option = 0}, { cmd = 0x8124099 "clean", fn = 0x805f960 <cmd_clean>, option = 9}, {cmd = 0x81294a3 "commit", fn = 0x8063ef0 <cmd_commit>, option = 9}, {cmd = 0x812409f "commit-tree", fn = 0x8061b50 <cmd_commit_tree>, option = 1}, {cmd = 0x8124264 "config", fn = 0x8065c80 <cmd_config>, option = 2}, {cmd = 0x81240ab "count-objects", fn = 0x80665b0 <cmd_count_objects>, option = 1}, { cmd = 0x81240b9 "describe", fn = 0x8067540 <cmd_describe>, option = 1}, {cmd = 0x813dac6 "diff", fn = 0x80687f0 <cmd_diff>, option = 0}, {cmd = 0x81240c2 "diff-files", fn = 0x8067cf0 <cmd_diff_files>, option = 9}, {cmd = 0x81240cd "diff-index", fn = 0x8067f70 <cmd_diff_index>, option = 1}, {cmd = 0x81240d8 "diff-tree", fn = 0x8068130 <cmd_diff_tree>, option = 1}, { cmd = 0x8144e9d "fast-export", fn = 0x8069a00 <cmd_fast_export>, option = 1}, {cmd = 0x8128bfb "fetch", fn = 0x806ee10 <cmd_fetch>, option = 1}, {cmd = 0x81240e2 "fetch-pack", fn = 0x806c8c0 <cmd_fetch_pack>, option = 1}, { cmd = 0x81240ed "fmt-merge-msg", fn = 0x806fde0 <cmd_fmt_merge_msg>, option = 1}, {cmd = 0x81240fb "for-each-ref", fn = 0x8071960 <cmd_for_each_ref>, option = 1}, {cmd = 0x8124108 "format-patch", fn = 0x807d350 <cmd_format_patch>, option = 1}, {cmd = 0x813e95e "fsck", fn = 0x8072a40 <cmd_fsck>, option = 1}, {cmd = 0x8124115 "fsck-objects", fn = 0x8072a40 <cmd_fsck>, option = 1}, {cmd = 0x812e20c "gc", fn = 0x80736f0 <cmd_gc>, option = 1}, { cmd = 0x8124122 "get-tar-commit-id", fn = 0x80a8e60 <cmd_get_tar_commit_id>, option = 0}, {cmd = 0x812e5d7 "grep", fn = 0x8074da0 <cmd_grep>, option = 2}, {cmd = 0x8124134 "hash-object", fn = 0x80766a0 <cmd_hash_object>, option = 0}, { cmd = 0x8123e78 "help", fn = 0x80773f0 <cmd_help>, option = 0}, {cmd = 0x8124140 "index-pack", fn = 0x8078a20 <cmd_index_pack>, option = 2}, {cmd = 0x8128d4a "init", fn = 0x807ae70 <cmd_init_db>, option = 0}, { cmd = 0x812414b "init-db", fn = 0x807ae70 <cmd_init_db>, option = 0}, {cmd = 0x81419a8 "log", fn = 0x807cb50 <cmd_log>, option = 1}, {cmd = 0x8124153 "ls-files", fn = 0x807f0c0 <cmd_ls_files>, option = 1}, {cmd = 0x812415c "ls-tree", fn = 0x8080770 <cmd_ls_tree>, option = 1}, {cmd = 0x8124164 "ls-remote", fn = 0x8080360 <cmd_ls_remote>, option = 2}, { cmd = 0x812416e "mailinfo", fn = 0x80823a0 <cmd_mailinfo>, option = 0}, {cmd = 0x8124177 "mailsplit", fn = 0x8083960 <cmd_mailsplit>, option = 0}, {cmd = 0x8132243 "merge", fn = 0x8085700 <cmd_merge>, option = 9}, { cmd = 0x8124181 "merge-base", fn = 0x8087450 <cmd_merge_base>, option = 1}, {cmd = 0x812418c "merge-file", fn = 0x8087800 <cmd_merge_file>, option = 2}, {cmd = 0x8124197 "merge-index", fn = 0x8087ec0 <cmd_merge_index>, option = 1}, { cmd = 0x81241a3 "merge-ours", fn = 0x80880f0 <cmd_merge_ours>, option = 1}, {cmd = 0x81241ae "merge-recursive", fn = 0x80881e0 <cmd_merge_recursive>, option = 9}, {cmd = 0x81241be "merge-recursive-ours", fn = 0x80881e0 <cmd_merge_recursive>, option = 9}, {cmd = 0x81241d3 "merge-recursive-theirs", fn = 0x80881e0 <cmd_merge_recursive>, option = 9}, {cmd = 0x81241ea "merge-subtree", fn = 0x80881e0 <cmd_merge_recursive>, option = 9}, {cmd = 0x81241f8 "merge-tree", fn = 0x8088a30 <cmd_merge_tree>, option = 1}, {cmd = 0x8124203 "mktag", fn = 0x8088de0 <cmd_mktag>, option = 1}, {cmd = 0x8124209 "mktree", fn = 0x8089350 <cmd_mktree>, option = 1}, { cmd = 0x8124210 "mv", fn = 0x8089b60 <cmd_mv>, option = 9}, {cmd = 0x8124213 "name-rev", fn = 0x808a600 <cmd_name_rev>, option = 1}, {cmd = 0x8133035 "notes", fn = 0x808c0b0 <cmd_notes>, option = 1}, {cmd = 0x813b98c "pack-objects", fn = 0x80905e0 <cmd_pack_objects>, option = 1}, {cmd = 0x812421c "pack-redundant", fn = 0x8091fd0 <cmd_pack_redundant>, option = 1}, {cmd = 0x812422b "patch-id", fn = 0x80934b0 <cmd_patch_id>, option = 0}, {cmd = 0x8124234 "peek-remote", fn = 0x8080360 <cmd_ls_remote>, option = 2}, {cmd = 0x8124240 "pickaxe", fn = 0x80571a0 <cmd_blame>, option = 1}, { cmd = 0x81362fb "prune", fn = 0x8093b10 <cmd_prune>, option = 1}, {cmd = 0x8124248 "prune-packed", fn = 0x8093900 <cmd_prune_packed>, option = 1}, {cmd = 0x81448f6 "push", fn = 0x8094250 <cmd_push>, option = 1}, { cmd = 0x8124255 "read-tree", fn = 0x8094ce0 <cmd_read_tree>, option = 1}, {cmd = 0x813833b "receive-pack", fn = 0x8096040 <cmd_receive_pack>, option = 0}, {cmd = 0x8126f2e "reflog", fn = 0x80987b0 <cmd_reflog>, option = 1}, { cmd = 0x8135e0e "remote", fn = 0x809b140 <cmd_remote>, option = 1}, {cmd = 0x8139d95 "replace", fn = 0x809cf90 <cmd_replace>, option = 1}, {cmd = 0x812425f "repo-config", fn = 0x8065c80 <cmd_config>, option = 2}, {cmd = 0x812426b "rerere", fn = 0x809d320 <cmd_rerere>, option = 1}, {cmd = 0x8127fb4 "reset", fn = 0x809dd30 <cmd_reset>, option = 1}, { cmd = 0x812d009 "rev-list", fn = 0x809ee30 <cmd_rev_list>, option = 1}, {cmd = 0x8124272 "rev-parse", fn = 0x809f9f0 <cmd_rev_parse>, option = 0}, {cmd = 0x812427c "revert", fn = 0x80a2440 <cmd_revert>, option = 9}, { cmd = 0x8124283 "rm", fn = 0x80a2490 <cmd_rm>, option = 1}, {cmd = 0x8124286 "send-pack", fn = 0x80a3710 <cmd_send_pack>, option = 1}, {cmd = 0x8124290 "shortlog", fn = 0x80a49f0 <cmd_shortlog>, option = 6}, {cmd = 0x8124299 "show-branch", fn = 0x80a5640 <cmd_show_branch>, option = 1}, {cmd = 0x81242a5 "show", fn = 0x807cdf0 <cmd_show>, option = 1}, { cmd = 0x81382b0 "status", fn = 0x8062200 <cmd_status>, option = 9}, {cmd = 0x81242aa "stripspace", fn = 0x80a7670 <cmd_stripspace>, option = 0}, {cmd = 0x81242b5 "symbolic-ref", fn = 0x80a7760 <cmd_symbolic_ref>, option = 1}, {cmd = 0x81446b1 "tag", fn = 0x80a7ef0 <cmd_tag>, option = 1}, {cmd = 0x81242c2 "tar-tree", fn = 0x80a8f40 <cmd_tar_tree>, option = 0}, {cmd = 0x81242cb "unpack-file", fn = 0x80a90d0 <cmd_unpack_file>, option = 1}, { cmd = 0x81242d7 "unpack-objects", fn = 0x80a9a90 <cmd_unpack_objects>, option = 1}, {cmd = 0x81242e6 "update-index", fn = 0x80ab010 <cmd_update_index>, option = 1}, {cmd = 0x81242f3 "update-ref", fn = 0x80ac150 <cmd_update_ref>, option = 1}, { cmd = 0x81242fe "update-server-info", fn = 0x80ac3d0 <cmd_update_server_info>, option = 1}, { cmd = 0x812613b "upload-archive", fn = 0x80ac780 <cmd_upload_archive>, option = 0}, {cmd = 0x8124311 "var", fn = 0x80aca40 <cmd_var>, option = 2}, {cmd = 0x8124315 "verify-tag", fn = 0x80ad540 <cmd_verify_tag>, option = 1}, { cmd = 0x814696b "version", fn = 0x80d5510 <cmd_version>, option = 0}, {cmd = 0x8124320 "whatchanged", fn = 0x807cc10 <cmd_whatchanged>, option = 1}, {cmd = 0x813a9a9 "write-tree", fn = 0x80ad760 <cmd_write_tree>, option = 1}, { cmd = 0x812432c "verify-pack", fn = 0x80ad1b0 <cmd_verify_pack>, option = 0}, {cmd = 0x8124338 "show-ref", fn = 0x80a6fb0 <cmd_show_ref>, option = 1}, {cmd = 0x8124341 "pack-refs", fn = 0x80930b0 <cmd_pack_refs>, option = 1}} i = 88 #13 0x0804ba63 in run_argv (argc=1, argv=0xbffff968) at git.c:475 done_alias = 0 #14 main (argc=1, argv=0xbffff968) at git.c:548 done_help = 0 was_alias = 0 cmd = <value optimized out> (gdb) 2010/10/26 Ãvar ArnfjÃrà Bjarmason <avarab@xxxxxxxxx>: > On Tue, Oct 26, 2010 at 08:44, Rado Dr. <radodr@xxxxxxxxx> wrote: >> I have "Segmentation fault" error after "git status" command in one of >> my local repos. Just i one repo, other repos are OK. I can't find any >> clue how to fix it, and as usually I need work with that repo ;-) >> >> I tried this: >> Â- git gc Â-> OK >> Â- git fsck -> >> missing blob 0000000000000000000000000000000000000000 >> dangling blob 2f1f0144f786ca887c4911a064bbb28a047f1f77 >> dangling blob 7ffb0f4e430cd60261661138df61ecb50cf1d0a4 >> >> Is this the reason of fault? If yes, how canÂI fix it. >> >> My system info: >> Linux 32bit,ÂUbuntu 10.04 LTS - Lucid Lynx, >> git version 1.7.0.4 > > Can you reproduce it on the latest version of git built from git.git? > > Can you run it under gdb and provide a "bt full" backtrace? > -- Rado Dr. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html