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

    <tr>
        <th>Summary</th>
        <td>
            TEST 'SanitizerCommon-asan-i386-Linux :: Linux/sem_init_glibc.cpp' FAILED
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            compiler-rt:asan,
            regression
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          mgorny
      </td>
    </tr>
</table>

<pre>
    It seems that there is a new regression in ASAN/glibc support:

```
FAIL: SanitizerCommon-asan-i386-Linux :: Linux/sem_init_glibc.cpp (76 of 1657)
******************** TEST 'SanitizerCommon-asan-i386-Linux :: Linux/sem_init_glibc.cpp' FAILED ********************
Script:
--
: 'RUN: at line 1';      /home/mgorny/git/llvm-bisect/build/lib/llvm/16/bin/clang  --driver-mode=g++ -gline-tables-only -fsanitize=address  -m32 -funwind-tables  -I/home/mgorny/git/llvm-bisect/compiler-rt/test -ldl -O0 -g /home/mgorny/git/llvm-bisect/compiler-rt/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cpp -lutil -o /home/mgorny/git/llvm-bisect/build/test/sanitizer_common/asan-i386-Linux/Linux/Output/sem_init_glibc.cpp.tmp &&  /home/mgorny/git/llvm-bisect/build/test/sanitizer_common/asan-i386-Linux/Linux/Output/sem_init_glibc.cpp.tmp
--
Exit Code: 134

Command Output (stderr):
--
sem_init_glibc.cpp.tmp: /home/mgorny/git/llvm-bisect/compiler-rt/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cpp:56: int main(): Assertion `GET_SEM_VALUE(a) == 42' failed.
/home/mgorny/git/llvm-bisect/build/test/sanitizer_common/asan-i386-Linux/Linux/Output/sem_init_glibc.cpp.script: line 1: 2327802 Aborted                 (core dumped) /home/mgorny/git/llvm-bisect/build/test/sanitizer_common/asan-i386-Linux/Linux/Output/sem_init_glibc.cpp.tmp

--

********************
```

This is with 215c9fa4deac9ec6b4e504843830551f03b60620.

```
$ ld.so --version
ld.so (Gentoo 2.36-r3 p3) stable release version 2.36.
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNVt2PmzgQ_2vIywgEhpDwwAObj16kNFkl2ZPuKTLYSXwCG9lmt7m__sYkud3m2qq9VdVDloHxeD48M79xqdg5X1gwnDcG7IlanLjmIAxQkPwFND9qboxQEoSEYlusPDI_1qKswHRtq7T14sILp154m9PwOvrfebFYIgdsqRRW_MX1RDWNkj41VPoiHqf-UsjuEzgpyNb_oAbDm73AHfteVVC1LXhkPEpBHSBKhyOPZFd15L8P2M22O5Q7erdxKAOcp7MpvMegi0vbSov29Vh9_-opWoB6Nk8r94WRqoXkECHJix-gf9C2k2o4vpqj0vLsQiUsznX93PilMLxyf2Unauaooryu4StK3YqQOFc1lUcA32daPHPtN4pxL54ePfKAA_yj0-xbWtbc-ErWZ_AP5nqEyEcZcymDApqY4FInX4RkV36kLr7TzEo1rahRv3Z_lhsLfs1q8Nch2vC9zv5biovgLeD7qo84kna4MqGGG_z-Rhb6dWcF2qB-9LC_rvku297oX3e27ewXDQls40oCg5b-cNx_gimfp-rsk7Aw6bOmgChO3uKDKzEqGVwEuqo2lnGtXUXfp_xXdPWF8AuCj4qHqdMupIWGuloZX8yGwhiurUNJRL4Ps91-O_u4_71YPs2QhyITYsgUByTEYcWBolUsuEHYL42eucHNDVDwi8RkNA4JFCUCPGdw_6BTlcI2wbqm5ax373-SgneY-e4e8cWmdpl3J-ySOF6EPQGJhlV2oAnjtMp4lZYJH4bJOInHcTgcRocwLtMwJWHwjV7pkQRqFhiF0Iu465ruZeFCxEP_wKVVCkgQp76OoY3d0ZseWbFT1xxTGK47e6bgVnPtWYvjqS-3idtDQkJgrjmHrTr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