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

Re: [Bug] Segfault in git status

From
Dane Jensen <careo@fastmail.fm>
Date
Feb 21, 2008, 17:19 UTC
Message-ID
<191B6CDE-D81C-4730-8A39-07774BB80D85@fastmail.fm>
In-Reply-To
<76718490802210853t23b0498fkfb9a14bcd50ca458@mail.gmail.com>
On Feb 21, 2008, at 8:53 AM, Jay Soffian wrote:
Show 15 quoted lines
> On Thu, Feb 21, 2008 at 11:01 AM, Pieter de Bie <pdebie@ai.rug.nl>  
> wrote:
>> Vienna:Project pieter$ gdb --args git status
>> (gdb) r
>> Program received signal EXC_BAD_ACCESS, Could not access memory.
>> Reason: KERN_INVALID_ADDRESS at address: 0x004a2010
>> index_name_exists (istate=0xeba80, name=0xbfffdc27 "Data/Cache/
>> Template/Peter_II_of_Yugoslavia.html", namelen=47) at read-cache.c: 
>> 101
>> 101                     if (!(ce->ce_flags & CE_UNHASHED)) {
>> (gdb) print *ce
>> Cannot access memory at address 0x4a1fec
>
> Do that again, but type "bt" at the gdb prompt after the crash  
> please. :-)

Same error as mine. Here's the result against my repository. This is with master, git --version => 1.5.4.2.184.gb23b,

(gdb) r Starting program: /Users/djensen/bin/git status Reading symbols for shared libraries +++++++. done # On branch remote/device-emulator

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00431018
index_name_exists (istate=0xe04a0, name=0xbfffdc87 "shared/models/spec/ 
device_spec.rb", namelen=33) at read-cache.c:101
101			if (!(ce->ce_flags & CE_UNHASHED)) {
(gdb) bt
#0  index_name_exists (istate=0xe04a0, name=0xbfffdc87 "shared/models/ 
spec/device_spec.rb", namelen=33) at read-cache.c:101
#1  0x00068624 in dir_add_name (dir=0xbfffefc0, pathname=0xbfffdc87  
"shared/models/spec/device_spec.rb", len=33) at dir.c:374
#2  0x00069731 in read_directory_recursive (dir=0xbfffefc0,  
path=<value temporarily unavailable, due to optimizations>,  
base=<value temporarily unavailable, due to optimizations>,  
baselen=19, check_only=0, simplify=0x81de38) at dir.c:642
#3  0x000695cf in read_directory_recursive (dir=0xbfffefc0,  
path=<value temporarily unavailable, due to optimizations>,  
base=<value temporarily unavailable, due to optimizations>,  
baselen=14, check_only=0, simplify=<value temporarily unavailable, due  
to optimizations>) at dir.c:627
#4  0x000695cf in read_directory_recursive (dir=0xbfffefc0,  
path=<value temporarily unavailable, due to optimizations>,  
base=<value temporarily unavailable, due to optimizations>, baselen=7,  
check_only=0, simplify=<value temporarily unavailable, due to  
optimizations>) at dir.c:627
#5  0x000695cf in read_directory_recursive (dir=0xbfffefc0,  
path=<value temporarily unavailable, due to optimizations>,  
base=<value temporarily unavailable, due to optimizations>, baselen=0,  
check_only=0, simplify=<value temporarily unavailable, due to  
optimizations>) at dir.c:627
#6  0x000698f3 in read_directory (dir=0xbfffefc0, path=0xae8a0 ".",  
base=0xae19c "", baselen=4394996, pathspec=0x0) at dir.c:715
#7  0x00094746 in wt_status_print (s=0xbffff5ec) at wt-status.c:282
#8  0x00014423 in run_status (fp=0xa01a65f8, index_file=0x5003b0 "/ 
Users/djensen/Projects/Soocial/source/.git/index", prefix=0x0,  
nowarn=4394996) at builtin-commit.c:346
#9  0x00014e0f in cmd_status (argc=1, argv=0x0, prefix=0x5003b0 "/ 
Users/djensen/Projects/Soocial/source/.git/index") at builtin-commit.c: 
782
#10 0x00001da0 in handle_internal_command (argc=1, argv=0xbffff7f8) at  
git.c:259
#11 0x00001faf in main (argc=1, argv=0xbffff7f8) at git.c:449
(gdb)
Previous: Pieter de Bie
Message 9 of 9 in “[Bug] Segfault in git status”
  1. Dane JensenFeb 18, 2008
  2. Junio C HamanoFeb 19, 2008
  3. Dane JensenFeb 19, 2008
  4. Jay SoffianFeb 21, 2008
  5. Pieter de BieFeb 21, 2008
  6. Jeff KingFeb 21, 2008
  7. Jay SoffianFeb 21, 2008
  8. Pieter de BieFeb 21, 2008
  9. Dane JensenFeb 21, 2008

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.