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

Re: Core dump on commit

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Aug 15, 2011, 15:12 UTC
Message-ID
<CACsJy8AL5D938HA-sQkFkn_d9xuT2Vw8BKfD-h+V=iEkNrS1eA@mail.gmail.com>
In-Reply-To
<loom.20110815T162144-798@post.gmane.org>
On Mon, Aug 15, 2011 at 9:30 PM, Marko Vukovic <amasniko@yahoo.com> wrote:
> I get this error after running "git commit"
>
> error: Object 42504431bac2e2054483c1bbc35f1b535f8d11bb is a tag, not a commit
> Segmentation fault (core dumped)

Can you get the stack trace? Does HEAD point to 42504431bac2e2054483c1bbc35f1b535f8d11bb (iow what does "git rev-parse HEAD" say).

Show 8 quoted lines
> "git cat-file -p 42504431bac2e2054483c1bbc35f1b535f8d11bb" gives this:
>
> object 1b9a97613307b5c7bbc189a0e41506cb1534740a
> type commit
> tag v1.0
> tagger marko <marko@bib> Sun Aug 14 20:42:12 2011 -0400
>
> The first release

If HEAD does point to 42504431, I think you can do "git reset 1b9a976133" to reset the HEAD back to a commit object (as oppose to a tag)

But please backup the repository somewhere, I'm still not sure how you get into this situation. The repo may help. -- Duy

Previous: Marko VukovicNext: Marko Vukovic
Message 4 of 10 in “Core dump on commit”
  1. Marko VukovicAug 15, 2011
  2. Michael WittenAug 15, 2011
  3. Marko VukovicAug 15, 2011
  4. Nguyen Thai Ngoc DuyAug 15, 2011
  5. Marko VukovicAug 15, 2011
  6. Nguyen Thai Ngoc DuyAug 15, 2011
  7. Marko VukovicAug 15, 2011
  8. Carlos Martín NietoAug 15, 2011
  9. Nguyen Thai Ngoc DuyAug 15, 2011
  10. Marko VukovicAug 15, 2011

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.