Open SamMonoRT opened 4 years ago
I couldn't figure out the best area label to add to this issue. Please help me learn by adding exactly one area label.
@lambdageek
Crashing function is mono_free_bstr
, though locally bstr
looks like a sane value (0x7fc5b9d14168):
g_free (((char *)bstr) - 4);
I guess this is an invalid address to free so malloc is throwing an ABRT?
The test is RunStringTests
in CommonStringTests.cs
, with the problematic function being this:
[DllImport(NativeLibraryName)]
public static extern void Reverse([MarshalAs(StringMarshalingType)] string original, [MarshalAs(StringMarshalingType)] out string reversed);
No idea why it fails.
@CoffeeFlux - sending this your way
@jandupej - another one for 9.0
@fanyang-mono - we want to validate in any recent main build and see the latest state of the test.
Crash seen when running the following CoreCLR test on the mono runtime from the dotnet\runtime repo. Repro : Command to run individual tests : From the dotnet\runtime repo src\mono\netcore run this command or relevant one for a particular test - make run-tests-coreclr CoreClrTest="bash ../../artifacts/tests/coreclr/OSX.x64.Debug/Interop/StringMarshalling/BSTR/BSTRTest/BSTRTest.sh”
Crash report :
================================================================= External Debugger Dump: