<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/55785>55785</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
`ERROR: AddressSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22)`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ISSOtm
</td>
</tr>
</table>
<pre>
This is from https://github.com/ISSOtm/rgbds/runs/6661658664?check_suite_focus=true#step:8:49. I lack the means to test this at this time.
This seems to simply happen by building RGBDS with `clang` and `-fsanitize=address`, and running the resulting program. (The equivalent GCC build does not have this issue, somehow.) What looks weird is the "0 bytes" attempting to be allocated, for which I have no explanation.
`ASAN_OPTIONS=use_sigaltstack=false` works around the issue, at least: https://github.com/ISSOtm/rgbds/runs/6661760050?check_suite_focus=true#step:8:14
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydUk1v2zAM_TX2RajhyB9NDj6kyVr00gxxgR0D2qZtrbKUSXSz7tePctoNuwzDANkURYl875GN7d6q51F5wat3dhIj0dlH2TaS97wGRePcJK2d2Hms6wOFjRuazgc7m2DKslyVxbos8yi7b0dsX05-VoSn3rYz59qTmzGSmSc8c-Y1f_kmEY9CQ_siaEQxIRgvyApCT3zCYODdkpowidJ9lG6v_wWtR5yWB15NZ_0mRjif0YjmTTSz0p0ygzg-3O1rcWECIirTVoMZ2AowXfBveg9GkfqBjA-6zqH3fBzJ3XKDmZmQJIDj0KwpeGdnBwdTIiK5fuYIfpvVK2g0JB52u2tp0Vn0wlhiTK945aC8DwLshLcTjvaSRHIjvoxMUVv74sUFletCB0K5SMqUibASvGMZCKfzUp3ZNihAa9sCYRfy9daJy6jakcVcyhkr8PuZuQIpa_7Qjdlt6-3T6fD5-fHwVDPt2ePJqwE0eeJO8EkP2mNQ6WId4wJnZxYjoPpFIYBG8MRN_N9ZuS3TtEj_eVZWedxVWbfJNhCTIo0VI_x0PB6OAcP22rv6vZtO9KA0dkGtD6lE-j0NLUuD7IuywvaiRtpqQsdSYa0GA7oOKoSL6BwL29oOQwUp-R2XjGenq79Q1vr1w9zwpHzFlthdhAvMi-J2XcRjlbGBXsIKNnmbtrLBJl_LVPbQSMj6dayhQe2rqLjjATB4-dBeRsU-VhVflWmR8V_mqzzJoOzarCn6srzNetlHeYoTS5AEHIl1Q-yqBVIzD56DWnnyv4PgeQIM4lKO88NMo3XVtX3xUrlakP8E9l9bFg">