Bug 20579 - Bundling assemblies into native code with HTTP client BCL in PCL causes application to crash on startup
Summary: Bundling assemblies into native code with HTTP client BCL in PCL causes appli...
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 4.12.4
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2014-06-13 08:40 UTC by Simon
Modified: 2014-06-20 09:39 UTC (History)
2 users (show)

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 for Bug 20579 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Simon 2014-06-13 08:40:19 UTC
Microsoft Visual Studio Ultimate 2013
Version 12.0.30408.00 Update 2
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Ultimate

Xamarin (d3cf238e3845e930e312b6ec9b4c6c5437c33067)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android

Xamarin.Android (b5dc5ce91305e19de51d71a1122c109719c4bc34)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS (d3cf238e3845e930e312b6ec9b4c6c5437c33067)
Visual Studio extension to enable development for Xamarin.iOS

Test device: LGE Nexus 4
Android version: 4.3

Repro steps:

- Create a new Xamarin android project in Visual Studio 2013
- Add a PCL, targeting all but Silverlight 5.
- Add the Microsoft HTTP Client Libraries (2.2.22) from Nuget to the PCL
- Change the Target version to API Level 18
- Deselect Shared Runtime
- Select Bundle assemblies into native code


The following error occurs immediately on app launch from the android debugger:

Fatal signal 11 (SIGSEGV) at 0xbeb46434 (code=2), thread 2002 (TestBCL.Droid)

The application fails to launch.
Comment 1 Mohit Kheterpal 2014-06-13 11:32:59 UTC
I have tried to reproduce this issue after following the steps mention in bug description but I am not able to reproduce it as shown in screencast : http://screencast.com/t/stfK70P28

Please have a look and let me know if I have missed any step?

Comment 2 Simon 2014-06-13 11:49:12 UTC

Sorry, my bug report might not have been clear. All API level options should be 18. I set the "Compile using Android version" to 18 and left the two options to "Use Compile using SDK version"

Also, PCL should target all 'except' Silverlight 5, not only Silverlight 5.

The sample project I attached should reproduce this issue if you're still unable.