Bug 34774 - Crash when pInvoking a C function with a string parameter on El Capitan
Summary: Crash when pInvoking a C function with a string parameter on El Capitan
Status: CONFIRMED
Alias: None
Product: Runtime
Classification: Mono
Component: General (show other bugs)
Version: 4.0.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-10-12 14:46 UTC by Steve Baer
Modified: 2016-08-29 15:29 UTC (History)
4 users (show)

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


Attachments

Description Steve Baer 2015-10-12 14:46:31 UTC
Please see https://github.com/mcneel/mono_embed for a sample to reproduce.

This sample embeds a 64 bit mono runtime and executes a method written in C#. The C# method in turn calls two exported C functions (one that takes an int and a double as parameters and one that takes a string).

On Yosemite / Xcode 6.4 this sample runs with no errors

On El Capitan / Xcode 7 this sample crashes when attempting to debug inside of Xcode. The crash occurs when trying to call the C function with a string parameter. When the Xcode debugger is NOT attached, this sample also runs with no problems on El Capitan.
Comment 1 Chris Hamons 2015-11-19 16:10:34 UTC
Assigning to alexrp@xamarin.com since they have two other possibly related bugs. Please feel free to ignore my assigning guess however.

Note You need to log in before you can comment on or make changes to this bug.