[Bug 1183234] New: ncurses shows Ì instead of lines randomly
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 Bug ID: 1183234 Summary: ncurses shows � instead of lines randomly Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other URL: https://openqa.opensuse.org/tests/1488788/modules/ncur ses/steps/5 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: guillaume.gardet@arm.com QA Contact: qa-bugs@suse.de CC: afaerber@suse.com, dleuenberger@suse.com, dmueller@suse.com, fvogt@suse.com, okurz@suse.com Found By: openQA Blocker: Yes Created attachment 846941 --> http://bugzilla.opensuse.org/attachment.cgi?id=846941&action=edit Screenshot of the broken ncurses interface ## Observation openQA test in scenario opensuse-Tumbleweed-DVD-aarch64-gnome-ext4@aarch64 fails in [ncurses](https://openqa.opensuse.org/tests/1488788/modules/ncurses/steps/5) In openQA, we sometime get a broken ncurses interface with � chars instead of lines. This was originally reported as a test issue: https://progress.opensuse.org/issues/63026 But this would be more a product bug. All architectures are affected (at least x86_64 and aarch64), but this happens more often on aarch64. ## Test suite description ## Reproducible Fails since (at least) Build [20200714](https://openqa.opensuse.org/tests/1333590) ## Expected result Last good: (unknown) (or more recent) ## Further details Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=aarch64&distri=opensuse&flavor=DVD&machine=aarch64&test=gnome-ext4&version=Tumbleweed) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c3 --- Comment #3 from Guillaume GARDET <guillaume.gardet@arm.com> --- New occurrence with snapshot 20210308: https://openqa.opensuse.org/tests/1662622#step/ncurses/6 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c4 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dickey@his.com --- Comment #4 from Dr. Werner Fink <werner@suse.com> --- Can I have the terminal type as well as terminal configuration and value of TERM variable? Also the ncurses version/changlog info of the affected system? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c5 --- Comment #5 from Dr. Werner Fink <werner@suse.com> --- Hmmm ... just compared ncurses from a actual build and Leap 15.2 werner/ncurses> infocmp -T linux -1 | diff -uwp ~/tmp/linux.ti - --- /suse/werner/tmp/linux.ti 2021-03-11 09:01:47.253612000 +0100 +++ - 2021-03-11 09:02:07.296997333 +0100 @@ -12,7 +12,7 @@ linux|linux console, it#8, ncv#18, pairs#64, - acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, + acsc=++\,\,--..00__``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}c~~, bel=^G, blink=\E[5m, bold=\E[1m, where ~/tmp/linux.ti is from ncurses 6.2.20210306 build in a latest Factory -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c6 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo? --- Comment #6 from Dr. Werner Fink <werner@suse.com> --- Seems to be ncurses-6.2-20200711.patch with +20200711 + + fix pound-sign mapping in acsc of linux2.6 entry (report by Ingo + Bruckl). @@ -1029,8 +1029,8 @@ # 'r' scan line 7 # '_' scan line 9 linux2.6|linux 2.6.x console, - acsc=++\,\,--..00__``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwx - xyyzz{{||}c~~, + acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy + yzz{{||}}~~, enacs=\E)0, rmacs=^O, sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5 %t;2%;%?%p6%t;1%;m%?%p9%t\016%e\017%;, as this is a bug fix I need some more information about the mapping for the line graphics mapping on our system and those of Ingo Bruckl Or I'm wrong and the screen shot shows a principal broken line graphics mapping -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c8 --- Comment #8 from Dr. Werner Fink <werner@suse.com> --- I've just tested the new linux terminfo entry on my Leap 15.2 and it works on my linux console here: /local/werner> strace -o log dialog --yesno yesno 5 30 perfect line graphics and /local/werner> grep terminfo log stat("/local/werner/.terminfo", {st_mode=S_IFDIR|0755, st_size=15, ...}) = 0 stat("/etc/terminfo", {st_mode=S_IFDIR|0755, st_size=6, ...}) = 0 stat("/usr/share/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 access("/local/werner/.terminfo/l/linux", R_OK) = 0 openat(AT_FDCWD, "/local/werner/.terminfo/l/linux", O_RDONLY) = 3 /local/werner> infocmp -T linux -1 | grep acsc acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, Nevertheless the date with the patch ncurses-6.2-20200711.patch and the first occurrence seems to correspond
Fails since (at least) Build [20200714](https://openqa.opensuse.org/tests/1333590)
no idea if this is causal -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c9 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo? --- Comment #9 from Dr. Werner Fink <werner@suse.com> --- (In reply to Fabian Vogt from comment #7)
(In reply to Dr. Werner Fink from comment #4)
Can I have the terminal type as well as terminal configuration and value of TERM variable?
Unfortunately not easily. It's essentially a random failure, which indicates a race condition. It's not easily reproducible.
Also the ncurses version/changlog info of the affected system?
This issue occurs in tests from a while ago, so I don't think the version helps much.
I need information otherwise I can do exactly nothing. It should be possible to take a snapshot of the QA system to allow to logon -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c10 --- Comment #10 from Dr. Werner Fink <werner@suse.com> --- What type of font is used on the linux console ... does it use console magic sequences and/or are console magic sequences given in /etc/sysconfig/console ... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c11 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anicka@suse.com, | |sbrabec@suse.com --- Comment #11 from Dr. Werner Fink <werner@suse.com> --- adding maintainers of kbd to carbon copy -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c12 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |guillaume.gardet@arm.com, | |werner@suse.com Flags| |needinfo?(guillaume.gardet@ | |arm.com) --- Comment #12 from Dr. Werner Fink <werner@suse.com> --- Still I do not know what console font is used! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c13 --- Comment #13 from Dr. Werner Fink <werner@suse.com> --- Also what kind of hardware/platform is missed ... is this ARM/ARM64? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c14 Guillaume GARDET <guillaume.gardet@arm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(guillaume.gardet@ | |arm.com) | --- Comment #14 from Guillaume GARDET <guillaume.gardet@arm.com> --- (In reply to Dr. Werner Fink from comment #12)
Still I do not know what console font is used!
How to check this? I can update the openQA test to collect required data on failure, if you tell me exactly what and how to do it. (In reply to Dr. Werner Fink from comment #13)
Also what kind of hardware/platform is missed ... is this ARM/ARM64?
This happens in qemu VM for both x86_64 and aarch64. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c15 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |SHIP_STOPPER? --- Comment #15 from Dr. Werner Fink <werner@suse.com> --- (In reply to Guillaume GARDET from comment #14)
(In reply to Dr. Werner Fink from comment #12)
Still I do not know what console font is used!
How to check this? I can update the openQA test to collect required data on failure, if you tell me exactly what and how to do it.
The values set /etc/sysconfig/console like CONSOLE_FONT, CONSOLE_MAGIC, CONSOLE_ENCODING, The value TERM on the console (should be linux and not old cons25 or similar) Please be aware that the nurses API use a escape sequence to switch line graphics mode on and off of the used console font. If you are using the option --ascii-lines ... like dialog --ascii-lines --yesno yesno 5 30 then the real characters are shown as it are defined and shown in man:terminfo(5) at section `Line Graphics` at the table in column `Ascii Default` ... and as this works with the ACS characters acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, in new TERM=linux as I've seen on the console it is very likly that this is not an error of ncurses.
(In reply to Dr. Werner Fink from comment #13)
Also what kind of hardware/platform is missed ... is this ARM/ARM64?
This happens in qemu VM for both x86_64 and aarch64.
Hmmm ... it could be a problem with qemu and its EGA/VGA console emulation and it this happens randomly this smells like not initialized start values for the font character mapping -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c16 --- Comment #16 from Dr. Werner Fink <werner@suse.com> --- That would be one possible cause: https://github.com/qemu/qemu/blob/master/ui/curses.c -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c17 --- Comment #17 from Guillaume GARDET <guillaume.gardet@arm.com> --- The simple ncurses dialog used in openQA is: dialog --yesno "test for boo#1054448" 3 20 So, no '--ascii-lines' option set. PR to update the openQA test to upload required info on failure: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/12123 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c18 --- Comment #18 from Dr. Werner Fink <werner@suse.com> --- (In reply to Guillaume GARDET from comment #17)
The simple ncurses dialog used in openQA is: dialog --yesno "test for boo#1054448" 3 20
So, no '--ascii-lines' option set.
PR to update the openQA test to upload required info on failure: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/12123
Sorry but you have not taken it ... I'm aware of the yesno window and the broken line graphic characters but ... just try with dialog --ascii-lines --yesno "test for boo#1054448" 3 20 what is shown then? Are there shown ASCII lines or also crap? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c19 --- Comment #19 from Dr. Werner Fink <werner@suse.com> --- As this seems to be a qemu bug ... where can I set qemu -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c20 --- Comment #20 from Dr. Werner Fink <werner@suse.com> --- This simple bash command line echo "$(tput smacs)lqqqqqqqqqqqqqqqqk$(tput rmacs;tput sgr0)" should show a Line Graph on both console and xterm , if not the font is broken. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c21 --- Comment #21 from Dr. Werner Fink <werner@suse.com> --- Even more echo "$(tput smacs;tput setaf 1;tput bold)lqqqqqqqqqqqqqqk$(tput rmacs;tput sgr0)" bold red line graph -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c22 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(guillaume.gardet@ | |arm.com) --- Comment #22 from Dr. Werner Fink <werner@suse.com> --- (In reply to Guillaume GARDET from comment #17)
The simple ncurses dialog used in openQA is: dialog --yesno "test for boo#1054448" 3 20
So, no '--ascii-lines' option set.
PR to update the openQA test to upload required info on failure: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/12123
Is there a way to change this into dialog --yesno "test for boo#1054448" 3 20 | tee boo_1054448.tee and provide the resulting boo_1054448.tee as attachment. With this I would be able togetehr with the value of the variable TERM to see if ACS character mapping is used by ncurses. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c23 --- Comment #23 from Dr. Werner Fink <werner@suse.com> --- Notabene: The bug boo#1054448 is about the rep feature of XTerm (repeat character) that is that this check is only usefull for terminal types which are using exactly this feature (and the linux console does not!): /local/werner> infocmp -1 | grep rep rep=%p1%c\E[%p2%{1}%-%db, /local/werner> infocmp -T linux -1 | grep rep /local/werner> with this rep feature the the line graph looks like tput -S <<! smacs rep 108 0 rep 113 20 rep 107 0 rep 10 0 rmacs ! without the rep feature this becomes tput smacs; echo lqqqqqqqqqqqqqqqqqqqk; tput rmacs clearly the ncurses uses the information from the terminfo data pointed by the TERM variable to use or not use the rep feature -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c24 Stanislav Brabec <sbrabec@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fbui@suse.com --- Comment #24 from Stanislav Brabec <sbrabec@suse.com> --- There is a very similar bug 1180613 in SLE 12 SP5. (Exactly, the bug is very same, but that one is reproducible in some setups, this one is random.) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c25 --- Comment #25 from Dr. Werner Fink <werner@suse.com> --- (In reply to Stanislav Brabec from comment #24)
There is a very similar bug 1180613 in SLE 12 SP5. (Exactly, the bug is very same, but that one is reproducible in some setups, this one is random.)
Maybe I should write a simple shell script to check with help of TERM, if the terminfo descriptions fits to the used terminal line/device, and using tput to check the line graphics as well. That might be better then using dialog to check a not valid bug on linux console -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c26 --- Comment #26 from Dr. Werner Fink <werner@suse.com> --- Created attachment 847273 --> http://bugzilla.opensuse.org/attachment.cgi?id=847273&action=edit bash script cursescheck this script does check for ACS Line Graphic mapping as well as the the REP capability of the current terminal line using the TERM variable to get the description of the terminal. If in the terminfo description no ACS mapping is found then the script does not show line graphics. Also if no REP capability is found in the terminfo description then the second test of the line graphics is skipped. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c27 --- Comment #27 from Dr. Werner Fink <werner@suse.com> --- I'd like to ask to replace this dialog check for boo#1054448 with this script cursescheck as it checks if the line graphic works for the terminfo description given by the TERM variable on the current terminal line... and after 5 seconds or pressing enter ... check if the rep fcpability is found in the terminal description given by the TERM variable and if so test this as well for five seconds .... the script requires an installed ncurses-utils package and standard tools otherwise it will show an error -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c28 --- Comment #28 from Dr. Werner Fink <werner@suse.com> --- Created attachment 847343 --> http://bugzilla.opensuse.org/attachment.cgi?id=847343&action=edit bash script cursescheck ... now with color if available as well as three pages to check all ACS line gaphich characters found in terminfo description of variable TERM -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #847273|0 |1 is obsolete| | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c29 Guillaume GARDET <guillaume.gardet@arm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(guillaume.gardet@ | |arm.com) | --- Comment #29 from Guillaume GARDET <guillaume.gardet@arm.com> --- Created attachment 847392 --> http://bugzilla.opensuse.org/attachment.cgi?id=847392&action=edit tee file of the broken ncurses dialog -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c30 --- Comment #30 from Guillaume GARDET <guillaume.gardet@arm.com> --- A new occurrence of ncurses test failed and the simple red line is broken: https://openqa.opensuse.org/tests/1670502#step/ncurses/4 as well as the ncurses simple dialog: https://openqa.opensuse.org/tests/1670502#step/ncurses/9 The tee file of the ncurses dialog has been added in attachment to this bug. $TERM is set to 'linux': https://openqa.opensuse.org/tests/1670502#step/ncurses/196 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c31 --- Comment #31 from Dr. Werner Fink <werner@suse.com> --- Created attachment 847396 --> http://bugzilla.opensuse.org/attachment.cgi?id=847396&action=edit screenshot wit my smartphone (In reply to Guillaume GARDET from comment #29)
Created attachment 847392 [details] tee file of the broken ncurses dialog
Thanks ... just downloaded and had done a cat ~werner/Downloads/ncurses-boo_1054448.tee on the local linux comnsole /dev/tty1 and it works flawless! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c32 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Other |KVM Assignee|werner@suse.com |kvm-bugs@suse.de Flags|needinfo? | --- Comment #32 from Dr. Werner Fink <werner@suse.com> --- IMHO this is not a problem of ncurses not any ncurses based application as here only the informations of /usr/share/terminfo/l/linux via TERM=linux is used and it works as shown. Here we mighth have a broken console font setup or a broken font its self or a broken VGA/EGA qemu emulator for aarch64. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c33 --- Comment #33 from Dr. Werner Fink <werner@suse.com> --- It could be also the wrong terminal line for TERM=linux ... or what kind of terminal line the device /dev/ttyAMA0 is? This looks like a serial line and this might be something like TERM=vt100 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c34 --- Comment #34 from Guillaume GARDET <guillaume.gardet@arm.com> --- This is not aarch64 specific and happens on x86_64 as well. /dev/ttyAMA0 is a serial which is not used for this test. Given the randomness, I would go for a broken console font setup, likely due to some race conditions. How should we check this? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c35 --- Comment #35 from Dr. Werner Fink <werner@suse.com> --- From the tee I see that ncursesw is used as the line graphs are UTF-8 based e2 94 80 which is U+2500, compare with https://www.utf8-chartable.de/unicode-utf8-table.pl?start=9472&unicodeinhtml=dec looks like a wrong UTF-8 locale setup on the terminal line or a console font which wrong UTF-8 line glyphs. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c36 --- Comment #36 from Dr. Werner Fink <werner@suse.com> --- (In reply to Guillaume GARDET from comment #34)
This is not aarch64 specific and happens on x86_64 as well.
But with qemu I guess ... or has this ever been seen on real hardware?
/dev/ttyAMA0 is a serial which is not used for this test.
OK, taken
Given the randomness, I would go for a broken console font setup, likely due to some race conditions. How should we check this?
I would search for a wrong console font setup, that is with wrong UTF-8 line glyphs as this dialog program uses ncursesw and hence uses UTF-8 glyphs. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c37 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #847343|0 |1 is obsolete| | --- Comment #37 from Dr. Werner Fink <werner@suse.com> --- Created attachment 847400 --> http://bugzilla.opensuse.org/attachment.cgi?id=847400&action=edit bash script cursescheck ... now also with UTF-8 line glyphs This one check not only for ACS but also for UTF-8 glyphs -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ncurses shows � instead of |Console font shows � |lines randomly |instead of UTF-8 line glyph | |U+2500 (0xe2 0x94 0x80) | |randomly -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 Liang Yan <lyan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lyan@suse.com Assignee|kvm-bugs@suse.de |werner@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c38 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #847400|0 |1 is obsolete| | --- Comment #38 from Dr. Werner Fink <werner@suse.com> --- Created attachment 847404 --> http://bugzilla.opensuse.org/attachment.cgi?id=847404&action=edit bash script cursescheck ... now also with UTF-8 line glyphs (also working on console) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|werner@suse.com |kvm-bugs@suse.de Flags| |needinfo?(lyan@suse.com) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c40 --- Comment #40 from Dr. Werner Fink <werner@suse.com> --- To solve this it would be a start point to look for the console used font. That are the values set in /etc/sysconfig/console like CONSOLE_FONT, CONSOLE_MAGIC, and CONSOLE_ENCODING. Then to check if the font loaded does include the required line glyphs, e.g. by using exactly this font on a hardware system, and if this works then to check the VGS/EGA implementation of qemu at https://github.com/qemu/qemu/blob/master/ui/curses.c -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 Liang Yan <lyan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(lyan@suse.com) | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c43 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(guillaume.gardet@ | |arm.com) --- Comment #43 from Dr. Werner Fink <werner@suse.com> --- To debug this it would be very helpful to see if the console font and its mapping on the current terminal device line is configured correct. For this I'd like to propose the command sequence tty tput init echo -en '\x0elqqqqqqqqqqk\x0f\n' . /etc/sysconfig/console echo $CONSOLE_FONT find /usr/share/kbd/consolefonts/ -name "${CONSOLE_FONT}*" loadunimap -o old.uni lat1 grep 'U\+2500' old.uni echo -en '\x0elqqqqqqqqqqk\x0f\n' I'm interested not only on the output of the command sequence above but also on the file old.uni to see what mapping is really loaded. This mapping is used to get the correct eight bit byte line glyph of the loaded font on the multi byte character line glyph as well as on the alternates characters set (ACS) line glyp -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c44 --- Comment #44 from Dr. Werner Fink <werner@suse.com> --- (In reply to Dr. Werner Fink from comment #43)
To debug this it would be very helpful to see if the console font and its mapping on the current terminal device line is configured correct.
For this I'd like to propose the command sequence
tty tput init echo -en '\x0elqqqqqqqqqqk\x0f\n' . /etc/sysconfig/console echo $CONSOLE_FONT find /usr/share/kbd/consolefonts/ -name "${CONSOLE_FONT}*" loadunimap -o old.uni lat1 grep 'U\+2500' old.uni echo -en '\x0elqqqqqqqqqqk\x0f\n'
I'm interested not only on the output of the command sequence above but also on the file
old.uni
to see what mapping is really loaded. This mapping is used to get the correct eight bit byte line glyph of the loaded font on the multi byte character line glyph as well as on the alternates characters set (ACS) line glyp
Any news on that question? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 Guillaume GARDET <guillaume.gardet@arm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.opensuse.o | |rg/show_bug.cgi?id=1181636 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c47 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|dickey@his.com | --- Comment #47 from Dr. Werner Fink <werner@suse.com> --- Is this bug still valid on Tumbleweed? ...
This bug is still referenced in a failing openQA test: upgrade_Leap_15.0_kde https://openqa.opensuse.org/tests/2169767
... seems not be Tumbleweed -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c48 --- Comment #48 from Guillaume GARDET <guillaume.gardet@arm.com> --- Yes, it still occurs on Tumbleweed: https://openqa.opensuse.org/tests/2180751#step/yast2_lan/14 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c49 --- Comment #49 from Dr. Werner Fink <werner@suse.com> --- I had never seen an answer on my comment #44 In the QA report there is no Hardware Type nor Architercture nor used locale nor used Encoding nor used Font mapping specified and therefore those are not very useful. I guess due initial report says x86_64 and aarch64 ...or are we talking about KVM x86_64 and KVM aarch64 ... but why I can not reproduce this on both of my x86_64 worksations on the console? Run my cursescheck bash script on those affected consoles and then determine used terminal type in TERM, the locale settings, the font, font encoding, and font mapping (normal done by psfu font with setfont) .... maybe the used console magics and so on (compare with /etc/sysconfig/console) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c50 --- Comment #50 from Guillaume GARDET <guillaume.gardet@arm.com> --- (In reply to Dr. Werner Fink from comment #49)
I had never seen an answer on my comment #44
I need to run this on an affected system, but this is not easily reproducable. So, it take times.
In the QA report there is no Hardware Type nor Architercture nor used locale nor used Encoding nor used Font mapping specified and therefore those are not very useful.
I guess due initial report says x86_64 and aarch64 ...or are we talking about KVM x86_64 and KVM aarch64 ... but why I can not reproduce this on both of my x86_64 worksations on the console?
This has been seen on some openQA qemu runs. This might be a race condition, triggered more often in openQA qemu.
Run my cursescheck bash script on those affected consoles and then determine used terminal type in TERM, the locale settings, the font, font encoding, and font mapping (normal done by psfu font with setfont) .... maybe the used console magics and so on (compare with /etc/sysconfig/console)
I will provide the traces/files once I can reproduce. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c51 --- Comment #51 from Dr. Werner Fink <werner@suse.com> --- Make sure that the package lmod is *not* installed not on a server for running kvm nor on the clients ... I've a report that lmod seems to cause trouble with font mapping on linux console -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c52 --- Comment #52 from Dr. Werner Fink <werner@suse.com> --- Before any access to any of the virtual consoles the systemd-vconsole-setup(8) has to be executed to be sure that the configuration in vconsole.conf(5) is applied (font with its font mappings as well as the keymap) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugzilla.opensuse.or | |g/show_bug.cgi?id=1154300 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1183234 http://bugzilla.opensuse.org/show_bug.cgi?id=1183234#c54 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chcao@suse.com Assignee|werner@suse.com |screening-team-bugs@suse.de Flags| |needinfo?(chcao@suse.com) --- Comment #54 from Dr. Werner Fink <werner@suse.com> --- This is not my bug. The problem is not ncurses but the the wrong configured console its self. The ncurses library does its job, nothing more and nothing less. I've debug this problem and showed how it might be solved (see comment #52) -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com