Skip to content

Commit d07ed32

Browse files
[Java.Interop-Tests] use #if !NO_GC_BRIDGE_SUPPORT for some tests (#1332)
Fixes a failure on NativeAOT such as: I NUnit : JavaManagedGCBridgeTests I NUnit : CrossReferences --------- beginning of crash F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 9999 (Thread-13), pid 9955 (droid.NET_Tests) I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone I /system/bin/tombstoned: received crash request for pid 9999 I crash_dump64: performing dump of process 9955 (target tid = 9999) F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** F DEBUG : Build fingerprint: 'Android/sdk_phone_x86_64/generic_x86_64:10/QSR1.210820.001/7663313:userdebug/test-keys' F DEBUG : Revision: '0' F DEBUG : ABI: 'x86_64' F DEBUG : Timestamp: 2025-05-01 16:44:12+0000 F DEBUG : pid: 9955, tid: 9999, name: Thread-13 >>> Mono.Android.NET_Tests <<< F DEBUG : uid: 10120 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr -------- F DEBUG : rax 0000000000000000 rbx 00000000000026e3 rcx 00007db8e65163f8 rdx 0000000000000006 F DEBUG : r8 00007d777538f770 r9 0000000000000000 r10 00007d777538f740 r11 0000000000000246 F DEBUG : r12 00007db80e224f9c r13 0000000000000916 r14 00007d777538f7c8 r15 000000000000270f F DEBUG : rdi 00000000000026e3 rsi 000000000000270f F DEBUG : rbp 00007d777538f810 rsp 00007d777538f738 rip 00007db8e65163f8 F DEBUG : F DEBUG : backtrace: F DEBUG : #00 pc 00000000000943f8 /apex/com.android.runtime/lib64/bionic/libc.so (syscall+24) (BuildId: b5c6019a3b4ea61b5e9a2f56319b584e) F DEBUG : #1 pc 0000000000097146 /apex/com.android.runtime/lib64/bionic/libc.so (abort+182) (BuildId: b5c6019a3b4ea61b5e9a2f56319b584e) F DEBUG : #2 pc 0000000000016978 /data/app/Mono.Android.NET_Tests-vt_TJEuikFfGaDBlx7t6GQ==/split_config.x86_64.apk Which crashes the entire test suite, so we don't know if further tests pass or fail.
1 parent d3d3a1b commit d07ed32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Java.Interop-Tests/Java.Interop/JavaManagedGCBridgeTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ namespace Java.InteropTests {
1111
[TestFixture]
1212
public class JavaManagedGCBridgeTests : JavaVMFixture {
1313

14+
#if !NO_GC_BRIDGE_SUPPORT
1415
// https://github.com/mono/mono/blob/98d2314/mono/tests/sgen-bridge-xref.cs
1516
[Test]
1617
public void CrossReferences ()
@@ -33,6 +34,7 @@ public void CrossReferences ()
3334
Assert.IsNotNull (b);
3435
}
3536
}
37+
#endif // !NO_GC_BRIDGE_SUPPORT
3638

3739
static void SetupLinks (JavaObjectArray<CrossReferenceBridge> array, out WeakReference<CrossReferenceBridge> root, out WeakReference<CrossReferenceBridge> child)
3840
{

0 commit comments

Comments
 (0)