Skip to content

Mono fails new test src/tests/JIT/Directed/Arrays/nintindexoutofrange.csproj #71656

Open

Description

@davidwrighton

Description

Test fails on aot, minijit and monointerpreter test legs

Reproduction Steps

Run the test from src/tests/JIT/Directed/Arrays/nintindexoutofrange.csproj on a 64bit mono platform, notice that it fails.

Expected behavior

It passes

Actual behavior

Various errors like:

Return code:      1
Raw output file:      /datadisks/disk1/work/A8A308BD/w/A74C08E0/uploads/Reports/JIT.Directed/Arrays/nintindexoutofrange/nintindexoutofrange.output.txt
Raw output:
BEGIN EXECUTION
/datadisks/disk1/work/A8A308BD/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false nintindexoutofrange.dll ''
Failed to throw IndexOutOfRange when storing null
Failed to throw IndexOutOfRange when storing object
Failed to throw IndexOutOfRange when accessing element
Expected: 100
Actual: 1
END EXECUTION - FAILED

or

=================================================================
External Debugger Dump:
[New LWP 857]
[New LWP 858]
[New LWP 859]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
warning: the debug information found in "/root/helix/work/correlation/libcoreclr.so.dbg" does not match "/root/helix/work/correlation/libcoreclr.so" (CRC mismatch).

0x0000007fa816ed5c in __waitpid (pid=<optimized out>, stat_loc=0x7fc3bb3c80, options=<optimized out>) at ../sysdeps/unix/sysv/linux/waitpid.c:30
30../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
Id   Target Id         Frame

1    Thread 0x7fa81bf020 (LWP 851) "corerun" 0x0000007fa816ed5c in __waitpid (pid=<optimized out>, stat_loc=0x7fc3bb3c80, options=<optimized out>) at ../sysdeps/unix/sysv/linux/waitpid.c:30
2    Thread 0x7fa57ff1d0 (LWP 857) "SGen worker" 0x0000007fa816a2a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fa7d4f1b8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
3    Thread 0x7fa2bda1d0 (LWP 858) "corerun" 0x0000007fa7e59e28 in __GI___poll (fds=0x7f94003af0, nfds=548251910422, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:41
4    Thread 0x7fa29d91d0 (LWP 859) "Finalizer" 0x0000007fa816ca40 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, futex_word=0x7fa7d401e8) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
Thread 4 (Thread 0x7fa29d91d0 (LWP 859)):

0  0x0000007fa816ca40 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, futex_word=0x7fa7d401e8) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
1  do_futex_wait (sem=sem@entry=0x7fa7d401e8, abstime=0x0) at sem_waitcommon.c:111
2  0x0000007fa816cb60 in __new_sem_wait_slow (sem=0x7fa7d401e8, abstime=0x0) at sem_waitcommon.c:181
3  0x0000007fa6930e30 in ?? () from /root/helix/work/correlation/libcoreclr.so
4  0x0000007f9c000b20 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 3 (Thread 0x7fa2bda1d0 (LWP 858)):

0  0x0000007fa7e59e28 in __GI___poll (fds=0x7f94003af0, nfds=548251910422, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:41
1  0x0000007fa6b56504 in ?? () from /root/helix/work/correlation/libcoreclr.so
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x7fa57ff1d0 (LWP 857)):

0  0x0000007fa816a2a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fa7d4f1b8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7fa7d4f160, cond=0x7fa7d4f190) at pthread_cond_wait.c:502
2  __pthread_cond_wait (cond=0x7fa7d4f190, mutex=0x7fa7d4f160) at pthread_cond_wait.c:655
3  0x0000007fa69abdc0 in ?? () from /root/helix/work/correlation/libcoreclr.so
4  0x0000007fa7e62ffc in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:78
Thread 1 (Thread 0x7fa81bf020 (LWP 851)):

0  0x0000007fa816ed5c in __waitpid (pid=<optimized out>, stat_loc=0x7fc3bb3c80, options=<optimized out>) at ../sysdeps/unix/sysv/linux/waitpid.c:30
1  0x0000007fa6aa0d54 in ?? () from /root/helix/work/correlation/libcoreclr.so
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
/root/helix/work/workitem/e/JIT/Directed/Arrays/nintindexoutofrange/nintindexoutofrange.sh: line 373:   851 Aborted                 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"

Return code:      1
Raw output file:      /root/helix/work/workitem/uploads/Reports/JIT.Directed/Arrays/nintindexoutofrange/nintindexoutofrange.output.txt
Raw output:
BEGIN EXECUTION
/root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false nintindexoutofrange.dll ''

=================================================================
Native Crash Reporting

Regression?

No

Known Workarounds

Don't use a native int as an array index.

Configuration

No response

Other information

No response

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Jul 5, 2022
  2. davidwrighton commented on Jul 5, 2022

    @davidwrighton
    MemberAuthor

    @lambdageek for visibility. Please route this to the right group.

  3. added this to the 7.0.0 milestone on Jul 18, 2022
  4. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Aug 11, 2022
  5. modified the milestones: 7.0.0, 8.0.0 on Aug 12, 2022
  6. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Nov 15, 2022
  7. SamMonoRT commented on Jul 31, 2023

    @SamMonoRT
    Member

    Moving to 9.0.0

  8. modified the milestones: 8.0.0, 9.0.0 on Jul 31, 2023
  9. modified the milestones: 9.0.0, Future on Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions