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

Re: [Linus Torvalds] Re: [RFH] index_name_exists() conversion

From
PBPieter de Bie <pdebie@ai.rug.nl>
Date
Feb 21, 2008, 19:00 UTC
Message-ID
<98AF5144-5FA8-4465-B128-9146FA53681B@ai.rug.nl>
In-Reply-To
<7v63wiuqdq.fsf@gitster.siamese.dyndns.org>
On Feb 21, 2008, at 7:16 PM, Junio C Hamano wrote:
Show 11 quoted lines
> This was posted to the list.  Could you try to see if this fixes
> the issue for you?
>
> Date: Thu, 21 Feb 2008 09:00:55 -0800 (PST)
> From: Linus Torvalds <torvalds@linux-foundation.org>
>
> Ahh. I think I may have found it.
>
> See if this fixes it.
>
> +	ce->next = NULL;

Unfortunately this did not fix it (I applied this on 'next'). Below is the GDB output again, so Linus can see it too.

- Pieter
Vienna:Project pieter$ gdb --args git status
[...]
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:102
102			if (!(ce->ce_flags & CE_UNHASHED)) {
(gdb) print *ce
Cannot access memory at address 0x4a1fec
(gdb) bt
#0  index_name_exists (istate=0xeba80, name=0xbfffdc27 "Data/Cache/ 
Template/Peter_II_of_Yugoslavia.html", namelen=47) at read-cache.c:102
#1  0x0006fc04 in dir_add_name (dir=0xbfffef68, pathname=0xbfffdc27  
"Data/Cache/Template/Peter_II_of_Yugoslavia.html", len=47) at dir.c:374
#2  0x00070d11 in read_directory_recursive (dir=0xbfffef68,  
path=<value temporarily unavailable, due to optimizations>,  
base=<value temporarily unavailable, due to optimizations>,  
baselen=20, check_only=0, simplify=0x8072cc) at dir.c:642
#3  0x00070baf in read_directory_recursive (dir=0xbfffef68,  
path=<value temporarily unavailable, due to optimizations>,  
base=<value temporarily unavailable, due to optimizations>,  
baselen=11, check_only=0, simplify=<value temporarily unavailable, due  
to optimizations>) at dir.c:627
#4  0x00070baf in read_directory_recursive (dir=0xbfffef68,  
path=<value temporarily unavailable, due to optimizations>,  
base=<value temporarily unavailable, due to optimizations>, baselen=5,  
check_only=0, simplify=<value temporarily unavailable, due to  
optimizations>) at dir.c:627
#5  0x00070baf in read_directory_recursive (dir=0xbfffef68,  
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  0x00070ed3 in read_directory (dir=0xbfffef68, path=0xc4470 ".",  
base=0xbb084 "", baselen=4857836, pathspec=0x0) at dir.c:715
#7  0x0009d4d6 in wt_status_print (s=0xbffff5ac) at wt-status.c:282
#8  0x000167b3 in run_status (fp=0xa015f5f8, index_file=0x500300 "/ 
Users/pieter/Documents/Studie/2007-2008/AWT/Project/.git/index",  
prefix=0x0, nowarn=4857836) at builtin-commit.c:347
#9  0x0001719f in cmd_status (argc=1, argv=0x0, prefix=0x500300 "/ 
Users/pieter/Documents/Studie/2007-2008/AWT/Project/.git/index") at  
builtin-commit.c:783
#10 0x00002250 in handle_internal_command (argc=1, argv=0xbffff7b8) at  
git.c:259
#11 0x0000245f in main (argc=1, argv=0xbffff7b8) at git.c:451
Message 1 of 1 in “Re: [Linus Torvalds] Re: [RFH] index_name_exists() conversion”
  1. Pieter de BieFeb 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.