git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: git@vger.kernel.org
Subject: Re: segfault in git-remote-http
Date: Wed, 10 Apr 2013 00:30:30 -0400	[thread overview]
Message-ID: <20130410043030.GD795@sigill.intra.peff.net> (raw)
In-Reply-To: <20130409124044.908c160c718cc357a139354e@lavabit.com>

On Tue, Apr 09, 2013 at 12:40:44PM -0700, rh wrote:

> > does not support hardlinks or symlinks). But I'm not sure which error
> > you are talking about. We can figure out inside the program which
> > program was invoked by checking argv, but I do not see us printing
> > remote-http anywhere.
> 
> I wasn't clear in my initial report....and may have omitted a
> significant fact. The "git clone" returned right away and I saw no
> error. The error shows up in dmesg via syslog, something like
> git-remote-http[1234]: segfault at xxxxxxxx blah blah in libcrypto

That message is not generated by git, but rather by the kernel, which
pulls the name from argv[0], presumably. E.g., try:

  echo 'int main() { *(int *)0=0; }' >foo.c
  gcc foo.c
  ln a.out alternate
  ./a.out; ./alternate
  dmesg | tail -n 2

which should show both program names. Git invokes git-remote-* based on
the URL you fed it. So if you are seeing a segfault in git-remote-http,
presumably you fed it an http URL (which may still execute SSL code if
it redirects to an https URL).

-Peff

  reply	other threads:[~2013-04-10  4:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-07 16:38 segfault in git-remote-http rh
2013-04-07 16:42 ` rh
2013-04-09 15:47 ` rh
2013-04-09 17:16   ` Jeff King
2013-04-09 17:25     ` Daniel Stenberg
2013-04-12 15:20       ` rh
2013-04-09 17:41     ` rh
2013-04-09 17:47       ` Jeff King
2013-04-09 19:40         ` rh
2013-04-10  4:30           ` Jeff King [this message]
2013-04-10 16:08             ` rh
2013-04-10 18:51               ` Jeff King
2013-04-10 19:11                 ` Jeff King
2013-04-10 23:31                   ` rh
2013-04-13  1:01                   ` rh
2013-04-10 19:16                 ` rh
2013-04-10 19:54                   ` Jeff King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130410043030.GD795@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).