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

Re: git status & seg.fault

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Oct 26, 2010, 09:47 UTC
Message-ID
<AANLkTinpUKP8XaLR6d530BW8DuFqUzettuivin88xwuE@mail.gmail.com>
In-Reply-To
<AANLkTimRBmJkXh9LjgL51bwFD=AGBJRc2d1R0g=z0v2t@mail.gmail.com>
On Tue, Oct 26, 2010 at 11:45, Rado Dr. <radodr@gmail.com> wrote:
Show 27 quoted lines
> 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.
Previous: Rado Dr.Next: Rado Dr.
Message 4 of 7 in “Fwd: git status & seg.fault”
  1. Rado Dr.Oct 26, 2010
  2. Ævar Arnfjörð BjarmasonOct 26, 2010
  3. Rado Dr.Oct 26, 2010
  4. Ævar Arnfjörð BjarmasonOct 26, 2010
  5. Rado Dr.Oct 26, 2010
  6. Nguyen Thai Ngoc DuyNov 7, 2010
  7. Rado Dr.Nov 7, 2010

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

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