{"thread":{"id":"36312","subject":"Problems with git 1.8.5.3 on HP-UX 11.11","startedAt":"2014-03-28T10:28:51Z","lastAt":"2014-03-28T20:02:19Z","messageCount":5,"participants":["Gerhard Grimm","Thomas Ackermann","Jeff King","Eric Sunshine"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"237997","messageId":"8FDD21D28EC16844948E2A773083574A03363EBC@m4ukex08.intranet.macro4.com","threadId":"36312","inReplyTo":"9D24AD27564FAE4CB8D0C15D080DEFCB0106A89226@m4ukex08.intranet.macro4.com","subject":"Problems with git 1.8.5.3 on HP-UX 11.11","fromName":"Gerhard Grimm","fromEmail":"gerhard.grimm@detec.com","sentAt":null,"receivedAt":"2014-03-28T10:28:51Z","isPatch":false,"sender":{"key":"gerhard.grimm@detec.com","avatar":null},"body":"In order to set up automated builds and tests of the CMake toolchain (www.cmake.org) on HP-UX 11.11 (hppa) and 11.23 (ia64), I needed to install git on those platforms.\nThe latest binary package available from hpux.connect.org.uk is version 1.8.5.3, which I installed with all of its dependencies.\nWhen trying to set up the CMake build, I ran into the first problem:\n\n$ git pull origin\nerror: cannot create thread: Function is not available\nfatal: fetch-pack: unable to fork off sideband demultiplexer\n\nSo I examined the git source package and found that the author of the HP-UX port forgot to set\n\nPTHREAD_CFLAGS=-mt\n\nin config.mak.autogen to enable threading. I added this setting and rebuilt git. On 11.23, everything was fine now - no further issues.\nOn 11.11 though, git now crashed with a Bus Error. Some debugging showed that this was due to a multithreading issue - obviously some dependency library has not been built as reentrant code. To fix this, I disabled threading by setting\n\nPTHREAD_CFLAGS=\nNO_PTHREADS=YesPlease\n\nin config.mak.autogen and rebuilt git again. After that, \"git pull\" and \"git fetch\" worked correctly and I could proceed to set up the CMake build and test.\nAlas, the CMake tests include a test case \"CTest.UpdateGIT\" that creates a git repository, creates a submodule, imports some content and attempts to check out a revision. At that point, the command\n\ngit submodule init\n\nfails with the output\n\n    Assertion failed: err == REG_ESPACE, file compat/regex/regexec.c, line 1096\n    No submodule mapping found in .gitmodules for path 'module'\n\nand the stacktrace of the resulting core dump is\n\n#0  0xc020ced0 in kill+0x10 () from /usr/lib/libc.2\n#1  0xc01a7f84 in raise+0x24 () from /usr/lib/libc.2\n#2  0xc01e9308 in abort_C+0x160 () from /usr/lib/libc.2\n#3  0xc01e9364 in abort+0x1c () from /usr/lib/libc.2\n#4  0xc0176998 in _assert+0x178 () from /usr/lib/libc.2\n#5  0x205fa0 in check_matching+0x290 ()\n#6  0x2053b8 in re_search_internal+0x128 ()\n#7  0x204ac0 in regexec+0xc8 ()\n#8  0x4da40 in collect_config+0x60 ()\n#9  0x108b30 in get_value+0xd8 ()\n#10 0x108efc in git_parse_source+0x1bc ()\n#11 0x10ac70 in do_config_from+0x70 ()\n#12 0x10ad3c in git_config_from_file+0x8c ()\n#13 0x10b274 in git_config_with_options+0x84 ()\n#14 0x4dd6c in get_value+0x224 ()\n#15 0x4eed4 in cmd_config+0x744 ()\n#16 0x17150 in run_builtin+0x110 ()\n#17 0x1739c in handle_internal_command+0xcc ()\n#18 0x174fc in run_argv+0x2c ()\n#19 0x17724 in main+0x194 ()\n\nSince I'm no git expert (I'm not even a regular git user in fact), there's nothing left for me to do except asking for help...\nPlease CC me (gerhard dot grimm at detec dot com) with any replies since I'm not subscribed to the list. Thank you!\n\nBest regards,\n\nGerhard\nThis e-mail message has been scanned and cleared by Postini / Google Message Security and the UNICOM Global security systems. This message is for the named person's use only. If you receive this message in error, please delete it and notify the sender. \n\n"},{"id":"238000","messageId":"loom.20140328T124555-537@post.gmane.org","threadId":"36312","inReplyTo":"8FDD21D28EC16844948E2A773083574A03363EBC@m4ukex08.intranet.macro4.com","subject":"Re: Problems with git 1.8.5.3 on HP-UX 11.11","fromName":"Thomas Ackermann","fromEmail":"th.acker@arcor.de","sentAt":"2014-03-28T11:48:00Z","receivedAt":"2014-03-28T11:48:00Z","isPatch":false,"sender":{"key":"th.acker@arcor.de","avatar":"https://avatars.githubusercontent.com/u/1358536?v=4"},"body":"Gerhard Grimm <gerhard.grimm <at> detec.com> writes:\n\n> \n> In order to set up automated builds and tests of the CMake toolchain \n(www.cmake.org) on HP-UX 11.11 (hppa)\n> and 11.23 (ia64), I needed to install git on those platforms.\n> The latest binary package available from hpux.connect.org.uk is version \n1.8.5.3, which I installed with\n> all of its dependencies.\n\nDid you try to build the most current version v1.9.1 by using\nautoconf as described in 'INSTALL'?\n\n---\nThomas\n"},{"id":"238032","messageId":"20140328190156.GA30739@sigill.intra.peff.net","threadId":"36312","inReplyTo":"8FDD21D28EC16844948E2A773083574A03363EBC@m4ukex08.intranet.macro4.com","subject":"Re: Problems with git 1.8.5.3 on HP-UX 11.11","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2014-03-28T19:01:56Z","receivedAt":"2014-03-28T19:01:56Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, Mar 28, 2014 at 11:09:14AM -0000, Gerhard Grimm wrote:\n\n> So I examined the git source package and found that the author of the\n> HP-UX port forgot to set\n> \n> PTHREAD_CFLAGS=-mt\n> \n> in config.mak.autogen to enable threading.\n\nYou probably want to place such manual settings in config.mak. If you\nuse the \"./configure\" script, it will overwrite config.mak.autogen.\n\n> git submodule init\n> \n> fails with the output\n> \n>     Assertion failed: err == REG_ESPACE, file compat/regex/regexec.c, line 1096\n>     No submodule mapping found in .gitmodules for path 'module'\n> \n> and the stacktrace of the resulting core dump is\n> \n> #0  0xc020ced0 in kill+0x10 () from /usr/lib/libc.2\n> #1  0xc01a7f84 in raise+0x24 () from /usr/lib/libc.2\n> #2  0xc01e9308 in abort_C+0x160 () from /usr/lib/libc.2\n> #3  0xc01e9364 in abort+0x1c () from /usr/lib/libc.2\n> #4  0xc0176998 in _assert+0x178 () from /usr/lib/libc.2\n> #5  0x205fa0 in check_matching+0x290 ()\n> #6  0x2053b8 in re_search_internal+0x128 ()\n> #7  0x204ac0 in regexec+0xc8 ()\n> #8  0x4da40 in collect_config+0x60 ()\n> #9  0x108b30 in get_value+0xd8 ()\n> [...]\n\nThe regexes we use here are not particularly complicated. So either\nthere is a bug (but nobody else has reported anything on any other\nplatform) or your system regex library has some problem with what we are\nfeeding it. The simplest solution may be to compile with:\n\n  NO_REGEX=YesPlease\n\nwhich will build and use the glibc implementation in compat/regex\ninstead.\n\n-Peff\n"},{"id":"238041","messageId":"CAPig+cQKZ-oKTQ4Y2=qDaeQRXVZYOKRcSadOx2RwfjCziuu6fw@mail.gmail.com","threadId":"36312","inReplyTo":"20140328190156.GA30739@sigill.intra.peff.net","subject":"Re: Problems with git 1.8.5.3 on HP-UX 11.11","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2014-03-28T19:43:29Z","receivedAt":"2014-03-28T19:43:29Z","isPatch":false,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"On Fri, Mar 28, 2014 at 3:01 PM, Jeff King <peff@peff.net> wrote:\n> On Fri, Mar 28, 2014 at 11:09:14AM -0000, Gerhard Grimm wrote:\n>> git submodule init\n>>\n>> fails with the output\n>>\n>>     Assertion failed: err == REG_ESPACE, file compat/regex/regexec.c, line 1096\n>>     No submodule mapping found in .gitmodules for path 'module'\n>\n> The regexes we use here are not particularly complicated. So either\n> there is a bug (but nobody else has reported anything on any other\n> platform) or your system regex library has some problem with what we are\n> feeding it. The simplest solution may be to compile with:\n>\n>   NO_REGEX=YesPlease\n>\n> which will build and use the glibc implementation in compat/regex\n> instead.\n\nBased upon the assertion-failure message, it looks like he's already\nusing compat/regex.\n"},{"id":"238042","messageId":"20140328200218.GA3145@sigill.intra.peff.net","threadId":"36312","inReplyTo":"CAPig+cQKZ-oKTQ4Y2=qDaeQRXVZYOKRcSadOx2RwfjCziuu6fw@mail.gmail.com","subject":"Re: Problems with git 1.8.5.3 on HP-UX 11.11","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2014-03-28T20:02:19Z","receivedAt":"2014-03-28T20:02:19Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, Mar 28, 2014 at 03:43:29PM -0400, Eric Sunshine wrote:\n\n> On Fri, Mar 28, 2014 at 3:01 PM, Jeff King <peff@peff.net> wrote:\n> > On Fri, Mar 28, 2014 at 11:09:14AM -0000, Gerhard Grimm wrote:\n> >> git submodule init\n> >>\n> >> fails with the output\n> >>\n> >>     Assertion failed: err == REG_ESPACE, file compat/regex/regexec.c, line 1096\n> >>     No submodule mapping found in .gitmodules for path 'module'\n> >\n> > The regexes we use here are not particularly complicated. So either\n> > there is a bug (but nobody else has reported anything on any other\n> > platform) or your system regex library has some problem with what we are\n> > feeding it. The simplest solution may be to compile with:\n> >\n> >   NO_REGEX=YesPlease\n> >\n> > which will build and use the glibc implementation in compat/regex\n> > instead.\n> \n> Based upon the assertion-failure message, it looks like he's already\n> using compat/regex.\n\nHeh, I didn't even notice that. I just looked at all of the libc calls\nat the top of the backtrace, but of course that is just from assert() on\nup.\n\nSo now it seems doubly odd to me, since it is running the same regex\nlibrary that is used elsewhere.\n\n-Peff\n"}]}