{"action":"closed","issue":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/13926","labels_url":"https://api.github.com/repos/ariya/phantomjs/issues/13926/labels{/name}","comments_url":"https://api.github.com/repos/ariya/phantomjs/issues/13926/comments","events_url":"https://api.github.com/repos/ariya/phantomjs/issues/13926/events","html_url":"https://github.com/ariya/phantomjs/issues/13926","id":128167818,"number":13926,"title":"phantom 1.9.8 / OS X 10.11.2 malloc crasher","user":{"login":"rdpoor","id":1796161,"avatar_url":"https://avatars.githubusercontent.com/u/1796161?v=3","gravatar_id":"","url":"https://api.github.com/users/rdpoor","html_url":"https://github.com/rdpoor","followers_url":"https://api.github.com/users/rdpoor/followers","following_url":"https://api.github.com/users/rdpoor/following{/other_user}","gists_url":"https://api.github.com/users/rdpoor/gists{/gist_id}","starred_url":"https://api.github.com/users/rdpoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdpoor/subscriptions","organizations_url":"https://api.github.com/users/rdpoor/orgs","repos_url":"https://api.github.com/users/rdpoor/repos","events_url":"https://api.github.com/users/rdpoor/events{/privacy}","received_events_url":"https://api.github.com/users/rdpoor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-22T14:32:51Z","updated_at":"2016-01-30T11:03:49Z","closed_at":"2016-01-30T11:03:49Z","body":"This shouldn't be construed as a full bug report yet (since I haven't converted the crash dump), but I wanted to report a repeatable crasher in case anyone else is seeing it.\r\n\r\nThis casper code:\r\n```\r\n    casper.then(function a04() {\r\n        casper.click(downloader.SUBMIT_BUTTON_CSS);\r\n        console.log('=== A');\r\n    });\r\n\r\n    casper.then(function a05() {\r\n        console.log('=== B');\r\n        casper.waitForSelector('#MyAccountHeader span[ng-bind=\"MyAccountDetailsNew.BSCustomerID\"]',\r\n                               function() { console.log('=== C') },\r\n                               function() { console.log('=== D'); casper.exit(); },\r\n                               30000);\r\n    });\r\n```\r\nresults in the following:\r\n```\r\n[debug] [phantom] Mouse event 'mousedown' on selector: button#btnLogin\r\n[debug] [phantom] Mouse event 'mouseup' on selector: button#btnLogin\r\n[debug] [phantom] Mouse event 'click' on selector: button#btnLogin\r\n=== A\r\n[info] [phantom] Step a04 7/11: done in 4039ms.\r\n[info] [phantom] Step a05 8/11 https://account.taraenergy.com/Home (HTTP 200)\r\n=== B\r\n[info] [phantom] Step a05 8/11: done in 4063ms.\r\n[info] [phantom] Step _step 9/12 https://account.taraenergy.com/Home (HTTP 200)\r\n[info] [phantom] Step _step 9/12: done in 4069ms.\r\nphantomjs(87500,0xa35fa000) malloc: *** mach_vm_map(size=4194304) failed (error code=3)\r\n*** error: can't allocate region\r\n*** set a breakpoint in malloc_error_break to debug\r\nPhantomJS has crashed. Please read the crash reporting guide at https://github.com/ariya/phantomjs/wiki/Crash-Reporting and file a bug report at https://github.com/ariya/phantomjs/issues/new with the crash dump file attached: /tmp/15AA771D-5BB6-4FE3-86F6-8500B093AC28.dmp\r\n```\r\n\r\nIf anyone has read this far, here's a question: I can compile a version of phantom with -g (for debugging), and I know how to start phantom under gdb, but how would I start casper + phantom under gdb?\r\n"}}