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

[BUG] replay: segmentation fault when mistyping target to --onto

From
KHKristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
Date
Dec 11, 2025, 16:34 UTC
Message-ID
<3d83161b-ec34-404a-bb0e-bf4da7ac1db5@app.fastmail.com>
    $ ./bin-wrappers/git replay --onto="$doesntexist" "$commit"'^!'
    Segmentation fault (core dumped)

I did a bisect starting on current `seen` at a0bdfe7b (Merge branch 'bc/sha1-256-interop-02' into seen, 2025-12-11). That found the “first bad commit” 15cd4ef1 (replay: make atomic ref updates the default behavior, 2025-11-06) (which is on `master`). I started with v2.52.0 as the first known “good”, which I manually checked.

Same segmentation fault on `next` at 674ac2bd (Merge branch 'kh/doc-send-email-paragraph-fix' into next, 2025-12-10).

The following is basically the bisect script except I changed it to make sense outside my own repo.

``` #!/bin/sh

make || exit 125

# Mistyped `seen` for example doesntexist=boh1eixe # Current commit for topic kh/doc-pre-commit-fix commit=8cbbdc92f77a20014d9c425c8b9e4af46e492204

./bin-wrappers/git replay --onto="$doesntexist" "$commit"'^!'
if test $? = 139
then
    exit 1
else
    # Presumably regular failure:
    #     fatal: Replaying down to root commit is not supported yet!
    exit 0
fi
```
Next: René Scharfe
Message 1 of 4 in “[BUG] replay: segmentation fault when mistyping target to --onto”
  1. Kristoffer HaugsbakkDec 11, 2025
  2. replay: move onto NULL check before first useRené Scharfe, Dec 11, 2025
  3. Phillip WoodDec 15, 2025
  4. Kristoffer HaugsbakkDec 15, 2025

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.