Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267704 - sys-apps/qingy-0.9.8 log off user from X on keyboard input
Summary: sys-apps/qingy-0.9.8 log off user from X on keyboard input
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Michele Noberasco (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-27 21:31 UTC by Marcus Becker
Modified: 2009-05-11 10:27 UTC (History)
3 users (show)

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


Attachments
qingy.log (qingy.log,17.63 KB, text/plain)
2009-04-28 22:29 UTC, Marcus Becker
Details
revert change in session.c (qingy-0.9.8-stdin.patch,503 bytes, patch)
2009-05-08 14:29 UTC, Florent Bondoux
Details | Diff
ebuild with patch (qingy-0.9.8-r1.ebuild,4.78 KB, text/plain)
2009-05-09 03:19 UTC, Marcus Becker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Becker 2009-04-27 21:31:51 UTC
After I upgraded to Qingy 0.9.8 today. Xfce4 starts fine with everything and I can use the mouse, stop start applications. If I hit any key, X stops and I end up in Qingy to put in my username and password again.
I can login to console in framebuffer using Qingy as normal, only happens in X
I have agetty on tty6 which lets me login to write this bugreport :)


Reproducible: Always

Steps to Reproduce:
1.use login on tty1 using Qingy and choose Xsession or Xfce4
2.wait until X is started
3.hit any key

Actual Results:  
ends session and logs the user off

Expected Results:  
do input via keyboard

/var/log/messages:
Apr 27 22:16:21 disi-desktop su[10029]: pam_unix(su:session): session closed for user root
Apr 27 22:16:22 disi-desktop qingy: pam_unix(qingy:session): session closed for user disi
Apr 27 22:16:22 disi-desktop qingy: pam_unix(qingy:session): session closed for user disi
Apr 27 22:16:22 disi-desktop qingy: pam_mail(qingy:session): pam_putenv: delete non-existent entry; MAIL
Apr 27 22:16:31 disi-desktop qingy: pam_unix(qingy:session): session opened for user disi by (uid=0)
Apr 27 22:16:31 disi-desktop qingy: pam_unix(qingy:session): session opened for user disi by (uid=0)
Apr 27 22:16:31 disi-desktop IRQ 16/nvidia: IRQF_DISABLED is not guaranteed on shared IRQs
Apr 27 22:16:32 disi-desktop IRQ 16/nvidia: IRQF_DISABLED is not guaranteed on shared IRQs
Apr 27 22:16:48 disi-desktop qingy: pam_unix(qingy:session): session closed for user disi
Apr 27 22:16:48 disi-desktop qingy: pam_unix(qingy:session): session closed for user disi

disi-desktop ~ # emerge --info
Portage 2.1.6.11 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4600+-with-gentoo-2.0.0
Timestamp of tree: Mon, 27 Apr 2009 18:00:01 +0000
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://mirror.netcologne.de/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://gentoo.virginmedia.com/ "
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/oss-overlay /usr/local/portage"
SYNC="rsync://192.168.1.253/gentoo-portage"
USE="3dnow X a52 aac acl amd64 ao atm audiofile bash-completion berkdb branding bzip2 cdr clamav cracklib crypt css curl cvs cxx dbus dga directfb dri dts dv dvb dvd dvdr encode exif expat fam fbcon ffmpeg firefox flac ftp gd gdbm ggi gif gmp gpm gtk hal iconv imagemagick imlib jack java javascript jpeg jpeg2k libnotify lzo mad mikmod mime mmap mmx mng mp3 mpeg mpi multilib musepack musicbrainz ncurses nls nptl nsplugin offensive ogg openal openexr opengl openmp osc oss pam pcre pdf perl png posix profile python quicktime readline rss sdl smp sndfile snmp speex spell sse sse2 ssl startup-notification subversion svg syslog szip tcpd theora threads tiff truetype unicode usb vcd vorbis wavpack wmf wxwindows x264 xcb xcomposite xine xinetd xml xpm xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Marcus Becker 2009-04-27 21:35:30 UTC
Even if I login to console and startx from there via Qingy X crashes.

Here are the USE flags, Qingy is with X and DirectFB without:

[ebuild   R   ] dev-libs/DirectFB-1.2.7  USE="fbcon fusion gif jpeg mmx png sdl sse sysfs truetype zlib -X -debug -v4l -v4l2" 2,707 kB
[ebuild   R   ] sys-apps/qingy-0.9.8  USE="X crypt directfb gpm pam -emacs -opensslcrypt -static" 0 kB
Comment 2 Marcus Becker 2009-04-27 21:43:21 UTC
here is the end of Xorg.1.log:
(II) config/hal: Adding input device Microsoft Comfort Optical Mouse 1000
(II) LoadModule: "evdev"

