From: "Han-Wen Nienhuys" <hanwenn@gmail.com>
To: git@vger.kernel.org
Subject: git for-each-ref crashes for %(body) with tags
Date: Wed, 20 Aug 2008 15:28:41 -0300 [thread overview]
Message-ID: <f329bf540808201128r2d21c40cr37eb63a6706ac0aa@mail.gmail.com> (raw)
Hi,
see gdb trace below. Unfortunately, I don't have a repo that I can
readily share to demonstrate this.
(gdb) r for-each-ref --format '%(body)' refs/tags
..
Breakpoint 1, grab_sub_body_contents (val=<value optimized out>,
deref=0, obj=<value optimized out>, buf=0x8146ad0, sz=161)
at builtin-for-each-ref.c:494
494 v->s = xstrdup(bodypos);
(gdb) p bodypos
$10 = 0x0
(gdb) n
496 v->s = xstrdup(subpos);
(gdb) n
Program received signal SIGSEGV, Segmentation fault.
0x4d9ff013 in strlen () from /lib/tls/i686/cmov/libc.so.6
--
Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen
next reply other threads:[~2008-08-20 18:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-20 18:28 Han-Wen Nienhuys [this message]
2008-08-20 19:12 ` git for-each-ref crashes for %(body) with tags Junio C Hamano
2008-08-20 20:41 ` Han-Wen Nienhuys
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=f329bf540808201128r2d21c40cr37eb63a6706ac0aa@mail.gmail.com \
--to=hanwenn@gmail.com \
--cc=git@vger.kernel.org \
--cc=hanwen@xs4all.nl \
/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).