Re: git status & seg.fault
From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2016-06-15 22:49:52
On Tue, Oct 26, 2010 at 11:45, Rado Dr. [off-list ref] wrote:
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.
I haven't tried to grok all that, but you'd get a better backtrace if
you compiled git with debug flags, e.g.:
make CFLAGS="-O0 -ggdb3"
And then did gdb ./git .... Sorry for not mentioning it to begin with.