You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use VS Code to debug a program through the Remote - SSH plugin with GDB. After this change:
made in this PR #586 I am getting the bellow message, when I hit a ggml assert and gdb is unable to attach to the process.
GGML_ASSERT: /path/ggml/src/ggml-backend.c:56: false
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
warning: process 30496 is already traced by process 30490
ptrace: Operation not permitted.
No stack.
If I replace ggml_print_backtrace(); with abort() it works as before (attaching with gdb as expected)
The text was updated successfully, but these errors were encountered:
The only issue was that the debugger didn't stop and let me inspect the program state due to the missing abort() call. As you mention that exit is replaced with abort in llama.cpp -> I am closing this.
I use VS Code to debug a program through the Remote - SSH plugin with GDB. After this change:
made in this PR #586 I am getting the bellow message, when I hit a ggml assert and gdb is unable to attach to the process.
If I replace ggml_print_backtrace(); with abort() it works as before (attaching with gdb as expected)
The text was updated successfully, but these errors were encountered: