[Bug 278810] clang crashes: fatal error: error in backend: Cannot select: 0x27fbea00: v4f32 = fmaxnum 0x27178550, 0x26481eb0 (on the port misc/llama-cpp version 2619)

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 06 May 2024 08:36:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278810

            Bug ID: 278810
           Summary: clang crashes: fatal error: error in backend: Cannot
                    select: 0x27fbea00: v4f32 = fmaxnum 0x27178550,
                    0x26481eb0 (on the port misc/llama-cpp version 2619)
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: arm
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

fatal error: error in backend: Cannot select: 0x27fbea00: v4f32 = fmaxnum
0x27178550, 0x26481eb0
  0x27178550: v4f32,i32,ch = ARMISD::VLD1_UPD<(load (s128) from %ir.522, align
4)> 0x2649f67c, 0x264819b0, Constant:i32<16>, Constant:i32<1>
    0x264819b0: i32,ch = CopyFromReg 0x2649f67c, Register:i32 %191
      0x27fbe0a0: i32 = Register %191
    0x27fbe870: i32 = Constant<16>
    0x26480500: i32 = Constant<1>
  0x26481eb0: v4f32 = bitcast 0x27fff320
    0x27fff320: v4i32 = ARMISD::VMOVIMM TargetConstant:i32<0>
      0x28029140: i32 = TargetConstant<0>
In function: ggml_compute_forward_unary
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the
crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/cc -DGGML_SCHED_MAX_COPIES=4
-D_XOPEN_SOURCE=600 -D__BSD_VISIBLE
-I/wrkdirs/usr/ports/misc/llama-cpp/work/llama.cpp-b2619/. -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -DNDEBUG -std=gnu11 -fPIC
-Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes
-Werror=implicit-int -Werror=implicit-function-declaration -Wall -Wextra
-Wpedantic -Wcast-qual -Wno-unused-function -Wunreachable-code-break
-Wunreachable-code-return -Wdouble-promotion -mfpu=neon-fp-armv8
-mno-unaligned-access -funsafe-math-optimizations -pthread -MD -MT
CMakeFiles/ggml.dir/ggml.c.o -MF CMakeFiles/ggml.dir/ggml.c.o.d -o
CMakeFiles/ggml.dir/ggml.c.o -c
/wrkdirs/usr/ports/misc/llama-cpp/work/llama.cpp-b2619/ggml.c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/wrkdirs/usr/ports/misc/llama-cpp/work/llama.cpp-b2619/ggml.c'.
4.      Running pass 'ARM Instruction Selection' on function
'@ggml_compute_forward_unary'
 #0 0x042b3f6c (/usr/bin/cc+0x42b3f6c)
 #1 0x042b1eb4 (/usr/bin/cc+0x42b1eb4)
 #2 0x0425f764 (/usr/bin/cc+0x425f764)
 #3 0x0425f720 (/usr/bin/cc+0x425f720)
 #4 0x042a25e4 (/usr/bin/cc+0x42a25e4)
 #5 0x0173ec28 (/usr/bin/cc+0x173ec28)
 #6 0x04265e20 (/usr/bin/cc+0x4265e20)
 #7 0x045c5b4c (/usr/bin/cc+0x45c5b4c)
 #8 0x045c50e0 (/usr/bin/cc+0x45c50e0)
 #9 0x04a54fc0 (/usr/bin/cc+0x4a54fc0)
#10 0x045bd490 (/usr/bin/cc+0x45bd490)
#11 0x045bccd0 (/usr/bin/cc+0x45bccd0)
#12 0x045bc924 (/usr/bin/cc+0x45bc924)
#13 0x045bc338 (/usr/bin/cc+0x45bc338)
#14 0x045ba5a4 (/usr/bin/cc+0x45ba5a4)
#15 0x04a503f4 (/usr/bin/cc+0x4a503f4)
#16 0x03ad62a0 (/usr/bin/cc+0x3ad62a0)
#17 0x03f04898 (/usr/bin/cc+0x3f04898)
#18 0x03f0a468 (/usr/bin/cc+0x3f0a468)
#19 0x03f04e84 (/usr/bin/cc+0x3f04e84)
#20 0x01f9da9c (/usr/bin/cc+0x1f9da9c)
#21 0x022850bc (/usr/bin/cc+0x22850bc)
#22 0x02797710 (/usr/bin/cc+0x2797710)
#23 0x021ca634 (/usr/bin/cc+0x21ca634)
#24 0x0215e480 (/usr/bin/cc+0x215e480)
#25 0x0227ed24 (/usr/bin/cc+0x227ed24)
#26 0x0173e488 (/usr/bin/cc+0x173e488)
#27 0x0174ba70 (/usr/bin/cc+0x174ba70)
#28 0x0201a678 (/usr/bin/cc+0x201a678)
#29 0x0425f6fc (/usr/bin/cc+0x425f6fc)
#30 0x0201a140 (/usr/bin/cc+0x201a140)
#31 0x01fe78e8 (/usr/bin/cc+0x1fe78e8)
#32 0x01fe7b70 (/usr/bin/cc+0x1fe7b70)
#33 0x01ffe958 (/usr/bin/cc+0x1ffe958)
#34 0x0174b1a0 (/usr/bin/cc+0x174b1a0)
#35 0x25ce86c0 __libc_start1 (/lib/libc.so.7+0x576c0)
cc: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git
llvmorg-16.0.6-0-g7cbf1a259152)
Target: armv7-unknown-freebsd14.0-gnueabihf
Thread model: posix
InstalledDir: /usr/bin
cc: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
cc: note: diagnostic msg: /tmp/ggml-555a7f.c
cc: note: diagnostic msg: /tmp/ggml-555a7f.sh
cc: note: diagnostic msg: 

********************

-- 
You are receiving this mail because:
You are the assignee for the bug.