(II) Loading /usr/lib64/xorg/modules/input//evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
	compiled for 1.5.3, module version = 2.2.1
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 2.1
(**) Microsoft Comfort Optical Mouse 1000: always reports core events
(**) Microsoft Comfort Optical Mouse 1000: Device: "/dev/input/event3"
(II) Microsoft Comfort Optical Mouse 1000: Found 3 mouse buttons
(II) Microsoft Comfort Optical Mouse 1000: Found x and y relative axes
(II) Microsoft Comfort Optical Mouse 1000: Found scroll wheel(s)
(II) Microsoft Comfort Optical Mouse 1000: Configuring as mouse
(**) Microsoft Comfort Optical Mouse 1000: YAxisMapping: buttons 4 and 5
(**) Microsoft Comfort Optical Mouse 1000: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Microsoft Comfort Optical Mouse 1000" (type: MOUSE)
(II) config/hal: Adding input device AT Translated Set 2 keyboard
(**) AT Translated Set 2 keyboard: always reports core events
(**) AT Translated Set 2 keyboard: Device: "/dev/input/event2"
(II) AT Translated Set 2 keyboard: Found keys
(II) AT Translated Set 2 keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "evdev"
(**) Option "xkb_layout" "us"
(II) Microsoft Comfort Optical Mouse 1000: Close
(II) UnloadModule: "evdev"
(II) AT Translated Set 2 keyboard: Close
(II) UnloadModule: "evdev"
Comment 3 Marcus Becker 2009-04-27 22:48:51 UTC
It did work if I logged on to console via Qingy and ran startx

now I downgraded to DirectFB-1.2.6 and Qingy 0.9.7
and no problems anymore
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-28 19:47:31 UTC
Could you maybe elaborate if this is either a problem with qingy or DirectFB? How about only downgrading one package at a time and test again?
Comment 5 Marcus Becker 2009-04-28 22:29:02 UTC
Created attachment 189775 [details]
qingy.log

I am back on Qingy 0.9.8 with DirectFB-1.2.6 and the same happens again
so this is a problem with Qingy
I attched the debug log
Comment 6 Marcus Becker 2009-04-28 22:33:37 UTC
Unfortunately here in those 20sec it happens:
Apr 28 23:24:22, qingy-DirectFB on tty1, [DEBUG] stderr logger process shutting down...
Apr 28 23:24:43, qingy on tty1, [DEBUG] You chose a screen saver timeout of 5 minutes.
and there seems to be no log in qingy nor messages nor Xorg.log :(
Comment 7 Marcus Becker 2009-04-28 22:46:20 UTC
no problems Qingy 0.9.7 and DirectFB-1.2.7
Comment 8 Marcus Becker 2009-04-28 23:10:47 UTC
Qingy 0.9.8 DirectFB 1.2.7

created a fresh test user and same thing happens (i use different keys like a,d,b,i,o,e):
Apr 29 00:06:26 disi-desktop qingy: pam_unix(qingy:session): session opened for user pimpf by (uid=0)
Apr 29 00:06:26 disi-desktop qingy: pam_unix(qingy:session): session opened for user pimpf by (uid=0)
Apr 29 00:06:28 disi-desktop IRQ 16/nvidia: IRQF_DISABLED is not guaranteed on shared IRQs
Apr 29 00:06:29 disi-desktop IRQ 16/nvidia: IRQF_DISABLED is not guaranteed on shared IRQs
Apr 29 00:06:32 disi-desktop JBD: barrier-based sync failed on dm-0:8 - disabling barriers
Apr 29 00:06:46 disi-desktop qingy: pam_unix(qingy:session): session closed for user pimpf
Apr 29 00:06:46 disi-desktop qingy: pam_unix(qingy:session): session closed for user pimpf
Comment 9 Marcus Becker 2009-04-29 20:48:24 UTC
recompiled x11-base/xorg-server-1.5.3-r5 without hal USE flag
same problem...
Comment 10 Marcus Becker 2009-05-02 15:49:38 UTC
can anybody run Qingy 0.9.8 to login to X?
There is probably a get function or something that waits for input while it goes on to start X. As soon as it gets something from the keyboard, it continous in the Qingy script and kills X in the meantime?
I am no C expert and currently try to follow the session.c if there are any brackets missing or something...
Comment 11 Michele Noberasco (RETIRED) gentoo-dev 2009-05-04 07:34:06 UTC
(In reply to comment #10)
> can anybody run Qingy 0.9.8 to login to X?
Actually, I can, and I cannot reproduce your issues.
But I'm investigating...
Comment 12 Marcus Becker 2009-05-04 12:55:24 UTC
more testing:
removed xorg-x11
installed openbox for testing, works fine
installed windowmaker for testing, works fine
Comment 13 Michele Noberasco (RETIRED) gentoo-dev 2009-05-04 13:25:29 UTC
Uhm... I might install xfce4 and see if qingy issues are somehow related with it...
Comment 14 Florent Bondoux 2009-05-08 14:28:47 UTC
I'm not using xfce but I'm having a related bug with Qingy 0.9.8. The DBus session instance started by /etc/X11/xinit/xinitrc.d/30-dbus dies on keyboard input. Xfce is maybe dying along with the dbus daemon.

This is due to a change in session.c which messes up the standard I/O. The attached patch reverts this change and restores the std IO streams.
Comment 15 Florent Bondoux 2009-05-08 14:29:51 UTC
Created attachment 190684 [details, diff]
revert change in session.c
Comment 16 Marcus Becker 2009-05-09 03:19:13 UTC
Created attachment 190721 [details]
ebuild with patch

works perfect now here with xfce4, thanks a lot :)
Comment 17 kionez 2009-05-11 09:41:42 UTC
(In reply to comment #16)
> Created an attachment (id=190721) [edit]
> ebuild with patch

It works for me!

Before that patch I have to login to console then launch Xfce via startx, if I login to my Xsession directly d-bus doesn't starts correctly and gconf-enabled sowftwares (firefox, gedit...) shows me errors and annoying issues.

Thanks!
Comment 18 Michele Noberasco (RETIRED) gentoo-dev 2009-05-11 10:27:08 UTC
Just added version 0.9.9 to Portage, which adds the patch proposed here. Thanks, Florent!