I get a crash on iOS with this dump:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Subtype: KERN_PROTECTION_FAILURE at 0x0000000104455bf0
Exception Codes: 0x0000000000000002, 0x0000000104455bf0
Thread 0 name:
Thread 0 Crashed:
0 libsystem_platform.dylib 0x00000001fe6603ec 0x1fe65f000 + 5100
1 MyApp 0x000000010433d5b8 nimSetMem__systemZmemory_7 + 48
2 MyApp 0x000000010430ce28 nimZeroMem + 44
3 MyApp 0x0000000104309bd4 zeroMem__system_1712 + 32
4 MyApp 0x0000000104309b50 allocShared0Impl__system_1746 + 44
5 MyApp 0x000000010430f68c alignedAlloc0__system_1903 + 52
6 MyApp 0x00000001043118a8 nimNewObj + 328
7 MyApp 0x0000000104456a5c one__OOZOOZOOZOOZOnimbleZpkgs50Zchronos4551O50O484553555651485455535652ac54564950eb5452b56525352ea54f57c5755ff49505450aZchronosZstreamsZtlsstream_1715 + 164
8 MyApp 0x00000001045337e8 tlsLoop__OOZOOZOOZOOZOnimbleZpkgs50Zchronos4551O50O484553555651485455535652ac54564950eb5452b56525352ea54f57c5755ff49505450aZchronosZstreamsZtlsstream_1557 + 7880
9 MyApp 0x000000010444333c futureContinue__OOZOOZOOZOOZOnimbleZpkgs50Zchronos4551O50O484553555651485455535652ac54564950eb5452b56525352ea54f57c5755ff49505450aZchronosZasyncloop_12597 + 72
10 MyApp 0x000000010444326c internalContinue__OOZOOZOOZOOZOnimbleZpkgs50Zchronos4551O50O484553555651485455535652ac54564950eb5452b56525352ea54f57c5755ff49505450aZchronosZasyncloop_12599 + 100
11 MyApp 0x000000010443eb44 poll__OOZOOZOOZOOZOnimbleZpkgs50Zchronos4551O50O484553555651485455535652ac54564950eb5452b56525352ea54f57c5755ff49505450aZchronosZasyncloop_8248 + 6400
12 MyApp 0x000000010443ff88 waitFor__OOZOOZOOZOOZOnimbleZpkgs50Zwiish4548O53O4845b48bec51505657544853a53dfded5751ca5757ea5449e505054bb57d52c49ZwiishZasync_185 + 172
I'm compiling with --threads:on (because I use threads in the application) and --tlsEmulation:off w/ nim 1.6.18
Any suggestions for debugging this? Or anything obvious jump out at you?