-
-
Notifications
You must be signed in to change notification settings - Fork 2
Debug
surfzoid edited this page Jun 21, 2023
·
3 revisions
#get real root privileges, not sudo
su -
#backup original setup of core files.
sysctl -n kernel.core_pattern > oldvalue
#setup core files to be produced in the curent dir.
echo "core.%e.%p" > /proc/sys/kernel/core_pattern
exit
#open other terminal or start QtVsPlayer from menu/desktop.
QtVsPlayer
#return in the first terminal
ps aux |grep -i qtvsp
#surfzoid 1015906 0.0 0.0 45432 1540 pts/1 D 06:35 0:00 QtVsPlayer
#produce a core file
gcore 1015906
#quit QtVsPlayer
#create the backtrace of the bug and/or the crash
gdb /usr/bin/QtVsPlayer -c ./core.1015906
run
#reproduce the bug/crash
bt
thread apply all bt full
quit
#upload the core.1015906 file, for example at https://wetransfer.com/ and provide the link in your bug report
#clean and restore
rm -f ./core.1015906
su -
cat ./oldvalue > /proc/sys/kernel/core_pattern
rm -f ./oldvalue
Copyright (C) 2022 Surfzoid AKA Eric