Bug 1051076

Summary: Yast2 hangs in Kernel parameters
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: YaST2Assignee: Steffen Winterfeldt <snwint>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P3 - Medium CC: martin.liska, snwint
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: journalctl log

Description Martin Liška 2017-07-27 21:08:32 UTC
Running ncurses yast2 I'm stuck in Boot Loader Settings / Kernel Parameters in:

#0  0x00007fd0826e6f4a in ?? () from /usr/lib64/libx86emu.so.1
#1  0x00007fd0826ea655 in x86emu_run () from /usr/lib64/libx86emu.so.1
#2  0x00007fd082925970 in ?? () from /usr/lib64/libhd.so.21
#3  0x00007fd082925bf2 in list_modes () from /usr/lib64/libhd.so.21
#4  0x00007fd082927292 in get_vbe_info () from /usr/lib64/libhd.so.21
#5  0x00007fd0829564bb in hd_scan_bios () from /usr/lib64/libhd.so.21
#6  0x00007fd0829347ee in hd_scan () from /usr/lib64/libhd.so.21
#7  0x00007fd08293544c in hd_list () from /usr/lib64/libhd.so.21
#8  0x00007fd082dfeaa7 in HwProbe::byItem(hw_item, HwProbe::hwinfo_settings) () from /usr/lib64/YaST2/plugin/libpy2ag_hwprobe.so.2
#9  0x00007fd082e024b6 in HwProbe::vesaFramebuffer() () from /usr/lib64/YaST2/plugin/libpy2ag_hwprobe.so.2
#10 0x00007fd082debe32 in HwProbe::checkPath(YCPPath const&, YCPValue const&, YCPValue const&, int) () from /usr/lib64/YaST2/plugin/libpy2ag_hwprobe.so.2
#11 0x00007fd082ded069 in HwProbe::Read(YCPPath const&, YCPValue const&, YCPValue const&) () from /usr/lib64/YaST2/plugin/libpy2ag_hwprobe.so.2
#12 0x00007fd082e037e8 in Y2AgentComp<HwProbe>::evaluate(YCPValue const&) () from /usr/lib64/YaST2/plugin/libpy2ag_hwprobe.so.2
#13 0x00007fd08c3ea757 in Y2PluginComponent::evaluate(YCPValue const&) () from /usr/lib64/liby2.so.4
#14 0x00007fd08be88444 in ScriptingAgent::executeSubagentCommand(char const*, YCPPath const&, YCPValue const&, YCPValue const&) () from /usr/lib64/YaST2/plugin/libpy2scr.so.2
#15 0x00007fd08be88f42 in ScriptingAgent::Read(YCPPath const&, YCPValue const&, YCPValue const&) () from /usr/lib64/YaST2/plugin/libpy2scr.so.2
#16 0x00007fd08ab979a0 in ?? () from /usr/lib64/libscr.so.3
#17 0x00007fd08ab97c65 in ?? () from /usr/lib64/libscr.so.3
#18 0x00007fd08c102869 in YEBuiltin::evaluate(bool) () from /usr/lib64/libycp.so.5
#19 0x00007fd089c5f369 in ?? () from /usr/lib64/ruby/vendor_ruby/2.4.0/x86_64-linux-gnu/yast/builtinx.so
#20 0x00007fd089c5f933 in ?? () from /usr/lib64/ruby/vendor_ruby/2.4.0/x86_64-linux-gnu/yast/builtinx.so
#21 0x00007fd08e0f80fd in ?? () from /usr/lib64/libruby2.4.so.2.4
#22 0x00007fd08e0ff5df in ?? () from /usr/lib64/libruby2.4.so.2.4
#23 0x00007fd08e105b68 in ?? () from /usr/lib64/libruby2.4.so.2.4
#24 0x00007fd08e10aa6b in ?? () from /usr/lib64/libruby2.4.so.2.4
#25 0x00007fd08e10b010 in ?? () from /usr/lib64/libruby2.4.so.2.4
#26 0x00007fd08e0f80fd in ?? () from /usr/lib64/libruby2.4.so.2.4
#27 0x00007fd08e0ff5df in ?? () from /usr/lib64/libruby2.4.so.2.4
#28 0x00007fd08e105b68 in ?? () from /usr/lib64/libruby2.4.so.2.4
#29 0x00007fd08e1085d0 in ?? () from /usr/lib64/libruby2.4.so.2.4
#30 0x00007fd08e10994f in ?? () from /usr/lib64/libruby2.4.so.2.4
#31 0x00007fd08e109c22 in ?? () from /usr/lib64/libruby2.4.so.2.4
#32 0x00007fd08e0ff5df in ?? () from /usr/lib64/libruby2.4.so.2.4
#33 0x00007fd08e105b68 in ?? () from /usr/lib64/libruby2.4.so.2.4
#34 0x00007fd08e109134 in rb_yield () from /usr/lib64/libruby2.4.so.2.4
#35 0x00007fd08df91fec in rb_ary_each () from /usr/lib64/libruby2.4.so.2.4
#36 0x00007fd08e0f80fd in ?? () from /usr/lib64/libruby2.4.so.2.4
#37 0x00007fd08e0ff777 in ?? () from /usr/lib64/libruby2.4.so.2.4
#38 0x00007fd08e105b68 in ?? () from /usr/lib64/libruby2.4.so.2.4
#39 0x00007fd08e10aa6b in ?? () from /usr/lib64/libruby2.4.so.2.4
#40 0x00007fd08e10b010 in ?? () from /usr/lib64/libruby2.4.so.2.4
#41 0x00007fd08e0f80fd in ?? () from /usr/lib64/libruby2.4.so.2.4
#42 0x00007fd08e0ff5df in ?? () from /usr/lib64/libruby2.4.so.2.4
#43 0x00007fd08e105b68 in ?? () from /usr/lib64/libruby2.4.so.2.4
#44 0x00007fd08e10aa6b in ?? () from /usr/lib64/libruby2.4.so.2.4
#45 0x00007fd08e10b010 in ?? () from /usr/lib64/libruby2.4.so.2.4
#46 0x00007fd08e0f80fd in ?? () from /usr/lib64/libruby2.4.so.2.4
#47 0x00007fd08e0ff5df in ?? () from /usr/lib64/libruby2.4.so.2.4
#48 0x00007fd08e105b68 in ?? () from /usr/lib64/libruby2.4.so.2.4
#49 0x00007fd08e1085d0 in ?? () from /usr/lib64/libruby2.4.so.2.4
#50 0x00007fd08e10994f in ?? () from /usr/lib64/libruby2.4.so.2.4
#51 0x00007fd08e109c22 in ?? () from /usr/lib64/libruby2.4.so.2.4
#52 0x00007fd08e0ff5df in ?? () from /usr/lib64/libruby2.4.so.2.4
#53 0x00007fd08e105b68 in ?? () from /usr/lib64/libruby2.4.so.2.4
#54 0x00007fd08e109134 in rb_yield () from /usr/lib64/libruby2.4.so.2.4
#55 0x00007fd08df91fec in rb_ary_each () from /usr/lib64/libruby2.4.so.2.4
#56 0x00007fd08e0f80fd in ?? () from /usr/lib64/libruby2.4.so.2.4
#57 0x00007fd08e0ff777 in ?? () from /usr/lib64/libruby2.4.so.2.4
#58 0x00007fd08e105b68 in ?? () from /usr/lib64/libruby2.4.so.2.4

