{"action":"created","issue":{"url":"https://api.github.com/repos/google/re2/issues/22","labels_url":"https://api.github.com/repos/google/re2/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/google/re2/issues/22/comments","events_url":"https://api.github.com/repos/google/re2/issues/22/events","html_url":"https://github.com/google/re2/issues/22","id":71365421,"number":22,"title":"testinstall hangs when compiled with --static","user":{"login":"mppf","id":3653132,"avatar_url":"https://avatars.githubusercontent.com/u/3653132?v=3","gravatar_id":"","url":"https://api.github.com/users/mppf","html_url":"https://github.com/mppf","followers_url":"https://api.github.com/users/mppf/followers","following_url":"https://api.github.com/users/mppf/following{/other_user}","gists_url":"https://api.github.com/users/mppf/gists{/gist_id}","starred_url":"https://api.github.com/users/mppf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mppf/subscriptions","organizations_url":"https://api.github.com/users/mppf/orgs","repos_url":"https://api.github.com/users/mppf/repos","events_url":"https://api.github.com/users/mppf/events{/privacy}","received_events_url":"https://api.github.com/users/mppf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-27T18:30:54Z","updated_at":"2015-04-28T06:07:24Z","closed_at":null,"body":"On Ubuntu 14.10 64 or 32-bit, which has gcc version 4.9.1,\r\ncompiling testinstall.cc with --static results in a program that\r\nhangs. I don't see this problem on other platforms.\r\n\r\ngit clone https://github.com/google/re2.git\r\ncd re2\r\nmake clean\r\nmake\r\ng++ --static testinstall.cc  -L obj -lre2 -I . -pthread\r\n./a.out\r\n\r\n\r\nthe a.out program hangs, but if you take away --static, it does not hang.\r\n"},"comment":{"url":"https://api.github.com/repos/google/re2/issues/comments/96928892","html_url":"https://github.com/google/re2/issues/22#issuecomment-96928892","issue_url":"https://api.github.com/repos/google/re2/issues/22","id":96928892,"user":{"login":"junyer","id":3593753,"avatar_url":"https://avatars.githubusercontent.com/u/3593753?v=3","gravatar_id":"","url":"https://api.github.com/users/junyer","html_url":"https://github.com/junyer","followers_url":"https://api.github.com/users/junyer/followers","following_url":"https://api.github.com/users/junyer/following{/other_user}","gists_url":"https://api.github.com/users/junyer/gists{/gist_id}","starred_url":"https://api.github.com/users/junyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junyer/subscriptions","organizations_url":"https://api.github.com/users/junyer/orgs","repos_url":"https://api.github.com/users/junyer/repos","events_url":"https://api.github.com/users/junyer/events{/privacy}","received_events_url":"https://api.github.com/users/junyer/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T06:07:24Z","updated_at":"2015-04-28T06:07:24Z","body":"Confirmed on Ubuntu 14.10.\r\n\r\nThe output of strace(1) indicates that something is sleeping on a futex and blocking indefinitely:\r\n\r\n…\r\nbrk(0xdef200)                           = 0xdef200\r\nbrk(0xdf0000)                           = 0xdf0000\r\nfutex(0x7bc4a0, FUTEX_WAKE_PRIVATE, 1)  = 0\r\naccess(\"/etc/ld.so.nohwcap\", F_OK)      = -1 ENOENT (No such file or directory)\r\nfutex(0xdd02f4, FUTEX_WAIT_PRIVATE, 0, NULL\r\n"}}