Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 821961 - Gnome on Wayland echos some characters to the non-graphical environment (console)
Summary: Gnome on Wayland echos some characters to the non-graphical environment (cons...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-05 16:10 UTC by Markus Goppelt
Modified: 2021-11-08 15:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gnome-terminal screenshot (Screenshot from 2021-11-05 16-33-40.png,14.14 KB, image/png)
2021-11-05 16:12 UTC, Markus Goppelt
Details
console screenshot (fbgrab) (root_screenshot_2021-11-05_16:33:49.png,41.81 KB, image/png)
2021-11-05 16:13 UTC, Markus Goppelt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Goppelt 2021-11-05 16:10:26 UTC
I'm experiencing a weird malfunction. x11-terms/gnome-terminal echos some characters to the non-graphical environment (console). I start a Gnome session with GDM. I start gnome-terminal and do something like this:

markus@ryzen ~ $ 
markus@ryzen ~ $ echo pre > /dev/tty2
markus@ryzen ~ $ ßßß
bash: ßßß: command not found
markus@ryzen ~ $ echo post > /dev/tty2
markus@ryzen ~ $ 

I will also attach a screenshot. My locale is "en_US.utf8". The character I entered three times is "Latin Small Letter sharp S" (hexadecimal DF or decimal 223 or octal 337). My keyboard is German, there is a corresponding key. When I press the key I get an echo in gnome-terminal, but also to /dev/tty2. I paused my machine on shutdown and made a screenshot with fbgrab. I will attach the screenshot.

I get a similiar result when I start the Gnome session without GDM from the console with "XDG_SESSION_TYPE=wayland dbus-run-session gnome-session".

The unicode characters

"ä" Latin Small Letter A with diaeresis (decimal 228)
"ö" Latin Small Letter O with diaeresis (decimal 246)
"ü" Latin Small Letter U with diaeresis (decimal 252)

don't echo to the console when I press the corresponding keys.
Comment 1 Markus Goppelt 2021-11-05 16:11:28 UTC
ryzen ~ # emerge --info
Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop/gnome, gcc-10.3.0, glibc-2.33-r1, 5.10.52-gentoo x86_64)
=================================================================
System uname: Linux-5.10.52-gentoo-x86_64-AMD_Ryzen_7_2700_Eight-Core_Processor-with-glibc2.33
KiB Mem:    32879972 total,  30395492 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Fri, 27 Aug 2021 15:00:01 +0000
Head commit of repository gentoo: ff60a488311ed77b89403d50920a76390331b01d
sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p5) 2.36.1
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          3.9.6_p1::gentoo
dev-lang/rust:            1.53.0::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.36.1-r2::gentoo
sys-devel/gcc:            10.3.0-r2::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver1 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=znver1 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --regex-search-auto=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds emboss encode evo exif ffmpeg flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg lcms libglvnd libnotify libsecret libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt5 readline sdl seccomp spell split-usr ssl svg sysprof systemd tcpd tiff truetype udev udisks unicode upower usb vala vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 2 Markus Goppelt 2021-11-05 16:12:55 UTC
Created attachment 748743 [details]
gnome-terminal screenshot
Comment 3 Markus Goppelt 2021-11-05 16:13:43 UTC
Created attachment 748746 [details]
console screenshot (fbgrab)
Comment 4 Pacho Ramos gentoo-dev 2021-11-05 16:52:31 UTC
It looks similar to bug 715526, but it was solved with bash-5
Comment 5 Tee KOBAYASHI 2021-11-05 18:40:34 UTC
I would try to narrow the problem down by checking whether the echo is reproduced by:
 * pressing the key inside the gnome-terminal without being followed by Enter key,
 * cutting and pasting the letter to the gnome-terminal, and/or
 * pressing the key outside the gnome-terminal.

I would also try to identify who echos by using the strace command (dev-util/strace).
Comment 6 Markus Goppelt 2021-11-05 21:02:43 UTC
I will try these steps.

I found out that it doesn't happen in an Xorg Gnome session. And it also doesn't happen when I enter the character with "CTRL + SHIFT + u". And then the four hex digits 00DF.
Comment 7 Markus Goppelt 2021-11-05 21:05:16 UTC
(In reply to Tee KOBAYASHI from comment #5)
> I would try to narrow the problem down by checking whether the echo is
> reproduced by:
>  * pressing the key inside the gnome-terminal without being followed by
> Enter key,

The return key is not needed. I can enter the character via keyboard and then close the gnome-terminal window with "ALT + F4".

>  * cutting and pasting the letter to the gnome-terminal, and/or
>  * pressing the key outside the gnome-terminal.
> 
> I would also try to identify who echos by using the strace command
> (dev-util/strace).
Comment 8 Markus Goppelt 2021-11-05 21:16:14 UTC
(In reply to Tee KOBAYASHI from comment #5)
> I would try to narrow the problem down by checking whether the echo is
> reproduced by:
>  * pressing the key inside the gnome-terminal without being followed by
> Enter key,
>  * cutting and pasting the letter to the gnome-terminal, and/or
>  * pressing the key outside the gnome-terminal.

It's sufficient to start the Wayland Gnome session and press the key. Could this be a keyboard driver problem?

> 
> I would also try to identify who echos by using the strace command
> (dev-util/strace).
Comment 9 Markus Goppelt 2021-11-07 21:36:33 UTC
(In reply to Tee KOBAYASHI from comment #5)
> I would try to narrow the problem down by checking whether the echo is
> reproduced by:
>  * pressing the key inside the gnome-terminal without being followed by
> Enter key,
>  * cutting and pasting the letter to the gnome-terminal, and/or

Only the key produces the result.

>  * pressing the key outside the gnome-terminal.
> 
> I would also try to identify who echos by using the strace command
> (dev-util/strace).
Comment 10 Tee KOBAYASHI 2021-11-07 22:44:09 UTC
So we need to change the summary to better describe the issue. gnome-terminal does not seem to be relevant here.