Bug#967082: grub-customizer: dmesg has error info:segfault at 50 ip 0000558a7f3024e1

2020-08-16 Thread 铜豌豆 Linux
Dear Bernhard Übelacker ,

 Thanks for your feedback.

Today ,I use the grub-customizer again, dmesg has not display the error
info again, all things is looked normally.

This bug isn't reproduceable in my notebook.

I didn't know the reason, sorry!

在 2020/8/17 上午4:35, Bernhard Übelacker 写道:
> 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::char_traits, 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

-- 
肖盛文 xiao sheng wen Faris Xiao 
微信(wechat):atzlinux
《铜豌豆 Linux》 
基于 Debian 的 Linux 中文桌面操作系统:https://www.atzlinux.com
Debian QA page: https://qa.debian.org/developer.php?login=atzlinux%40sina.com




signature.asc
Description: OpenPGP digital signature


Bug#967082: grub-customizer: dmesg has error info:segfault at 50 ip 0000558a7f3024e1

2020-08-16 Thread Bernhard Übelacker
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

Bug#967082: grub-customizer: dmesg has error info:segfault at 50 ip 0000558a7f3024e1

2020-08-03 Thread xiao sheng wen
Package: grub-customizer
Version: 5.1.0-1
Severity: normal

Dear Maintainer,

 When I modify the "Boot default entry after" time,I find the dmesg has the 
following errors:

grub-customizer[1678]: segfault at 50 ip 558a7f3024e1 sp 7ffe94d1cd70 
error 4 in grub-customizer[558a7f282000+fa000]
[二 8月  4 10:17:27 2020] Code: 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

 When I click save,the dmesg errors is:
traps: grub-customizer[12997] general protection ip:5584c61924e1 
sp:7ffec6392f30 error:0 in grub-customizer[5584c6112000+fa000]

At last,the modify is successed in the /boot/grub/grub.cfg.

Is this a bug of grub-customizer?

-- System Information:
Debian Release: 10.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-10-rt-amd64 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=zh_CN.utf8, LC_CTYPE=zh_CN.utf8 (charmap=UTF-8), LANGUAGE=zh_CN:zh 
(charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages grub-customizer depends on:
ii  hwinfo  21.63-3
ii  libarchive133.3.3-4+deb10u1
ii  libatkmm-1.6-1v52.28.0-2
ii  libc6   2.28-10
ii  libcairomm-1.0-1v5  1.12.2-4
ii  libgcc1 1:8.3.0-6
ii  libglib2.0-02.58.3-2+deb10u2
ii  libglibmm-2.4-1v5   2.58.0-2
ii  libgtk-3-0  3.24.5-1
ii  libgtkmm-3.0-1v53.24.0-2
ii  libpangomm-1.4-1v5  2.42.0-2
ii  libsigc++-2.0-0v5   2.10.1-2
ii  libssl1.1   1.1.1d-0+deb10u3
ii  libstdc++6  8.3.0-6
ii  policykit-1 0.105-25

grub-customizer recommends no packages.

grub-customizer suggests no packages.

-- no debconf information