{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/9239","labels_url":"https://api.github.com/repos/npm/npm/issues/9239/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/9239/comments","events_url":"https://api.github.com/repos/npm/npm/issues/9239/events","html_url":"https://github.com/npm/npm/issues/9239","id":100366759,"number":9239,"title":" npm@3.2.2 pack \"Maximum call stack size exceeded\"","user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/blocker","name":"blocker","color":"ffa0a0"},{"url":"https://api.github.com/repos/npm/npm/labels/bug","name":"bug","color":"C40233"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/npm/npm/milestones/40","html_url":"https://github.com/npm/npm/milestones/3.x-next-next","labels_url":"https://api.github.com/repos/npm/npm/milestones/40/labels","id":1255856,"number":40,"title":"3.x-next-next","description":"","creator":{"login":"iarna","id":983798,"avatar_url":"https://avatars.githubusercontent.com/u/983798?v=3","gravatar_id":"","url":"https://api.github.com/users/iarna","html_url":"https://github.com/iarna","followers_url":"https://api.github.com/users/iarna/followers","following_url":"https://api.github.com/users/iarna/following{/other_user}","gists_url":"https://api.github.com/users/iarna/gists{/gist_id}","starred_url":"https://api.github.com/users/iarna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iarna/subscriptions","organizations_url":"https://api.github.com/users/iarna/orgs","repos_url":"https://api.github.com/users/iarna/repos","events_url":"https://api.github.com/users/iarna/events{/privacy}","received_events_url":"https://api.github.com/users/iarna/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2015-08-14T20:44:50Z","updated_at":"2015-08-17T11:13:18Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-08-11T17:43:57Z","updated_at":"2015-08-17T15:57:48Z","closed_at":null,"body":"Hello Friends of NPM,\r\n\r\nI believe this is similar to #8138. Some algo within pack may need to be adjusted, as it blows the stack with large module trees.\r\n\r\n#### steps to reproduce:\r\n\r\n```sh\r\n-> git clone https://github.com/ember-cli/ember-cl\r\n-> cd ember-cli\r\n-> npm i -g npm@3.2.2\r\n-> npm pack\r\nnpm ERR! Darwin 14.4.0\r\nnpm ERR! argv \"/usr/local/bin/iojs\" \"/usr/local/bin/npm\" \"pack\"\r\nnpm ERR! node v2.2.1\r\nnpm ERR! npm  v3.2.2\r\n\r\nnpm ERR! Maximum call stack size exceeded\r\nnpm ERR!\r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <https://github.com/npm/npm/issues>\r\nnpm ERR! Darwin 14.4.0\r\nnpm ERR! argv \"/usr/local/bin/iojs\" \"/usr/local/bin/npm\" \"pack\"\r\nnpm ERR! node v2.2.1\r\nnpm ERR! npm  v3.2.2\r\n\r\nnpm ERR! Maximum call stack size exceeded\r\nnpm ERR!\r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <https://github.com/npm/npm/issues>\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /Users/stefanpenner/src/ember-cli/npm-debug.log\r\n```\r\n\r\n*note:\r\nI was going to try master, but noticed the only commit since releasing 3.2.2 has been a changelog edit.*"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/131872481","html_url":"https://github.com/npm/npm/issues/9239#issuecomment-131872481","issue_url":"https://api.github.com/repos/npm/npm/issues/9239","id":131872481,"user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T15:57:48Z","updated_at":"2015-08-17T15:57:48Z","body":"just gave `v3.3.0` a go, and the same issue appears:\r\n\r\n```\r\nnpm version\r\n{ 'ember-cli': '1.13.8',\r\n  npm: '3.3.0',\r\n  ares: '1.10.1-DEV',\r\n  http_parser: '2.5.0',\r\n  modules: '44',\r\n  node: '2.2.1',\r\n  openssl: '1.0.2a',\r\n  uv: '1.5.0',\r\n  v8: '4.2.77.20',\r\n  zlib: '1.2.8' }\r\n```\r\n\r\nresulted in:\r\n\r\n```\r\n➜  ember-cli git:(master) npm pack -ddd\r\nnpm info it worked if it ends with ok\r\nnpm verb cli [ '/usr/local/bin/iojs', '/usr/local/bin/npm', 'pack', '-ddd' ]\r\nnpm info using npm@3.3.0\r\nnpm info using node@v2.2.1\r\nnpm sill cache add args [ '.', null ]\r\nnpm verb cache add spec .\r\nnpm sill cache add parsed spec { raw: '.',\r\nnpm sill cache add   scope: null,\r\nnpm sill cache add   name: null,\r\nnpm sill cache add   rawSpec: '.',\r\nnpm sill cache add   spec: '/Users/stefanpenner/src/ember-cli',\r\nnpm sill cache add   type: 'directory' }\r\nnpm verb addLocalDirectory /Users/stefanpenner/.npm/ember-cli/1.13.8/package.tgz not in flight; packing\r\nnpm info prepublish ember-cli@1.13.8\r\nnpm verb tar pack [ '/Users/stefanpenner/.npm/ember-cli/1.13.8/package.tgz',\r\nnpm verb tar pack   '/Users/stefanpenner/src/ember-cli' ]\r\nnpm verb tarball /Users/stefanpenner/.npm/ember-cli/1.13.8/package.tgz\r\nnpm verb folder /Users/stefanpenner/src/ember-cli\r\nnpm verb stack RangeError: Maximum call stack size exceeded\r\nnpm verb stack     at encodeField (/usr/local/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js)\r\nnpm verb stack     at /usr/local/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:139:32\r\nnpm verb stack     at Array.forEach (native)\r\nnpm verb stack     at encodeFields (/usr/local/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:98:23)\r\nnpm verb stack     at /usr/local/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:137:32\r\nnpm verb stack     at Array.forEach (native)\r\nnpm verb stack     at encodeFields (/usr/local/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:98:23)\r\nnpm verb stack     at /usr/local/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:137:32\r\nnpm verb stack     at Array.forEach (native)\r\nnpm verb stack     at encodeFields (/usr/local/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:98:23)\r\nnpm verb cwd /Users/stefanpenner/src/ember-cli\r\nnpm ERR! Darwin 14.4.0\r\nnpm ERR! argv \"/usr/local/bin/iojs\" \"/usr/local/bin/npm\" \"pack\" \"-ddd\"\r\nnpm ERR! node v2.2.1\r\nnpm ERR! npm  v3.3.0\r\n\r\nnpm ERR! Maximum call stack size exceeded\r\nnpm ERR!\r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <https://github.com/npm/npm/issues>\r\nnpm verb exit [ 1, true ]\r\nnpm verb stack RangeError: Maximum call stack size exceeded\r\nnpm verb stack     at encodeField (/usr/local/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js)\r\nnpm verb stack     at /usr/local/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:139:32\r\nnpm verb stack     at Array.forEach (native)\r\nnpm verb stack     at encodeFields (/usr/local/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:98:23)\r\nnpm verb stack     at /usr/local/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:137:32\r\nnpm verb stack     at Array.forEach (native)\r\nnpm verb stack     at encodeFields (/usr/local/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:98:23)\r\nnpm verb stack     at /usr/local/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:137:32\r\nnpm verb stack     at Array.forEach (native)\r\nnpm verb stack     at encodeFields (/usr/local/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js:98:23)\r\nnpm verb cwd /Users/stefanpenner/src/ember-cli\r\nnpm ERR! Darwin 14.4.0\r\nnpm ERR! argv \"/usr/local/bin/iojs\" \"/usr/local/bin/npm\" \"pack\" \"-ddd\"\r\nnpm ERR! node v2.2.1\r\nnpm ERR! npm  v3.3.0\r\n\r\nnpm ERR! Maximum call stack size exceeded\r\nnpm ERR!\r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <https://github.com/npm/npm/issues>\r\nnpm verb exit [ 1, true ]\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /Users/stefanpenner/src/ember-cli/npm-debug.log\r\n```\r\n\r\nand the [npm-debug.log](https://gist.github.com/stefanpenner/bd9b11b13ad88d01922d)\r\n\r\n–––\r\n\r\nGoing to checkout the safe branch next."}}