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

Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'

From
Jeff King <peff@peff.net>
Date
Nov 6, 2014, 05:31 UTC
Message-ID
<20141106053134.GA22835@peff.net>
In-Reply-To
<1415251144220-7620692.post@n2.nabble.com>
On Wed, Nov 05, 2014 at 09:19:04PM -0800, victor wrote:
Show 22 quoted lines
> (gdb) bt full
> #0  0xff0332ec in strlen () from /usr/lib/libc.so.1
> No symbol table info available.
> #1  0xff0866b8 in _doprnt () from /usr/lib/libc.so.1
> No symbol table info available.
> #2  0xff088ac0 in vsnprintf () from /usr/lib/libc.so.1
> No symbol table info available.
> #3  0x00137c18 in vreportf (prefix=0x190038 "cannot create thread: %s",
> err=0x190038 "cannot create thread: %s", params=0xffbef280)
>     at usage.c:12
>         msg = "cannot create thread:
> \0d~▒▒▒\201\001\001\0\0\036\rP\0\034▒\0\0\034▒\0\0\036\rP", '\0' <repeats 16
> times>,
> "▒\f\027\004▒\f\027\b▒\v▒▒▒\v▒▒▒▒▒▒\177▒▒▒▒▒▒▒▒\f\027$▒\v▒\b\0\036\rP", '\0'
> <repeats 35 times>,
> "\001\0\030▒0\0\0\0\001\0\034▒\0▒▒▒▒\0\0\0/\0\0\0\0▒\003▒@", '\0' <repeats
> 12 times>,
> "\201\001\001\0\0\036\rP\0\0\0\0\0\0\0\001\0\031\032\220\0\0\0\0\0\030▒0▒▒▒▒\0\0\0\0▒▒▒▒\0\0\0\v",
> '\0' <repeats 27 times>...
> #4  0x00137f6c in error (err=0x196128 "error: ") at usage.c:147
> No locals.
> #5  0x00112aa0 in start_async (async=0xffbef5b0) at run-command.c:727

We tried to start a thread in start_async, but it failed. We then pass the error number to strerror(), and try to print the result. That seems to involve feeding garbage to vsnprintf, so presumably what strerror() handed us back was garbage.

Are you sure that pthreads really work on your platform? Between the thread failure and the garbage strerror(), it sounds like there might be some weird linking problems. Does running "./configure --disable-pthreads" produce a working build?

-Peff
Previous: victorNext: victor
Message 2 of 8 in “Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'”
  1. victorNov 6, 2014
  2. Jeff KingNov 6, 2014
  3. victorNov 6, 2014
  4. Jeff KingNov 6, 2014
  5. victorNov 6, 2014
  6. Torsten BögershausenNov 6, 2014
  7. victorNov 6, 2014
  8. victorNov 7, 2014

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.