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

Re: 'git stash list' => Segmentation fault

From
Brendan Boerner <bboerner.biz@gmail.com>
Date
May 29, 2019, 20:10 UTC
Message-ID
<CAKkfZL385B99fJ10V-yXVK3KpHNNA-fpM31zwvsBrfr02pD3jw@mail.gmail.com>
In-Reply-To
<20190528213912.GH24650@sigill.intra.peff.net>
Hey Jeff,

Yes, if I install gettext build from source envsubst and gettext no segfaults. tset from ncurses segfaults as well unless I install from source.

So weird breakage which manifested as a red herring. :-(
Thanks for your help helping me sort it out.

Regards, Brendan

On Tue, May 28, 2019 at 4:39 PM Jeff King <peff@peff.net> wrote:
Show 25 quoted lines
>
> On Tue, May 28, 2019 at 04:29:13PM -0500, Brendan Boerner wrote:
>
> > To answer your previous question I'm using git v2.21.0. I'm using the
> > Ubuntu 14.04 PPA as well as Linuxbew (also v2.21.0).
> >
> > Your help helped me narrow this down to linuxbrew. Take it out of my
> > path no segfault.
> >
> > Uninstall linuxbrew git, linuxbrew still in PATH, use PPA git, segfault.
> >
> > Narrowed down further to be the "gettext" package - remove it from
> > linuxbrew and PPA git stash list => no segfault.
> >
> > I'll ping the Linuxbrew folks.
>
> Ah, that makes sense. You're indeed running the shell version, and it's
> invoking "gettext" for messages, which is probably what's segfaulting.
> And that explains the multiple segfaults and the fact that they didn't
> actually cause the overall operation to fail.
>
> So probably nothing here for Git to fix. Thanks for following up with
> the resolution!
>
> -Peff
Previous: Jeff King
Message 10 of 10 in “'git stash list' => Segmentation fault”
  1. Brendan BoernerMay 24, 2019
  2. Johannes SchindelinMay 27, 2019
  3. Jeff KingMay 28, 2019
  4. Brendan BoernerMay 28, 2019
  5. Jeff KingMay 28, 2019
  6. Brendan BoernerMay 28, 2019
  7. Jeff KingMay 28, 2019
  8. Brendan BoernerMay 28, 2019
  9. Jeff KingMay 28, 2019
  10. Brendan BoernerMay 29, 2019

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.