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

Segfault in git_config_set_multivar_in_file_gently with direct_io in FUSE filesystem

From
Josh Bleecher Snyder <josharian@gmail.com>
Date
Dec 16, 2016, 18:41 UTC
Message-ID
<CAFAcib_cY8FeLFkW1=MfR+P7xoupGK9DFegNY5boExHSRppAmg@mail.gmail.com>

I am using git with a simple in-memory FUSE filesystem. When I enable direct_io, I get a segfault from git_config_set_multivar_in_file_gently during git clone.

I have full reproduction instructions using Go and macOS at https://github.com/josharian/gitbug. It also includes a stack trace in case anyone wants to try blind debugging. Happy to provide more info if it will help.

Thanks, Josh

Next: Nguyễn Thái Ngọc Duy
Message 1 of 7 in “Segfault in git_config_set_multivar_in_file_gently with direct_io in FUSE filesystem”
  1. Josh Bleecher SnyderDec 16, 2016
  2. config.c: handle error case for fstat() callsNguyễn Thái Ngọc Duy, Dec 19, 2016
  3. Junio C HamanoDec 19, 2016
  4. Duy NguyenDec 20, 2016
  5. 1/2 config.c: rename label unlock_and_outNguyễn Thái Ngọc Duy, Dec 20, 2016
  6. 2/2 config.c: handle lock file in error case in git_config_rename_...Nguyễn Thái Ngọc Duy, Dec 20, 2016
  7. Junio C HamanoDec 20, 2016

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.