Bug 26848 - SIGSEGV when using CoreLocation
Summary: SIGSEGV when using CoreLocation
Status: CLOSED NOT_REPRODUCIBLE
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 8.6.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-02-08 20:44 UTC by Sergi Czerkasow
Modified: 2015-02-11 03:40 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
CLOSED NOT_REPRODUCIBLE

Description Sergi Czerkasow 2015-02-08 20:44:29 UTC
When i try to set up core location and range for beacon - app crashes as soon as it encounters a beacon.
(i suspect that its the moment when it discovers something. since the same code works fine when beacon is disabled)

error message :
2015-02-09 01:27:49.264 MindfulSavings[251:17829] core location manager initiated
2015-02-09 01:27:49.265 MindfulSavings[251:17829] start monitoring
2015-02-09 01:27:49.286 MindfulSavings[251:17829] beacons recovered from settings
2015-02-09 01:27:49.487 MindfulSavings[251:17829] ranging beacon :2B70733E-AF78-42C0-B94E-580332641D82 region : Entrance
2015-02-09 01:27:49.489 MindfulSavings[251:17829] ranging beacon :49A7B4FB-736D-469F-846B-A27C8F2D4C88 region : Front Door
2015-02-09 01:27:49.490 MindfulSavings[251:17829] ranging beacon :D0ECCC80-9B7D-4113-A5CD-4EEF9D844E97 region : Beacon 1
2015-02-09 01:27:49.491 MindfulSavings[251:17829] ranging beacon :47C7E9D9-8431-4D35-B2AB-F0EB4BACE48A region : Beacon 4
2015-02-09 01:27:49.492 MindfulSavings[251:17829] ranging beacon :E8829FAA-F9BF-4941-BF3E-85A224C62E58 region : Beacon 3
2015-02-09 01:27:49.492 MindfulSavings[251:17829] ranging beacon :022BDC6C-837C-4E7F-839E-BD0A0E574C93 region : Beacon 2
2015-02-09 01:27:49.493 MindfulSavings[251:17829] ranging beacon :37B8266C-9161-4EAE-83B2-5C95BDD48623 region : Beacon 5 
2015-02-09 01:27:49.494 MindfulSavings[251:17829] ranging beacon :9B0C1E90-AB86-4E99-8F4A-6C08DA37FC45 region : Beacon 6
2015-02-09 01:27:49.495 MindfulSavings[251:17829] ranging beacon :3E3406B5-F643-45B1-B539-A6E8269A5033 region : Andy Test
2015-02-09 01:27:49.580 MindfulSavings[251:17829] dish recovered from settings
2015-02-09 01:27:49.602 MindfulSavings[251:17829] dish categories recovered from settings
2015-02-09 01:27:49.819 MindfulSavings[251:17829] critical: Stacktrace:

