# iOS 17 Address Sanitizer Crash

**URL:** <https://qa.fmod.com/t/ios-17-address-sanitizer-crash/20861>\
**Category:** FMOD Engine\
**Created:** [November 10, 2023, 5:17am UTC](https://qa.fmod.com/t/ios-17-address-sanitizer-crash/20861 "2023-11-10T05:17:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![maksimomelyanchuk](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@maksimomelyanchuk](https://qa.fmod.com/u/maksimomelyanchuk)\
**Post date:** [November 10, 2023, 5:17am UTC](https://qa.fmod.com/t/ios-17-address-sanitizer-crash/20861/1 "2023-11-10T05:17:09Z")

</div>

Problem reproduces only on iOS 17.  
If you try to run iOS application in xcode with address sanitizer you will have an error:

> Address 0x00016bb04080 is a wild pointer inside of access range of size 0x000000000001.  
> SUMMARY: AddressSanitizer: bad-free

Here is code:

```auto
FMOD::Studio::System* _system = nullptr;
FMOD::Studio::System::create(&_system);
_system->initialize(256, FMOD_STUDIO_INIT_NORMAL, FMOD_INIT_NORMAL, nullptr); // Error will be here

```

---

<div class="post-metadata">

**Author:** ![seabaa](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/seabaa/32/2282_2.png) [@seabaa](https://qa.fmod.com/u/seabaa)\
**Post date:** [November 10, 2023, 11:58pm UTC](https://qa.fmod.com/t/ios-17-address-sanitizer-crash/20861/2 "2023-11-10T23:58:23Z")

</div>

I’m also experiencing the same issue. ☹

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [November 15, 2023, 12:50am UTC](https://qa.fmod.com/t/ios-17-address-sanitizer-crash/20861/3 "2023-11-15T00:50:01Z")

</div>

I can reproduce this issue as described, thank you for bringing this to our attention.  
The call stack is inside the iOS libs, possibly a bug in iOS 17. I tried [disabling instrumentation](https://clang.llvm.org/docs/AddressSanitizer.html#disabling-instrumentation-with-attribute-no-sanitize-address) on `Studio::System::initialize`, [suppressing the error](https://clang.llvm.org/docs/AddressSanitizer.html#id10) using `ASAN_OPTIONS`, but find a workaround unfortunately. I have passed this onto the Dev team to investigate further.

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [February 6, 2024, 12:28am UTC](https://qa.fmod.com/t/ios-17-address-sanitizer-crash/20861/4 "2024-02-06T00:28:12Z")

</div>

We think this might have been an iOS17 bug as we can no longer reproduce this since updating to iOS 17.2.1.  
@maksimomelyanchuk or @seabaa can you please try updating to iOS 17.2.1 or later and confirm whether you still get this ASan crash?

---

<div class="post-metadata">

**Author:** ![maksimomelyanchuk](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@maksimomelyanchuk](https://qa.fmod.com/u/maksimomelyanchuk)\
**Post date:** [February 6, 2024, 6:55am UTC](https://qa.fmod.com/t/ios-17-address-sanitizer-crash/20861/5 "2024-02-06T06:55:40Z")

</div>

Yes, update solves the problem. Thank you.
