From: Pavel Roskin <proski@gnu.org>
To: Nick Hengeveld <nickh@reactrix.com>
Cc: git@vger.kernel.org, Linus Torvalds <torvalds@osdl.org>
Subject: Re: New release?
Date: Tue, 06 Jun 2006 14:38:17 -0400 [thread overview]
Message-ID: <1149619097.25298.6.camel@dv> (raw)
In-Reply-To: <20060606164618.GC3938@reactrix.com>
On Tue, 2006-06-06 at 09:46 -0700, Nick Hengeveld wrote:
> On Tue, Jun 06, 2006 at 12:19:19PM -0400, Pavel Roskin wrote:
>
> > On Mon, 2006-06-05 at 23:02 -0700, Junio C Hamano wrote:
> > > - http-fetch fixes from Nick, which looked obviously correct.
> > > I would appreciate test reports from people who saw breakages
> > > on this one.
> >
> > I'm still getting a segfault with the current git from the "next" branch:
> >
> > $ git-clone http://www.denx.de/git/linux-2.6-denx.git
> > ...
> > got 4160b8334c53e0881cdc12c1f7d3d54fff883772
> > got 5f57f29efee48d84e235a8ff75a35e7e354227a7
> > got 681a9c73a2a321850404d4856f4738be47e17d15
> > got 29b0ddaa324e417abf153460d7d94fb67823a6ef
> > got 23e7a5c7d2c13d98524b69f54378d887e1962fc8
> > /home/proski/bin/git-clone: line 29: 27271 Segmentation fault git-http-fetch -v -a -w "$tname" "$name" "$1/"
It crashed again, in a different place:
got d82e6dae84070951f625622229154cb32d3f2333
got c3e1d3e888d7b25c20d90ae4a7ecb8f5be420b98
got 2ed07112d683fa7cd1c72b0a31a7e95c6645543d
got 2721e4c8184a9a64f505686ebf7bf6e1e80ecf59
This time I was better prepared (git was compiled with -g without
optimization, the trap was commented out in git-clone, "ulimit -c" set
to unlimited), and I attached gdb to git-http-fetch.
Program received signal SIGSEGV, Segmentation fault.
0x00000000004044dc in closedown_active_slot (slot=0x656854202a200a73) at http.c:434
434 slot->in_use = 0;
(gdb) p slot
$1 = (struct active_request_slot *) 0x656854202a200a73
(gdb) p slot->in_use
Cannot access memory at address 0x656854202a200a83
(gdb) where
#0 0x00000000004044dc in closedown_active_slot (slot=0x656854202a200a73) at http.c:434
#1 0x00000000004044fa in release_active_slot (slot=0x656854202a200a73) at http.c:439
#2 0x00000000004070fc in abort_object_request (obj_req=0xdaf2b0) at http-fetch.c:1060
#3 0x00000000004071cf in fetch_object (repo=0x548f50,
sha1=0xcd4838 "ñ¿¥\025×Ûþ¥c'\210æË©\213Ö}Ûôü") at http-fetch.c:1078
#4 0x00000000004073ed in fetch (sha1=0xcd4838 "ñ¿¥\025×Ûþ¥c'\210æË©\213Ö}Ûôü")
at http-fetch.c:1126
#5 0x0000000000403126 in loop () at fetch.c:180
#6 0x000000000040336a in pull (target=0x7fff0c2e38c2 "heads/master") at fetch.c:248
#7 0x0000000000407a14 in main (argc=7, argv=0x7fff0c2e18a8) at http-fetch.c:1271
(gdb)
It's a different backtrace this time. abort_object_request() has this code:
if (obj_req->slot) {
release_active_slot(obj_req->slot);
obj_req->slot = NULL;
}
Apparently just because obj_req->slot is not NULL doesn't mean it's a
valid pointer. I'm going to use Valgrind now.
It's x86_64, FC5, Linux kernel from git.
> I just posted a fix for the compile errors. As noted there, I've done
> very little testing of the fetch/push binaries when built with
> USE_CURL_MULTI commented out.
Thank you. I'll try it too.
--
Regards,
Pavel Roskin
next prev parent reply other threads:[~2006-06-06 18:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.64.0606052002530.5498@g5.osdl.org>
2006-06-06 6:02 ` New release? Junio C Hamano
2006-06-06 8:30 ` Johannes Schindelin
2006-06-06 10:27 ` Junio C Hamano
2006-06-06 12:42 ` Johannes Schindelin
2006-06-06 15:20 ` Junio C Hamano
2006-06-06 16:08 ` Jon Loeliger
2006-06-06 17:15 ` Junio C Hamano
2006-06-06 17:58 ` Jon Loeliger
2006-06-06 16:19 ` Pavel Roskin
2006-06-06 16:46 ` Nick Hengeveld
2006-06-06 18:38 ` Pavel Roskin [this message]
2006-06-07 5:35 ` http-fetch segfault fix? Junio C Hamano
2006-06-07 5:41 ` Pavel Roskin
2006-06-07 5:58 ` Junio C Hamano
2006-06-07 14:29 ` Pavel Roskin
2006-06-07 15:32 ` Nick Hengeveld
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=1149619097.25298.6.camel@dv \
--to=proski@gnu.org \
--cc=git@vger.kernel.org \
--cc=nickh@reactrix.com \
--cc=torvalds@osdl.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).