From: SungHyun Nam <namsh@posdata.co.kr>
To: git@vger.kernel.org
Subject: git-remote SEGV on t5505 test.
Date: Fri, 18 Jul 2008 10:46:02 +0900 [thread overview]
Message-ID: <g5osl6$4g3$1@ger.gmane.org> (raw)
Hello,
The gdb backtrace said:
(gdb) bt
#0 0xff03455c in strlen () from /usr/lib/libc.so.1
#1 0xff087058 in _doprnt () from /usr/lib/libc.so.1
#2 0xff088c18 in printf () from /usr/lib/libc.so.1
#3 0x0007df20 in prune (argc=1556136, argv=0x139cd0) at
builtin-remote.c:590
The codes in builtin-remote.c:590,
printf(" * [%s] %s\n", dry_run ? "would prune" : "prune",
skip_prefix(refname, "refs/remotes/"));
And the 'skip_prefix()' returns NULL in this case.
(The old skip_prefix() never returns NULL).
It seems there is another place need to be checked:
builtin-remote.c:464 : can pass NULL to the strdup().
Regards,
namsh
next reply other threads:[~2008-07-18 2:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-18 1:46 SungHyun Nam [this message]
2008-07-18 4:25 ` git-remote SEGV on t5505 test Junio C Hamano
2008-07-18 5:44 ` SungHyun Nam
2008-07-18 6:18 ` Re* " Junio C Hamano
2008-07-18 6:26 ` Junio C Hamano
2008-07-18 9:07 ` SungHyun Nam
2008-07-18 9:13 ` 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='g5osl6$4g3$1@ger.gmane.org' \
--to=namsh@posdata.co.kr \
--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).