Skip to content

Crash on iOS: EXC_BAD_ACCESS in ossl_init_thread_start during ziti_enroll flow (OpenSSL / Ziti SDK threading issue) #275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
irsyadabdillah opened this issue Apr 29, 2025 · 4 comments

Comments

@irsyadabdillah
Copy link

irsyadabdillah commented Apr 29, 2025

We are encountering a consistent crash on iOS when calling Ziti.enroll() in our app. The crash always occurs in the OpenSSL (ossl_init_thread_start) area.

Is there a known issue with how threading or OpenSSL is handled during enrollment on iOS, or could this be related to how ziti-sdk-c initializes its internals in that context?

Image
@scareything
Copy link
Member

I'm not aware of any known issues. Can you give me some details about your setup and your app? Which version of ziti-sdk-swift are you seeing this with? Did enrollment work for you at any point?

@irsyadabdillah
Copy link
Author

irsyadabdillah commented Apr 29, 2025 via email

@Dicky019
Copy link

Dicky019 commented May 21, 2025

try running this before running ziti:

    ziti.forget()

or remove zidFile:

  private var zidFile: String {
    let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
    return paths[0].appendingPathComponent("zid.json", isDirectory: false).path
  }

@scareything
Copy link
Member

I'm still not sure why you're seeing this. Do you see the same issue on macOS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants