<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ERROR: UndefinedBehaviorSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22)"
   href="https://bugs.llvm.org/show_bug.cgi?id=50562">50562</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ERROR: UndefinedBehaviorSanitizer failed to allocate 0x0 (0) bytes of  SetAlternateSignalStack (error code: 22)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>12.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rjones@redhat.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>clang -o conftest -g -O3 -march=native -fsanitize=cfi -fno-sanitize-trap=all
-flto -fvisibility=hidden  -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld  -O3 -march=native -fsanitize=cfi
-fno-sanitize-trap=all -flto -fvisibility=hidden
-Wno-unused-command-line-argument conftest.c
./conftest
==1554568==ERROR: UndefinedBehaviorSanitizer failed to allocate 0x0 (0) bytes
of
 SetAlternateSignalStack (error code: 22)
==1554568==Process memory map follows:
[..]
==1554568==End of process memory map.
==1554568==Sanitizer CHECK failed:
../lib/sanitizer_common/sanitizer_common.cpp:54 ((0 && "unable to mmap")) !=
(0) (0, 0)
configure:4233: $? = 1
configure:4240: error: in `/home/rjones/d/nbdkit':
configure:4242: error: cannot run C compiled programs.

conftest.c is very simple:

-----------
#include <stdio.h>
int
main (void)
{
FILE *f = fopen ("conftest.out", "w");
 return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
-----------

This actually happens during one of autoconf ./configure's basic compiler
tests.

clang-12.0.0-2.fc35.x86_64</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>