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

8 messages from 2014-11-06 to 2014-11-07. Participants: victor, Jeff King, Torsten Bögershausen.
Thread: https://gitlist.dev/t/37888

## victor, 2014-11-06 05:19

Subject: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
Message-ID: <1415251144220-7620692.post@n2.nabble.com>
URL: https://gitlist.dev/e/1415251144220-7620692.post%40n2.nabble.com

```
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, 2014-11-06 05:31

Subject: Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
Message-ID: <20141106053134.GA22835@peff.net>
URL: https://gitlist.dev/e/20141106053134.GA22835%40peff.net
In-Reply-To: <1415251144220-7620692.post@n2.nabble.com>

```
On Wed, Nov 05, 2014 at 09:19:04PM -0800, victor wrote:

> (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, 2014-11-06 06:34

Subject: Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
Message-ID: <1415255667304-7620693.post@n2.nabble.com>
URL: https://gitlist.dev/e/1415255667304-7620693.post%40n2.nabble.com
In-Reply-To: <1415251144220-7620692.post@n2.nabble.com>

```
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, 2014-11-06 07:24

Subject: Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
Message-ID: <20141106072403.GA24872@peff.net>
URL: https://gitlist.dev/e/20141106072403.GA24872%40peff.net
In-Reply-To: <1415255667304-7620693.post@n2.nabble.com>

```
On Wed, Nov 05, 2014 at 10:34:27PM -0800, victor wrote:

> 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, 2014-11-06 07:38

Subject: Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
Message-ID: <1415259507566-7620694.post@n2.nabble.com>
URL: https://gitlist.dev/e/1415259507566-7620694.post%40n2.nabble.com
In-Reply-To: <1415255667304-7620693.post@n2.nabble.com>

```
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, 2014-11-06 08:26

Subject: Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
Message-ID: <545B30CA.4030803@web.de>
URL: https://gitlist.dev/e/545B30CA.4030803%40web.de
In-Reply-To: <1415259507566-7620694.post@n2.nabble.com>

```
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, 2014-11-06 08:36

Subject: Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
Message-ID: <1415263009541-7620695.post@n2.nabble.com>
URL: https://gitlist.dev/e/1415263009541-7620695.post%40n2.nabble.com
In-Reply-To: <1415259507566-7620694.post@n2.nabble.com>

```
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, 2014-11-07 07:18

Subject: Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
Message-ID: <1415344699903-7620712.post@n2.nabble.com>
URL: https://gitlist.dev/e/1415344699903-7620712.post%40n2.nabble.com
In-Reply-To: <1415263009541-7620695.post@n2.nabble.com>

```
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.

```
