Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#2053 - The most recent Arch modification to the dbus package erases the keyboard buffer on shell logins

Attached to Project: Arch Linux
Opened by Raven Morris (Samus_Aran) - Saturday, 22 January 2005, 05:42 GMT
Last edited by Jan de Groot (JGC) - Saturday, 22 January 2005, 12:57 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture not specified
Severity High
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

This bug is related to  bug 2049 , but it is not directly the same, and not as critical (although it does make my system unusable for me).

The "dbus 0.23-2" upgrade from "dbus 0.23-1" has caused many undesired keyboard buffer issues. The issues are immediately gone if the dbus package is downgraded. During a full shell login in Xorg (in my case aterm, I don't think it matters, though), the keyboard buffer is erased when the initial command prompt appears. This means any typing performed during the login phase is lost.

To clearly reproduce this bug:

* Upgrade to "dbus 0.23-2"
* Append a 2 second delay to your Bash login script
e.g. # printf "\nsleep 2s\n">>~/.bash_login
* Set your GNU Screen to do a full Bash login as its default function
e.g. # printf "\nshell -/bin/bash\n">>~/.screenrc
* Load GNU Screen
e.g. # screen
* Start a new console with Ctrl+A then C
* Type text during the two second pause
* Watch as it disappears
* Downgrade to the previous release of dbus
* Start a new console with Ctrl+A then C
* Type text during the two second pause
* Watch as it appears at the prompt

I'm sure it can be reproduced with any old X terminal app that is set to do a "bash --login" or similar, I just happen to use GNU Screen and do the ^Ac method of getting a new console and then type my command while it is logging in 100+ times per day.
This task depends upon

Closed by  Jan de Groot (JGC)
Monday, 24 January 2005, 17:07 GMT
Reason for closing:  Fixed
Comment by Raven Morris (Samus_Aran) - Saturday, 22 January 2005, 05:50 GMT
I just tested this bug with this command:

"xterm -fg grey -bg black -cr red -e bash --login"

And it is still 100% reproduceable. No need for GNU Screen, any Bash login will do it. I don't know if it affects other shells like tcsh, as I don't use any others. Okay, I just tried with the xterm and "tcsh -l" and the bug does not appear to be present like it is with "bash --login".

Anyhow, the cause of the bug is present in the "-1" to "-2" release. Whatever was changed should be put back.
Comment by Jan de Groot (JGC) - Saturday, 22 January 2005, 12:56 GMT
Could you try removing the /etc/profile.d/dbus.sh, logout and login again? Besides the QT bindings patch, this is the only thing that changed.

The things that were changed are documented here:
http://www.beaglewiki.org/index.php/Starting%20a%20D-BUS%20Session%20Bus
Comment by Raven Morris (Samus_Aran) - Saturday, 22 January 2005, 23:11 GMT
rm: cannot remove `/etc/profile.d/dbus.sh': No such file or directory
Comment by Raven Morris (Samus_Aran) - Saturday, 22 January 2005, 23:15 GMT
After reading that URL listed, I noticed something rather alarming:

I have 28 instances of "dbus-daemon-1 --fork --print-pid 8 --print-address 6 --session". Clearly it is starting this every single login shell session.

Also, I just realised that I was on the previous dbus release, so that would be why the file wasn't available. If dbus.sh was launching this background server every single login shell, then that surely is what was causing the keyboard buffer to be erased. I will upgrade my dbus and try deleting it.
Comment by Raven Morris (Samus_Aran) - Saturday, 22 January 2005, 23:18 GMT
Yes, erasing the dbus.sh login script removes the problem of the keyboard buffer being erased.
Comment by Jan de Groot (JGC) - Saturday, 22 January 2005, 23:22 GMT
We should get rid of dbus.sh in /etc/profile.d and supply Xsessions files with dbus launch commands in it I think. I will revert the change tomorrow.
The reason why I didn't notice this problem is because gnome-terminal doesn't use a login shell by default.
Comment by Jan de Groot (JGC) - Monday, 24 January 2005, 17:07 GMT
Reverted profile change, if users want to use dbus, they have to launch their X-session with it. (just like I use "exec ssh agent gnome-session" to start gnome with ssh-agent)

Loading...