{"thread":{"id":"37888","subject":"Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'","startedAt":"2014-11-06T05:19:04Z","lastAt":"2014-11-07T07:18:19Z","messageCount":8,"participants":["victor","Jeff King","Torsten Bögershausen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"251424","messageId":"1415251144220-7620692.post@n2.nabble.com","threadId":"37888","inReplyTo":null,"subject":"Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'","fromName":"victor","fromEmail":"liwenxi9999@163.com","sentAt":"2014-11-06T05:19:04Z","receivedAt":"2014-11-06T05:19:04Z","isPatch":false,"sender":{"key":"liwenxi9999@163.com","avatar":null},"body":"Hi,\n\nI installed git 2.1.3 on sparc 8 by source code with make install, however I\ngot git core dump during 'git clone'.\n\nI used command as below to compile and install:\n\n./configure --prefix=/usr/local/git-2.1.3/ --enable-pthreads\nsudo gmake NO_GETTEXT=1 install\n\nBelow I pasted  the gdb bt full details, does anyone have any idea why this\nhappened?\n\nThanks very much!\nVictor\n\n(gdb) bt full\n#0  0xff0332ec in strlen () from /usr/lib/libc.so.1\nNo symbol table info available.\n#1  0xff0866b8 in _doprnt () from /usr/lib/libc.so.1\nNo symbol table info available.\n#2  0xff088ac0 in vsnprintf () from /usr/lib/libc.so.1\nNo symbol table info available.\n#3  0x00137c18 in vreportf (prefix=0x190038 \"cannot create thread: %s\",\nerr=0x190038 \"cannot create thread: %s\", params=0xffbef280)\n    at usage.c:12\n        msg = \"cannot create thread:\n\\0d~▒▒▒\\201\\001\\001\\0\\0\\036\\rP\\0\\034▒\\0\\0\\034▒\\0\\0\\036\\rP\", '\\0' <repeats 16\ntimes>,\n\"▒\\f\\027\\004▒\\f\\027\\b▒\\v▒▒▒\\v▒▒▒▒▒▒\\177▒▒▒▒▒▒▒▒\\f\\027$▒\\v▒\\b\\0\\036\\rP\", '\\0'\n<repeats 35 times>,\n\"\\001\\0\\030▒0\\0\\0\\0\\001\\0\\034▒\\0▒▒▒▒\\0\\0\\0/\\0\\0\\0\\0▒\\003▒@\", '\\0' <repeats\n12 times>,\n\"\\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\",\n'\\0' <repeats 27 times>...\n#4  0x00137f6c in error (err=0x196128 \"error: \") at usage.c:147\nNo locals.\n#5  0x00112aa0 in start_async (async=0xffbef5b0) at run-command.c:727\n\n\n\n\n--\nView 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\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"251425","messageId":"20141106053134.GA22835@peff.net","threadId":"37888","inReplyTo":"1415251144220-7620692.post@n2.nabble.com","subject":"Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2014-11-06T05:31:35Z","receivedAt":"2014-11-06T05:31:35Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Nov 05, 2014 at 09:19:04PM -0800, victor wrote:\n\n> (gdb) bt full\n> #0  0xff0332ec in strlen () from /usr/lib/libc.so.1\n> No symbol table info available.\n> #1  0xff0866b8 in _doprnt () from /usr/lib/libc.so.1\n> No symbol table info available.\n> #2  0xff088ac0 in vsnprintf () from /usr/lib/libc.so.1\n> No symbol table info available.\n> #3  0x00137c18 in vreportf (prefix=0x190038 \"cannot create thread: %s\",\n> err=0x190038 \"cannot create thread: %s\", params=0xffbef280)\n>     at usage.c:12\n>         msg = \"cannot create thread:\n> \\0d~▒▒▒\\201\\001\\001\\0\\0\\036\\rP\\0\\034▒\\0\\0\\034▒\\0\\0\\036\\rP\", '\\0' <repeats 16\n> times>,\n> \"▒\\f\\027\\004▒\\f\\027\\b▒\\v▒▒▒\\v▒▒▒▒▒▒\\177▒▒▒▒▒▒▒▒\\f\\027$▒\\v▒\\b\\0\\036\\rP\", '\\0'\n> <repeats 35 times>,\n> \"\\001\\0\\030▒0\\0\\0\\0\\001\\0\\034▒\\0▒▒▒▒\\0\\0\\0/\\0\\0\\0\\0▒\\003▒@\", '\\0' <repeats\n> 12 times>,\n> \"\\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\",\n> '\\0' <repeats 27 times>...\n> #4  0x00137f6c in error (err=0x196128 \"error: \") at usage.c:147\n> No locals.\n> #5  0x00112aa0 in start_async (async=0xffbef5b0) at run-command.c:727\n\nWe tried to start a thread in start_async, but it failed. We then pass\nthe error number to strerror(), and try to print the result. That seems\nto involve feeding garbage to vsnprintf, so presumably what strerror()\nhanded us back was garbage.\n\nAre you sure that pthreads really work on your platform? Between the\nthread failure and the garbage strerror(), it sounds like there might be\nsome weird linking problems. Does running \"./configure\n--disable-pthreads\" produce a working build?\n\n-Peff\n"},{"id":"251428","messageId":"1415255667304-7620693.post@n2.nabble.com","threadId":"37888","inReplyTo":"1415251144220-7620692.post@n2.nabble.com","subject":"Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'","fromName":"victor","fromEmail":"liwenxi9999@163.com","sentAt":"2014-11-06T06:34:27Z","receivedAt":"2014-11-06T06:34:27Z","isPatch":false,"sender":{"key":"liwenxi9999@163.com","avatar":null},"body":"Hi,\n\nThanks for the input. With below command, I got new error as below:\n\n./configure --prefix=/usr/local/git-2.1.3/ --disable-pthreads\nsudo gmake NO_GETTEXT=1 install\n\nUndefined                       first referenced\n symbol                             in file\ntype_cas_unlock                     builtin/index-pack.o\ntype_cas_lock                       builtin/index-pack.o\nld: fatal: Symbol referencing errors. No output written to git\n\nHow can I overcome this?\n\nThanks,\nVictor\n\n\n\n--\nView 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\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"251429","messageId":"20141106072403.GA24872@peff.net","threadId":"37888","inReplyTo":"1415255667304-7620693.post@n2.nabble.com","subject":"Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2014-11-06T07:24:03Z","receivedAt":"2014-11-06T07:24:03Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Nov 05, 2014 at 10:34:27PM -0800, victor wrote:\n\n> Thanks for the input. With below command, I got new error as below:\n> \n> ./configure --prefix=/usr/local/git-2.1.3/ --disable-pthreads\n> sudo gmake NO_GETTEXT=1 install\n> \n> Undefined                       first referenced\n>  symbol                             in file\n> type_cas_unlock                     builtin/index-pack.o\n> type_cas_lock                       builtin/index-pack.o\n> ld: fatal: Symbol referencing errors. No output written to git\n> \n> How can I overcome this?\n\nThe NO_PTHREADS build was broken in v2.1.2 and v2.1.3. The fix, from\ncommit e0e2128 (index-pack: fix compilation with NO_PTHREADS,\n2014-10-11) is in the current \"master\" branch. If you want to apply it\nmanually, it is just:\n\ndiff --git a/builtin/index-pack.c b/builtin/index-pack.c\nindex 792c66c..a369f55 100644\n--- a/builtin/index-pack.c\n+++ b/builtin/index-pack.c\n@@ -185,6 +185,9 @@ static void cleanup_thread(void)\n #define deepest_delta_lock()\n #define deepest_delta_unlock()\n \n+#define type_cas_lock()\n+#define type_cas_unlock()\n+\n #endif\n\n-Peff\n"},{"id":"251430","messageId":"1415259507566-7620694.post@n2.nabble.com","threadId":"37888","inReplyTo":"1415255667304-7620693.post@n2.nabble.com","subject":"Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'","fromName":"victor","fromEmail":"liwenxi9999@163.com","sentAt":"2014-11-06T07:38:27Z","receivedAt":"2014-11-06T07:38:27Z","isPatch":false,"sender":{"key":"liwenxi9999@163.com","avatar":null},"body":"Hi Jeff,\n\nThanks for your help, as your suggestion, I can compile/install git with\n--disable_ptheads now.\n\nWhile ran 'git clone', it still got core dump.\n\nWould you please have a look at it? \n\n(gdb) bt full\n#0  0xff0332ec in strlen () from /usr/lib/libc.so.1\nNo symbol table info available.\n#1  0xff0866b8 in _doprnt () from /usr/lib/libc.so.1\nNo symbol table info available.\n#2  0xff088ac0 in vsnprintf () from /usr/lib/libc.so.1\nNo symbol table info available.\n#3  0x00137c18 in vreportf (prefix=0x190038 \"cannot create thread: %s\",\n    err=0x190038 \"cannot create thread: %s\", params=0xffbeec88)\n    at usage.c:12\n        msg = \"' for tags you want to propagate.\\\" >&2\\n\\t\\t\\texit 1\\n\\t\\tfi               \n\\n\\t\\t;;\\n\\trefs/tags/*,delete)\\n\\t\\t# delete tag\\n\\t\\tif [ \\\"$allowdeleteta               \ng\\\" != \\\"true\\\" ]; then\\n\\t\\t\\techo \\\"*** Deleting a tag is not allowed in t               \nhis repository\\\"\"...\n\nThanks,\nVictor\n\n\n\n--\nView 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\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"251432","messageId":"545B30CA.4030803@web.de","threadId":"37888","inReplyTo":"1415259507566-7620694.post@n2.nabble.com","subject":"Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2014-11-06T08:26:50Z","receivedAt":"2014-11-06T08:26:50Z","isPatch":false,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"On 2014-11-06 08.38, victor wrote:\n> Hi Jeff,\n> \n> Thanks for your help, as your suggestion, I can compile/install git with\n> --disable_ptheads now.\nIt seems as if your Git still wants to create a pthread,\nDid you use --disable-pthreads or --disable_ptheads ?\n"},{"id":"251433","messageId":"1415263009541-7620695.post@n2.nabble.com","threadId":"37888","inReplyTo":"1415259507566-7620694.post@n2.nabble.com","subject":"Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'","fromName":"victor","fromEmail":"liwenxi9999@163.com","sentAt":"2014-11-06T08:36:49Z","receivedAt":"2014-11-06T08:36:49Z","isPatch":false,"sender":{"key":"liwenxi9999@163.com","avatar":null},"body":"Hi,\n\nI used below command to configure:\n./configure --prefix=/usr/local/git-2.1.3/ --disable-pthreads\n\nActually, I think the error message is quite clear this time, it is about\nhook of \"Deleting a tag is not allowed in this repository\".\n\nCan I try to disable the hook?\n\nThanks,\nVictor\n\n\n\n--\nView 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\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"251441","messageId":"1415344699903-7620712.post@n2.nabble.com","threadId":"37888","inReplyTo":"1415263009541-7620695.post@n2.nabble.com","subject":"Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'","fromName":"victor","fromEmail":"liwenxi9999@163.com","sentAt":"2014-11-07T07:18:19Z","receivedAt":"2014-11-07T07:18:19Z","isPatch":false,"sender":{"key":"liwenxi9999@163.com","avatar":null},"body":"Hi,\n\nI tried to install this version git on sparc 10, the git clone command can\nbe executed successfully.\n\nSo is there any specific issue about sparc 8 for git to make/install?\n\nAnyway, I will try to install on sparc 8 again.\n\nThanks,\nVictor\n\n\n\n\n--\nView 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\nSent from the git mailing list archive at Nabble.com.\n"}]}