Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
My app sometimes crashes with this on startup: https://gist.github.com/alanmcgovern/4c4c3f835ebab4b42cc1
Rolf found out it was not a threadsafe function and will crash your app if used:
The crashing thread is:
Thread 1 Crashed:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_c.dylib 0x00007fff90ec3a9b __findenv + 90
1 libsystem_c.dylib 0x00007fff90ec3b1f getenv + 29
2 libdispatch.dylib 0x00007fff92202321 _dispatch_mgr_init + 179
3 libdispatch.dylib 0x00007fff9220224a _dispatch_mgr_thread + 16
4 libdispatch.dylib 0x00007fff92200bef _dispatch_root_queue_drain + 463
5 libdispatch.dylib 0x00007fff922021a3 _dispatch_worker_thread + 101
6 libsystem_pthread.dylib 0x00007fff909ed05a _pthread_body + 131
7 libsystem_pthread.dylib 0x00007fff909ecfd7 _pthread_start + 176
8 libsystem_pthread.dylib 0x00007fff909ea3ed thread_start + 13
This seems to be because setenv isn't threadsafe (!!!).
So we need to remove our setenv usage (alternatively only use it while we can sure the only thread is the main thread, but I don't think we can make that guarantee easily).
I'm starting to see this more frequently now, I have 4 crash reports from the two last days.