Bug 38763 - Problem with binding static library
Summary: Problem with binding static library
Status: RESOLVED NORESPONSE
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 9.2
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-02-15 13:18 UTC by Anton
Modified: 2016-04-12 17:43 UTC (History)
4 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:
RESOLVED NORESPONSE

Description Anton 2016-02-15 13:18:48 UTC
This is a link to project:
https://www.dropbox.com/s/yjusoozgkizzksn/SLExpressPlayBinding.zip?dl=0


Please ensure your device is connected...
Connected to: iPad (Anton)
Launching /private/var/mobile/Containers/Bundle/Application/DDAF0199-1DA9-4246-B768-3B8ABC6EC00E/TestBindingExpressPlay.iOS.app -monodevelop-port 10000 -connection-mode usb
Loaded assembly: /private/var/mobile/Containers/Bundle/Application/DDAF0199-1DA9-4246-B768-3B8ABC6EC00E/TestBindingExpressPlay.iOS.app/.monotouch-32/Xamarin.iOS.dll
Loaded assembly: /private/var/mobile/Containers/Bundle/Application/DDAF0199-1DA9-4246-B768-3B8ABC6EC00E/TestBindingExpressPlay.iOS.app/.monotouch-32/TestBindingExpressPlay.dll
Thread started: Finalizer #2
Loaded assembly: /private/var/mobile/Containers/Bundle/Application/DDAF0199-1DA9-4246-B768-3B8ABC6EC00E/TestBindingExpressPlay.iOS.app/.monotouch-32/TestBindingExpressPlay.iOS.exe
2016-02-15 15:12:29.475 TestBindingExpressPlay.iOS[1699:1244453] critical: Stacktrace:

2016-02-15 15:12:29.475 TestBindingExpressPlay.iOS[1699:1244453] critical:   at <unknown> <0xffffffff>
2016-02-15 15:12:29.475 TestBindingExpressPlay.iOS[1699:1244453] critical:   at (wrapper managed-to-native) ExpressPlay.CFunctions.WSB_Runtime_Initialize () <0xffffffff>
2016-02-15 15:12:29.476 TestBindingExpressPlay.iOS[1699:1244453] critical:   at TestBindingExpressPlay.iOS.Application.Main (string[]) [0x00001] in /Users/anton/Projects/TestBindingExpressPlay/iOS/Main.cs:17
2016-02-15 15:12:29.477 TestBindingExpressPlay.iOS[1699:1244453] critical:   at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0xffffffff>
2016-02-15 15:12:29.477 TestBindingExpressPlay.iOS[1699:1244453] critical: 
Native stacktrace:

2016-02-15 15:12:29.507 TestBindingExpressPlay.iOS[1699:1244453] critical: 	0   TestBindingExpressPlay.iOS          0x005f7355 mono_handle_native_sigsegv + 240
2016-02-15 15:12:29.507 TestBindingExpressPlay.iOS[1699:1244453] critical: 	1   TestBindingExpressPlay.iOS          0x005fd5e3 mono_sigsegv_signal_handler + 226
2016-02-15 15:12:29.508 TestBindingExpressPlay.iOS[1699:1244453] critical: 	2   libsystem_platform.dylib            0x256a385f _sigtramp + 42
2016-02-15 15:12:29.508 TestBindingExpressPlay.iOS[1699:1244453] critical: 	3   ???                                 0xf804f43d 0x0 + 4161074237
2016-02-15 15:12:29.508 TestBindingExpressPlay.iOS[1699:1244453] critical: 	4   TestBindingExpressPlay.iOS          0x00331f4d WSB_Runtime_Initialize + 48
2016-02-15 15:12:29.508 TestBindingExpressPlay.iOS[1699:1244453] critical: 	5   TestBindingExpressPlay.iOS          0x001d0758 wrapper_managed_to_native_ExpressPlay_CFunctions_WSB_Runtime_Initialize + 220
2016-02-15 15:12:29.508 TestBindingExpressPlay.iOS[1699:1244453] critical: 	6   TestBindingExpressPlay.iOS          0x0002c08c TestBindingExpressPlay_iOS_Application_Main_string__ + 124
2016-02-15 15:12:29.508 TestBindingExpressPlay.iOS[1699:1244453] critical: 	7   TestBindingExpressPlay.iOS          0x00185144 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
2016-02-15 15:12:29.509 TestBindingExpressPlay.iOS[1699:1244453] critical: 	8   TestBindingExpressPlay.iOS          0x005ffc2f mono_jit_runtime_invoke + 1150
2016-02-15 15:12:29.509 TestBindingExpressPlay.iOS[1699:1244453] critical: 	9   TestBindingExpressPlay.iOS          0x0063e595 mono_runtime_invoke + 88
2016-02-15 15:12:29.509 TestBindingExpressPlay.iOS[1699:1244453] critical: 	10  TestBindingExpressPlay.iOS          0x006419eb mono_runtime_exec_main + 282
2016-02-15 15:12:29.509 TestBindingExpressPlay.iOS[1699:1244453] critical: 	11  TestBindingExpressPlay.iOS          0x006aa344 xamarin_main + 2072
2016-02-15 15:12:29.509 TestBindingExpressPlay.iOS[1699:1244453] critical: 	12  TestBindingExpressPlay.iOS          0x001d3645 main + 112
2016-02-15 15:12:29.509 TestBindingExpressPlay.iOS[1699:1244453] critical: 	13  libdyld.dylib                       0x25534873 <redacted> + 2
2016-02-15 15:12:29.510 TestBindingExpressPlay.iOS[1699:1244453] 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.
=================================================================
Comment 1 Rolf Bjarne Kvinge [MSFT] 2016-02-16 15:34:32 UTC
I can't build the project, because there are additional mtouch argument referring to your local home directory.

If I remove those mtouch arguments, it still don't build because of duplicate symbols in the native library.

But if I set "ForceLoad = false" for all 3 LinkWith attributes, the project builds and launches fine in the iOS simulator.

Can you try removing the mtouch arguments and setting "ForceLoad = false" and see if that fixes the issue for you?
Comment 2 Sebastien Pouliot 2016-04-12 17:43:30 UTC
We have not received further information and will assume this is not an issue anymore. If you can still affected by this please re-open the bug and include the requested information. Thanks.