Comments (3)
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.
iPhone is clicked many times, and the current page stays too long, click again will crash
from ziti-sdk-swift.
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)
- Jazzy documentation update needed
- NetFoundry info embedded in project
- [email protected] "hardcoded", I don't think I can "Build Manually" HOT 1
- README Artifactory reference is obsolete
- XCFramework, binary distribution as Swift Package
- Move API docs to github pages HOT 6
- Add sample with acync/await REST calls HOT 1
- Whether socket interception is supported HOT 4
- Deprecate CZiti-iOS.podspec and CZiti-macOS.podspec in favor of CZiti.podspec HOT 1
- some error after import CZiti.xcframework HOT 2
- How to change the TLS handshake signature algorithm? HOT 2
- TLS handshake error on iPhone device HOT 13
- Whether to change hosts HOT 1
- initCallback is not called when first Ziti event is received
- 'ziti/ziti.h' file not found HOT 3
- crash uv_now(ts_loop) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ziti-sdk-swift.