Skip to content
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

App crashes on malloc request after app restart triggered by Intune SDK #426

Open
niminim44 opened this issue May 1, 2024 · 8 comments
Open
Assignees

Comments

@niminim44
Copy link

Describe the bug:
C++ call to malloc crashes the app after a restart has been triggered by Intune SDK.

To Reproduce
Steps to reproduce the behavior:

  1. Launch the app and trigger a successful loginAndEnroll request.
  2. wait for APP to be calculated and for Intune to trigger an app restart.
  3. App will crash on my low level SDK when it calls malloc.

Expected behavior:
Expecting app not to crash, malloc requests should work, and Intune should apply APP correctly.

tested on different devices and different OS versions. crash is consistent.

Intune App SDK for iOS (please complete the following information):

  • What version of the Intune SDK are you using? Are you using the latest version? using latest version 9.2.0

  • What platform is your app based in (native, Xamarin based, Cordova, etc)? App is native.

  • For errors during build, does the app build without Intune SDK integration? ---

  • For errors post build, does the app launch without being Intune SDK integrated? YES

  • Who is the customer? Any intune user that has APP

  • Do you see a trend with it only being reproduced on a specific device? NO

@jitheshncxe jitheshncxe self-assigned this May 2, 2024
@jitheshncxe
Copy link

@niminim44 , had you collected/reviewed crash logs and see if that can provide additional clues? if so, do you see any of the MAM SDK APis on the stack? REF: https://developer.apple.com/library/archive/technotes/tn2151/_index.html

@niminim44
Copy link
Author

Hi @jitheshncxe

The crash logs have no MAM SDK APIs, but I have a feeling this is related to one of Intune hooks on app launch.

I am using Chromium in my code, and it has some checks related to the validity of memory zones in the app:
https://chromium.googlesource.com/external/github.com/google/proto-quic/+/refs/heads/merge-to-59.0.3056.0/src/base/allocator/malloc_zone_functions_mac.cc#26

This macro function is evaluated to be false since all the function pointers are NULL. As a result the app crashes.

@jitheshncxe
Copy link

@niminim44, could you please share the full crash logs for me to take a look?

@niminim44
Copy link
Author

image (1)

@jitheshncxe
Copy link

Thanks @niminim44...Given the crash logs don't give us a clue, is it possible for you to share a minimal project which we could use to reproduce the error locally?

@niminim44
Copy link
Author

niminim44 commented May 6, 2024

From privacy concerns I would prefer not to share it on this thread. Can you please send me (niminim44@gmail.com) or share here an email that I can share it with? (or any other private communication method)
THX!

@jitheshncxe
Copy link

jitheshncxe commented May 9, 2024

HI @niminim44 , I will send an email my from official id. Please share full crash logs (not the only crashing thread stack) and a repro application and will try to see what the issue may be...

@jitheshncxe
Copy link

@niminim44 , just checking if you had received an email from my official id and could share the repro and full crash logs so that we can look further into this issue...Thanks!

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

2 participants