GNU gdb (GDB) 8.3 [GDB v8.3 for FreeBSD] Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "powerpc64-portbld-freebsd13.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... The directory where separate debug symbols are searched for is "/usr/lib/debug". Reading symbols from /usr/bin/c++... Reading symbols from /usr/lib/debug//usr/bin/clang.debug... (gdb) run Starting program: /usr/bin/c++ -cc1 -triple powerpc64-unknown-freebsd13.0 -emit-obj -disable-free -main-file-name sb_bc_builder.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -fno-trapping-math -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu ppc64 -target-feature +secure-plt -mfloat-abi hard -dwarf-column-info -debug-info-kind=standalone -dwarf-version=4 -debugger-tuning=gdb -momit-leaf-frame-pointer -coverage-notes-file /tmp/usr/ports/graphics/mesa-dri/work/mesa-18.3.2/src/gallium/drivers/r600/sb/.libs/sb_bc_builder.gcno -sys-header-deps -D PACKAGE_NAME=\"Mesa\" -D PACKAGE_TARNAME=\"mesa\" -D PACKAGE_VERSION=\"18.3.2\" -D PACKAGE_STRING=\"Mesa\ 18.3.2\" -D PACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi\?product=Mesa\" -D PACKAGE_URL=\"\" -D PACKAGE=\"mesa\" -D VERSION=\"18.3.2\" -D STDC_HEADERS=1 -D HAVE_SYS_TYPES_H=1 -D HAVE_SYS_STAT_H=1 -D HAVE_STDLIB_H=1 -D HAVE_STRING_H=1 -D HAVE_MEMORY_H=1 -D HAVE_STRINGS_H=1 -D HAVE_INTTYPES_H=1 -D HAVE_STDINT_H=1 -D HAVE_UNISTD_H=1 -D HAVE_DLFCN_H=1 -D LT_OBJDIR=\".libs/\" -D YYTEXT_POINTER=1 -D HAVE___BUILTIN_BSWAP32=1 -D HAVE___BUILTIN_BSWAP64=1 -D HAVE___BUILTIN_CLZ=1 -D HAVE___BUILTIN_CLZLL=1 -D HAVE___BUILTIN_CTZ=1 -D HAVE___BUILTIN_EXPECT=1 -D HAVE___BUILTIN_FFS=1 -D HAVE___BUILTIN_FFSLL=1 -D HAVE___BUILTIN_POPCOUNT=1 -D HAVE___BUILTIN_POPCOUNTLL=1 -D HAVE___BUILTIN_UNREACHABLE=1 -D HAVE_FUNC_ATTRIBUTE_CONST=1 -D HAVE_FUNC_ATTRIBUTE_FLATTEN=1 -D HAVE_FUNC_ATTRIBUTE_FORMAT=1 -D HAVE_FUNC_ATTRIBUTE_MALLOC=1 -D HAVE_FUNC_ATTRIBUTE_PACKED=1 -D HAVE_FUNC_ATTRIBUTE_PURE=1 -D HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL=1 -D HAVE_FUNC_ATTRIBUTE_UNUSED=1 -D HAVE_FUNC_ATTRIBUTE_VISIBILITY=1 -D HAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT=1 -D HAVE_FUNC_ATTRIBUTE_WEAK=1 -D HAVE_FUNC_ATTRIBUTE_ALIAS=1 -D HAVE_FUNC_ATTRIBUTE_NORETURN=1 -D HAVE_DLADDR=1 -D HAVE_CLOCK_GETTIME=1 -D HAVE_CLOCK_NANOSLEEP=1 -D HAVE_PTHREAD_PRIO_INHERIT=1 -D HAVE_PTHREAD=1 -D HAVE_SYS_UMTX_H=1 -D ENABLE_ST_OMX_BELLAGIO=0 -D ENABLE_ST_OMX_TIZONIA=0 -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D USE_GCC_ATOMIC_BUILTINS -D DEBUG -D HAVE_XLOCALE_H -D HAVE_SYS_SYSCTL_H -D HAVE_DLFCN_H -D HAVE_STRTOF -D HAVE_MKOSTEMP -D HAVE_TIMESPEC_GET -D HAVE_MEMFD_CREATE -D HAVE_STRTOD_L -D HAVE_DL_ITERATE_PHDR -D HAVE_POSIX_MEMALIGN -D HAVE_ZLIB -D HAVE_PTHREAD_SETAFFINITY -D HAVE_LINUX_FUTEX_H -D HAVE_LIBDRM -D GLX_USE_DRM -D GLX_INDIRECT_RENDERING -D GLX_DIRECT_RENDERING -D HAVE_X11_PLATFORM -D HAVE_SURFACELESS_PLATFORM -D HAVE_DRM_PLATFORM -D HAVE_WAYLAND_PLATFORM -D WL_HIDE_DEPRECATED -D HAVE_DRI3 -D HAVE_DRI3_MODIFIERS -D ENABLE_SHADER_CACHE -D HAVE_MINCORE -D HAVE_ST_VDPAU -D HAVE_LLVM=0x0800 -D MESA_LLVM_VERSION_PATCH=1 -D PIC -O2 -Wall -Wno-missing-field-initializers -fdeprecated-macro -ferror-limit 19 -fmessage-length 81 -fvisibility hidden -stack-protector 2 -fno-signed-char -fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -faddrsig -x c++ sb_bc_builder-669135.cpp Assertion failed: (idx < size()), function operator[], file /usr/src/contrib/llvm/include/llvm/ADT/SmallVector.h, line 153. Program received signal SIGABRT, Aborted. thr_kill () at thr_kill.S:4 warning: Source file is more recent than executable. 4 RSYSCALL(thr_kill) (gdb) bt #0 thr_kill () at thr_kill.S:4 #1 0x0000000815231288 in __raise (s=354891072) at /usr/local-src/lib/libc/gen/raise.c:52 #2 0x000000081518a258 in abort () at /usr/local-src/lib/libc/stdlib/abort.c:67 #3 0x000000081521b770 in __assert (func=, file=, line=, failedexpr=) at /usr/local-src/lib/libc/gen/assert.c:51 #4 0x0000000012edf97c in getBinaryCodeForInstr () at PPCGenMCCodeEmitter.inc:5249 #5 0x0000000012edcb20 in encodeInstruction () at /usr/src/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp:288 #6 0x000000001333ad5c in EmitInstToData () at /usr/src/contrib/llvm/lib/MC/MCELFStreamer.cpp:518 #7 0x0000000013410e08 in EmitInstructionImpl () at /usr/src/contrib/llvm/lib/MC/MCObjectStreamer.cpp:357 #8 0x0000000013410b90 in EmitInstruction () at /usr/src/contrib/llvm/lib/MC/MCObjectStreamer.cpp:319 #9 0x0000000014314d38 in EmitToStreamer () at /usr/src/contrib/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:234 #10 0x000000001287dbc4 in EmitInstruction () at /usr/src/contrib/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:807 #11 0x0000000014319578 in EmitFunctionBody () at /usr/src/contrib/llvm/include/llvm/Support/raw_ostream.h:173 #12 0x0000000000000000 in ?? () (gdb)