{"action":"created","issue":{"url":"https://api.github.com/repos/erlware/relx/issues/312","labels_url":"https://api.github.com/repos/erlware/relx/issues/312/labels{/name}","comments_url":"https://api.github.com/repos/erlware/relx/issues/312/comments","events_url":"https://api.github.com/repos/erlware/relx/issues/312/events","html_url":"https://github.com/erlware/relx/issues/312","id":56497611,"number":312,"title":"Crash while creating tar file","user":{"login":"arjan","id":24722,"avatar_url":"https://avatars.githubusercontent.com/u/24722?v=3","gravatar_id":"","url":"https://api.github.com/users/arjan","html_url":"https://github.com/arjan","followers_url":"https://api.github.com/users/arjan/followers","following_url":"https://api.github.com/users/arjan/following{/other_user}","gists_url":"https://api.github.com/users/arjan/gists{/gist_id}","starred_url":"https://api.github.com/users/arjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arjan/subscriptions","organizations_url":"https://api.github.com/users/arjan/orgs","repos_url":"https://api.github.com/users/arjan/repos","events_url":"https://api.github.com/users/arjan/events{/privacy}","received_events_url":"https://api.github.com/users/arjan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-04T09:03:12Z","updated_at":"2015-02-04T14:14:25Z","closed_at":null,"body":"This happens when generating a release using `exrm`, which calls `relx` using the following command line:\r\n\r\n    /home/arjan/devel/example/exampleapp/_build/prod/lib/exrm/priv/bin/relx tar -V 1 --root /home/arjan/devel/example/exampleapp --config /home/arjan/devel/example/exampleapp/rel/files/relx.config --relname exampleapp --relvsn 1.0.3 --output-dir /home/arjan/devel/example/exampleapp/rel\r\n\r\n```\r\n{{case_clause,\r\n     {'EXIT',\r\n         {{badmatch,539},\r\n          [{erl_tar,create_header,3,[{file,\"erl_tar.erl\"},{line,367}]},\r\n           {erl_tar,add1,4,[{file,\"erl_tar.erl\"},{line,305}]},\r\n           {erl_tar,foreach_while_ok,2,[{file,\"erl_tar.erl\"},{line,912}]},\r\n           {systools_make,add_to_tar,3,\r\n               [{file,\"systools_make.erl\"},{line,1878}]},\r\n           {systools_make,add_appl,7,[{file,\"systools_make.erl\"},{line,1749}]},\r\n           {systools_make,'-add_applications/5-fun-0-',6,\r\n               [{file,\"systools_make.erl\"},{line,1568}]},\r\n           {lists,foldl,3,[{file,\"lists.erl\"},{line,1261}]},\r\n           {systools_make,add_applications,5,\r\n               [{file,\"systools_make.erl\"},{line,1567}]}]}}},\r\n [{systools_make,'-add_applications/5-fun-0-',6,\r\n      [{file,\"systools_make.erl\"},{line,1568}]},\r\n  {lists,foldl,3,[{file,\"lists.erl\"},{line,1261}]},\r\n  {systools_make,add_applications,5,[{file,\"systools_make.erl\"},{line,1567}]},\r\n  {systools_make,mk_tar,6,[{file,\"systools_make.erl\"},{line,1561}]},\r\n  {systools_make,mk_tar,5,[{file,\"systools_make.erl\"},{line,1537}]},\r\n  {systools_make,make_tar,2,[{file,\"systools_make.erl\"},{line,335}]},\r\n  {rlx_prv_archive,make_tar,3,[{file,\"src/rlx_prv_archive.erl\"},{line,74}]},\r\n  {relx,run_provider,2,[{file,\"src/relx.erl\"},{line,280}]}]}\r\n```\r\n\r\nThe weird thing is that it crashes inside erl_tar on the header creation:\r\n\r\nhttps://github.com/erlang/otp/blob/maint/lib/stdlib/src/erl_tar.erl#L414\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/erlware/relx/issues/comments/72860374","html_url":"https://github.com/erlware/relx/issues/312#issuecomment-72860374","issue_url":"https://api.github.com/repos/erlware/relx/issues/312","id":72860374,"user":{"login":"tsloughter","id":36227,"avatar_url":"https://avatars.githubusercontent.com/u/36227?v=3","gravatar_id":"","url":"https://api.github.com/users/tsloughter","html_url":"https://github.com/tsloughter","followers_url":"https://api.github.com/users/tsloughter/followers","following_url":"https://api.github.com/users/tsloughter/following{/other_user}","gists_url":"https://api.github.com/users/tsloughter/gists{/gist_id}","starred_url":"https://api.github.com/users/tsloughter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsloughter/subscriptions","organizations_url":"https://api.github.com/users/tsloughter/orgs","repos_url":"https://api.github.com/users/tsloughter/repos","events_url":"https://api.github.com/users/tsloughter/events{/privacy}","received_events_url":"https://api.github.com/users/tsloughter/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T14:14:24Z","updated_at":"2015-02-04T14:14:24Z","body":"Damn, that looks hairy. Any way you can get me a project that reproduces this issue?"}}