From: "Benjamin Sergeant" <bsergean@gmail.com>
To: "Johannes Schindelin" <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: http git clone memory problem.
Date: Tue, 24 Jul 2007 10:44:14 -0700 [thread overview]
Message-ID: <1621f9fa0707241044s65676d30l9a84b4ea7b96c59c@mail.gmail.com> (raw)
In-Reply-To: <1621f9fa0707241033l7ac53b97i8c8ea068be0cba2f@mail.gmail.com>
I found this patch on the net, which was probably integrated a while
ago, about curl, git and segfault ...
http://www.gelato.unsw.edu.au/archives/git/0606/21489.html
"""
If a curl handle is configured with special options, they may reference
information that is freed after the request is complete which can cause
a segfault if the curl handle is reused for a different type of request.
This patch resets these options to a safe state when a transfer slot is
assigned to a new request.
"""
I'm looking for the right MALLOC_* glibc variable so that I can see
where it crash.
On 7/24/07, Benjamin Sergeant <bsergean@gmail.com> wrote:
> Sorry, the mail went all alone by itself :)
>
> I still have the segfault with 1.5.2.4. If I try to gdb it, it abort
> before I can do anything. Is there an environment variable that I can
> set to disable signal handling or something in git ?
>
> *** glibc detected *** git-http-fetch: corrupted double-linked list:
> 0x080a4628 ***
>
> [bsergean@marge1 sandbox]$ git --version
> git version 1.5.2.4
> [bsergean@marge1 sandbox]$
> [bsergean@marge1 sandbox]$
> [bsergean@marge1 sandbox]$
> [bsergean@marge1 sandbox]$
> [bsergean@marge1 sandbox]$
> [bsergean@marge1 sandbox]$
> [bsergean@marge1 sandbox]$
> [bsergean@marge1 sandbox]$
> [bsergean@marge1 sandbox]$
> [bsergean@marge1 sandbox]$
> [bsergean@marge1 sandbox]$
> [bsergean@marge1 sandbox]$ git clone http://www.kernel.org/pub/scm/git/git.git
> Initialized empty Git repository in /home/bsergean/sandbox/git/.git/
> got cc13f556fc72f6f0670e61599363f6e327736ffb
> walk cc13f556fc72f6f0670e61599363f6e327736ffb
> got d33dfef836519e288b1f561a608020c10d01f8da
> got a196f6d93a21ebac9befc4b52a2b0586471b5fa4
> Getting alternates list for http://www.kernel.org/pub/scm/git/git.git
> walk a196f6d93a21ebac9befc4b52a2b0586471b5fa4
> Getting pack list for http://www.kernel.org/pub/scm/git/git.git
> Getting index for pack 6ce718d496eba4857e76cc9b8f7a1a82f5dfb416
> got 896ff1d95a2a307fd764b66de4fbd882e64dd9c6
> got dd98d95d9748cdcb4fd0926a049b4a68dad47a73
> Getting index for pack ffecdbabefeb7d684650f6c920c53c384bc65b5e
> *** glibc detected *** git-http-fetch: corrupted double-linked list:
> 0x080a4628 ***
> ======= Backtrace: =========
> /lib/i686/libc.so.6[0xb7c8a516]
> /lib/i686/libc.so.6[0xb7c8c728]
> /lib/i686/libc.so.6(__libc_calloc+0x94)[0xb7c8dd74]
> /usr/lib/libcurl.so.4[0xb7d98013]
> git-http-fetch[0x804adbb]
> git-http-fetch[0x804d9b4]
> git-http-fetch[0x804a642]
> git-http-fetch[0x804c150]
> /lib/i686/libc.so.6(__libc_start_main+0xdc)[0xb7c3cd8c]
> git-http-fetch[0x8049f81]
> ======= Memory map: ========
> 08048000-08070000 r-xp 00000000 03:06 841397
> /home/bsergean/git/bin/git-http-fetch
> 08070000-08071000 rwxp 00028000 03:06 841397
> /home/bsergean/git/bin/git-http-fetch
> 08071000-08494000 rwxp 08071000 00:00 0 [heap]
> b7800000-b7821000 rwxp b7800000 00:00 0
> b7821000-b7900000 ---p b7821000 00:00 0
> b79e9000-b79f3000 r-xp 00000000 03:02 678969 /lib/libgcc_s-4.1.2.so.1
> b79f3000-b79f4000 rwxp 0000a000 03:02 678969 /lib/libgcc_s-4.1.2.so.1
> b7a09000-b7a29000 rwxp b7a09000 00:00 0
> b7a29000-b7b6e000 r-xp 00000000 03:06 841551
> /home/bsergean/sandbox/git/.git/objects/pack/pack-6ce718d496eba4857e76cc9b8f7a1a82f5dfb416.idx
> b7b6e000-b7b7c000 r-xp 00000000 03:02 678959 /lib/libresolv-2.4.so
> b7b7c000-b7b7e000 rwxp 0000e000 03:02 678959 /lib/libresolv-2.4.so
> b7b7e000-b7b80000 rwxp b7b7e000 00:00 0
> b7b80000-b7b84000 r-xp 00000000 03:02 678947 /lib/libnss_dns-2.4.so
> b7b84000-b7b86000 rwxp 00003000 03:02 678947 /lib/libnss_dns-2.4.so
> b7b86000-b7b96000 r-xp 00000000 03:02 678943 /lib/libnsl-2.4.so
> b7b96000-b7b98000 rwxp 00010000 03:02 678943 /lib/libnsl-2.4.so
> b7b98000-b7b9a000 rwxp b7b98000 00:00 0
> b7b9a000-b7ba2000 r-xp 00000000 03:02 678953 /lib/libnss_nis-2.4.so
> b7ba2000-b7ba4000 rwxp 00007000 03:02 678953 /lib/libnss_nis-2.4.so
> b7ba4000-b7bac000 r-xp 00000000 03:02 678949 /lib/libnss_files-2.4.so
> b7bac000-b7bae000 rwxp 00007000 03:02 678949 /lib/libnss_files-2.4.so
> b7bae000-b7baf000 rwxp b7bae000 00:00 0
> b7baf000-b7bee000 r-xp 00000000 03:02 36383 /usr/lib/libssl.so.0.9.8
> b7bee000-b7bf2000 rwxp 0003e000 03:02 36383 /usr/lib/libssl.so.0.9.8
> b7bf2000-b7c22000 r-xp 00000000 03:02 215594 /usr/lib/libidn.so.11.5.23
> b7c22000-b7c23000 rwxp 0002f000 03:02 215594 /usr/lib/libidn.so.11.5.23
> b7c23000-b7c25000 r-xp 00000000 03:02 678939 /lib/libdl-2.4.so
> b7c25000-b7c27000 rwxp 00001000 03:02 678939 /lib/libdl-2.4.so
> b7c27000-b7d50000 r-xp 00000000 03:02 678918 /lib/i686/libc-2.4.so
> b7d50000-b7d51000 r-xp 00129000 03:02 678918 /lib/i686/libc-2.4.so
> b7d51000-b7d53000 rwxp 0012a000 03:02 678918 /lib/i686/libc-2.4.so
> b7d53000-b7d57000 rwxp b7d53000 00:00 0
> b7d57000-b7d75000 r-xp 00000000 03:02 215102 /usr/lib/libexpat.so.0.5.0
> b7d75000-b7d77000 rwxp 0001e000 03:02 215102 /usr/lib/libexpat.so.0.5.0
> b7d77000-b7dc5000 r-xp 00000000 03:02 215628 /usr/lib/libcurl.so.4.0.0
> b7dc5000-b7dc6000 rwxp 0004d000 03:02 215628 /usr/lib/libcurl.so.4.0.0
> b7dc6000-b7f11000 r-xp 00000000 03:02 36382 /usr/lib/libcrypto.so.0.9.8
> b7f11000-b7f26000 rwxp 0014b000 03:02 36382 /usr/lib/libcrypto.so.0.9.8
> b7f26000-b7f29000 rwxp b7f26000 00:00 0
> b7f29000-b7f3b000 r-xp 00000000 03:02 678968 /lib/libz.so.1.2.3
> b7f3b000-b7f3c000 rwxp 00011000 03:02 678968 /lib/libz.so.1.2.3
> b7f51000-b7f52000 rwxp b7f51000 00:00 0
> b7f52000-b7f6a000 r-xp 00000000 03:02 678928 /lib/ld-2.4.so
> b7f6a000-b7f6b000 r-xp 00017000 03:02 678928 /lib/ld-2.4.so
> b7f6b000-b7f6c000 rwxp 00018000 03:02 678928 /lib/ld-2.4.so
> bfafc000-bfb11000 rw-p bfafc000 00:00 0 [stack]
> bfffe000-bffff000 r-xp bfffe000 00:00 0
> /home/bsergean/git/bin/git-clone: line 40: 17529 Aborted
> git-http-fetch $v -a -w "$tname" "$sha1" "$1"
>
>
>
> On 7/24/07, Benjamin Sergeant <bsergean@gmail.com> wrote:
> > With
> >
> > On 7/24/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> > > Hi,
> > >
> > > On Mon, 23 Jul 2007, Benjamin Sergeant wrote:
> > >
> > > > - Sorry for the noise if this has already been reported.
> > > > - It's on a Mandriva Spring machine with git 1.5.0.4
> > >
> > > That is really old. Could you try with a newer version? I do not
> > > remember off-hand if we had fixed such a problem.
> > >
> > > Ciao,
> > > Dscho
> > >
> > >
> >
>
next prev parent reply other threads:[~2007-07-24 17:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-24 3:44 http git clone memory problem Benjamin Sergeant
2007-07-24 9:26 ` Johannes Schindelin
2007-07-24 16:58 ` Benjamin Sergeant
2007-07-24 17:33 ` Benjamin Sergeant
2007-07-24 17:44 ` Benjamin Sergeant [this message]
2007-07-24 17:45 ` Johannes Schindelin
2007-07-24 17:53 ` Benjamin Sergeant
2007-07-24 20:13 ` Benjamin Sergeant
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=1621f9fa0707241044s65676d30l9a84b4ea7b96c59c@mail.gmail.com \
--to=bsergean@gmail.com \
--cc=Johannes.Schindelin@gmx.de \
--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).