Title: Memory corruption take 2 · Issue #461 · swiftwasm/JavaScriptKit · GitHub
Open Graph Title: Memory corruption take 2 · Issue #461 · swiftwasm/JavaScriptKit
X Title: Memory corruption take 2 · Issue #461 · swiftwasm/JavaScriptKit
Description: I still see the following crash if I re-enable the Examples/Testing tests. JavaScriptKit/Plugins/PackageToJS/Tests/ExampleTests.swift Lines 249 to 250 in 84243a4 // FIXME: This test fails on Swift 6.3 and later due to memory corruption /...
Open Graph Description: I still see the following crash if I re-enable the Examples/Testing tests. JavaScriptKit/Plugins/PackageToJS/Tests/ExampleTests.swift Lines 249 to 250 in 84243a4 // FIXME: This test fails on Swift ...
X Description: I still see the following crash if I re-enable the Examples/Testing tests. JavaScriptKit/Plugins/PackageToJS/Tests/ExampleTests.swift Lines 249 to 250 in 84243a4 // FIXME: This test fails on Swift ...
Opengraph URL: https://github.com/swiftwasm/JavaScriptKit/issues/461
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Memory corruption take 2","articleBody":"I still see the following crash if I re-enable the `Examples/Testing` tests.\n\nhttps://github.com/swiftwasm/JavaScriptKit/blob/84243a4c66d47e17c540bbdc17ef49f191840a07/Plugins/PackageToJS/Tests/ExampleTests.swift#L249-L250\n\n```\n\n RuntimeError: memory access out of bounds\n at CounterPackageTests.xctest.dlmalloc (wasm://wasm/CounterPackageTests.xctest-0f40d596:wasm-function[89702]:0x115e7de)\n at CounterPackageTests.xctest.malloc (wasm://wasm/CounterPackageTests.xctest-0f40d596:wasm-function[89701]:0x115e22a)\n at CounterPackageTests.xctest.swift::Demangle::__runtime::Demangler::demangleBoundGenerics(swift::Demangle::__runtime::Vector\u003cswift::Demangle::__runtime::Node*\u003e\u0026, swift::Demangle::__runtime::Node*\u0026) (wasm://wasm/CounterPackageTests.xctest-0f40d596:wasm-function[28248]:0x522adc)\n at CounterPackageTests.xctest.swift::Demangle::__runtime::Demangler::demangleBoundGenericType() (wasm://wasm/CounterPackageTests.xctest-0f40d596:wasm-function[28200]:0x512379)\n at CounterPackageTests.xctest.swift::Demangle::__runtime::Demangler::demangleOperator() (wasm://wasm/CounterPackageTests.xctest-0f40d596:wasm-function[28174]:0x50e156)\n at CounterPackageTests.xctest.swift::Demangle::__runtime::Demangler::demangleType(__swift::__runtime::llvm::StringRef, std::__2::function\u003cswift::Demangle::__runtime::Node* (swift::Demangle::__runtime::SymbolicReferenceKind, swift::Demangle::__runtime::Directness, int, void const*)\u003e) (wasm://wasm/CounterP\nackageTests.xctest-0f40d596:wasm-function[28172]:0x50db25)\n at CounterPackageTests.xctest.swift_getTypeByMangledName (wasm://wasm/CounterPackageTests.xctest-0f40d596:wasm-function[27912]:0x4ee2ad)\n at CounterPackageTests.xctest.(anonymous namespace)::DecodedMetadataBuilder::resolveOpaqueType(swift::Demangle::__runtime::Node*, __swift::__runtime::llvm::ArrayRef\u003c__swift::__runtime::llvm::ArrayRef\u003cswift::MetadataPackOrValue\u003e\u003e, unsigned int) (wasm://wasm/CounterPackageTests.xctest-0f40d596:wasm-functio\nn[27992]:0x500764)\n at CounterPackageTests.xctest.swift::Demangle::__runtime::TypeDecoder\u003c(anonymous namespace)::DecodedMetadataBuilder\u003e::decodeMangledType(swift::Demangle::__runtime::Node*, unsigned int, bool) (wasm://wasm/CounterPackageTests.xctest-0f40d596:wasm-function[27925]:0x4f3cfe)\n at CounterPackageTests.xctest.swift::Demangle::__runtime::TypeDecoder\u003c(anonymous namespace)::DecodedMetadataBuilder\u003e::decodeGenericArgs(swift::Demangle::__runtime::Node*, unsigned int, __swift::__runtime::llvm::SmallVectorImpl\u003cswift::MetadataPackOrValue\u003e\u0026) (wasm://wasm/CounterPackageTests.xctest-0f40d596\n:wasm-function[27971]:0x4fc426)\n```\n\nToolchain version: DEVELOPMENT-SNAPSHOT-2025-10-02-a","author":{"url":"https://github.com/kateinoigakukun","@type":"Person","name":"kateinoigakukun"},"datePublished":"2025-10-24T08:14:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/461/JavaScriptKit/issues/461"}
| 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:c88b4ea4-fde2-99b8-2a9a-98df09ca93e3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D29A:1D1BED:1A1A752:2528B72:6978D95B |
| html-safe-nonce | 2e81fce789aba22204c1b96f524224ab2dc2562cc405c095c6fe4672c535adbd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjlBOjFEMUJFRDoxQTFBNzUyOjI1MjhCNzI6Njk3OEQ5NUIiLCJ2aXNpdG9yX2lkIjoiNzAwNTg2MzQ0NTY5Mzc4MjM2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d0418979691ad6b65775e4065e7829c429d07ed7923ae8b315cfddcc6f6b0a64 |
| hovercard-subject-tag | issue:3548191695 |
| 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/swiftwasm/JavaScriptKit/461/issue_layout |
| twitter:image | https://opengraph.githubassets.com/622b41bdc6f66bd1f58f1d38960eda21c4e523dd7e7c99fdb8aa1157d5662a8e/swiftwasm/JavaScriptKit/issues/461 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/622b41bdc6f66bd1f58f1d38960eda21c4e523dd7e7c99fdb8aa1157d5662a8e/swiftwasm/JavaScriptKit/issues/461 |
| og:image:alt | I still see the following crash if I re-enable the Examples/Testing tests. JavaScriptKit/Plugins/PackageToJS/Tests/ExampleTests.swift Lines 249 to 250 in 84243a4 // FIXME: This test fails on Swift ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kateinoigakukun |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8a71ca1f7ab5436216e1df86f398ef7a51ed3152c90e3f7332fc70cf97fcb9d6 |
| turbo-cache-control | no-preview |
| go-import | github.com/swiftwasm/JavaScriptKit git https://github.com/swiftwasm/JavaScriptKit.git |
| octolytics-dimension-user_id | 49500752 |
| octolytics-dimension-user_login | swiftwasm |
| octolytics-dimension-repository_id | 244832006 |
| octolytics-dimension-repository_nwo | swiftwasm/JavaScriptKit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 244832006 |
| octolytics-dimension-repository_network_root_nwo | swiftwasm/JavaScriptKit |
| 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 | eaed570eead52a9920afef75dc3eb6d826fdc5ef |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width