git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[BUG] git-show-branch cant show --more

From
Jon Loeliger <jdl@freescale.com>
Date
Sep 19, 2005, 03:18 UTC
Message-ID
<E1EHCAx-0007xp-JW@jdl.com>
Guys,

I realize I probably dumbly expected more history out of a partial git repository than is actually present, but a segmentation fault wasn't a nice way to tell me. :-)

Start with just Paul's repo over here:
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc-merge.git
And do a "git show-branch --more=10" on it.
Yeah, msg == 0.  Bad msg.  No dereferencing for you.

Thanks, jdl

jdl.com 487 % gdb /usr/bin/git-show-branch
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) run --more=10
Starting program: /usr/bin/git-show-branch --more=10
error: Could not read 628f87f3d585bd0c2b0e39df039585d7a5831cc9
* [master] ppc32: Allow user to individual select CHRP/PMAC/PREP config
 ! [origin] ppc32: Allow user to individual select CHRP/PMAC/PREP config
--
++ [master] ppc32: Allow user to individual select CHRP/PMAC/PREP config
++ [master~1] powerpc: Merge simplified sections.h into asm-powerpc
++ [master~2] powerpc: Remove section free() and linker script bits
++ [master~3] powerpc: Remove sections use from ppc64 and drivers
++ [master~4] powerpc: Remove sections use from ppc
++ [master~5] ppc32: Removed non-inlined versions of local_irq* functions
++ [master~6] powerpc: Merged ppc_asm.h
++ [master~7] powerpc: Merge kmap_types.h
Program received signal SIGSEGV, Segmentation fault.
get_one_line (msg=0x0, len=4294967294) at commit.c:347
347                     char c = *msg++;
(gdb) where
#0  get_one_line (msg=0x0, len=4294967294) at commit.c:347
#1  0x0804dfc5 in pretty_print_commit (fmt=CMIT_FMT_ONELINE, msg=0x0,
    len=4294967295, buf=0xbfc86e40 "[PATCH] powerpc: Merge kmap_types.h",
    space=128) at commit.c:416
#2  0x08049a22 in show_one_commit (commit=0x0) at show-branch.c:199
#3  0x0804a304 in main (ac=0, av=0xbfc871bc) at show-branch.c:483
Next: Junio C Hamano
Message 1 of 2 in “[BUG] git-show-branch cant show --more”
  1. Jon LoeligerSep 19, 2005
  2. Junio C HamanoSep 19, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.