{"action":"created","issue":{"url":"https://api.github.com/repos/codeclimate/test-reporter/issues/369","repository_url":"https://api.github.com/repos/codeclimate/test-reporter","labels_url":"https://api.github.com/repos/codeclimate/test-reporter/issues/369/labels{/name}","comments_url":"https://api.github.com/repos/codeclimate/test-reporter/issues/369/comments","events_url":"https://api.github.com/repos/codeclimate/test-reporter/issues/369/events","html_url":"https://github.com/codeclimate/test-reporter/issues/369","id":370075771,"node_id":"MDU6SXNzdWUzNzAwNzU3NzE=","number":369,"title":"Segfaults","user":{"login":"mainameiz","id":393611,"node_id":"MDQ6VXNlcjM5MzYxMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/393611?v=4","gravatar_id":"","url":"https://api.github.com/users/mainameiz","html_url":"https://github.com/mainameiz","followers_url":"https://api.github.com/users/mainameiz/followers","following_url":"https://api.github.com/users/mainameiz/following{/other_user}","gists_url":"https://api.github.com/users/mainameiz/gists{/gist_id}","starred_url":"https://api.github.com/users/mainameiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mainameiz/subscriptions","organizations_url":"https://api.github.com/users/mainameiz/orgs","repos_url":"https://api.github.com/users/mainameiz/repos","events_url":"https://api.github.com/users/mainameiz/events{/privacy}","received_events_url":"https://api.github.com/users/mainameiz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ale7714","id":1709578,"node_id":"MDQ6VXNlcjE3MDk1Nzg=","avatar_url":"https://avatars3.githubusercontent.com/u/1709578?v=4","gravatar_id":"","url":"https://api.github.com/users/ale7714","html_url":"https://github.com/ale7714","followers_url":"https://api.github.com/users/ale7714/followers","following_url":"https://api.github.com/users/ale7714/following{/other_user}","gists_url":"https://api.github.com/users/ale7714/gists{/gist_id}","starred_url":"https://api.github.com/users/ale7714/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ale7714/subscriptions","organizations_url":"https://api.github.com/users/ale7714/orgs","repos_url":"https://api.github.com/users/ale7714/repos","events_url":"https://api.github.com/users/ale7714/events{/privacy}","received_events_url":"https://api.github.com/users/ale7714/received_events","type":"User","site_admin":false},"assignees":[{"login":"ale7714","id":1709578,"node_id":"MDQ6VXNlcjE3MDk1Nzg=","avatar_url":"https://avatars3.githubusercontent.com/u/1709578?v=4","gravatar_id":"","url":"https://api.github.com/users/ale7714","html_url":"https://github.com/ale7714","followers_url":"https://api.github.com/users/ale7714/followers","following_url":"https://api.github.com/users/ale7714/following{/other_user}","gists_url":"https://api.github.com/users/ale7714/gists{/gist_id}","starred_url":"https://api.github.com/users/ale7714/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ale7714/subscriptions","organizations_url":"https://api.github.com/users/ale7714/orgs","repos_url":"https://api.github.com/users/ale7714/repos","events_url":"https://api.github.com/users/ale7714/events{/privacy}","received_events_url":"https://api.github.com/users/ale7714/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-10-15T09:31:12Z","updated_at":"2018-10-15T16:02:46Z","closed_at":null,"author_association":"NONE","body":"Sometimes `cc-test-reporter` fails with segfaults.\r\n\r\n![](https://i.imgur.com/AHqY2mJ.png)\r\n\r\n- It segfaults on `before-build`, `sum-coverage`, `upload-coverage` commands\r\n- We use docker-compose to run our tests\r\n- I have tried to wrap `cc-test-reporter` into \"retry loop\" but it does not work - it segfaults every time.\r\n```\r\ncc-test-reporter() {\r\n  set +e # temporary disable \"fail fast\" mode\r\n\r\n  try_num=0\r\n  while true; do\r\n    ./cc-test-reporter \"$@\"\r\n    code=\"$?\"\r\n    if [ $code -eq 0 ] ; then\r\n      break\r\n    else\r\n      echo \"cc-test-reporter failed. Code: ${code}.\"\r\n      try_num=$(($try_num + 5))\r\n      if [ $try_num -lt 5 ] ; then\r\n        echo \"Retry #$try_num...\"\r\n      else\r\n        echo \"Retries exceeded...\"\r\n        echo \"Sending core dump to ftp\"\r\n        ls -lah ./\r\n        sftp ${SFTP_USER}@${SFTP_HOST}:/sftp <<< \"\r\n          -mkdir publisher\r\n          cd publisher\r\n          put core\r\n          exit\r\n        \"\r\n        exit \"$code\"\r\n      fi\r\n    fi\r\n  done\r\n\r\n  set -e\r\n}\r\n```\r\n\r\nHow can I help you to investigate this issue?"},"comment":{"url":"https://api.github.com/repos/codeclimate/test-reporter/issues/comments/429913546","html_url":"https://github.com/codeclimate/test-reporter/issues/369#issuecomment-429913546","issue_url":"https://api.github.com/repos/codeclimate/test-reporter/issues/369","id":429913546,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTkxMzU0Ng==","user":{"login":"wfleming","id":188402,"node_id":"MDQ6VXNlcjE4ODQwMg==","avatar_url":"https://avatars3.githubusercontent.com/u/188402?v=4","gravatar_id":"","url":"https://api.github.com/users/wfleming","html_url":"https://github.com/wfleming","followers_url":"https://api.github.com/users/wfleming/followers","following_url":"https://api.github.com/users/wfleming/following{/other_user}","gists_url":"https://api.github.com/users/wfleming/gists{/gist_id}","starred_url":"https://api.github.com/users/wfleming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wfleming/subscriptions","organizations_url":"https://api.github.com/users/wfleming/orgs","repos_url":"https://api.github.com/users/wfleming/repos","events_url":"https://api.github.com/users/wfleming/events{/privacy}","received_events_url":"https://api.github.com/users/wfleming/received_events","type":"User","site_admin":false},"created_at":"2018-10-15T16:02:46Z","updated_at":"2018-10-15T16:02:46Z","author_association":"MEMBER","body":"> I can send you core dump or rebuild cc-test-reporter with some debug flags...\r\n\r\nBoth would be useful @mainameiz, thanks.\r\n\r\nCan you also please confirm what URL you're installing the test reporter binary from? And provide some details about the environment you're running this in? (OS version, what CI system, etc.). Thanks."}}
{"actor":{"display_login":"wfleming"}}