<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/97716>97716</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [openmp] TEST 'libomp :: affinity/redetect.c' FAILED on s390x Ubuntu 23.10
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            uweigand,
            JonPsson1
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          iii-i
      </td>
    </tr>
</table>

<pre>
    The test fails 100% of the time:

```
llvm-project/build$ bin/llvm-lit -sv projects/openmp/runtime/test/affinity/redetect.c
FAIL: libomp :: affinity/redetect.c (1 of 1)
******************** TEST 'libomp :: affinity/redetect.c' FAILED ********************
Exit Code: 1 

Command Output (stdout): 
--                   
# RUN: at line 1 
llvm-project/build/./bin/clang -fopenmp   -I llvm-project/build/projects/openmp/runtime/src -I llvm-project/openmp/runtime/test -L llvm-project/build/./lib -fno-omit-frame-pointer -mbackchain -I llvm-project/openmp/runtime/test/ompt llvm-project/openmp/runtime/test/affinity/redetect.c -o llvm-project/build/projects/openmp/runtime/test/affinity/Output/redetect.c.tmp -l
m -latomic
# executed command: llvm-project/build/./bin/clang -fopenmp -I llvm-project/build/projects/openmp/runtime/src -I llvm-project/openmp/runtime/test -L llvm-project/build/./lib -fno-omit-frame-pointer -mbackchain -I llvm-project/openmp/runtime/test/ompt llvm-project/openmp/runtime/test/affinity/redetect.c -o llvm-project/build/projects/openmp/runtime/test/affinity/Output/redetect.c.tmp -lm -latomic
# RUN: at line 2
llvm-project/build/projects/openmp/runtime/test/affinity/Output/redetect.c.tmp
# executed command: llvm-project/build/projects/openmp/runtime/test/affinity/Output/redetect.c.tmp
# .---command stdout------------
# | Orignal Mask: {0-59}
# | Hello! Thread 48 executed single region in parent process
# | Hello! Thread 51 executed single region in child process
# | Orignal Mask: {0-59}
# | Hello! Thread 48 executed single region in parent process
# `-----------------------------
# .---command stderr------------
# | Original Mask = {1-59}
# | New Mask = {0-59}
# | Child affinity mask did not reset properly
# `-----------------------------
# error: command failed with exit status: 1
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVl-P2zYM_zTKC6FAlp3EfvBDmpyxDl07bNcPIFuMrVWWDEm-P99-kOMsvTYX3LJie5kgBElIkfzxR0oU3qvWIJZk9Y5wPj6iaoWRhHPCd4Tzn6351XtrkvjPar8QY-isK5VSVC1qK5_L-w4hoA9wEEp7SBgjfAX2ACEKVI8k3RK2J-z0uWbznn5q_dDTwdk_sAmEV_WotCQ8g1oZwqtJqlUA6h9g1vKEV3ZA0w-EV240kw9exRgIr8ThoIwKz1GGEgM2YdkcXVXb9x9IugWtatsPEONKt3DxABCeJxFEQngxx81v33B_9_s9EL55g2vCNxAjvdvDP3F5DPruSQXYWRlJgAS-5mFn-14YCZ_GMIwhAvZB2jFEwOl2VqUUvl-nfKTw2-ePE44AWhn8y8FlTqtl_D7R2mhhWqCHI40AQN_DK4euk-5dc-HsK9UB9MNrXmJoWtVAD8ZS26tAD070SAerTEAHtK9F86XphDJv9xcl_RDern25FKm9LTffGz1S_cL6MvQDUH3krQeqRbC9as4U4xM2Y0AJzbFepgb6m_z-z-5_y-4lXr9pXX61c39QKDdV1Q_3vaSUzm7heOXRr9ZZj2x28Mmp1ggNvwj_ZboVN-8YXRVks3-p9xNqbQlP4L5zKCRk-RmiV6bVCA5bZQ0oA4NwaEJ8zhr0_rqhVXLFUNMpLS_b-XcDXzN6bb2ae3Tueu7VCQOQdB9BJJdAfMTHF0oXke6mZJ0KBfqoL5UEYwM49DjhGtDp51uAoXPWxUSf0MVpCCU8qtABxlfYBxFGP73D3wxCC1mmskgLscAy2XDGiizLskVXNqt1w3OsE5kn2TrJc8kKhkWep-khbdZioUrOeMY2LEs4Y1m2zDOJKeZZvWJNnSYpyRj2QullbK6lde1CeT9iWWw2yXqhRY3az6OfwUeYhPOk58qpIeux9SRjWvngz1aCCnqaGeeWXO1vHHGsAZ8W7Ak-16MJI_B0mbDF6HTZhTDEdBFeEV61KnRjvWxsP0-Fp-HwfGFMwcdr4gjuoeR_BgAA__9EdVtC">