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

SEGV in git-apply

From
Martin Waitz <tali@admingilde.org>
Date
Jan 20, 2007, 01:48 UTC
Message-ID
<20070120014851.GF5231@admingilde.org>
hoi :)

I just hit this bug in git-apply, while executing it in a subdirectory. At the moment I am using some mixture of next and some own changes (mostly submodule support, should not affect this bug).

I am afraid that I don't have the time to fix it myself atm, so I am simply attaching the backtrace here:

Program received signal SIGSEGV, Segmentation fault.
0x080500fa in apply_patch (fd=5, filename=0xbf821b4d "/tmp/404241.patch",
    inaccurate_eof=<value optimized out>) at builtin-apply.c:2504
2504                    if (pathlen <= prefix_length ||
(gdb) bt
#0  0x080500fa in apply_patch (fd=5, filename=0xbf821b4d "/tmp/404241.patch",
    inaccurate_eof=<value optimized out>) at builtin-apply.c:2504
#1  0x0805147a in cmd_apply (argc=3, argv=0xbf8201e4, prefix=0x80e75c6 "src/")
    at builtin-apply.c:2719
#2  0x0804ab55 in handle_internal_command (argc=3, argv=0xbf8201e4,
    envp=<value optimized out>) at git.c:304
#3  0x0804b1f8 in main (argc=3, argv=Cannot access memory at address 0x8
) at git.c:341
-- 
Martin Waitz
Next: Johannes Schindelin
Message 1 of 7 in “SEGV in git-apply”
  1. Martin WaitzJan 20, 2007
  2. Johannes SchindelinJan 20, 2007
  3. Martin WaitzJan 20, 2007
  4. apply --cached: fix crash in subdirectoryJohannes Schindelin, Jan 21, 2007
  5. Martin WaitzJan 21, 2007
  6. Rogan DawesJan 21, 2007
  7. Johannes SchindelinJan 21, 2007

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.