My TW is up to date.
Comment 1 Ladislav Slezák 2017-07-28 07:06:17 UTC
It looks like it got stuck in the VESA FB detection.

Steffen, please check it.
Comment 2 Martin Liška 2017-07-28 08:16:40 UTC
So I've just tried:

> hwinfo --framebuffer
and it stucks

same for:
> hwprobe=x86emu=dump:dump.mem.acc hwinfo --framebuffer --log=/tmp/hwinfo.log

Where there's no output in the log file.
Comment 3 Martin Liška 2017-07-28 08:23:18 UTC
(In reply to Martin Liška from comment #2)
> So I've just tried:
> 
> > hwinfo --framebuffer
> and it stucks
> 
> same for:
> > hwprobe=x86emu=dump:dump.mem.acc hwinfo --framebuffer --log=/tmp/hwinfo.log
> 
> Where there's no output in the log file.

Typo in command:
> hwprobe=x86emu=dump.mem.acc hwinfo --framebuffer --log=foo.log
Comment 4 Martin Liška 2017-07-28 08:36:14 UTC
Created attachment 734321 [details]
journalctl log

Adding log file. Currently I'm unable to log in to GNOME as the session immediately ends I see login prompt (in gdm) again. Various error can be seen in the log file :/
Comment 5 Martin Liška 2017-07-28 09:29:09 UTC
Ok, so problem is in hwinfo, where iopl syscall returns but it loops in libx86emu.so.1.

Problematic version (TW): 24.46
Tested working (42.2): 21.39
Comment 6 Steffen Winterfeldt 2017-07-28 09:30:04 UTC
Yes, it can get stuck - but not indefinitely. Could you wait a few minutes
(< 10 min) and see if it progresses?

If so, please attach the log of:

hwprobe=x86emu=dump:dump.mem.acc hwinfo --framebuffer --log=/tmp/hwinfo.log
Comment 7 Martin Liška 2017-07-28 09:57:04 UTC
(In reply to Steffen Winterfeldt from comment #6)
> Yes, it can get stuck - but not indefinitely. Could you wait a few minutes
> (< 10 min) and see if it progresses?
> 
> If so, please attach the log of:
> 
> hwprobe=x86emu=dump:dump.mem.acc hwinfo --framebuffer --log=/tmp/hwinfo.log

Unfortunately, running that for longer time does not lead to any output.
Comment 9 Steffen Winterfeldt 2017-07-28 13:05:45 UTC
fixed (default 20s timeout was not applied)

https://github.com/openSUSE/hwinfo/pull/53
Comment 10 Steffen Winterfeldt 2017-07-28 13:23:35 UTC
note: a workaround is to set the timeout explicitly, like

# export hwprobe=x86emu=timeout=20
# hwinfo ...
Comment 11 Swamp Workflow Management 2017-12-15 17:10:19 UTC
SUSE-RU-2017:3333-1: An update that has four recommended fixes can now be installed.

Category: recommended (low)
Bug References: 1041090,1047218,1051076,1062562
CVE References: 
Sources used:
SUSE Linux Enterprise Software Development Kit 12-SP3 (src):    hwinfo-21.50-2.3.5
SUSE Linux Enterprise Server 12-SP3 (src):    hwinfo-21.50-2.3.5
SUSE Linux Enterprise Desktop 12-SP3 (src):    hwinfo-21.50-2.3.5
Comment 12 Swamp Workflow Management 2017-12-16 14:08:30 UTC
openSUSE-RU-2017:3348-1: An update that has four recommended fixes can now be installed.

Category: recommended (low)
Bug References: 1041090,1047218,1051076,1062562
CVE References: 
Sources used:
openSUSE Leap 42.3 (src):    hwinfo-21.50-3.1