{"thread":{"id":"9192","subject":"http git clone memory problem.","startedAt":"2007-07-24T03:44:22Z","lastAt":"2007-07-24T20:13:50Z","messageCount":8,"participants":["Benjamin Sergeant","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"48394","messageId":"1621f9fa0707232044j7cec2bes7bc7cd268775ce48@mail.gmail.com","threadId":"9192","inReplyTo":null,"subject":"http git clone memory problem.","fromName":"Benjamin Sergeant","fromEmail":"bsergean@gmail.com","sentAt":"2007-07-24T03:44:22Z","receivedAt":"2007-07-24T03:44:22Z","isPatch":false,"sender":{"key":"bsergean@gmail.com","avatar":null},"body":" - Sorry for the noise if this has already been reported.\n - It's on a Mandriva Spring machine with git 1.5.0.4\n - It's a glibc detected memory error. If I restart with\nMALLOC_CHECK_=0 I dont' get the crash.\n\n[bsergean@marge1 src]$ git --version\ngit version 1.5.0.4\n[bsergean@marge1 src]$ git clone http://www.kernel.org/pub/scm/git/git.git\nInitialized empty Git repository in /home/bsergean/src/git/.git/\ngot de9879a91fd7d4d123a303b4bcdc918f43ca3a62\nwalk de9879a91fd7d4d123a303b4bcdc918f43ca3a62\ngot 68cb399f1760d4a54ae9ff1f367fea8b6bed9453\nGetting alternates list for http://www.kernel.org/pub/scm/git/git.git/\ngot f6002a9d88be66b5d7ac79bf312feb0b622791ca\nwalk f6002a9d88be66b5d7ac79bf312feb0b622791ca\nGetting pack list for http://www.kernel.org/pub/scm/git/git.git/\nGetting index for pack 6ce718d496eba4857e76cc9b8f7a1a82f5dfb416\ngot 896ff1d95a2a307fd764b66de4fbd882e64dd9c6\n*** glibc detected *** git-http-fetch: corrupted double-linked list:\n0x0808ad50 ***\n======= Backtrace: =========\n/lib/i686/libc.so.6[0xb7c35516]\n/lib/i686/libc.so.6[0xb7c37728]\n/lib/i686/libc.so.6(__libc_malloc+0x85)[0xb7c39075]\n/lib/libz.so.1(zcalloc+0x20)[0xb7edbfd0]\ngit-http-fetch[0x804c6e8]\ngit-http-fetch[0x804a9bb]\ngit-http-fetch[0x804aa3b]\ngit-http-fetch[0x804db94]\ngit-http-fetch[0x804a310]\ngit-http-fetch[0x804cb97]\n/lib/i686/libc.so.6(__libc_start_main+0xdc)[0xb7be7d8c]\ngit-http-fetch[0x8049c31]\n======= Memory map: ========\n08048000-08068000 r-xp 00000000 03:02 506123     /usr/bin/git-http-fetch\n08068000-08069000 rwxp 00020000 03:02 506123     /usr/bin/git-http-fetch\n08069000-08436000 rwxp 08069000 00:00 0          [heap]\nb7900000-b7921000 rwxp b7900000 00:00 0\nb7921000-b7a00000 ---p b7921000 00:00 0\nb7ad9000-b7ae3000 r-xp 00000000 03:02 678969     /lib/libgcc_s-4.1.2.so.1\nb7ae3000-b7ae4000 rwxp 0000a000 03:02 678969     /lib/libgcc_s-4.1.2.so.1\nb7af9000-b7b19000 rwxp b7af9000 00:00 0\nb7b19000-b7b27000 r-xp 00000000 03:02 678959     /lib/libresolv-2.4.so\nb7b27000-b7b29000 rwxp 0000e000 03:02 678959     /lib/libresolv-2.4.so\nb7b29000-b7b2b000 rwxp b7b29000 00:00 0\nb7b2b000-b7b2f000 r-xp 00000000 03:02 678947     /lib/libnss_dns-2.4.so\nb7b2f000-b7b31000 rwxp 00003000 03:02 678947     /lib/libnss_dns-2.4.so\nb7b31000-b7b41000 r-xp 00000000 03:02 678943     /lib/libnsl-2.4.so\nb7b41000-b7b43000 rwxp 00010000 03:02 678943     /lib/libnsl-2.4.so\nb7b43000-b7b45000 rwxp b7b43000 00:00 0\nb7b45000-b7b4d000 r-xp 00000000 03:02 678953     /lib/libnss_nis-2.4.so\nb7b4d000-b7b4f000 rwxp 00007000 03:02 678953     /lib/libnss_nis-2.4.so\nb7b4f000-b7b57000 r-xp 00000000 03:02 678949     /lib/libnss_files-2.4.so\nb7b57000-b7b59000 rwxp 00007000 03:02 678949     /lib/libnss_files-2.4.so\nb7b59000-b7b5a000 rwxp b7b59000 00:00 0\nb7b5a000-b7b99000 r-xp 00000000 03:02 36383      /usr/lib/libssl.so.0.9.8\nb7b99000-b7b9d000 rwxp 0003e000 03:02 36383      /usr/lib/libssl.so.0.9.8\nb7b9d000-b7bcd000 r-xp 00000000 03:02 215594     /usr/lib/libidn.so.11.5.23\nb7bcd000-b7bce000 rwxp 0002f000 03:02 215594     /usr/lib/libidn.so.11.5.23\nb7bce000-b7bd0000 r-xp 00000000 03:02 678939     /lib/libdl-2.4.so\nb7bd0000-b7bd2000 rwxp 00001000 03:02 678939     /lib/libdl-2.4.so\nb7bd2000-b7cfb000 r-xp 00000000 03:02 678918     /lib/i686/libc-2.4.so\nb7cfb000-b7cfc000 r-xp 00129000 03:02 678918     /lib/i686/libc-2.4.so\nb7cfc000-b7cfe000 rwxp 0012a000 03:02 678918     /lib/i686/libc-2.4.so\nb7cfe000-b7d02000 rwxp b7cfe000 00:00 0\nb7d02000-b7d20000 r-xp 00000000 03:02 215102     /usr/lib/libexpat.so.0.5.0\nb7d20000-b7d22000 rwxp 0001e000 03:02 215102     /usr/lib/libexpat.so.0.5.0\nb7d22000-b7d70000 r-xp 00000000 03:02 215628     /usr/lib/libcurl.so.4.0.0\nb7d70000-b7d71000 rwxp 0004d000 03:02 215628     /usr/lib/libcurl.so.4.0.0\nb7d71000-b7ebc000 r-xp 00000000 03:02 36382      /usr/lib/libcrypto.so.0.9.8\nb7ebc000-b7ed1000 rwxp 0014b000 03:02 36382      /usr/lib/libcrypto.so.0.9.8\nb7ed1000-b7ed4000 rwxp b7ed1000 00:00 0\nb7ed4000-b7ee6000 r-xp 00000000 03:02 678968     /lib/libz.so.1.2.3\nb7ee6000-b7ee7000 rwxp 00011000 03:02 678968     /lib/libz.so.1.2.3\nb7efc000-b7efd000 rwxp b7efc000 00:00 0\nb7efd000-b7f15000 r-xp 00000000 03:02 678928     /lib/ld-2.4.so\nb7f15000-b7f16000 r-xp 00017000 03:02 678928     /lib/ld-2.4.so\nb7f16000-b7f17000 rwxp 00018000 03:02 678928     /lib/ld-2.4.so\nbfd02000-bfd18000 rw-p bfd02000 00:00 0          [stack]\nbfffe000-bffff000 r-xp bfffe000 00:00 0\n/usr/bin/git-clone: line 33: 12780 Aborted\ngit-http-fetch -v -a -w \"$tname\" \"$name\" \"$1/\"\n\n\nBenjamin.\n"},{"id":"48415","messageId":"Pine.LNX.4.64.0707241025450.14781@racer.site","threadId":"9192","inReplyTo":"1621f9fa0707232044j7cec2bes7bc7cd268775ce48@mail.gmail.com","subject":"Re: http git clone memory problem.","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-07-24T09:26:20Z","receivedAt":"2007-07-24T09:26:20Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Mon, 23 Jul 2007, Benjamin Sergeant wrote:\n\n> - Sorry for the noise if this has already been reported.\n> - It's on a Mandriva Spring machine with git 1.5.0.4\n\nThat is really old.  Could you try with a newer version?  I do not \nremember off-hand if we had fixed such a problem.\n\nCiao,\nDscho\n"},{"id":"48485","messageId":"1621f9fa0707240958y7c5f1b66lbfa940d60c082067@mail.gmail.com","threadId":"9192","inReplyTo":"Pine.LNX.4.64.0707241025450.14781@racer.site","subject":"Re: http git clone memory problem.","fromName":"Benjamin Sergeant","fromEmail":"bsergean@gmail.com","sentAt":"2007-07-24T16:58:42Z","receivedAt":"2007-07-24T16:58:42Z","isPatch":false,"sender":{"key":"bsergean@gmail.com","avatar":null},"body":"With\n\nOn 7/24/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> Hi,\n>\n> On Mon, 23 Jul 2007, Benjamin Sergeant wrote:\n>\n> > - Sorry for the noise if this has already been reported.\n> > - It's on a Mandriva Spring machine with git 1.5.0.4\n>\n> That is really old.  Could you try with a newer version?  I do not\n> remember off-hand if we had fixed such a problem.\n>\n> Ciao,\n> Dscho\n>\n>\n"},{"id":"48489","messageId":"1621f9fa0707241033l7ac53b97i8c8ea068be0cba2f@mail.gmail.com","threadId":"9192","inReplyTo":"1621f9fa0707240958y7c5f1b66lbfa940d60c082067@mail.gmail.com","subject":"Re: http git clone memory problem.","fromName":"Benjamin Sergeant","fromEmail":"bsergean@gmail.com","sentAt":"2007-07-24T17:33:04Z","receivedAt":"2007-07-24T17:33:04Z","isPatch":false,"sender":{"key":"bsergean@gmail.com","avatar":null},"body":"Sorry, the mail went all alone by itself :)\n\nI still have the segfault with 1.5.2.4. If I try to gdb it, it abort\nbefore I can do anything. Is there an environment variable that I can\nset to disable signal handling or something in git ?\n\n*** glibc detected *** git-http-fetch: corrupted double-linked list:\n0x080a4628 ***\n\n[bsergean@marge1 sandbox]$ git --version\ngit version 1.5.2.4\n[bsergean@marge1 sandbox]$\n[bsergean@marge1 sandbox]$\n[bsergean@marge1 sandbox]$\n[bsergean@marge1 sandbox]$\n[bsergean@marge1 sandbox]$\n[bsergean@marge1 sandbox]$\n[bsergean@marge1 sandbox]$\n[bsergean@marge1 sandbox]$\n[bsergean@marge1 sandbox]$\n[bsergean@marge1 sandbox]$\n[bsergean@marge1 sandbox]$\n[bsergean@marge1 sandbox]$ git clone http://www.kernel.org/pub/scm/git/git.git\nInitialized empty Git repository in /home/bsergean/sandbox/git/.git/\ngot cc13f556fc72f6f0670e61599363f6e327736ffb\nwalk cc13f556fc72f6f0670e61599363f6e327736ffb\ngot d33dfef836519e288b1f561a608020c10d01f8da\ngot a196f6d93a21ebac9befc4b52a2b0586471b5fa4\nGetting alternates list for http://www.kernel.org/pub/scm/git/git.git\nwalk a196f6d93a21ebac9befc4b52a2b0586471b5fa4\nGetting pack list for http://www.kernel.org/pub/scm/git/git.git\nGetting index for pack 6ce718d496eba4857e76cc9b8f7a1a82f5dfb416\ngot 896ff1d95a2a307fd764b66de4fbd882e64dd9c6\ngot dd98d95d9748cdcb4fd0926a049b4a68dad47a73\nGetting index for pack ffecdbabefeb7d684650f6c920c53c384bc65b5e\n*** glibc detected *** git-http-fetch: corrupted double-linked list:\n0x080a4628 ***\n======= Backtrace: =========\n/lib/i686/libc.so.6[0xb7c8a516]\n/lib/i686/libc.so.6[0xb7c8c728]\n/lib/i686/libc.so.6(__libc_calloc+0x94)[0xb7c8dd74]\n/usr/lib/libcurl.so.4[0xb7d98013]\ngit-http-fetch[0x804adbb]\ngit-http-fetch[0x804d9b4]\ngit-http-fetch[0x804a642]\ngit-http-fetch[0x804c150]\n/lib/i686/libc.so.6(__libc_start_main+0xdc)[0xb7c3cd8c]\ngit-http-fetch[0x8049f81]\n======= Memory map: ========\n08048000-08070000 r-xp 00000000 03:06 841397\n/home/bsergean/git/bin/git-http-fetch\n08070000-08071000 rwxp 00028000 03:06 841397\n/home/bsergean/git/bin/git-http-fetch\n08071000-08494000 rwxp 08071000 00:00 0          [heap]\nb7800000-b7821000 rwxp b7800000 00:00 0\nb7821000-b7900000 ---p b7821000 00:00 0\nb79e9000-b79f3000 r-xp 00000000 03:02 678969     /lib/libgcc_s-4.1.2.so.1\nb79f3000-b79f4000 rwxp 0000a000 03:02 678969     /lib/libgcc_s-4.1.2.so.1\nb7a09000-b7a29000 rwxp b7a09000 00:00 0\nb7a29000-b7b6e000 r-xp 00000000 03:06 841551\n/home/bsergean/sandbox/git/.git/objects/pack/pack-6ce718d496eba4857e76cc9b8f7a1a82f5dfb416.idx\nb7b6e000-b7b7c000 r-xp 00000000 03:02 678959     /lib/libresolv-2.4.so\nb7b7c000-b7b7e000 rwxp 0000e000 03:02 678959     /lib/libresolv-2.4.so\nb7b7e000-b7b80000 rwxp b7b7e000 00:00 0\nb7b80000-b7b84000 r-xp 00000000 03:02 678947     /lib/libnss_dns-2.4.so\nb7b84000-b7b86000 rwxp 00003000 03:02 678947     /lib/libnss_dns-2.4.so\nb7b86000-b7b96000 r-xp 00000000 03:02 678943     /lib/libnsl-2.4.so\nb7b96000-b7b98000 rwxp 00010000 03:02 678943     /lib/libnsl-2.4.so\nb7b98000-b7b9a000 rwxp b7b98000 00:00 0\nb7b9a000-b7ba2000 r-xp 00000000 03:02 678953     /lib/libnss_nis-2.4.so\nb7ba2000-b7ba4000 rwxp 00007000 03:02 678953     /lib/libnss_nis-2.4.so\nb7ba4000-b7bac000 r-xp 00000000 03:02 678949     /lib/libnss_files-2.4.so\nb7bac000-b7bae000 rwxp 00007000 03:02 678949     /lib/libnss_files-2.4.so\nb7bae000-b7baf000 rwxp b7bae000 00:00 0\nb7baf000-b7bee000 r-xp 00000000 03:02 36383      /usr/lib/libssl.so.0.9.8\nb7bee000-b7bf2000 rwxp 0003e000 03:02 36383      /usr/lib/libssl.so.0.9.8\nb7bf2000-b7c22000 r-xp 00000000 03:02 215594     /usr/lib/libidn.so.11.5.23\nb7c22000-b7c23000 rwxp 0002f000 03:02 215594     /usr/lib/libidn.so.11.5.23\nb7c23000-b7c25000 r-xp 00000000 03:02 678939     /lib/libdl-2.4.so\nb7c25000-b7c27000 rwxp 00001000 03:02 678939     /lib/libdl-2.4.so\nb7c27000-b7d50000 r-xp 00000000 03:02 678918     /lib/i686/libc-2.4.so\nb7d50000-b7d51000 r-xp 00129000 03:02 678918     /lib/i686/libc-2.4.so\nb7d51000-b7d53000 rwxp 0012a000 03:02 678918     /lib/i686/libc-2.4.so\nb7d53000-b7d57000 rwxp b7d53000 00:00 0\nb7d57000-b7d75000 r-xp 00000000 03:02 215102     /usr/lib/libexpat.so.0.5.0\nb7d75000-b7d77000 rwxp 0001e000 03:02 215102     /usr/lib/libexpat.so.0.5.0\nb7d77000-b7dc5000 r-xp 00000000 03:02 215628     /usr/lib/libcurl.so.4.0.0\nb7dc5000-b7dc6000 rwxp 0004d000 03:02 215628     /usr/lib/libcurl.so.4.0.0\nb7dc6000-b7f11000 r-xp 00000000 03:02 36382      /usr/lib/libcrypto.so.0.9.8\nb7f11000-b7f26000 rwxp 0014b000 03:02 36382      /usr/lib/libcrypto.so.0.9.8\nb7f26000-b7f29000 rwxp b7f26000 00:00 0\nb7f29000-b7f3b000 r-xp 00000000 03:02 678968     /lib/libz.so.1.2.3\nb7f3b000-b7f3c000 rwxp 00011000 03:02 678968     /lib/libz.so.1.2.3\nb7f51000-b7f52000 rwxp b7f51000 00:00 0\nb7f52000-b7f6a000 r-xp 00000000 03:02 678928     /lib/ld-2.4.so\nb7f6a000-b7f6b000 r-xp 00017000 03:02 678928     /lib/ld-2.4.so\nb7f6b000-b7f6c000 rwxp 00018000 03:02 678928     /lib/ld-2.4.so\nbfafc000-bfb11000 rw-p bfafc000 00:00 0          [stack]\nbfffe000-bffff000 r-xp bfffe000 00:00 0\n/home/bsergean/git/bin/git-clone: line 40: 17529 Aborted\n  git-http-fetch $v -a -w \"$tname\" \"$sha1\" \"$1\"\n\n\n\nOn 7/24/07, Benjamin Sergeant <bsergean@gmail.com> wrote:\n> With\n>\n> On 7/24/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> > Hi,\n> >\n> > On Mon, 23 Jul 2007, Benjamin Sergeant wrote:\n> >\n> > > - Sorry for the noise if this has already been reported.\n> > > - It's on a Mandriva Spring machine with git 1.5.0.4\n> >\n> > That is really old.  Could you try with a newer version?  I do not\n> > remember off-hand if we had fixed such a problem.\n> >\n> > Ciao,\n> > Dscho\n> >\n> >\n>\n"},{"id":"48490","messageId":"1621f9fa0707241044s65676d30l9a84b4ea7b96c59c@mail.gmail.com","threadId":"9192","inReplyTo":"1621f9fa0707241033l7ac53b97i8c8ea068be0cba2f@mail.gmail.com","subject":"Re: http git clone memory problem.","fromName":"Benjamin Sergeant","fromEmail":"bsergean@gmail.com","sentAt":"2007-07-24T17:44:14Z","receivedAt":"2007-07-24T17:44:14Z","isPatch":false,"sender":{"key":"bsergean@gmail.com","avatar":null},"body":"I found this patch on the net, which was probably integrated a while\nago, about curl, git and segfault ...\nhttp://www.gelato.unsw.edu.au/archives/git/0606/21489.html\n\n\"\"\"\nIf a curl handle is configured with special options, they may reference\ninformation that is freed after the request is complete which can cause\na segfault if the curl handle is reused for a different type of request.\n\nThis patch resets these options to a safe state when a transfer slot is\nassigned to a new request.\n\"\"\"\n\nI'm looking for the right MALLOC_* glibc variable so that I can see\nwhere it crash.\n\nOn 7/24/07, Benjamin Sergeant <bsergean@gmail.com> wrote:\n> Sorry, the mail went all alone by itself :)\n>\n> I still have the segfault with 1.5.2.4. If I try to gdb it, it abort\n> before I can do anything. Is there an environment variable that I can\n> set to disable signal handling or something in git ?\n>\n> *** glibc detected *** git-http-fetch: corrupted double-linked list:\n> 0x080a4628 ***\n>\n> [bsergean@marge1 sandbox]$ git --version\n> git version 1.5.2.4\n> [bsergean@marge1 sandbox]$\n> [bsergean@marge1 sandbox]$\n> [bsergean@marge1 sandbox]$\n> [bsergean@marge1 sandbox]$\n> [bsergean@marge1 sandbox]$\n> [bsergean@marge1 sandbox]$\n> [bsergean@marge1 sandbox]$\n> [bsergean@marge1 sandbox]$\n> [bsergean@marge1 sandbox]$\n> [bsergean@marge1 sandbox]$\n> [bsergean@marge1 sandbox]$\n> [bsergean@marge1 sandbox]$ git clone http://www.kernel.org/pub/scm/git/git.git\n> Initialized empty Git repository in /home/bsergean/sandbox/git/.git/\n> got cc13f556fc72f6f0670e61599363f6e327736ffb\n> walk cc13f556fc72f6f0670e61599363f6e327736ffb\n> got d33dfef836519e288b1f561a608020c10d01f8da\n> got a196f6d93a21ebac9befc4b52a2b0586471b5fa4\n> Getting alternates list for http://www.kernel.org/pub/scm/git/git.git\n> walk a196f6d93a21ebac9befc4b52a2b0586471b5fa4\n> Getting pack list for http://www.kernel.org/pub/scm/git/git.git\n> Getting index for pack 6ce718d496eba4857e76cc9b8f7a1a82f5dfb416\n> got 896ff1d95a2a307fd764b66de4fbd882e64dd9c6\n> got dd98d95d9748cdcb4fd0926a049b4a68dad47a73\n> Getting index for pack ffecdbabefeb7d684650f6c920c53c384bc65b5e\n> *** glibc detected *** git-http-fetch: corrupted double-linked list:\n> 0x080a4628 ***\n> ======= Backtrace: =========\n> /lib/i686/libc.so.6[0xb7c8a516]\n> /lib/i686/libc.so.6[0xb7c8c728]\n> /lib/i686/libc.so.6(__libc_calloc+0x94)[0xb7c8dd74]\n> /usr/lib/libcurl.so.4[0xb7d98013]\n> git-http-fetch[0x804adbb]\n> git-http-fetch[0x804d9b4]\n> git-http-fetch[0x804a642]\n> git-http-fetch[0x804c150]\n> /lib/i686/libc.so.6(__libc_start_main+0xdc)[0xb7c3cd8c]\n> git-http-fetch[0x8049f81]\n> ======= Memory map: ========\n> 08048000-08070000 r-xp 00000000 03:06 841397\n> /home/bsergean/git/bin/git-http-fetch\n> 08070000-08071000 rwxp 00028000 03:06 841397\n> /home/bsergean/git/bin/git-http-fetch\n> 08071000-08494000 rwxp 08071000 00:00 0          [heap]\n> b7800000-b7821000 rwxp b7800000 00:00 0\n> b7821000-b7900000 ---p b7821000 00:00 0\n> b79e9000-b79f3000 r-xp 00000000 03:02 678969     /lib/libgcc_s-4.1.2.so.1\n> b79f3000-b79f4000 rwxp 0000a000 03:02 678969     /lib/libgcc_s-4.1.2.so.1\n> b7a09000-b7a29000 rwxp b7a09000 00:00 0\n> b7a29000-b7b6e000 r-xp 00000000 03:06 841551\n> /home/bsergean/sandbox/git/.git/objects/pack/pack-6ce718d496eba4857e76cc9b8f7a1a82f5dfb416.idx\n> b7b6e000-b7b7c000 r-xp 00000000 03:02 678959     /lib/libresolv-2.4.so\n> b7b7c000-b7b7e000 rwxp 0000e000 03:02 678959     /lib/libresolv-2.4.so\n> b7b7e000-b7b80000 rwxp b7b7e000 00:00 0\n> b7b80000-b7b84000 r-xp 00000000 03:02 678947     /lib/libnss_dns-2.4.so\n> b7b84000-b7b86000 rwxp 00003000 03:02 678947     /lib/libnss_dns-2.4.so\n> b7b86000-b7b96000 r-xp 00000000 03:02 678943     /lib/libnsl-2.4.so\n> b7b96000-b7b98000 rwxp 00010000 03:02 678943     /lib/libnsl-2.4.so\n> b7b98000-b7b9a000 rwxp b7b98000 00:00 0\n> b7b9a000-b7ba2000 r-xp 00000000 03:02 678953     /lib/libnss_nis-2.4.so\n> b7ba2000-b7ba4000 rwxp 00007000 03:02 678953     /lib/libnss_nis-2.4.so\n> b7ba4000-b7bac000 r-xp 00000000 03:02 678949     /lib/libnss_files-2.4.so\n> b7bac000-b7bae000 rwxp 00007000 03:02 678949     /lib/libnss_files-2.4.so\n> b7bae000-b7baf000 rwxp b7bae000 00:00 0\n> b7baf000-b7bee000 r-xp 00000000 03:02 36383      /usr/lib/libssl.so.0.9.8\n> b7bee000-b7bf2000 rwxp 0003e000 03:02 36383      /usr/lib/libssl.so.0.9.8\n> b7bf2000-b7c22000 r-xp 00000000 03:02 215594     /usr/lib/libidn.so.11.5.23\n> b7c22000-b7c23000 rwxp 0002f000 03:02 215594     /usr/lib/libidn.so.11.5.23\n> b7c23000-b7c25000 r-xp 00000000 03:02 678939     /lib/libdl-2.4.so\n> b7c25000-b7c27000 rwxp 00001000 03:02 678939     /lib/libdl-2.4.so\n> b7c27000-b7d50000 r-xp 00000000 03:02 678918     /lib/i686/libc-2.4.so\n> b7d50000-b7d51000 r-xp 00129000 03:02 678918     /lib/i686/libc-2.4.so\n> b7d51000-b7d53000 rwxp 0012a000 03:02 678918     /lib/i686/libc-2.4.so\n> b7d53000-b7d57000 rwxp b7d53000 00:00 0\n> b7d57000-b7d75000 r-xp 00000000 03:02 215102     /usr/lib/libexpat.so.0.5.0\n> b7d75000-b7d77000 rwxp 0001e000 03:02 215102     /usr/lib/libexpat.so.0.5.0\n> b7d77000-b7dc5000 r-xp 00000000 03:02 215628     /usr/lib/libcurl.so.4.0.0\n> b7dc5000-b7dc6000 rwxp 0004d000 03:02 215628     /usr/lib/libcurl.so.4.0.0\n> b7dc6000-b7f11000 r-xp 00000000 03:02 36382      /usr/lib/libcrypto.so.0.9.8\n> b7f11000-b7f26000 rwxp 0014b000 03:02 36382      /usr/lib/libcrypto.so.0.9.8\n> b7f26000-b7f29000 rwxp b7f26000 00:00 0\n> b7f29000-b7f3b000 r-xp 00000000 03:02 678968     /lib/libz.so.1.2.3\n> b7f3b000-b7f3c000 rwxp 00011000 03:02 678968     /lib/libz.so.1.2.3\n> b7f51000-b7f52000 rwxp b7f51000 00:00 0\n> b7f52000-b7f6a000 r-xp 00000000 03:02 678928     /lib/ld-2.4.so\n> b7f6a000-b7f6b000 r-xp 00017000 03:02 678928     /lib/ld-2.4.so\n> b7f6b000-b7f6c000 rwxp 00018000 03:02 678928     /lib/ld-2.4.so\n> bfafc000-bfb11000 rw-p bfafc000 00:00 0          [stack]\n> bfffe000-bffff000 r-xp bfffe000 00:00 0\n> /home/bsergean/git/bin/git-clone: line 40: 17529 Aborted\n>   git-http-fetch $v -a -w \"$tname\" \"$sha1\" \"$1\"\n>\n>\n>\n> On 7/24/07, Benjamin Sergeant <bsergean@gmail.com> wrote:\n> > With\n> >\n> > On 7/24/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> > > Hi,\n> > >\n> > > On Mon, 23 Jul 2007, Benjamin Sergeant wrote:\n> > >\n> > > > - Sorry for the noise if this has already been reported.\n> > > > - It's on a Mandriva Spring machine with git 1.5.0.4\n> > >\n> > > That is really old.  Could you try with a newer version?  I do not\n> > > remember off-hand if we had fixed such a problem.\n> > >\n> > > Ciao,\n> > > Dscho\n> > >\n> > >\n> >\n>\n"},{"id":"48491","messageId":"Pine.LNX.4.64.0707241842270.14781@racer.site","threadId":"9192","inReplyTo":"1621f9fa0707241033l7ac53b97i8c8ea068be0cba2f@mail.gmail.com","subject":"Re: http git clone memory problem.","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-07-24T17:45:43Z","receivedAt":"2007-07-24T17:45:43Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 24 Jul 2007, Benjamin Sergeant wrote:\n\n> I still have the segfault with 1.5.2.4. If I try to gdb it, it abort \n> before I can do anything. Is there an environment variable that I can \n> set to disable signal handling or something in git ?\n\nDid you gdb http-fetch?\n\nIf not, please use \"sh -x git-clone...\" to find out what command line to \nuse.\n\nAnd when you have the command line, please use valgrind to find out where \nthe leak/corruption is.\n\nThere are some flags that are automatically set/unset when compiling the \nhttp transport, and it is not easy to know which flags are enabled in your \nsetup.\n\nBut for starters, you might want to recompile http-fetch without -O2.  My \ngdb always has problems attributing the correct line, which does not \nexactly make it easier for me to debug things.  I could imagine your gdb \nis as annoying.\n\nCiao,\nDscho\n"},{"id":"48492","messageId":"1621f9fa0707241053i23f0e3d4v4a1d50f5a4c5f9e6@mail.gmail.com","threadId":"9192","inReplyTo":"Pine.LNX.4.64.0707241842270.14781@racer.site","subject":"Re: http git clone memory problem.","fromName":"Benjamin Sergeant","fromEmail":"bsergean@gmail.com","sentAt":"2007-07-24T17:53:39Z","receivedAt":"2007-07-24T17:53:39Z","isPatch":false,"sender":{"key":"bsergean@gmail.com","avatar":null},"body":"On 7/24/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> Hi,\n>\n> On Tue, 24 Jul 2007, Benjamin Sergeant wrote:\n>\n> > I still have the segfault with 1.5.2.4. If I try to gdb it, it abort\n> > before I can do anything. Is there an environment variable that I can\n> > set to disable signal handling or something in git ?\n>\n> Did you gdb http-fetch?\n>\n> If not, please use \"sh -x git-clone...\" to find out what command line to\n> use.\n>\n> And when you have the command line, please use valgrind to find out where\n> the leak/corruption is.\n>\n> There are some flags that are automatically set/unset when compiling the\n> http transport, and it is not easy to know which flags are enabled in your\n> setup.\n>\n> But for starters, you might want to recompile http-fetch without -O2.  My\n> gdb always has problems attributing the correct line, which does not\n> exactly make it easier for me to debug things.  I could imagine your gdb\n> is as annoying.\n>\n> Ciao,\n> Dscho\n\nI got that, but it's not super-usefull ... I will try valgrind instead.\n\n[bsergean@marge1 sandbox]$ gdb /home/bsergean/git/bin/git-clone\n/tmp/corefiles/core.18531\nGNU gdb 6.6-1mdv2007.1 (Mandriva Linux release 2007.1)\nCopyright (C) 2006 Free Software Foundation, Inc.\nGDB is free software, covered by the GNU General Public License, and you are\nwelcome to change it and/or distribute copies of it under certain conditions.\nType \"show copying\" to see the conditions.\nThere is absolutely no warranty for GDB.  Type \"show warranty\" for details.\nThis GDB was configured as \"i586-mandriva-linux-gnu\"...\n\"/home/bsergean/git/bin/git-clone\": not in executable format: File\nformat not recognized\n(no debugging symbols found)\nUsing host libthread_db library \"/lib/i686/libthread_db.so.1\".\nCore was generated by `git-http-fetch -v -a -w remotes/origin/html\ncc13f556fc72f6f0670e61599363f6e3277'.\nProgram terminated with signal 6, Aborted.\n#0  0xbfffe410 in __kernel_vsyscall ()\n(gdb) where\n#0  0xbfffe410 in __kernel_vsyscall ()\n#1  0xb7c78590 in ?? ()\n#2  0xb7d7aff4 in ?? ()\n#3  0xb7bd7aa0 in ?? ()\n#4  0xbf928f84 in ?? ()\n#5  0xb7c79e21 in ?? ()\n#6  0x00000006 in ?? ()\n#7  0xbf928ef8 in ?? ()\n#8  0x00000000 in ?? ()\n\n\n\n\n\n>\n>\n"},{"id":"48508","messageId":"1621f9fa0707241313m7d975388gac677cb1314a87a2@mail.gmail.com","threadId":"9192","inReplyTo":"1621f9fa0707241053i23f0e3d4v4a1d50f5a4c5f9e6@mail.gmail.com","subject":"Re: http git clone memory problem.","fromName":"Benjamin Sergeant","fromEmail":"bsergean@gmail.com","sentAt":"2007-07-24T20:13:50Z","receivedAt":"2007-07-24T20:13:50Z","isPatch":false,"sender":{"key":"bsergean@gmail.com","avatar":null},"body":"It's pretty random actually. Sometimes it ends like this:\n\nGetting pack ffecdbabefeb7d684650f6c920c53c384bc65b5e\n which contains f6c066fe62e97e3d93d10628318fe62de667b25b\ngot 12192695f4e402f7385728f14496ab807caeb0b8\nerror: File 33da1ff3b31eee2635cb105a5b15fab3362f6af7 has bad hash\nerror: Unable to find 33da1ff3b31eee2635cb105a5b15fab3362f6af7 under\nhttp://www.kernel.org/pub/scm/git/git.git\nCannot obtain needed blob 33da1ff3b31eee2635cb105a5b15fab3362f6af7\nwhile processing commit a196f6d93a21ebac9befc4b52a2b0586471b5fa4.\n\nwith no crash.\n\nAnd sometimes with\nGetting index for pack ffecdbabefeb7d684650f6c920c53c384bc65b5e\n*** glibc detected *** git-http-fetch: corrupted double-linked list:\n0x080a4360 ***\n\nIs there a way to reproduce the crash with this\n\"ffecdbabefeb7d684650f6c920c53c384bc65b5e\", the pack id (the sha1) ?\n\nBenjamin.\n\nA strace version of the crash:\n\n\nI tried valgrind once but after 30 minutes nothing happened, I could\nnot even see the process with ps ...\nI also tried strace.\n\nA strace version of the cannot obtain needed blob:\ngot 7579c7107c6b5387fe1e30a0969dcb65d22e4cbf\nwalk abb503d1fc5802e5de9d5b4a0cb710e87d2b1ba4\nGetting alternates list for http://www.kernel.org/pub/scm/git/git.git\nGetting pack list for http://www.kernel.org/pub/scm/git/git.git\nGetting pack 4146ab3638605f4b364bcf90d377e22c083a3d35\n which contains eb7afba88c1bb4d755d23ca3aafe6d0874b848d0\ngot da5044940771800d0c7f0f28f269c40297860764\ngot 39af6c9c8112607fb780f3361c5362f587ab629f\ngot e3859e2a8a4ff8b9c51e1ebe430fa5bf0fd3d261\ngot 1ea0f745bd0996e7f30e07f472b79ca0ed578510\ngot c4bb30d92e0156760d07ebcc3bb3d637aebe9606\ngot 81536ec1557d84897ebb8565597ef7647fc770b9\nerror: Unable to find 11ea73c1cc3565eeabff27ef2d3619a5fb5381fd under\nhttp://www.kernel.org/pub/scm/git/git.git\nCannot obtain needed blob 11ea73c1cc3565eeabff27ef2d3619a5fb5381fd\nwhile processing commit abb503d1fc5802e5de9d5b4a0cb710e87d2b1ba4.\nWaiting for http://www.kernel.org/pub/scm/git/git.git/objects/29/d8eccef4b9cf30704eaa6428131d788675dad8\ngot c1c7267135b50ebc653e2c16a73ba3e5c454e1e8\ngot 2623ef30134cc3f2cf715ba302c3cfa2b3527a48\ngot 29d8eccef4b9cf30704eaa6428131d788675dad8\n[{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0) = 20387\nrt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0\n--- SIGCHLD (Child exited) @ 0 (0) ---\nwaitpid(-1, 0xbfd1ba08, WNOHANG)        = -1 ECHILD (No child processes)\nsigreturn()                             = ? (mask now [])\nrt_sigaction(SIGINT, {0x808d1b0, [], 0}, {0x807ada0, [], 0}, 8) = 0\nrt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nstat64(\"/home\", {st_mode=S_IFDIR|0755, st_size=360, ...}) = 0\nstat64(\"/home/bsergean\", {st_mode=S_IFDIR|0711, st_size=7480, ...}) = 0\nstat64(\"/home/bsergean/sandbox\", {st_mode=S_IFDIR|0755, st_size=528, ...}) = 0\nstat64(\"/home/bsergean/sandbox/git\", {st_mode=S_IFDIR|0755,\nst_size=72, ...}) = 0\nstat64(\"/home/bsergean/sandbox/git\", {st_mode=S_IFDIR|0755,\nst_size=72, ...}) = 0\nchdir(\"/home/bsergean/sandbox\")         = 0\nstat64(\"/bin/rm\", {st_mode=S_IFREG|0755, st_size=36316, ...}) = 0\nstat64(\".\", {st_mode=S_IFDIR|0755, st_size=528, ...}) = 0\nstat64(\"/home/bsergean/git/bin/rm\", 0xbfd1ce1c) = -1 ENOENT (No such\nfile or directory)\nstat64(\"/home/bsergean/git/bin/rm\", 0xbfd1ce1c) = -1 ENOENT (No such\nfile or directory)\nstat64(\"/usr/local/Trolltech/Qt-4.3.0/bin/rm\", 0xbfd1ce1c) = -1 ENOENT\n(No such file or directory)\nstat64(\"/usr/lib/ccache/bin/rm\", 0xbfd1ce1c) = -1 ENOENT (No such file\nor directory)\nstat64(\"/home/bsergean/bin/rm\", 0xbfd1ce1c) = -1 ENOENT (No such file\nor directory)\nstat64(\"/home/bsergean/bin/Linux/rm\", 0xbfd1ce1c) = -1 ENOENT (No such\nfile or directory)\nstat64(\"/usr/local/bin/rm\", 0xbfd1ce1c) = -1 ENOENT (No such file or directory)\nstat64(\"/home/bsergean/git/bin/rm\", 0xbfd1ce1c) = -1 ENOENT (No such\nfile or directory)\nstat64(\"/usr/local/Trolltech/Qt-4.3.0/bin/rm\", 0xbfd1ce1c) = -1 ENOENT\n(No such file or directory)\nstat64(\"/usr/lib/ccache/bin/rm\", 0xbfd1ce1c) = -1 ENOENT (No such file\nor directory)\nstat64(\"/home/bsergean/bin/rm\", 0xbfd1ce1c) = -1 ENOENT (No such file\nor directory)\nstat64(\"/home/bsergean/bin/Linux/rm\", 0xbfd1ce1c) = -1 ENOENT (No such\nfile or directory)\nstat64(\"/usr/local/bin/rm\", 0xbfd1ce1c) = -1 ENOENT (No such file or directory)\nstat64(\"/usr/local/Trolltech/Qt-4.3.0/bin/rm\", 0xbfd1ce1c) = -1 ENOENT\n(No such file or directory)\nstat64(\"/usr/lib/ccache/bin/rm\", 0xbfd1ce1c) = -1 ENOENT (No such file\nor directory)\nstat64(\"/home/bsergean/bin/rm\", 0xbfd1ce1c) = -1 ENOENT (No such file\nor directory)\nstat64(\"/home/bsergean/bin/Linux/rm\", 0xbfd1ce1c) = -1 ENOENT (No such\nfile or directory)\nstat64(\"/usr/local/bin/rm\", 0xbfd1ce1c) = -1 ENOENT (No such file or directory)\nstat64(\"/usr/lib/distcc/bin/rm\", 0xbfd1ce1c) = -1 ENOENT (No such file\nor directory)\nstat64(\"/usr/bin/rm\", 0xbfd1ce1c)       = -1 ENOENT (No such file or directory)\nstat64(\"/bin/rm\", {st_mode=S_IFREG|0755, st_size=36316, ...}) = 0\nstat64(\"/bin/rm\", {st_mode=S_IFREG|0755, st_size=36316, ...}) = 0\nrt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0\nclone(child_stack=0,\nflags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,\nchild_tidptr=0xb7dab988) = 20388\nrt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0\nrt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0\nrt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0\nrt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0\nrt_sigaction(SIGINT, {0x807ada0, [], 0}, {0x808d1b0, [], 0}, 8) = 0\nwaitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 20388\nrt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0\n--- SIGCHLD (Child exited) @ 0 (0) ---\nwaitpid(-1, 0xbfd1cb18, WNOHANG)        = -1 ECHILD (No child processes)\nsigreturn()                             = ? (mask now [])\nrt_sigaction(SIGINT, {0x808d1b0, [], 0}, {0x807ada0, [], 0}, 8) = 0\nrt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0\nrt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0\nrt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0\nexit_group(1)                           = ?\nProcess 20362 detached\n\n\nOn 7/24/07, Benjamin Sergeant <bsergean@gmail.com> wrote:\n> On 7/24/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> > Hi,\n> >\n> > On Tue, 24 Jul 2007, Benjamin Sergeant wrote:\n> >\n> > > I still have the segfault with 1.5.2.4. If I try to gdb it, it abort\n> > > before I can do anything. Is there an environment variable that I can\n> > > set to disable signal handling or something in git ?\n> >\n> > Did you gdb http-fetch?\n> >\n> > If not, please use \"sh -x git-clone...\" to find out what command line to\n> > use.\n> >\n> > And when you have the command line, please use valgrind to find out where\n> > the leak/corruption is.\n> >\n> > There are some flags that are automatically set/unset when compiling the\n> > http transport, and it is not easy to know which flags are enabled in your\n> > setup.\n> >\n> > But for starters, you might want to recompile http-fetch without -O2.  My\n> > gdb always has problems attributing the correct line, which does not\n> > exactly make it easier for me to debug things.  I could imagine your gdb\n> > is as annoying.\n> >\n> > Ciao,\n> > Dscho\n>\n> I got that, but it's not super-usefull ... I will try valgrind instead.\n>\n> [bsergean@marge1 sandbox]$ gdb /home/bsergean/git/bin/git-clone\n> /tmp/corefiles/core.18531\n> GNU gdb 6.6-1mdv2007.1 (Mandriva Linux release 2007.1)\n> Copyright (C) 2006 Free Software Foundation, Inc.\n> GDB is free software, covered by the GNU General Public License, and you are\n> welcome to change it and/or distribute copies of it under certain conditions.\n> Type \"show copying\" to see the conditions.\n> There is absolutely no warranty for GDB.  Type \"show warranty\" for details.\n> This GDB was configured as \"i586-mandriva-linux-gnu\"...\n> \"/home/bsergean/git/bin/git-clone\": not in executable format: File\n> format not recognized\n> (no debugging symbols found)\n> Using host libthread_db library \"/lib/i686/libthread_db.so.1\".\n> Core was generated by `git-http-fetch -v -a -w remotes/origin/html\n> cc13f556fc72f6f0670e61599363f6e3277'.\n> Program terminated with signal 6, Aborted.\n> #0  0xbfffe410 in __kernel_vsyscall ()\n> (gdb) where\n> #0  0xbfffe410 in __kernel_vsyscall ()\n> #1  0xb7c78590 in ?? ()\n> #2  0xb7d7aff4 in ?? ()\n> #3  0xb7bd7aa0 in ?? ()\n> #4  0xbf928f84 in ?? ()\n> #5  0xb7c79e21 in ?? ()\n> #6  0x00000006 in ?? ()\n> #7  0xbf928ef8 in ?? ()\n> #8  0x00000000 in ?? ()\n>\n>\n>\n>\n>\n> >\n> >\n>\n"}]}