threads / discuss / 37888

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

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

## tl;dr

8 messages between Nov 6, 2014 and Nov 7, 2014.

replies: 7people: 3as markdown or json

victor· Nov 6, 2014, 05:19 UTC · lore
Hi,

I installed git 2.1.3 on sparc 8 by source code with make install, however I got git core dump during 'git clone'.

I used command as below to compile and install:

./configure --prefix=/usr/local/git-2.1.3/ --enable-pthreads sudo gmake NO_GETTEXT=1 install

Below I pasted the gdb bt full details, does anyone have any idea why this happened?

Thanks very much! Victor

(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

-- View this message in context: http://git.661346.n2.nabble.com/Installed-git-2-1-3-on-sparc-8-but-got-core-dump-during-git-clone-tp7620692.html Sent from the git mailing list archive at Nabble.com.

Jeff King· Nov 6, 2014, 05:31 UTC · re: victor · lore

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

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
victor· Nov 6, 2014, 06:34 UTC · re: victor · lore

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

Hi,
Thanks for the input. With below command, I got new error as below:

./configure --prefix=/usr/local/git-2.1.3/ --disable-pthreads sudo gmake NO_GETTEXT=1 install

Undefined                       first referenced
 symbol                             in file
type_cas_unlock                     builtin/index-pack.o
type_cas_lock                       builtin/index-pack.o
ld: fatal: Symbol referencing errors. No output written to git
How can I overcome this?

Thanks, Victor

-- View this message in context: http://git.661346.n2.nabble.com/Installed-git-2-1-3-on-sparc-8-but-got-core-dump-during-git-clone-tp7620692p7620693.html Sent from the git mailing list archive at Nabble.com.

Jeff King· Nov 6, 2014, 07:24 UTC · re: victor · lore

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

On Wed, Nov 05, 2014 at 10:34:27PM -0800, victor wrote:
Show 12 quoted lines
> Thanks for the input. With below command, I got new error as below:
> 
> ./configure --prefix=/usr/local/git-2.1.3/ --disable-pthreads
> sudo gmake NO_GETTEXT=1 install
> 
> Undefined                       first referenced
>  symbol                             in file
> type_cas_unlock                     builtin/index-pack.o
> type_cas_lock                       builtin/index-pack.o
> ld: fatal: Symbol referencing errors. No output written to git
> 
> How can I overcome this?

The NO_PTHREADS build was broken in v2.1.2 and v2.1.3. The fix, from commit e0e2128 (index-pack: fix compilation with NO_PTHREADS, 2014-10-11) is in the current "master" branch. If you want to apply it manually, it is just:

diff --git a/builtin/index-pack.c b/builtin/index-pack.c
index 792c66c..a369f55 100644
--- a/builtin/index-pack.c
+++ b/builtin/index-pack.c
@@ -185,6 +185,9 @@ static void cleanup_thread(void)
 #define deepest_delta_lock()
 #define deepest_delta_unlock()
 
+#define type_cas_lock()
+#define type_cas_unlock()
+
 #endif

-Peff
victor· Nov 6, 2014, 07:38 UTC · re: victor · lore

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

Hi Jeff,

Thanks for your help, as your suggestion, I can compile/install git with --disable_ptheads now.

While ran 'git clone', it still got core dump.
Would you please have a look at it? 
(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=0xffbeec88)
    at usage.c:12
        msg = "' for tags you want to propagate.\" >&2\n\t\t\texit 1\n\t\tfi               
\n\t\t;;\n\trefs/tags/*,delete)\n\t\t# delete tag\n\t\tif [ \"$allowdeleteta               
g\" != \"true\" ]; then\n\t\t\techo \"*** Deleting a tag is not allowed in t               
his repository\""...

Thanks, Victor

-- View this message in context: http://git.661346.n2.nabble.com/Installed-git-2-1-3-on-sparc-8-but-got-core-dump-during-git-clone-tp7620692p7620694.html Sent from the git mailing list archive at Nabble.com.

Torsten Bögershausen· Nov 6, 2014, 08:26 UTC · re: victor · lore

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

On 2014-11-06 08.38, victor wrote:
> Hi Jeff,
> 
> Thanks for your help, as your suggestion, I can compile/install git with
> --disable_ptheads now.

It seems as if your Git still wants to create a pthread, Did you use --disable-pthreads or --disable_ptheads ?

victor· Nov 6, 2014, 08:36 UTC · re: victor · lore

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

Hi,

I used below command to configure: ./configure --prefix=/usr/local/git-2.1.3/ --disable-pthreads

Actually, I think the error message is quite clear this time, it is about hook of "Deleting a tag is not allowed in this repository".

Can I try to disable the hook?

Thanks, Victor

-- View this message in context: http://git.661346.n2.nabble.com/Installed-git-2-1-3-on-sparc-8-but-got-core-dump-during-git-clone-tp7620692p7620695.html Sent from the git mailing list archive at Nabble.com.

victor· Nov 7, 2014, 07:18 UTC · re: victor · lore

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

Hi,

I tried to install this version git on sparc 10, the git clone command can be executed successfully.

So is there any specific issue about sparc 8 for git to make/install?
Anyway, I will try to install on sparc 8 again.

Thanks, Victor

-- View this message in context: http://git.661346.n2.nabble.com/Installed-git-2-1-3-on-sparc-8-but-got-core-dump-during-git-clone-tp7620692p7620712.html Sent from the git mailing list archive at Nabble.com.

← back to recent threads