GithubHelp home page GithubHelp logo

Comments (3)

scareything avatar scareything commented on June 6, 2024 2

I see what’s happening now. The apple tunnelers call Ziti.enroll which calls ziti_enroll from the ziti-sdk-c library, and ziti_enroll immediately calls ziti_log_init.

The enrollment happens in a different thread than the one that initially called ziti_log_init, and the logic there is not prepared to be called from multiple threads. So when ziti_log_init is called during enrollment, it is passed a uv_loop that is private to the Ziti.enroll. This loop pointer is then assigned to the library's internal loop, and it becomes invalid when Ziti.enroll is no longer in scope.

Ultimately ziti_enroll should not be concerned with initializing the log functions. That is the responsibility of the calling application (the apple tunnelers in this case). So the likely (and easy!) fix for these crashes will be to simply remove the call to ziti_log_init. I've started a branch with that change and I'm testing it in the Apple tunnelers as well as ziti-edge-tunnel.

An update to this repo that pulls in the fixed ziti-sdk-c dependency is forthcoming.

from ziti-sdk-swift.

IT-LiuSir avatar IT-LiuSir commented on June 6, 2024

iPhone is clicked many times, and the current page stays too long, click again will crash
image

from ziti-sdk-swift.

smilindave26 avatar smilindave26 commented on June 6, 2024

Can you reproduce and send the logs? You send them in an email by selecting "Send Feedback" from the app (by default this will send the logs to help at openziti dot org. "app.log" will be the more interesting one in this case.

from ziti-sdk-swift.

Related Issues (17)

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.