* Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
@ 2014-11-06 5:19 victor
2014-11-06 5:31 ` Jeff King
2014-11-06 6:34 ` victor
0 siblings, 2 replies; 8+ messages in thread
From: victor @ 2014-11-06 5:19 UTC (permalink / raw)
To: git
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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
2014-11-06 5:19 Installed git 2.1.3 on sparc 8, but got core dump during 'git clone' victor
@ 2014-11-06 5:31 ` Jeff King
2014-11-06 6:34 ` victor
1 sibling, 0 replies; 8+ messages in thread
From: Jeff King @ 2014-11-06 5:31 UTC (permalink / raw)
To: victor; +Cc: git
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
2014-11-06 5:19 Installed git 2.1.3 on sparc 8, but got core dump during 'git clone' victor
2014-11-06 5:31 ` Jeff King
@ 2014-11-06 6:34 ` victor
2014-11-06 7:24 ` Jeff King
2014-11-06 7:38 ` victor
1 sibling, 2 replies; 8+ messages in thread
From: victor @ 2014-11-06 6:34 UTC (permalink / raw)
To: git
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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
2014-11-06 6:34 ` victor
@ 2014-11-06 7:24 ` Jeff King
2014-11-06 7:38 ` victor
1 sibling, 0 replies; 8+ messages in thread
From: Jeff King @ 2014-11-06 7:24 UTC (permalink / raw)
To: victor; +Cc: git
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
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
2014-11-06 6:34 ` victor
2014-11-06 7:24 ` Jeff King
@ 2014-11-06 7:38 ` victor
2014-11-06 8:26 ` Torsten Bögershausen
2014-11-06 8:36 ` victor
1 sibling, 2 replies; 8+ messages in thread
From: victor @ 2014-11-06 7:38 UTC (permalink / raw)
To: git
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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
2014-11-06 7:38 ` victor
@ 2014-11-06 8:26 ` Torsten Bögershausen
2014-11-06 8:36 ` victor
1 sibling, 0 replies; 8+ messages in thread
From: Torsten Bögershausen @ 2014-11-06 8:26 UTC (permalink / raw)
To: victor, git
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 ?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
2014-11-06 7:38 ` victor
2014-11-06 8:26 ` Torsten Bögershausen
@ 2014-11-06 8:36 ` victor
2014-11-07 7:18 ` victor
1 sibling, 1 reply; 8+ messages in thread
From: victor @ 2014-11-06 8:36 UTC (permalink / raw)
To: git
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.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-11-07 7:28 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-06 5:19 Installed git 2.1.3 on sparc 8, but got core dump during 'git clone' victor
2014-11-06 5:31 ` Jeff King
2014-11-06 6:34 ` victor
2014-11-06 7:24 ` Jeff King
2014-11-06 7:38 ` victor
2014-11-06 8:26 ` Torsten Bögershausen
2014-11-06 8:36 ` victor
2014-11-07 7:18 ` victor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).