Dear Maintainer,
I tried to have a look, but can just tell the location,
the dmesg output points to, is the following location.
And at this point the register rdi contains the value of "this",
at the submitters system 0x50, therefore causing the segfault.
Maybe install debug symbols and running at submitters system
inside valgrind could give some more pointers ... [1].
Kind regards,
Bernhard
Thread 1 "grub-customizer" hit Breakpoint 1,
Trait_ActionLoggerAware::logActionBegin (action="update-timeout-setting",
this=0x55f619eb7680) at
./src/main/../Controller/Common/../../lib/Trait/ActionLoggerAware.hpp:42
42
this->logger->logActionBegin(this->_controllerName, action);
1: x/i $pc
=> 0x55f6199c94e1 :
mov(%rdi),%rax
(gdb) bt
#0 0x55f6199c94e1 in
Trait_ActionLoggerAware::logActionBegin(std::__cxx11::basic_string, std::allocator > const&) const
(action="update-timeout-setting", this=0x55f619eb7680) at
./src/main/../Controller/Common/../../lib/Trait/ActionLoggerAware.hpp:42
#1 0x55f6199c94e1 in SettingsController::updateTimeoutSettingAction()
(this=0x55f619eb7680) at ./src/main/../Controller/SettingsController.hpp:285
...
[1] https://wiki.debian.org/HowToGetABacktrace#Installing_the_debugging_symbols
# Buster/stable amd64 qemu VM 2020-08-16
apt update
apt dist-upgrade
apt install systemd-coredump sddm xserver-xorg openbox xterm mc gdb
grub-customizer grub-customizer-dbgsym
apt build-dep grub-customizer
mkdir /home/benutzer/source/grub-customizer/orig -p
cd/home/benutzer/source/grub-customizer/orig
apt source grub-customizer
cd
export DISPLAY=:0
export XAUTHORITY=/home/benutzer/.Xauthority
export LANG=zh_CN.utf8
grub-customizer
echo -n "find /b ..., ..., 0x" && \
echo "00 48 89 84 24 98 00 00 00 31 c0 48 8d 6c 24 40 48 8d 45 10 48 89 ef 48
89 44 24 40 e8 e8 bb fa ff 48 8b 7b 08 48 85 ff 74 0d <48> 8b 07 48 8d 73 18 48
89 ea ff 50 18 48 8b 7c 24 40 48 8d 45 10" \
| sed 's/[<>]//g' | sed 's/ /, 0x/g'
find /b ..., ..., 0x00, 0x48, 0x89, 0x84, 0x24, 0x98, 0x00, 0x00, 0x00, 0x31,
0xc0, 0x48, 0x8d, 0x6c, 0x24, 0x40, 0x48, 0x8d, 0x45, 0x10, 0x48, 0x89, 0xef,
0x48, 0x89, 0x44, 0x24, 0x40, 0xe8, 0xe8, 0xbb, 0xfa, 0xff, 0x48, 0x8b, 0x7b,
0x08, 0x48, 0x85, 0xff, 0x74, 0x0d, 0x48, 0x8b, 0x07, 0x48, 0x8d, 0x73, 0x18,
0x48, 0x89, 0xea, 0xff, 0x50, 0x18, 0x48, 0x8b, 0x7c, 0x24, 0x40, 0x48, 0x8d,
0x45, 0x10
gdb -q --pid $(pidof grub-customizer)
(gdb) directory /home/benutzer/source/grub-customizer/orig/grub-customizer-5.1.0
(gdb) info target
Entry point: 0x560dab1723e0
0x55f6198a82a8 - 0x55f6198a82c4 is .interp
...
0x55f619a9d0e0 - 0x55f619a9d230 is .bss
0x7ffb4989d238 - 0x7ffb4989d25c is .note.gnu.build-id in
/lib/x86_64-linux-gnu/libgtkmm-3.0.so.1
...
(gdb) find /b 0x55f6198a82a8, 0x55f619a9d230, 0x00, 0x48, 0x89, 0x84,
0x24, 0x98, 0x00, 0x00, 0x00, 0x31, 0xc0, 0x48, 0x8d, 0x6c, 0x24, 0x40, 0x48,
0x8d, 0x45, 0x10, 0x48, 0x89, 0xef, 0x48, 0x89, 0x44, 0x24, 0x40, 0xe8, 0xe8,
0xbb, 0xfa, 0xff, 0x48, 0x8b, 0x7b, 0x08, 0x48, 0x85, 0xff, 0x74, 0x0d, 0x48,
0x8b, 0x07, 0x48, 0x8d, 0x73, 0x18, 0x48, 0x89, 0xea, 0xff, 0x50, 0x18, 0x48,
0x8b, 0x7c, 0x24, 0x40, 0x48, 0x8d, 0x45, 0x10
0x55f6199c94b7
1 pattern found.
(gdb) b * (0x55f6199c94b7 + 42)
Breakpoint 2 at 0x560dab1ee4e1: file
./src/main/../Controller/Common/../../lib/Trait/ActionLoggerAware.hpp, line 42.
(gdb) cont
(gdb) cont
Continuing.
[Thread 0x7ffb43244700 (LWP 19172) exited]
[New Thread 0x7ffb43244700 (LWP 19174)]
Thread 1 "grub-customizer" hit Breakpoint 1,
Trait_ActionLoggerAware::logActionBegin (action="update-timeout-setting",
this=0x55f619eb7680)
at ./src/main/../Controller/Common/../../lib/Trait/ActionLoggerAware.hpp:42
42
this->logger->logActionBegin(this->_controllerName, action);
1: x/i $pc
=> 0x55f6199c94e1 :
mov(%rdi),%rax
(gdb) set width 0
(gdb) set pagination off
(gdb) bt
#0 0x55f6199c94e1 in
Trait_ActionLoggerAware::logActionBegin(std::__cxx11::basic_string, std::allocator > const&) const
(action="update-timeout-setting", this=0x55f619eb7680) at
./src/main/../Controller/Common/../../lib/Trait/ActionLoggerAware.hpp:42
#1 0x55f6199c94e1 in SettingsController::updateTimeoutSettingAction()
(this=0x55f619eb7680) at ./src/main/../Controller/SettingsController.hpp:285
#2 0x7ffb49793dc8 in
Glib::SignalProxyNormal::slot0_void_callback(_GObject*, void*) () at
/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
#3 0x7ffb495bdc8d in g_closure_invoke () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#4 0x7ffb495d0e64 in () at /lib/x86_64-linux-gnu/libgobject-2.0.so.0
#5 0x7ffb495da2be in g_signal_emit_valist () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#6 0x7ffb495da97f in g_signal_emit () at
/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#7 0x7ffb487a5fc0 in () at /lib/x86_64-linux-gnu/libgtk-3.so.0
#8 0x7ffb495bdc8d