Coder Social home page Coder Social logo

Comments (4)

vgorloff avatar vgorloff commented on June 7, 2024 2

Nice. I saw the change in canPrespecializeTarget, but wasn't sure that it will address this issue.
Thank you! @buttaface

@michaelknoch Seems you can try toolchain release based on Swift 5.4.2.

from swift-everywhere-toolchain.

vgorloff avatar vgorloff commented on June 7, 2024

The call /lib/arm/libswiftCore.so (swift_getCanonicalPrespecializedGenericMetadata+20) seems corresponds to this line: https://github.com/apple/swift/blob/swift-5.4.1-RELEASE/stdlib/public/runtime/Metadata.cpp#L805

The call /lib/arm/libswiftCore.so (swift_once+44) seems corresponds to this line: https://github.com/apple/swift/blob/swift-5.4.1-RELEASE/stdlib/public/runtime/Metadata.cpp#L731

The call /lib/arm/libc++_shared.so (std::__ndk1::__call_once(unsigned long volatile&, void*, void (*)(void*))+74) seems corresponds to this line: https://github.com/apple/swift/blob/swift-5.4.1-RELEASE/stdlib/public/runtime/Once.cpp#L65

The remaining two lines /lib/arm/libswiftCore.so seems something what executed inside swift_once:

swift_once(
      token,
      [](void *uncastDescription) {
        auto *description = (const TypeContextDescriptor *)uncastDescription;
        _cacheCanonicalSpecializedMetadata(description);
      },
      (void *)description)

Maybe like something wrong with _cacheCanonicalSpecializedMetadata(description) call. Or maybe with call to std::__ndk1::__call_once.

Seems you need a debug build of libswiftCore to see more symbols.

from swift-everywhere-toolchain.

finagolfin avatar finagolfin commented on June 7, 2024

This is a known issue with Swift 5.4, apple/swift#36658, that was fixed with Swift 5.4.2, which I see Vlad just released.

from swift-everywhere-toolchain.

michaelknoch avatar michaelknoch commented on June 7, 2024

seems to work, the crash does not happen when using the 5.4.2 release. thanks @buttaface @vgorloff !

from swift-everywhere-toolchain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.