Bug 1029307

Summary: yast2 bootloader crashes on international names in grub.
Product: [openSUSE] openSUSE Distribution Reporter: Vladimir Perepechin <vovochka13>
Component: YaST2Assignee: E-mail List <yast2-maintainers>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: jreidinger
Version: Leap 42.2   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE 42.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: screenshot

Description Vladimir Perepechin 2017-03-14 10:54:11 UTC
Created attachment 717371 [details]
screenshot

When you trying to save default entry for grub with non-latin characters grub crashes.
This bug presents since Leap 42.1

Some related information:

# /usr/bin/grub2-editenv list
saved_entry=Windows Boot Manager (на /dev/sda2)
env_block=512+1


Some /var/log/y2log entries:

2017-03-14 20:28:22 <1> note.lan(4276) [Ruby] modules/BootStorage.rb:125 Disk with boot partition: /dev/sda, using for MBR
2017-03-14 20:28:22 <1> note.lan(4276) [Ruby] bootloader/grub2base.rb:87 grub sections: ["openSUSE Leap 42.2", "openSUSE Leap 42.2, \xD1\x81 Linux 4.4.49-16-default", "openSUSE Leap 42.2, \xD1\x81 Linux 4.4.36-8-default", "Windows Boot Manager (\xD0\xBD\xD0\xB0 /dev/sdb2)", "halt"]
2017-03-14 20:28:22 <1> note.lan(4276) [Ruby] modules/BootStorage.rb:139 Boot partition device: /dev/sda6
2017-03-14 20:28:22 <1> note.lan(4276) [Ruby] modules/BootStorage.rb:144 Disk info: $["disk":"/dev/sda", "nr":6]
2017-03-14 20:28:22 <1> note.lan(4276) [Ruby] bootloader/config_dialog.rb:23 Running Main Dialog
2017-03-14 20:28:22 <1> note.lan(4276) [Ruby] modules/BootStorage.rb:243 Boot device - disk: /dev/sda
2017-03-14 20:28:23 <1> note.lan(4276) [Ruby] lib/cheetah.rb:158 Executing "/usr/bin/grub2-editenv list".
2017-03-14 20:28:23 <1> note.lan(4276) [Ruby] lib/cheetah.rb:206 Standard output: saved_entry=Windows Boot Manager (���� /dev/sda2)
2017-03-14 20:28:23 <1> note.lan(4276) [Ruby] lib/cheetah.rb:206 Standard output: env_block=512+1
2017-03-14 20:28:23 <1> note.lan(4276) [Ruby] lib/cheetah.rb:178 Status: 0
2017-03-14 20:28:23 <3> note.lan(4276) [ui] YCPPropertyHandler.cc(trySetComboBoxValue):420 YComboBox Default Boot Section has no item with ID "Windows Boot Manager (на /dev/sda2)"
2017-03-14 20:28:28 <1> note.lan(4276) [Ruby] bootloader/sections.rb:38 set new default to '"Windows Boot Manager (\u043D\u0430 /dev/sdb2)"'
2017-03-14 20:28:28 <3> note.lan(4276) [Ruby] yast/wfm.rb:229 Client call failed with 'Unknown value "Windows Boot Manager (\u043D\u0430 /dev/sdb2)"' and backtrace ["/usr/share/YaST2/lib/bootloader/sections.rb:41:in `default='", "/usr/share/YaST2/lib/bootloader/grub2_widgets.rb:631:in `store'", "/usr/share/YaST2/lib/cwm/widget.rb:234:in `store_wrapper'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/fun_ref.rb:33:in `call'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/fun_ref.rb:33:in `call'", "/usr/share/YaST2/modules/CWM.rb:400:in `block in saveWidgets'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/builtins.rb:83:in `call'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/builtins.rb:83:in `block in foreach'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/builtins.rb:82:in `each'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/builtins.rb:82:in `foreach'", "/usr/share/YaST2/modules/CWM.rb:393:in `saveWidgets'", "/usr/share/YaST2/lib/cwm/widget.rb:750:in `store_tab'", "/usr/share/YaST2/lib/cwm/widget.rb:728:in `store'", "/usr/share/YaST2/lib/cwm/widget.rb:234:in `store_wrapper'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/fun_ref.rb:33:in `call'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/fun_ref.rb:33:in `call'", "/usr/share/YaST2/modules/CWM.rb:400:in `block in saveWidgets'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/builtins.rb:83:in `call'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/builtins.rb:83:in `block in foreach'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/builtins.rb:82:in `each'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/builtins.rb:82:in `foreach'", "/usr/share/YaST2/modules/CWM.rb:393:in `saveWidgets'", "/usr/share/YaST2/modules/CWM.rb:865:in `Run'", "/usr/share/YaST2/modules/CWM.rb:991:in `ShowAndRun'", "/usr/share/YaST2/modules/CWM.rb:946:in `show'", "/usr/share/YaST2/lib/bootloader/config_dialog.rb:47:in `run'", "/usr/share/YaST2/lib/bootloader/main_dialog.rb:92:in `block in run_content'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/builtins.rb:546:in `call'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/builtins.rb:546:in `eval'", "/usr/share/YaST2/modules/Sequencer.rb:261:in `WS_run'", "/usr/share/YaST2/modules/Sequencer.rb:333:in `block in Run'", "/usr/share/YaST2/modules/Sequencer.rb:325:in `loop'", "/usr/share/YaST2/modules/Sequencer.rb:325:in `Run'", "/usr/share/YaST2/lib/bootloader/main_dialog.rb:110:in `run_content'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/builtins.rb:546:in `call'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/builtins.rb:546:in `eval'", "/usr/share/YaST2/modules/Sequencer.rb:261:in `WS_run'", "/usr/share/YaST2/modules/Sequencer.rb:333:in `block in Run'", "/usr/share/YaST2/modules/Sequencer.rb:325:in `loop'", "/usr/share/YaST2/modules/Sequencer.rb:325:in `Run'", "/usr/share/YaST2/lib/bootloader/main_dialog.rb:67:in `run'", "/usr/share/YaST2/clients/bootloader.rb:45:in `GuiHandler'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/fun_ref.rb:33:in `call'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/fun_ref.rb:33:in `call'", "/usr/share/YaST2/modules/CommandLine.rb:1517:in `Run'", "/usr/share/YaST2/clients/bootloader.rb:36:in `main'", "/usr/share/YaST2/clients/bootloader.rb:53:in `<top (required)>'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/wfm.rb:216:in `eval'", "/usr/lib64/ruby/vendor_ruby/2.1.0/yast/wfm.rb:216:in `run_client'"]
2017-03-14 20:28:28 <3> note.lan(4276) [Ruby] yast/wfm.rb:250 Internal error. Please report a bug report with logs.
Details: Unknown value "Windows Boot Manager (\u043D\u0430 /dev/sdb2)"
Caller:  /usr/share/YaST2/lib/bootloader/sections.rb:41:in `default='
Comment 1 Josef Reidinger 2017-03-15 15:31:04 UTC
Thanks for report, it is already reported. It is interesting that in both case affected locale is russian. So I will try to reproduce it with russian locale.

*** This bug has been marked as a duplicate of bug 998152 ***