Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
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.
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.
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.
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.
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.
Quoted 4 lines · victor
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 ?
Quoted 5 lines · victor
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
Quoted 7 lines
Undefined first referenced
symbol in file type_cas_unlock builtin/index-pack.o type_cas_lock builtin/index-pack.old: 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:
builtin/index-pack.c +3 -1
@@ -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
Quoted 14 lines · victor
(gdb) bt full
#00xff0332ecin strlen () from/usr/lib/libc.so.1
No symbol table info available.
#10xff0866b8in_doprnt() from/usr/lib/libc.so.1
No symbol table info available.
#20xff088ac0in vsnprintf () from/usr/lib/libc.so.1
No symbol table info available.
#30x00137c18in 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'
Quoted 8 lines
<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>...
#40x00137f6cin error (err=0x196128 "error: ") at usage.c:147
No locals.
#50x00112aa0instart_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