Title: Crash on llint_op_call_varargs on certain JS sources · Issue #28 · phoboslab/JavaScriptCore-iOS · GitHub
Open Graph Title: Crash on llint_op_call_varargs on certain JS sources · Issue #28 · phoboslab/JavaScriptCore-iOS
X Title: Crash on llint_op_call_varargs on certain JS sources · Issue #28 · phoboslab/JavaScriptCore-iOS
Description: Hi folks, Wondering if anyone has experienced crashes on llint_op_call_varargs for certain JS sources. It happens only when running on a device (ARM arch) and not on a simulator. Here's where it crashes: ios`llint_op_call_varargs: 0x29be...
Open Graph Description: Hi folks, Wondering if anyone has experienced crashes on llint_op_call_varargs for certain JS sources. It happens only when running on a device (ARM arch) and not on a simulator. Here's where it cr...
X Description: Hi folks, Wondering if anyone has experienced crashes on llint_op_call_varargs for certain JS sources. It happens only when running on a device (ARM arch) and not on a simulator. Here's where i...
Opengraph URL: https://github.com/phoboslab/JavaScriptCore-iOS/issues/28
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash on llint_op_call_varargs on certain JS sources","articleBody":"Hi folks,\n\nWondering if anyone has experienced crashes on `llint_op_call_varargs` for certain JS sources. It happens only when running on a device (ARM arch) and not on a simulator.\n\nHere's where it crashes:\n\n```\nios`llint_op_call_varargs:\n0x29beb4: mov r0, r7\n0x29beb6: mov r1, r8\n0x29beb8: bl 0x295960 ; llint_slow_path_size_and_alloc_frame_for_varargs\n0x29bebc: mov r8, r0\n0x29bebe: mov r7, r1\n0x29bec0: ldr r4, [r7, #0x10]\n0x29bec2: movw r12, #0x0\n0x29bec6: movt r12, #0xffff\n0x29beca: ands.w r4, r4, r12\n0x29bece: ldr.w r4, [r4, #1076]\n0x29bed2: movw r12, #0x5f28\n0x29bed6: add r12, r4\n0x29bed8: mvn r10, #0x5\n0x29bedc: ldr.w r11, [r12]\n0x29bee0: cmp r11, r10\n0x29bee2: beq 0x29bee8 ; llint_op_call_varargs + 52\n0x29bee4: b.w 0x29ab12 ; llint_throw_from_slow_path_trampoline\n0x29bee8: str.w r8, [r7, #36]\n0x29beec: mov r0, r7\n0x29beee: mov r1, r8\n0x29bef0: bl 0x2959e8 ; llint_slow_path_call_varargs\n0x29bef4: mov r7, r1\n0x29bef6: blx r0\n0x29bef8: ldr.w r8, [r7, #36] ; \u003c--------------- Thread 1: EXC_BAD_ACCESS (code=1, address=0x24)\n0x29befc: ldr.w r2, [r8, #4]\n0x29bf00: add.w r10, r7, r2, lsl #3\n0x29bf04: str.w r1, [r10, #4]\n0x29bf08: str.w r0, [r7, r2, lsl #3]\n0x29bf0c: ldr.w r4, [r8, #28]\n0x29bf10: str r1, [r4, #0x10]\n0x29bf12: str r0, [r4, #0xc]\n0x29bf14: adds.w r8, r8, #0x20\n0x29bf18: ldr.w r10, [r8]\n0x29bf1c: mov pc, r10\n```\n\nThe JS code is rather long and I can't really share it, since it's not yet in the public domain, but so far I've been able to find two potential causes for the issue:\n- At some point we had too many methods attached to an object. When we inlined some of the private methods and thus made the method count lower, it stopped crashing there. This no longer seems to help (or I can't really find the object which has too many methods attached to it).\n- Uglifying the code sometimes helps, sometimes doesn't.\n\nI'm wondering if anyone has run into this issue or if they have any idea how this could be resolved. \n\nThanks a lot!\n","author":{"url":"https://github.com/pdobrev","@type":"Person","name":"pdobrev"},"datePublished":"2015-02-08T11:30:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/28/JavaScriptCore-iOS/issues/28"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:957aa182-5d0a-ea25-adee-6a8962f06c52 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C974:A87A4:CEC063:12159F7:6970BE58 |
| html-safe-nonce | cc5640750f22d0bc5800ff7e941b19d2d60477736fd65a573db0fd72cfa9d583 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTc0OkE4N0E0OkNFQzA2MzoxMjE1OUY3OjY5NzBCRTU4IiwidmlzaXRvcl9pZCI6IjMxNDk4MjQwNDMzNTk3MTQ5MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a9f5af0cfa946dc276b5f07a505624a7f49aaac494468c59cf89e8ca55782f21 |
| hovercard-subject-tag | issue:56948361 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/phoboslab/JavaScriptCore-iOS/28/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5c8e4057d7161bdefb8d7ecc84529e3bc3104110e826471dfd0db3bba5d6d2f8/phoboslab/JavaScriptCore-iOS/issues/28 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5c8e4057d7161bdefb8d7ecc84529e3bc3104110e826471dfd0db3bba5d6d2f8/phoboslab/JavaScriptCore-iOS/issues/28 |
| og:image:alt | Hi folks, Wondering if anyone has experienced crashes on llint_op_call_varargs for certain JS sources. It happens only when running on a device (ARM arch) and not on a simulator. Here's where it cr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pdobrev |
| hostname | github.com |
| expected-hostname | github.com |
| None | bb43a7bc61aba1b91c3c5cf8e7d00342e1e77a0cfe55a141222dbd7f9782d26f |
| turbo-cache-control | no-preview |
| go-import | github.com/phoboslab/JavaScriptCore-iOS git https://github.com/phoboslab/JavaScriptCore-iOS.git |
| octolytics-dimension-user_id | 443987 |
| octolytics-dimension-user_login | phoboslab |
| octolytics-dimension-repository_id | 6971467 |
| octolytics-dimension-repository_nwo | phoboslab/JavaScriptCore-iOS |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 6971467 |
| octolytics-dimension-repository_network_root_nwo | phoboslab/JavaScriptCore-iOS |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 34817b01ad7cdf8b2beb35ea7b0e2a7609004eff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width