From: Michael Wookey <michaelwookey@gmail.com>
To: Johannes Sixt <j.sixt@viscovery.net>
Cc: Junio C Hamano <gitster@pobox.com>,
eduard stefan <eduard.stefan@gmail.com>,
Tay Ray Chuan <rctay89@gmail.com>,
Git Mailing List <git@vger.kernel.org>,
msysgit@googlegroups.com
Subject: Re: Git 1.6.5-rc git clone unhandled exception using http protocol
Date: Tue, 13 Oct 2009 22:43:01 +1100 [thread overview]
Message-ID: <d2e97e800910130443m56ea2850nf72274fc55a4be68@mail.gmail.com> (raw)
In-Reply-To: <4AD45C28.4080501@viscovery.net>
2009/10/13 Johannes Sixt <j.sixt@viscovery.net>:
> Michael Wookey schrieb:
>> Using the above repository, I see the same crash with msysGit at git
>> revision 1.6.5. Using windbg as the post-mortem debugger, the
>> following information is captured:
>> [ ... snip ... ]
> Wow, this is great work, thank you very much! The function is
> strip_path_suffix(). And here is a patch that fixes the crash.
>
> --- >8 ---
> From: Johannes Sixt <j6t@kdbg.org>
> Subject: [PATCH] remote-curl: add missing initialization of argv0_path
>
> All programs, in particular also the stand-alone programs (non-builtins)
> must call git_extract_argv0_path(argv[0]) in order to help builds that
> derive the installation prefix at runtime, such as the MinGW build.
> Without this call, the program segfaults (or raises an assertion
> failure).
>
> Signed-off-by: Johannes Sixt <j6t@kdbg.org>
> ---
> remote-curl.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/remote-curl.c b/remote-curl.c
> index ad6a163..d8d276a 100644
> --- a/remote-curl.c
> +++ b/remote-curl.c
> @@ -82,6 +82,7 @@ int main(int argc, const char **argv)
> const char *url;
> struct walker *walker = NULL;
>
> + git_extract_argv0_path(argv[0]);
> setup_git_directory();
> if (argc < 2) {
> fprintf(stderr, "Remote needed\n");
> --
> 1.6.5.1024.g31034.dirty
No more crashes for me :)
Tested-by: Michael Wookey <michaelwookey@gmail.com>
next prev parent reply other threads:[~2009-10-13 11:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-09 17:27 Git 1.6.5-rc git clone unhandled exception using http protocol eduard stefan
2009-10-10 10:55 ` Tay Ray Chuan
[not found] ` <4AD09F5E.9090304@gmail.com>
[not found] ` <be6fef0d0910100811l325d3df1jdf8d3d9dd51e3385@mail.gmail.com>
2009-10-10 15:55 ` eduard stefan
2009-10-10 16:07 ` Tay Ray Chuan
2009-10-10 16:52 ` eduard stefan
2009-10-10 22:54 ` Tay Ray Chuan
2009-10-11 21:12 ` eduard stefan
2009-10-13 3:36 ` Git 1.6.5 " eduard stefan
2009-10-13 10:10 ` Git 1.6.5-rc " Michael Wookey
2009-10-13 10:53 ` Johannes Sixt
2009-10-13 11:43 ` Michael Wookey [this message]
2009-10-13 21:06 ` Junio C Hamano
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=d2e97e800910130443m56ea2850nf72274fc55a4be68@mail.gmail.com \
--to=michaelwookey@gmail.com \
--cc=eduard.stefan@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=j.sixt@viscovery.net \
--cc=msysgit@googlegroups.com \
--cc=rctay89@gmail.com \
/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).