<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 - Crash after using tasking on Mac M1"
href="https://bugs.llvm.org/show_bug.cgi?id=49947">49947</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash after using tasking on Mac M1
</td>
</tr>
<tr>
<th>Product</th>
<td>OpenMP
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Clang Compiler Support
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jcownie@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=24747" name="attach_24747" title="Failing code">attachment 24747</a> <a href="attachment.cgi?id=24747&action=edit" title="Failing code">[details]</a></span>
Failing code
The attached, trivial, code SEGVs after returning from main on
$ uname -a
Darwin Mac-mini.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51
PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101 arm64
$ clang++ -v -fopenmp omp_tasks.cc
clang version 13.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
58f3201a20f7c51393ef4509b69515cb9c4b32bf)
Target: aarch64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Users/jcownie/software/clang-12.0.0/arm64/bin
"/Users/jcownie/software/clang-12.0.0/arm64/bin/clang-13" -cc1 -triple
arm64-apple-macosx11.0.0 -Wundef-prefix=TARGET_OS_ -Werror=undef-prefix
-Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj
-mrelax-all --mrelax-relocations -disable-free -main-file-name omp_tasks.cc
-mrelocation-model pic -pic-level 2 -mframe-pointer=non-leaf -fno-rounding-math
-munwind-tables -fcompatibility-qualified-id-block-type-checking
-fvisibility-inlines-hidden-static-local-var -target-cpu apple-a13
-target-feature +v8.4a -target-feature +fp-armv8 -target-feature +neon
-target-feature +crc -target-feature +crypto -target-feature +dotprod
-target-feature +fullfp16 -target-feature +ras -target-feature +lse
-target-feature +rdm -target-feature +rcpc -target-feature +zcm -target-feature
+zcz -target-feature +fp16fml -target-feature +sm4 -target-feature +sha3
-target-feature +sha2 -target-feature +aes -target-abi darwinpcs
-fallow-half-arguments-and-returns -debugger-tuning=lldb -target-linker-version
609.8 -v -fcoverage-compilation-dir=/Users/jcownie/tmp -resource-dir
/Users/jcownie/software/clang-12.0.0/arm64/lib/clang/13.0.0 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-stdlib=libc++ -internal-isystem
/Users/jcownie/software/clang-12.0.0/arm64/bin/../include/c++/v1
-internal-isystem
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/local/include
-internal-isystem
/Users/jcownie/software/clang-12.0.0/arm64/lib/clang/13.0.0/include
-internal-externc-isystem
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
-fdeprecated-macro -fdebug-compilation-dir=/Users/jcownie/tmp -ferror-limit 19
-fmessage-length=160 -fopenmp -fopenmp-cuda-parallel-target-regions
-stack-protector 1 -fblocks -fencode-extended-block-signature
-fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fcxx-exceptions
-fexceptions -fmax-type-align=16 -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o
/var/folders/lt/nf3dtk8j16qfsl97d_vgv4dw000lts/T/omp_tasks-63de8e.o -x c++
omp_tasks.cc
clang -cc1 version 13.0.0 based upon LLVM 13.0.0git default target
aarch64-apple-darwin20.3.0
ignoring nonexistent directory
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/local/include"
ignoring nonexistent directory
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
/Users/jcownie/software/clang-12.0.0/arm64/bin/../include/c++/v1
/Users/jcownie/software/clang-12.0.0/arm64/lib/clang/13.0.0/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks
(framework directory)
End of search list.
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld"
-demangle -lto_library
/Users/jcownie/software/clang-12.0.0/arm64/lib/libLTO.dylib -no_deduplicate
-dynamic -arch arm64 -platform_version macos 11.0.0 0.0.0 -syslibroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
-o a.out -L/Users/jcownie/software/clang-12.0.0/arm64/lib
/var/folders/lt/nf3dtk8j16qfsl97d_vgv4dw000lts/T/omp_tasks-63de8e.o -rpath
/Users/jcownie/software/clang-12.0.0/arm64/lib -lomp -lc++ -lSystem
$ ./a.out
./a.out
Returning from main
Segmentation fault: 11
$
The code works with g++ (in this environment) and with clang++ (11.0) on other
machines (including other Linux/AARCH64 ones).</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>