2015-02-09 01:27:49.821 MindfulSavings[251:17829] critical:   at <unknown> <0xffffffff>
2015-02-09 01:27:49.822 MindfulSavings[251:17829] critical:   at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0xffffffff>
2015-02-09 01:27:49.824 MindfulSavings[251:17829] critical:   at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:62
2015-02-09 01:27:49.825 MindfulSavings[251:17829] critical:   at UIKit.UIApplication.Main (string[],string,string) [0x0001c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:45
2015-02-09 01:27:49.825 MindfulSavings[251:17829] critical:   at MindfulSavings.Application.Main (string[]) [0x00008] in /Users/aneta/Development/MindfulSavings/MindfulSavings/Main.cs:17
2015-02-09 01:27:49.825 MindfulSavings[251:17829] critical:   at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0xffffffff>
2015-02-09 01:27:49.826 MindfulSavings[251:17829] critical: 
Native stacktrace:

2015-02-09 01:27:49.913 MindfulSavings[251:17829] critical: 	0   MindfulSavings                      0x000000010096b43c mono_handle_native_sigsegv + 268
2015-02-09 01:27:49.913 MindfulSavings[251:17829] critical: 	1   MindfulSavings                      0x0000000100977ee0 mono_sigsegv_signal_handler + 316
2015-02-09 01:27:49.913 MindfulSavings[251:17829] critical: 	2   libsystem_platform.dylib            0x000000019838895c _sigtramp + 68
2015-02-09 01:27:49.914 MindfulSavings[251:17829] critical: 	3   CoreLocation                        0x0000000187bb7098 CLClientGetCapabilities + 17496
2015-02-09 01:27:49.914 MindfulSavings[251:17829] critical: 	4   CoreLocation                        0x0000000187bb41ac CLClientGetCapabilities + 5484
2015-02-09 01:27:49.914 MindfulSavings[251:17829] critical: 	5   CoreLocation                        0x0000000187baee5c CLClientInvalidate + 864
2015-02-09 01:27:49.914 MindfulSavings[251:17829] critical: 	6   CoreFoundation                      0x000000018741ea28 <redacted> + 20
2015-02-09 01:27:49.915 MindfulSavings[251:17829] critical: 	7   CoreFoundation                      0x000000018741db30 <redacted> + 312
2015-02-09 01:27:49.915 MindfulSavings[251:17829] critical: 	8   CoreFoundation                      0x000000018741bd54 <redacted> + 732
2015-02-09 01:27:49.915 MindfulSavings[251:17829] critical: 	9   CoreFoundation                      0x00000001873490a4 CFRunLoopRunSpecific + 396
2015-02-09 01:27:49.915 MindfulSavings[251:17829] critical: 	10  GraphicsServices                    0x00000001904eb5a4 GSEventRunModal + 168
2015-02-09 01:27:49.915 MindfulSavings[251:17829] critical: 	11  UIKit                               0x000000018bc7aaa4 UIApplicationMain + 1488
2015-02-09 01:27:49.916 MindfulSavings[251:17829] critical: 	12  MindfulSavings                      0x000000010020e028 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 344
2015-02-09 01:27:49.916 MindfulSavings[251:17829] critical: 	13  MindfulSavings                      0x00000001001cb340 UIKit_UIApplication_Main_string___intptr_intptr + 48
2015-02-09 01:27:49.916 MindfulSavings[251:17829] critical: 	14  MindfulSavings                      0x00000001001cb2fc UIKit_UIApplication_Main_string___string_string + 188
2015-02-09 01:27:49.916 MindfulSavings[251:17829] critical: 	15  MindfulSavings                      0x00000001000f4d14 MindfulSavings_Application_Main_string__ + 164
2015-02-09 01:27:49.917 MindfulSavings[251:17829] critical: 	16  MindfulSavings                      0x00000001003b47cc wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 156
2015-02-09 01:27:49.917 MindfulSavings[251:17829] critical: 	17  MindfulSavings                      0x0000000100979ff0 mono_jit_runtime_invoke + 1264
2015-02-09 01:27:49.917 MindfulSavings[251:17829] critical: 	18  MindfulSavings                      0x00000001009d82d4 mono_runtime_invoke + 128
2015-02-09 01:27:49.917 MindfulSavings[251:17829] critical: 	19  MindfulSavings                      0x00000001009dc96c mono_runtime_exec_main + 404
2015-02-09 01:27:49.918 MindfulSavings[251:17829] critical: 	20  MindfulSavings                      0x0000000100a5a12c xamarin_main + 2120
2015-02-09 01:27:49.918 MindfulSavings[251:17829] critical: 	21  MindfulSavings                      0x0000000100939e18 main + 112
2015-02-09 01:27:49.918 MindfulSavings[251:17829] critical: 	22  libdyld.dylib                       0x00000001981daa08 <redacted> + 4
2015-02-09 01:27:49.918 MindfulSavings[251:17829] critical: 
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================



Part of it is my debug. you can see how beacons are set, then crash.
app stopped working after migrating to unified api.

project code : https://www.dropbox.com/s/vr2worxkw1bkp0s/Project.zip?dl=0
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-02-09 04:18:36 UTC
Can you get a (symbolicated) crash report from Xcode's Organizer as well and attach it?
Comment 2 Udham Singh 2015-02-09 05:52:59 UTC
I have tried to reproduce this issue with the help of sample app given in bug description but not able to reproduce this. To reproduce this issue I have run the app on iOS device iPhone 6 Plus (iOS 8.1.2) and able to navigate all the available menus and items successfully.

Screencast : http://www.screencast.com/t/BdLP5Zeb

Could you please provide your complete build info? So that we can reproduce this issue at our end. Also please include your Ide logs, application output, crash log and device log.

You can get build info via 'Xamarin Studio > About Xamarin Studio > Show Details > Copy Info and Paste it here', Ide logs via 'Help > Open Log Directory and get the latest ide logs' and crash log via Xcode's Organizer.

Thanks!

Environment Info : 

=== Xamarin Studio ===

Version 5.7.1 (build 17)
Installation UUID: ce927b2a-2c07-44c5-b186-09cfdafba6dc
Runtime:
	Mono 3.12.0 ((detached/a813491)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000068

=== Apple Developer Tools ===

Xcode 6.1.1 (6611)
Build 6A2008a

=== Xamarin.iOS ===

Version: 8.6.1.24 (Business Edition)
Hash: 1ee873c
Branch: 
Build date: 2015-01-31 17:42:21-0500

=== Build Information ===

Release ID: 507010017
Git revision: 0bc7d3550b6b088ac25b08dcf7bbe73bcc8658b3
Build date: 2015-02-03 19:43:29-05
Xamarin addins: f7b7d34419c9ec24501bfa7c658e80a6305613e0

=== Operating System ===

Mac OS X 10.9.5
Darwin Xamarin76s-Mac-mini.local 13.4.0 Darwin Kernel Version 13.4.0
    Sun Aug 17 19:50:11 PDT 2014
    root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
Comment 3 Sergi Czerkasow 2015-02-10 15:15:41 UTC
Hey, it looks like this issue was only on my device, after updating it to 8.1.3 it simply gone.
Comment 4 Udham Singh 2015-02-11 03:40:58 UTC
Thanks Sergi for the confirmation.

As per comment 3, I am closing this issue.