arrow: [C#] Tests fail on MacOS arm64 with a stack overflow

Describe the bug, including details regarding any error messages, version, and platform.

Importing pyarrow into PythonNET seems to trigger a stack overflow. At first it seemed that this was triggered by the move to .NET 8 but the failure can be repro’d locally against the maint-15.0.0 branch (which uses 7.0) so there’s clearly something else going on.

The active test run was aborted. Reason: Test host process crashed : Stack overflow.
   at Python.Runtime.Runtime.PyImport_ImportModule(System.String)
   at Python.Runtime.PyModule.Import(System.String)
   at Python.Runtime.Py.Import(System.String)
   at Apache.Arrow.Tests.CDataSchemaPythonTest.ImportRecordBatchFromBuffer()
   at System.RuntimeMethodHandle.InvokeMethod(System.Object, Void**, System.Signature, Boolean)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(System.Object, System.Reflection.BindingFlags)
   at Xunit.Sdk.TestInvoker`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].CallTestMethod(System.Object)

Component(s)

C#

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (15 by maintainers)

Commits related to this issue

Most upvoted comments

Would it make sense to downgrade the runner image to macos-13 or one of the other non-ARM images to keep the tests passing until this can be fixed? It appears that this issue only started when GitHub changed macos-latest to be an ARM image. I tested downgrading to macos-13 and that does seem to fix the issue; I ran the C# actions a few times on my fork without any failures.