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

Package:
grub-customizer
Source:
grub-customizer
Description:
GUI to configure GRUB2 and BURG
Submitter:
xiao sheng wen
Date:
2022-07-13 01:57:04 UTC
Severity:
normal
#967082#5
Date:
2020-08-04 04:37:59 UTC
From:
To:
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 0000558a7f3024e1 sp 00007ffe94d1cd70 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?

#967082#10
Date:
2020-08-16 20:35:38 UTC
From:
To:
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 <SettingsController::updateTimeoutSettingAction()+81>:        mov    (%rdi),%rax
(gdb) bt
#0  0x000055f6199c94e1 in Trait_ActionLoggerAware::logActionBegin(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const (action="update-timeout-setting", this=0x55f619eb7680) at ./src/main/../Controller/Common/../../lib/Trait/ActionLoggerAware.hpp:42
#1  0x000055f6199c94e1 in SettingsController::updateTimeoutSettingAction() (this=0x55f619eb7680) at ./src/main/../Controller/SettingsController.hpp:285
...

[1] https://wiki.debian.org/HowToGetABacktrace#Installing_the_debugging_symbols

#967082#15
Date:
2020-08-17 04:05:22 UTC
From:
To:
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 写道:

#967082#20
Date:
2022-07-13 01:48:56 UTC
From:
To:
This bug is not reproduced. I never meet in the past year.

Perhaps it is my personal hardware memory issue at that time.