-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Microsoft.VisualBasic.Core.Tests fails on iOS and tvOS #51392
Comments
Tagging subscribers to this area: @cston Issue DetailsMicrosoft.VisualBasic.Core.Tests
|
May push this beyond 6 |
The tests are failing on a device with a SIGSEGV error. Here is a test case that can reproduce the failure: using System;
using Microsoft.VisualBasic;
namespace HelloWorld
{
internal class Program
{
private static void Main(string[] args)
{
try{
Information.IsNumeric(new char[] { '1', '2', '3' }); // Bug compatible
} catch (NullReferenceException) {
Console.WriteLine($"Error handled!");
}
}
}
} In general, this issue occurs in both JIT and AOT configurations, while it passes on the Interpreter. The assumption is that there is a missing NULL check in virtual tail call for class interface runtime/src/mono/mono/mini/calls.c Lines 568 to 573 in e96321d
In the interpreter, there is a runtime/src/mono/mono/mini/interp/interp.c Lines 4101 to 4114 in e96321d
I didn't manage to find the exact code path that is missing the null check. @vargaz Do you think that the approach is reasonable or could it be something else? |
The JIT doesn't emit null checks, the sigsegv signal emitted on the null dereference is convered to a NullReferenceException. |
Good, thank you. This means that the |
The tests are passing both locally on a device and on tvOS CI pipeline. |
Microsoft.VisualBasic.Core.Tests
Microsoft.VisualBasic.Tests.InteractionTests.Command
test methods hanging:
The text was updated successfully, but these errors were encountered: