Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Fix Tilix Build #4

Merged
merged 1 commit into from
Jun 19, 2019
Merged

Fix Tilix Build #4

merged 1 commit into from
Jun 19, 2019

Conversation

jfouquart
Copy link

Hi,

First of all, thanks for porting tilix, the best terminal emulator for me :).
About the patch in ldc, I'm on freebsd 12 and I have an intrinsics error on memcpy when linking tilix.

Fill free to pick what you want :).

@valpackett valpackett merged commit c912ba5 into DankBSD:lite Jun 19, 2019
@valpackett
Copy link
Collaborator

thanks!

Please post the error, that's interesting..

jfouquart pushed a commit to jfouquart/freebsd-ports-dank that referenced this pull request Sep 3, 2019
valpackett pushed a commit that referenced this pull request Jan 25, 2020
On ELFv2 ABI Clang can't build this port by default and throws assertion (already reported):
Assertion failed: ((Op.getOpcode() == ISD::FP_TO_SINT || Subtarget.hasFPCVT()) && "i64 FP_TO_UINT is supported only with FPCVT"), function LowerFP_TO_INTForReuse, file /poudriere/jails/powerpc64-elfv2-pkubaj/usr/src/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp, line 7281.
Stack dump:
0.	Program arguments: /usr/bin/c++ -cc1 -triple powerpc64-unknown-freebsd13.0 -emit-obj -disable-free -main-file-name protoDispatcher.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu ppc64 -target-feature +secure-plt -mfloat-abi hard -dwarf-column-info -debugger-tuning=gdb -momit-leaf-frame-pointer -coverage-notes-file /wrkdirs/usr/ports/net/norm/work/norm-1.5r6/build/protolib/src/common/protoDispatcher.cpp.1.gcno -resource-dir /usr/lib/clang/9.0.1 -I /wrkdirs/usr/ports/net/norm/work/norm-1.5r6/build/protolib/include -I /wrkdirs/usr/ports/net/norm/work/norm-1.5r6/protolib/include -I /wrkdirs/usr/ports/net/norm/work/norm-1.5r6/build/protolib/include/unix -I /wrkdirs/usr/ports/net/norm/work/norm-1.5r6/protolib/include/unix -D UNIX -D HAVE_DIRFD -D HAVE_IPV6 -D HAVE_ASSERT -D HAVE_GETLOGIN -D HAVE_FLOCK -D NDEBUG -internal-isystem /usr/include/c++/v1 -O3 -fdeprecated-macro -fdebug-compilation-dir /wrkdirs/usr/ports/net/norm/work/norm-1.5r6/build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fno-signed-char -fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -faddrsig -o /wrkdirs/usr/ports/net/norm/work/norm-1.5r6/build/protolib/src/common/protoDispatcher.cpp.1.o -x c++ ../protolib/src/common/protoDispatcher.cpp
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '../protolib/src/common/protoDispatcher.cpp'.
4.	Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@_ZN15ProtoDispatcher4WaitEv'
#0 0x000000001371df18 (/usr/bin/c+++0x1371df18)
#1 0x000000001371e594 (/usr/bin/c+++0x1371e594)
#2 0x000000001371b858 (/usr/bin/c+++0x1371b858)
#3 0x000000001371ed0c (/usr/bin/c+++0x1371ed0c)
#4 0x000000081520176c (/lib/libthr.so.3+0x1b76c)
c++: error: unable to execute command: Abort trap (core dumped)
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 9.0.1 (git@github.com:llvm/llvm-project.git c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1)
Target: powerpc64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
c++: note: diagnostic msg:

The workaround is to optimize for POWER7, which supports necessary features in hardware. This will break run-time for older CPU's, but at least we can get this port running on POWER7 and newer.

PR:		243227
Approved by:	hd@oc.dk (maintainer timeout)
valpackett pushed a commit that referenced this pull request Jan 25, 2020
On ELFv2 ABI Clang can't build this port by default and throws assertion (already reported):
Assertion failed: ((Op.getOpcode() == ISD::FP_TO_SINT || Subtarget.hasFPCVT()) && "i64 FP_TO_UINT is supported only with FPCVT"), function LowerFP_TO_INTForReuse, file /poudriere/jails/powerpc64-elfv2-pkubaj/usr/src/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp, line 7281.
Stack dump:
0.	Program arguments: /usr/bin/cc -cc1 -triple powerpc64-unknown-freebsd13.0 -emit-obj -disable-free -main-file-name Spread.c -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu ppc64 -target-feature +secure-plt -mfloat-abi hard -dwarf-column-info -debugger-tuning=gdb -momit-leaf-frame-pointer -coverage-notes-file /wrkdirs/usr/ports/net/spread/work/spread-src-3.17.4/perl/Spread/Spread.gcno -resource-dir /usr/lib/clang/9.0.1 -I ../.. -I ../spread-src-3.17.0/ -D VERSION="3.17.4.4" -D XS_VERSION="3.17.4.4" -D PIC -I /usr/local/lib/perl5/5.30/mach/CORE -O2 -fdebug-compilation-dir /wrkdirs/usr/ports/net/spread/work/spread-src-3.17.4/perl/Spread -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fno-signed-char -fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-loops -vectorize-slp -faddrsig -o Spread.o -x c Spread.c
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module 'Spread.c'.
4.	Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@XS_Spread_receive'
#0 0x000000001371df18 (/usr/bin/cc+0x1371df18)
#1 0x000000001371e594 (/usr/bin/cc+0x1371e594)
#2 0x000000001371b858 (/usr/bin/cc+0x1371b858)
#3 0x000000001371ed0c (/usr/bin/cc+0x1371ed0c)
#4 0x000000081520176c (/lib/libthr.so.3+0x1b76c)
cc: error: unable to execute command: Abort trap (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 9.0.1 (git@github.com:llvm/llvm-project.git c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1)
Target: powerpc64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin
cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
cc: note: diagnostic msg:
********************

The workaround is to optimize for POWER7, which supports necessary features in hardware.

PR:		243245
Approved by:	portmaster@bsdforge.com (maintainer timeout)
jfouquart pushed a commit to jfouquart/freebsd-ports-dank that referenced this pull request Feb 4, 2020
On ELFv2 ABI Clang can't build this port by default and throws assertion (already reported):
Assertion failed: ((Op.getOpcode() == ISD::FP_TO_SINT || Subtarget.hasFPCVT()) && "i64 FP_TO_UINT is supported only with FPCVT"), function LowerFP_TO_INTForReuse, file /poudriere/jails/powerpc64-elfv2-pkubaj/usr/src/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp, line 7281.
Stack dump:
0.	Program arguments: /usr/bin/c++ -cc1 -triple powerpc64-unknown-freebsd13.0 -emit-obj -disable-free -main-file-name protoDispatcher.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu ppc64 -target-feature +secure-plt -mfloat-abi hard -dwarf-column-info -debugger-tuning=gdb -momit-leaf-frame-pointer -coverage-notes-file /wrkdirs/usr/ports/net/norm/work/norm-1.5r6/build/protolib/src/common/protoDispatcher.cpp.1.gcno -resource-dir /usr/lib/clang/9.0.1 -I /wrkdirs/usr/ports/net/norm/work/norm-1.5r6/build/protolib/include -I /wrkdirs/usr/ports/net/norm/work/norm-1.5r6/protolib/include -I /wrkdirs/usr/ports/net/norm/work/norm-1.5r6/build/protolib/include/unix -I /wrkdirs/usr/ports/net/norm/work/norm-1.5r6/protolib/include/unix -D UNIX -D HAVE_DIRFD -D HAVE_IPV6 -D HAVE_ASSERT -D HAVE_GETLOGIN -D HAVE_FLOCK -D NDEBUG -internal-isystem /usr/include/c++/v1 -O3 -fdeprecated-macro -fdebug-compilation-dir /wrkdirs/usr/ports/net/norm/work/norm-1.5r6/build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fno-signed-char -fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -faddrsig -o /wrkdirs/usr/ports/net/norm/work/norm-1.5r6/build/protolib/src/common/protoDispatcher.cpp.1.o -x c++ ../protolib/src/common/protoDispatcher.cpp
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '../protolib/src/common/protoDispatcher.cpp'.
4.	Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@_ZN15ProtoDispatcher4WaitEv'
#0 0x000000001371df18 (/usr/bin/c+++0x1371df18)
DankBSD#1 0x000000001371e594 (/usr/bin/c+++0x1371e594)
DankBSD#2 0x000000001371b858 (/usr/bin/c+++0x1371b858)
DankBSD#3 0x000000001371ed0c (/usr/bin/c+++0x1371ed0c)
DankBSD#4 0x000000081520176c (/lib/libthr.so.3+0x1b76c)
c++: error: unable to execute command: Abort trap (core dumped)
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 9.0.1 (git@github.com:llvm/llvm-project.git c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1)
Target: powerpc64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
c++: note: diagnostic msg:

The workaround is to optimize for POWER7, which supports necessary features in hardware. This will break run-time for older CPU's, but at least we can get this port running on POWER7 and newer.

PR:		243227
Approved by:	hd@oc.dk (maintainer timeout)
jfouquart pushed a commit to jfouquart/freebsd-ports-dank that referenced this pull request Feb 4, 2020
On ELFv2 ABI Clang can't build this port by default and throws assertion (already reported):
Assertion failed: ((Op.getOpcode() == ISD::FP_TO_SINT || Subtarget.hasFPCVT()) && "i64 FP_TO_UINT is supported only with FPCVT"), function LowerFP_TO_INTForReuse, file /poudriere/jails/powerpc64-elfv2-pkubaj/usr/src/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp, line 7281.
Stack dump:
0.	Program arguments: /usr/bin/cc -cc1 -triple powerpc64-unknown-freebsd13.0 -emit-obj -disable-free -main-file-name Spread.c -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu ppc64 -target-feature +secure-plt -mfloat-abi hard -dwarf-column-info -debugger-tuning=gdb -momit-leaf-frame-pointer -coverage-notes-file /wrkdirs/usr/ports/net/spread/work/spread-src-3.17.4/perl/Spread/Spread.gcno -resource-dir /usr/lib/clang/9.0.1 -I ../.. -I ../spread-src-3.17.0/ -D VERSION="3.17.4.4" -D XS_VERSION="3.17.4.4" -D PIC -I /usr/local/lib/perl5/5.30/mach/CORE -O2 -fdebug-compilation-dir /wrkdirs/usr/ports/net/spread/work/spread-src-3.17.4/perl/Spread -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fno-signed-char -fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-loops -vectorize-slp -faddrsig -o Spread.o -x c Spread.c
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module 'Spread.c'.
4.	Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@XS_Spread_receive'
#0 0x000000001371df18 (/usr/bin/cc+0x1371df18)
DankBSD#1 0x000000001371e594 (/usr/bin/cc+0x1371e594)
DankBSD#2 0x000000001371b858 (/usr/bin/cc+0x1371b858)
DankBSD#3 0x000000001371ed0c (/usr/bin/cc+0x1371ed0c)
DankBSD#4 0x000000081520176c (/lib/libthr.so.3+0x1b76c)
cc: error: unable to execute command: Abort trap (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 9.0.1 (git@github.com:llvm/llvm-project.git c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1)
Target: powerpc64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin
cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
cc: note: diagnostic msg:
********************

The workaround is to optimize for POWER7, which supports necessary features in hardware.

PR:		243245
Approved by:	portmaster@bsdforge.com (maintainer timeout)
jfouquart pushed a commit to jfouquart/freebsd-ports-dank that referenced this pull request Feb 6, 2020
Clang has issues compiling this port on powerpc64 elfv2:
Assertion failed: ((Op.getOpcode() == ISD::FP_TO_SINT || Subtarget.hasFPCVT()) && "i64 FP_TO_UINT is supported only with FPCVT"), function LowerFP_TO_INTForReuse, file /poudriere/jails/powerpc64-elfv2-pkubaj/usr/src/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp, line 7281.
Stack dump:
0.	Program arguments: /usr/bin/cc -cc1 -triple powerpc64-unknown-freebsd13.0 -emit-obj -disable-free -main-file-name raudio.c -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu ppc64 -target-feature +secure-plt -mfloat-abi hard -dwarf-column-info -debugger-tuning=gdb -momit-leaf-frame-pointer -coverage-notes-file /wrkdirs/usr/ports/devel/raylib/work/.build/src/CMakeFiles/raylib.dir/raudio.c.gcno -resource-dir /usr/lib/clang/9.0.1 -dependency-file src/CMakeFiles/raylib.dir/raudio.c.o.d -sys-header-deps -MT src/CMakeFiles/raylib.dir/raudio.c.o -isystem /usr/local/include -isystem /usr/local/include -D GLFW_DLL -D GRAPHICS_API_OPENGL_33 -D PLATFORM_DESKTOP -D RAYLIB_CMAKE=1 -D raylib_EXPORTS -I . -I /wrkdirs/usr/ports/devel/raylib/work/raylib-2.5.0/src/. -O2 -Werror=implicit-function-declaration -Werror=pointer-arith -std=gnu99 -fdebug-compilation-dir /wrkdirs/usr/ports/devel/raylib/work/.build -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fno-signed-char -fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-loops -vectorize-slp -faddrsig -o src/CMakeFiles/raylib.dir/raudio.c.o -x c /wrkdirs/usr/ports/devel/raylib/work/raylib-2.5.0/src/raudio.c
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '/wrkdirs/usr/ports/devel/raylib/work/raylib-2.5.0/src/raudio.c'.
4.	Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@ma_calculate_frame_count_after_src'
#0 0x000000001371e818 (/usr/bin/cc+0x1371e818)
DankBSD#1 0x000000001371ee94 (/usr/bin/cc+0x1371ee94)
DankBSD#2 0x000000001371c158 (/usr/bin/cc+0x1371c158)
DankBSD#3 0x000000001371f60c (/usr/bin/cc+0x1371f60c)
DankBSD#4 0x000000081520176c (/lib/libthr.so.3+0x1b76c)
cc: error: unable to execute command: Abort trap (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 9.0.1 (git@github.com:llvm/llvm-project.git c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1)
Target: powerpc64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin

Use GCC instead. The issue with Clang has been reported upstream.

PR:		243855
Approved by:	freebsd@sysctl.cz (maintainer)
jfouquart pushed a commit to jfouquart/freebsd-ports-dank that referenced this pull request Feb 11, 2020
Use GCC unconditionally on powerpc64:
Invalid PPC CTR loop!
UNREACHABLE executed at /poudriere/jails/powerpc64-elfv2-pkubaj/usr/src/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp:214!
Stack dump:
0.	Program arguments: /usr/bin/cc -cc1 -triple powerpc64-unknown-freebsd13.0 -emit-obj -disable-free -main-file-name main.c -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -masm-verbose -mconstructor-aliases -munwind-tables -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 /wrkdirs/usr/ports/sysutils/lttng-tools/work/lttng-tools-2.9.3/src/bin/lttng-sessiond/main.gcno -resource-dir /usr/lib/clang/9.0.1 -dependency-file .deps/main.Tpo -sys-header-deps -MP -MT main.o -include config.h -isystem /usr/local/include -isystem /usr/local/include -D HAVE_CONFIG_H -I ../../.. -I ../../.. -I ../../../src -I ../../../include -I ../../../include -I ../../../src -D INSTALL_BIN_PATH="/usr/local/lib/lttng/libexec" -D INSTALL_LIB_PATH="/usr/local/lib" -I /usr/local/include -D _THREAD_SAFE -O2 -Wall -fdebug-compilation-dir /wrkdirs/usr/ports/sysutils/lttng-tools/work/lttng-tools-2.9.3/src/bin/lttng-sessiond -ferror-limit 19 -fmessage-length 0 -pthread -stack-protector 2 -fno-signed-char -fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-loops -vectorize-slp -faddrsig -o main.o -x c main.c
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module 'main.c'.
4.	Running pass 'PowerPC CTR Loops Verify' on function '@thread_manage_clients'
#0 0x000000001371e818 (/usr/bin/cc+0x1371e818)
DankBSD#1 0x000000001371ee94 (/usr/bin/cc+0x1371ee94)
DankBSD#2 0x000000001371c158 (/usr/bin/cc+0x1371c158)
DankBSD#3 0x000000001371f60c (/usr/bin/cc+0x1371f60c)
DankBSD#4 0x000000081520176c (/lib/libthr.so.3+0x1b76c)
cc: error: unable to execute command: Abort trap (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 9.0.1 (git@github.com:llvm/llvm-project.git c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1)
Target: powerpc64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin
cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
--- ust-app.o ---
mv -f .deps/ust-app.Tpo .deps/ust-app.Po
--- main.o ---
cc: note: diagnostic msg:
********************
valpackett pushed a commit that referenced this pull request Mar 21, 2020
Clang 10 fails with assertion error (already reported):
/bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I..    -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT cgbmv.lo -MD -MP -MF .deps/cgbmv.Tpo -c -o cgbmv.lo cgbmv.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I.. -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT cgbmv.lo -MD -MP -MF .deps/cgbmv.Tpo -c cgbmv.c  -fPIC -DPIC -o .libs/cgbmv.o
Assertion failed: (HT.TopLevelMap[ThisEntry->getKey()] == ThisEntry && "Scope imbalance!"), function ~ScopedHashTableScope, file /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/ScopedHashTable.h, line 245.
Stack dump:
0.      Program arguments: cc -DHAVE_CONFIG_H -I. -I.. -I.. -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT cgbmv.lo -MD -MP -MF .deps/cgbmv.Tpo -c cgbmv.c -fPIC -DPIC -o .libs/cgbmv.o
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'cgbmv.c'.
4.      Running pass 'Early CSE' on function '@cblas_cgbmv'
#0 0x0000000013bac208 PrintStackTrace /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:564:13
#1 0x0000000013ba98d0 RunSignalHandlers /usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:67:5
#2 0x0000000013baf278 HandleCrash /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:75:7
#3 0x0000000013baf4ec CrashRecoverySignalHandler /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:0:51
#4 0x0000000815732748 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:303:3
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 10.0.0 (git@github.com:llvm/llvm-project.git llvmorg-10.0.0-rc3-1-gc290cb61fdc)
Target: powerpc64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin
valpackett pushed a commit that referenced this pull request Mar 21, 2020
Clang 10 hits assertion error:
Assertion failed: (!IsStrict && "Don't know how to expand for strict nodes."), function ExpandNode, file /poudriere/jails/powerpc64-head/usr/src/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp, line 3638.
Stack dump:
0.	Program arguments: cc -Ibabl/4170c83@@babl-0.1@sha -Ibabl -I../babl -I. -I../ -Ibabl/base -I../babl/base -I/usr/local/include -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -Ofast -fno-unsafe-math-optimizations -Wdeclaration-after-statement -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -O2 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -pthread -DLIBDIR="/usr/local/lib" -MD -MQ babl/4170c83@@babl-0.1@sha/babl-model.c.o -MF babl/4170c83@@babl-0.1@sha/babl-model.c.o.d -o babl/4170c83@@babl-0.1@sha/babl-model.c.o -c ../babl/babl-model.c
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '../babl/babl-model.c'.
4.	Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@babl_model_is_symmetric'
#0 0x0000000013bba6c8 (/usr/bin/cc+0x13bba6c8)
#1 0x0000000013bb7d90 (/usr/bin/cc+0x13bb7d90)
#2 0x0000000013bbd738 (/usr/bin/cc+0x13bbd738)
#3 0x0000000013bbd9ac (/usr/bin/cc+0x13bbd9ac)
#4 0x0000000815740838 (/lib/libthr.so.3+0x27838)
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 10.0.0 (git@github.com:llvm/llvm-project.git llvmorg-10.0.0-rc3-1-gc290cb61fdc)
Target: powerpc64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin

Use GCC for now.
valpackett pushed a commit that referenced this pull request Mar 21, 2020
FreeBSD-relevant changes, since rc #3, from Git:
* 63e21bd 2020-03-17 | Remove 19036 trust anchor, now expired. [Simon Kelley]
* b837c45 2020-03-10 | Update German translation. [Conrad Kostecki]
valpackett pushed a commit that referenced this pull request Mar 27, 2020
|diff --git a/notes.c b/notes.c
|index 75c028b300..24089afa8a 100644
|--- a/notes.c
|+++ b/notes.c
--------------------------
Patching file /wrkdirs/usr/ports/devel/git-cinnabar/work/git-cinnabar-0.5.4/git-core/notes.c using Plan A...
Hunk #1 succeeded at 419 (offset 2 lines).
Hunk #2 failed at 721.
Hunk #3 succeeded at 752 (offset 3 lines).
Hunk #4 succeeded at 1159 (offset 35 lines).
Hunk #5 failed at 1177.
Hunk #6 succeeded at 1159 (offset 4 lines).
2 out of 6 hunks failed--saving rejects to helper/notes.patched.c.rej
done
gmake[2]: *** [Makefile:157: ../helper/notes.patched.c] Error 1

Reported by:	pkg-fallout
valpackett pushed a commit that referenced this pull request Apr 13, 2020
Changes since 1.5.3:

Interface:

    * A redesigned interface that works better for smaller screens (freebsd#176)
    * Improved fullscreen mode with an overlaid headerbar (#4)
    * The headerbar and the progress bar now auto-hide, for a distraction-free
      reading experience
    * Various location information, as well as a clock, can now be displayed in
      the footer (freebsd#175, freebsd#233)
    * A new location popover (Ctrl + L) that shows reading time estimates and
      allows skipping to locations (freebsd#155)
    * E-reader style navigation: go to the previous or next page by tapping on
      the left or right part of the view; tap on the middle to toggle header bar
      and progress bar
    * Annotations, bookmarks, and find results now show chapter titles (freebsd#162)
    * When looking up words in dictionaries, the query can now be edited (freebsd#156)
    * New shortcut for viewing metadata (Ctrl + I) and preferences (Ctrl + ,)
    * A new traditional menubar, which may be displayed depending on the desktop
      environment
    * Option to use a traditional titlebar and menubar instead of a headerbar
      (experimental)

Reading:

    * Continuous scrolling layout
    * Option to show decorative shadows that mimic the appearance of a real book
    * Ability to zoom in and zoom out (freebsd#117)
    * Improved image viewer with "save as" option
    * Open copies of a book in new windows (Ctrl + N)
    * Reload book (Ctrl + R)
    * New built-in themes: Gray, Solarized, Gruvbox, Nord

Text selection:

    * Ability to select text across pages
    * Find selected text in book
    * Speak selected text or from the selected location (freebsd#141)

Annotations:

    * Spellcheck notes (requires new optional dependency "gspell")
    * Export annotations to Markdown (freebsd#180)
    * Options to use custom colors for highlights

For publishers and developers:

    * Support for Apple Books theme attribute, which allows books to detect
      themes without JavaScript (freebsd#178)
    * WebKit's developer tools can be enabled

Breaking changes:

    * The settings schemas has been reorganized
    * The format for custom themes has changed
    * Locations are now 1024 characters in size

Bug fixes:

    * Fixed not restoring exact last location
    * Fixed navigation not working with scrolled layout
    * Fixed font size not changing when the book uses absolute-size keywords
      (freebsd#173)
    * Fixed text cut off at margin edge (freebsd#177)
    * Fixed unable to open books with "#" or "?" in the file name
valpackett pushed a commit that referenced this pull request Apr 17, 2020
socket_spec_test.cpp:101: Failure
Expected equality of these values:
  5555
  get_host_socket_spec_port("vsock:5555", &error)
    Which is: -1

* thread #1, name = 'adb_test', stop reason = signal SIGILL: privileged instruction
    frame #0: 0x00000000003fc604 adb_test`GetThreadId() at logger_write.cpp:240:31
   237  #endif
   238
   239  // Copied from base/threads.cpp
-> 240  static uint64_t GetThreadId() {
   241  #if defined(__BIONIC__)
   242    return gettid();
   243  #elif defined(__APPLE__)
(lldb) bt
* thread #1, name = 'adb_test', stop reason = signal SIGILL: privileged instruction
  * frame #0: 0x00000000003fc604 adb_test`GetThreadId() at logger_write.cpp:240:31
    frame #1: 0x00000000003fc3ce adb_test`::__android_log_stderr_logger(logger_data=0x00007fffffffce60, message="foobar") at logger_write.cpp:274:18
    frame #2: 0x00000000003fc92a adb_test`::__android_log_write_logger_data(logger_data=0x00007fffffffce60, msg="foobar") at logger_write.cpp:329:3
    frame #3: 0x00000000003f6c44 adb_test`android::base::LogMessage::LogLine(file="logging_test.cpp", line=603, severity=ERROR, tag=0x0000000000000000, message="foobar") at logging.cpp:581:5
    frame #4: 0x00000000003f683d adb_test`android::base::LogMessage::~LogMessage(this=0x00007fffffffd000) at logging.cpp:542:7
    frame #5: 0x00000000004f76fe adb_test`TestLoggingInConstructor() at logging_test.cpp:603:3

* thread #1, name = 'adb_test', stop reason = signal SIGSEGV: invalid address (fault address: 0x14)
    frame #0: 0x00000000004c8dc8 adb_test`file_RemoveFileIfExists_EACCES_Test::TestBody(this=0x0000000800f91060) at file_test.cpp:247:19
   244    // root can bypass permission restrictions, so drop root.
   245    if (getuid() == 0) {
   246      passwd* shell = getpwnam("shell");
-> 247      setgid(shell->pw_gid);
   248      setuid(shell->pw_uid);
   249    }
   250
(lldb) bt
* thread #1, name = 'adb_test', stop reason = signal SIGSEGV: invalid address (fault address: 0x14)
  * frame #0: 0x00000000004c8dc8 adb_test`file_RemoveFileIfExists_EACCES_Test::TestBody(this=0x0000000800f91060) at file_test.cpp:247:19
    frame #1: 0x0000000800982d6e libgtest.so`void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(object=0x0000000800f91060, method=21 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00, location="the test body")(), char const*) at gtest.cc:2433:10
    frame #2: 0x0000000800962399 libgtest.so`void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(object=0x0000000800f91060, method=21 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00, location="the test body")(), char const*) at gtest.cc:2469:14
    frame #3: 0x0000000800942b43 libgtest.so`testing::Test::Run(this=0x0000000800f91060) at gtest.cc:2508:5
    frame #4: 0x0000000800943792 libgtest.so`testing::TestInfo::Run(this=0x0000000800fa3ba0) at gtest.cc:2684:11
    frame #5: 0x0000000800943e17 libgtest.so`testing::TestSuite::Run(this=0x0000000800fa34a0) at gtest.cc:2816:28
    frame #6: 0x0000000800950480 libgtest.so`testing::internal::UnitTestImpl::RunAllTests(this=0x0000000800fa4000) at gtest.cc:5338:44
    frame #7: 0x0000000800987bfe libgtest.so`bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(object=0x0000000800fa4000, method=40 00 95 00 08 00 00 00 00 00 00 00 00 00 00 00, location="auxiliary test code (environments or event listeners)")(), char const*) at gtest.cc:2433:10
    frame freebsd#8: 0x00000008009650a9 libgtest.so`bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(object=0x0000000800fa4000, method=40 00 95 00 08 00 00 00 00 00 00 00 00 00 00 00, location="auxiliary test code (environments or event listeners)")(), char const*) at gtest.cc:2469:14
    frame freebsd#9: 0x000000080094ffd4 libgtest.so`testing::UnitTest::Run(this=0x000000080099a0d8) at gtest.cc:4925:10
    frame freebsd#10: 0x0000000000543cf1 adb_test`RUN_ALL_TESTS() at gtest.h:2473:46
    frame freebsd#11: 0x0000000000543c70 adb_test`main(argc=1, argv=0x00007fffffffeae8) at test_main.cpp:24:10
    frame freebsd#12: 0x000000000031710f adb_test`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1.c:76:7

PR:		245642
Submitted by:	Marcin Cieślak (based on)
valpackett pushed a commit that referenced this pull request Jun 23, 2020
Sway dropped wl_shell support. Upstream had xdg-shell for some time
but reverted due to being "incompatible" with Weston.

* thread #1, name = 'vkcube-wayland', stop reason = signal SIGSEGV: invalid address (fault address: 0x0)
    frame #0: 0x00000008002625a3 libwayland-client.so.0`wl_proxy_marshal_constructor(proxy=0x0000000000000000, opcode=0, interface=0x00000000002152b8) at wayland-client.c:830:41
   827          va_list ap;
   828
   829          va_start(ap, interface);
-> 830          wl_argument_from_va_list(proxy->object.interface->methods[opcode].signature,
   831                                   args, WL_CLOSURE_MAX_ARGS, ap);
   832          va_end(ap);
   833
(lldb) bt
* thread #1, name = 'vkcube-wayland', stop reason = signal SIGSEGV: invalid address (fault address: 0x0)
  * frame #0: 0x00000008002625a3 libwayland-client.so.0`wl_proxy_marshal_constructor(proxy=0x0000000000000000, opcode=0, interface=0x00000000002152b8) at wayland-client.c:830:41
    frame #1: 0x000000000020e822 vkcube-wayland`wl_shell_get_shell_surface(wl_shell=0x0000000000000000, surface=0x0000000800a22090) at wayland-client-protocol.h:2926:7
    frame #2: 0x000000000020a503 vkcube-wayland`demo_create_window(demo=0x00007fffffffd330) at cube.c:2759:27
    frame #3: 0x0000000000209ef2 vkcube-wayland`main(argc=1, argv=0x00007fffffffe0e0) at cube.c:3990:5
    frame #4: 0x00000000002076ef vkcube-wayland`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1_c.c:75:7
valpackett pushed a commit that referenced this pull request Jul 3, 2020
No PORTEPOCH bump because this port wasn't stable to begin with.

* thread freebsd#9, name = 'yuzu:CPUThread', stop reason = signal SIGABRT
  * frame #0: 0x0000000804146a8a libc.so.7`__sys_thr_kill at thr_kill.S:4
    frame #1: 0x0000000804146424 libc.so.7`__raise(s=6) at raise.c:52:10
    frame #2: 0x00000008040aef19 libc.so.7`abort at abort.c:67:8
    frame #3: 0x00000008038f39b9 libcxxrt.so.1`report_failure(err=<unavailable>, thrown_exception=0x00000009d701aa88) at exception.cc:719:5
    frame #4: 0x00000008038c34dc libc++.so.1`std::__1::__throw_system_error(ev=11, what_arg="mutex lock failed") at system_error.cpp:287:5
    frame #5: 0x00000008038a834d libc++.so.1`std::__1::mutex::lock(this=<unavailable>) at mutex.cpp:35:9
    frame #6: 0x0000000000dbb534 yuzu`std::__1::unique_lock<std::__1::mutex>::unique_lock(this=0x00000009c68f1d90, __m=0x0000000805984918) at __mutex_base:119:61
    frame #7: 0x000000000136167d yuzu`Service::NVFlinger::NVFlinger::Lock(this=0x000000080c8c6958) at nvflinger.h:90:16
    frame freebsd#8: 0x00000000014c5ab4 yuzu`Service::VI::IHOSBinderDriver::TransactParcel(this=0x00000009d536e6f8, thread=std::__1::shared_ptr<Kernel::Thread>::element_type @ 0x000000090faedc20 strong=9 weak=2, ctx=0x00000009d536e310, reason=Signal)::'lambda'(std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)::operator()(std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason) const at vi.cpp:554:37
    frame freebsd#9: 0x00000000014c59f5 yuzu`decltype(__f=0x00000009d536e6f8, __args=nullptr, __args=0x00000009d536e310, __args=0x00000009c68f2004)::'lambda'(std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)&>(fp)(std::__1::forward<std::__1::shared_ptr<Kernel::Thread> >(fp0), std::__1::forward<Kernel::HLERequestContext&>(fp0), std::__1::forward<Kernel::ThreadWakeupReason>(fp0))) std::__1::__invoke<Service::VI::IHOSBinderDriver::TransactParcel(Kernel::HLERequestContext&)::'lambda'(std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)&, std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason>(Service::VI::IHOSBinderDriver::TransactParcel(Kernel::HLERequestContext&)::'lambda'(std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)&, std::__1::shared_ptr<Kernel::Thread>&&, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason&&) at type_traits:3539:1
    frame freebsd#10: 0x00000000014c594c yuzu`void std::__1::__invoke_void_return_wrapper<void>::__call<Service::VI::IHOSBinderDriver::TransactParcel(__args=0x00000009d536e6f8, __args=nullptr, __args=0x00000009d536e310, __args=0x00000009c68f2004)::'lambda'(std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)&, std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason>(Service::VI::IHOSBinderDriver::TransactParcel(Kernel::HLERequestContext&)::'lambda'(std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)&, std::__1::shared_ptr<Kernel::Thread>&&, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason&&) at __functional_base:348:9
    frame freebsd#11: 0x00000000014c58dc yuzu`std::__1::__function::__alloc_func<Service::VI::IHOSBinderDriver::TransactParcel(Kernel::HLERequestContext&)::'lambda'(std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason), std::__1::allocator<Service::VI::IHOSBinderDriver::TransactParcel(Kernel::HLERequestContext&)::'lambda'(std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)>, void (std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)>::operator(this=0x00000009d536e6f8, __arg=nullptr, __arg=0x00000009d536e310, __arg=0x00000009c68f2004)(std::__1::shared_ptr<Kernel::Thread>&&, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason&&) at functional:1540:16
    frame freebsd#12: 0x00000000014c480d yuzu`std::__1::__function::__func<Service::VI::IHOSBinderDriver::TransactParcel(Kernel::HLERequestContext&)::'lambda'(std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason), std::__1::allocator<Service::VI::IHOSBinderDriver::TransactParcel(Kernel::HLERequestContext&)::'lambda'(std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)>, void (std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)>::operator(this=0x00000009d536e6f0, __arg=nullptr, __arg=0x00000009d536e310, __arg=0x00000009c68f2004)(std::__1::shared_ptr<Kernel::Thread>&&, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason&&) at functional:1714:12
    frame freebsd#13: 0x0000000001116862 yuzu`std::__1::__function::__value_func<void (std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)>::operator(this=0x00000009d536e6f0, __args=nullptr, __args=0x00000009d536e310, __args=0x00000009c68f2004)(std::__1::shared_ptr<Kernel::Thread>&&, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason&&) const at functional:1867:16
    frame freebsd#14: 0x00000000011167bc yuzu`std::__1::function<void (std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)>::operator(this= Lambda in File vi.cpp at Line 552, __arg=<unavailable>, __arg=0x00000009d536e310, __arg=Signal)(std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason) const at functional:2473:12
    frame freebsd#15: 0x000000000110a6a4 yuzu`Kernel::HLERequestContext::SleepClientThread(this=0x00000009d536e310, thread=std::__1::shared_ptr<Kernel::Thread>::element_type @ 0x000000090faedc20 strong=9 weak=2)>&&, std::__1::shared_ptr<Kernel::WritableEvent>)::$_0::operator()(std::__1::shared_ptr<Kernel::Thread>) at hle_ipc.cpp:67:17
    frame freebsd#16: 0x000000000110a5b1 yuzu`decltype(__f=0x00000009d536e310, __args=nullptr)>&&, std::__1::shared_ptr<Kernel::WritableEvent>)::$_0&>(fp)(std::__1::forward<std::__1::shared_ptr<Kernel::Thread> >(fp0))) std::__1::__invoke<Kernel::HLERequestContext::SleepClientThread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, std::__1::function<void (std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)>&&, std::__1::shared_ptr<Kernel::WritableEvent>)::$_0&, std::__1::shared_ptr<Kernel::Thread> >(Kernel::HLERequestContext::SleepClientThread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, std::__1::function<void (std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)>&&, std::__1::shared_ptr<Kernel::WritableEvent>)::$_0&, std::__1::shared_ptr<Kernel::Thread>&&) at type_traits:3539:1
    frame freebsd#17: 0x000000000110a532 yuzu`bool std::__1::__invoke_void_return_wrapper<bool>::__call<Kernel::HLERequestContext::SleepClientThread(__args=0x00000009d536e310, __args=nullptr)>&&, std::__1::shared_ptr<Kernel::WritableEvent>)::$_0&, std::__1::shared_ptr<Kernel::Thread> >(Kernel::HLERequestContext::SleepClientThread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, std::__1::function<void (std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)>&&, std::__1::shared_ptr<Kernel::WritableEvent>)::$_0&, std::__1::shared_ptr<Kernel::Thread>&&) at __functional_base:317:16
    frame freebsd#18: 0x000000000110a4f2 yuzu`std::__1::__function::__alloc_func<Kernel::HLERequestContext::SleepClientThread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, std::__1::function<void (std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)>&&, std::__1::shared_ptr<Kernel::WritableEvent>)::$_0, std::__1::allocator<Kernel::HLERequestContext::SleepClientThread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, std::__1::function<void (std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)>&&, std::__1::shared_ptr<Kernel::WritableEvent>)::$_0>, bool (std::__1::shared_ptr<Kernel::Thread>)>::operator(this=0x00000009d536e310, __arg=nullptr)(std::__1::shared_ptr<Kernel::Thread>&&) at functional:1540:16
    frame freebsd#19: 0x00000000011094b3 yuzu`std::__1::__function::__func<Kernel::HLERequestContext::SleepClientThread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, std::__1::function<void (std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)>&&, std::__1::shared_ptr<Kernel::WritableEvent>)::$_0, std::__1::allocator<Kernel::HLERequestContext::SleepClientThread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, std::__1::function<void (std::__1::shared_ptr<Kernel::Thread>, Kernel::HLERequestContext&, Kernel::ThreadWakeupReason)>&&, std::__1::shared_ptr<Kernel::WritableEvent>)::$_0>, bool (std::__1::shared_ptr<Kernel::Thread>)>::operator(this=0x00000009d536e300, __arg=nullptr)(std::__1::shared_ptr<Kernel::Thread>&&) at functional:1714:12
    frame freebsd#20: 0x00000000011834ed yuzu`std::__1::__function::__value_func<bool (std::__1::shared_ptr<Kernel::Thread>)>::operator(this=0x000000090faee1c0, __args=nullptr)(std::__1::shared_ptr<Kernel::Thread>&&) const at functional:1867:16
    frame freebsd#21: 0x0000000001180c18 yuzu`std::__1::function<bool (std::__1::shared_ptr<Kernel::Thread>)>::operator(this=0x000000090faee1c0, __arg=<unavailable>)(std::__1::shared_ptr<Kernel::Thread>) const at functional:2473:12
    frame freebsd#22: 0x000000000117edb2 yuzu`Kernel::Thread::InvokeHLECallback(this=0x000000090faedc20, thread=nullptr) at thread.cpp:403:12
    frame freebsd#23: 0x00000000011929d7 yuzu`Kernel::Svc::SendSyncRequest(system=0x000000000252f3d8, handle=622615) at svc.cpp:365:17
    frame freebsd#24: 0x000000000118b3b5 yuzu`void Kernel::SvcWrap64<&(Kernel::Svc::SendSyncRequest(Core::System&, unsigned int))>(system=0x000000000252f3d8) at svc_wrap.h:50:24
    frame freebsd#25: 0x000000000118a334 yuzu`Kernel::Svc::Call(system=0x000000000252f3d8, immediate=33) at svc.cpp:2649:13
    frame freebsd#26: 0x00000000011a60e3 yuzu`Core::DynarmicCallbacks64::CallSVC(this=0x00000009c657df60, swi=33) at arm_dynarmic_64.cpp:123:9
    frame freebsd#27: 0x00000000023f2c74 yuzu`Dynarmic::Backend::X64::impl::ThunkBuilder<void (Dynarmic::A64::UserCallbacks::*)(unsigned int), &(Dynarmic::A64::UserCallbacks::CallSVC(unsigned int))>::Thunk(this_=0x00000009c657df60, args=33) at devirtualize.h:28:16
valpackett pushed a commit that referenced this pull request Aug 24, 2020
ncnn API is not stable, updates frequently break this port.
Binary is also smaller when using bundled ncnn.

 $ size $(which waifu2x-ncnn-vulkan)
    text    data     bss     dec     hex filename
-7245567  242384   58992 7546943  73283f /usr/local/bin/waifu2x-ncnn-vulkan
+3281223    3152   58840 3343215  33036f /usr/local/bin/waifu2x-ncnn-vulkan

$ waifu2x-ncnn-vulkan -i foo.png -o bar.png
[0 Intel(R) HD Graphics 530 (SKL GT2)]  queueC=0[1]  queueG=0[1]  queueT=0[1]
[0 Intel(R) HD Graphics 530 (SKL GT2)]  bugsbn1=0  buglbia=0  bugcopc=0  bugihfa=0
[0 Intel(R) HD Graphics 530 (SKL GT2)]  fp16p=1  fp16s=1  fp16a=1  int8s=1  int8a=1
pipeline specialization count mismatch, expect 4 but got 1
new_pipeline failed
pipeline specialization count mismatch, expect 4 but got 1
new_pipeline failed
Process 8606 stopped
* thread freebsd#14, name = 'waifu2x-ncnn-vul', stop reason = signal SIGSEGV: invalid address (fault address: 0x28)
    frame #0: 0x0000000802080be9 libvulkan_intel.so`anv_CmdPushDescriptorSetWithTemplateKHR(commandBuffer=0x000000080c432800, descriptorUpdateTemplate=0x0000000000000000, _layout=0x0000000000000000, _set=0, pData=0x000000080c440140) at anv_cmd_buffer.c:1372:69
   1369
   1370    assert(_set < MAX_PUSH_DESCRIPTORS);
   1371
-> 1372    struct anv_descriptor_set_layout *set_layout = layout->set[_set].layout;
   1373
   1374    struct anv_descriptor_set *set =
   1375       anv_cmd_buffer_push_descriptor_set(cmd_buffer, template->bind_point,
(lldb) bt
* thread freebsd#14, name = 'waifu2x-ncnn-vul', stop reason = signal SIGSEGV: invalid address (fault address: 0x28)
  * frame #0: 0x0000000802080be9 libvulkan_intel.so`anv_CmdPushDescriptorSetWithTemplateKHR(commandBuffer=0x000000080c432800, descriptorUpdateTemplate=0x0000000000000000, _layout=0x0000000000000000, _set=0, pData=0x000000080c440140) at anv_cmd_buffer.c:1372:69
    frame #1: 0x00000000004facce waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(this=<unavailable>, pipeline=0x00000008045e3400, buffer_bindings=0x00007fffc35ea418, image_bindings=0x00007fffc35ea0f0, constants=0x00007fffc35ea400, dispatcher=0x00007fffc35ea110) at command.cpp:1457:13
    frame #2: 0x00000000004f981c waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(ncnn::Pipeline const*, std::__1::vector<ncnn::VkMat, std::__1::allocator<ncnn::VkMat> > const&, std::__1::vector<ncnn::vk_constant_type, std::__1::allocator<ncnn::vk_constant_type> > const&, ncnn::VkMat const&) [inlined] ncnn::VkCompute::record_pipeline(this=<unavailable>, pipeline=<unavailable>, buffer_bindings=<unavailable>, image_bindings=0x00007fffc35ea0f0, constants=<unavailable>, dispatcher=<unavailable>) at command.cpp:1187:5
    frame #3: 0x00000000004f97bb waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(this=<unavailable>, pipeline=<unavailable>, bindings=<unavailable>, constants=<unavailable>, dispatcher=<unavailable>) at command.cpp:1175
    frame #4: 0x000000000086b516 waifu2x-ncnn-vulkan`Waifu2x::process(this=0x00007fffffffdd58, inimage=0x00007fffc35eaf30, outimage=0x00007fffc35eaf70) const at waifu2x.cpp:457:25
    frame #5: 0x000000000084cd45 waifu2x-ncnn-vulkan`proc(args=0x00007fffffffdb70) at main.cpp:281:18
    frame #6: 0x00000008008fd1c9 libthr.so.3`thread_start(curthread=0x0000000807874300) at thr_create.c:292:16
valpackett pushed a commit that referenced this pull request Nov 6, 2020
While upstream issue is in userland driver FreeBSD kernel driver may
fail to handle it gracefully e.g.,

  $ sway
  $ mpv --hwdec=vaapi /path/to/file

  pid 12449 (sway), jid 0, uid 1234: exited on signal 11
  WARNING !drm_modeset_is_locked(&crtc->mutex) failed at drm-kmod-drm_v5.4.62_3/drivers/gpu/drm/drm_atomic_helper.c:621
  #0 0xffffffff81f3e833 at linux_dump_stack+0x23
  #1 0xffffffff81ea43e3 at drm_atomic_helper_check_modeset+0xb3
  #2 0xffffffff8259492c at intel_atomic_check+0x8c
  #3 0xffffffff81ea3379 at drm_atomic_check_only+0x3f9
  #4 0xffffffff81ea37c3 at drm_atomic_commit+0x13
  #5 0xffffffff81eb0c3f at drm_client_modeset_commit_atomic+0x1af
  #6 0xffffffff81eb093a at drm_client_modeset_commit_force+0x6a
  #7 0xffffffff81efa12a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a
  freebsd#8 0xffffffff81ef2386 at vt_kms_postswitch+0x166
  freebsd#9 0xffffffff8076b66b at vt_window_switch+0x12b
  freebsd#10 0xffffffff807688ff at vtterm_cngrab+0x1f
  freebsd#11 0xffffffff80805a36 at cngrab+0x16
  freebsd#12 0xffffffff8086295c at vpanic+0xec
  freebsd#13 0xffffffff80862863 at panic+0x43
  freebsd#14 0xffffffff81f5d142 at dma_buf_poll+0x12
  freebsd#15 0xffffffff808d2959 at kern_poll+0x329
  freebsd#16 0xffffffff808d2620 at sys_poll+0x50
  freebsd#17 0xffffffff80b3353b at amd64_syscall+0xfb
valpackett pushed a commit that referenced this pull request Nov 20, 2020
$ wcm
[src/file.cpp:441] Failed to open XML directory /usr/local/share/wayfire/metadata
[src/file.cpp:441] Failed to open XML directory /usr/local/share/wayfire/metadata/wf-shell
Process 91210 stopped
* thread #1, name = 'wcm', stop reason = signal SIGSEGV: invalid address (fault address: 0x8)
    frame #0: 0x0000000801164ea5 libwf-config.so.1`std::__1::unique_ptr<wf::config::section_t::impl, std::__1::default_delete<wf::config::section_t::impl> >::operator->(this=0x0000000000000008) const at memory:2587:19
   2584   }
   2585   _LIBCPP_INLINE_VISIBILITY
   2586   pointer operator->() const _NOEXCEPT {
-> 2587     return __ptr_.first();
   2588   }
   2589   _LIBCPP_INLINE_VISIBILITY
   2590   pointer get() const _NOEXCEPT {
(lldb) bt
* thread #1, name = 'wcm', stop reason = signal SIGSEGV: invalid address (fault address: 0x8)
  * frame #0: 0x0000000801164ea5 libwf-config.so.1`std::__1::unique_ptr<wf::config::section_t::impl, std::__1::default_delete<wf::config::section_t::impl> >::operator->(this=0x0000000000000008) const at memory:2587:19
    frame #1: 0x00000008011647ec libwf-config.so.1`wf::config::section_t::get_option_or(this=0x0000000000000000, name="plugins") at section.cpp:37:9
    frame #2: 0x00000008011648a7 libwf-config.so.1`wf::config::section_t::get_option(this=0x0000000000000000, name="plugins") at section.cpp:46:19
    frame #3: 0x0000000000217453 wcm`init(wcm=0x000000080251b320) at main.cpp:221:29
    frame #4: 0x00000000002172e2 wcm`main(argc=1, argv=0x00007fffffffeb70) at main.cpp:257:5
    frame #5: 0x0000000000216750 wcm`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1.c:76:7
valpackett pushed a commit that referenced this pull request Dec 25, 2020
$ fnott &
$ notify-send "this is the summary" "this is the body"
$ fnottctl quit
Assertion failed: (fcCacheChains[i] == NULL), function FcCacheFini, file fccache.c, line 807.
(lldb) bt
* thread #1, name = 'fnott', stop reason = signal SIGABRT
  * frame #0: 0x00000008005eb30a libc.so.7`__sys_thr_kill at thr_kill.S:4
    frame #1: 0x0000000800556ff4 libc.so.7`__raise(s=6) at raise.c:52:10
    frame #2: 0x0000000800616be9 libc.so.7`abort at abort.c:67:8
    frame #3: 0x0000000800537b91 libc.so.7`__assert(func=<unavailable>, file=<unavailable>, line=<unavailable>, failedexpr=<unavailable>) at assert.c:51:2
    frame #4: 0x0000000800922b94 libfontconfig.so.1`FcCacheFini at fccache.c:807:6
    frame #5: 0x000000080093eafd libfontconfig.so.1`IA__FcFini at fcinit.c:205:5
    frame #6: 0x0000000800434989 libfcft.so.3`fini at fcft.c:233:5
    frame #7: 0x0000000800247906 ld-elf.so.1`objlist_call_fini(list=<unavailable>, root=<unavailable>, lockstate=<unavailable>) at rtld.c:2761:4
    frame freebsd#8: 0x00000008002401c9 ld-elf.so.1`rtld_exit at rtld.c:3148:5
    frame freebsd#9: 0x00000008006170ae libc.so.7`__cxa_finalize(dso=<unavailable>) at atexit.c:240:5
    frame freebsd#10: 0x0000000800617711 libc.so.7`exit(status=0) at exit.c:74:2
    frame freebsd#11: 0x000000000020c866 fnott`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1_c.c:75:2
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants