Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86768 - pbbuttonsd-0.6.8 freezes my computer every so and so (like twice in an hour)
Summary: pbbuttonsd-0.6.8 freezes my computer every so and so (like twice in an hour)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High critical (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-26 05:32 UTC by Santiago Gala
Modified: 2005-09-18 14:57 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Santiago Gala 2005-03-26 05:32:10 UTC
I upgraded pbbuttonsd from 0.6.7 to 0.6.8 after discussion with JoseJX about an (unrelated) problem with kernel 2.6.11

Soon after the upgrade, the machine froze (no mouse movements, no hard disk activity). I rebooted using CTRL-Apple-Power, kept with my work and the machine froze again half an hour later.

I backed off to 0.6.7 since

Reproducible: Always
Steps to Reproduce:
1.upgrade pbbuttonsd 0.6.8
2.restart pbbuttonsd
3.wait some time working

Actual Results:  
the machine got completely frozen

Expected Results:  
nada

$ emerge info
Portage 2.0.51.19 (default-linux/ppc/2005.0, gcc-3.4.3-20050110,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r4 ppc)
=================================================================
System uname: 2.6.11-gentoo-r4 ppc 7455, altivec supported
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 18:55:22)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.7.9-r1, 1.4_p6, 1.5, 1.9.5, 1.8.5-r3, 1.6.3
sys-devel/binutils:  2.15.90.0.3-r4
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=7450 -maltivec -mabi=altivec -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=7450 -maltivec -mabi=altivec -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo
http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/
ftp://mirror.switch.ch/mirror/gentoo/"
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib aavm accessibility adns alsa altivec apache2 bash-completion
berkdb bitmap-fonts bluetooth bonobo cdr cjk crypt cups curl directfb dv dvd
dvdr dvdread emacs emboss esd fam fbcon flac fortran gd gdbm gif glitz gnome
gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl icq imagemagick imlib ipv6
jabber java jpeg junit lcms ldap mad mono motif mozilla mozsvg mp3 mpeg mysql
nas ncurses nls nptl ogg oggvorbis opengl pam pcmcia pcre pdflib perl pic
plotutils png pnp postgres ppc python qt readline ruby samba scanner sdl slang
snmp spell sqlite ssl svg tcltk tcpd threads tiff truetype truetype-fonts
type1-fonts unicode usb v4l v4l2 xinerama xml xml2 xmms xosd xprint xv xvid
yahoo zlib video_cards_radeon linguas_es_ES linguas_es linguas_en_US linguas_en"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 1 Santiago Gala 2005-03-26 09:03:12 UTC
I had the "use fb to blank" enabled. This option behaves differently depending on kernel release: in 2.6.8 is seemed to do nothing, in 2.6.9 and 2.6.10 it switched backligh off but left the card on. In 2.6.11 it left the screen white

Ditto WRT Alsa. Now I switched to OSS and it is working perfectly.

One of these two things seem to be the cause of the computer freezing.
Comment 2 bambam 2005-03-28 18:01:48 UTC
i don't have any problems on using pbbuttonsd-0.6.8 with kernel 2.6.11.6.(uptime 6:32h). hope it'll work for you too...
here my emerge info:

Portage 2.0.51.19 (default-linux/ppc/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20041102-r1, 2.6.11.6 ppc)
=================================================================
System uname: 2.6.11.6 ppc 7455, altivec supported
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 19 2005, 19:27:36)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.6.3, 1.9.5, 1.4_p6
sys-devel/binutils:  2.15.90.0.3-r4
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -mcpu=7450 -mabi=altivec -maltivec -mpowerpc-gfxopt -fno-strict-aliasing"
CHOST="powerpc-unknown-linux-gnu"
Comment 3 Santiago Gala 2005-03-30 06:14:06 UTC
I'm almost completely sure that the problem comes from the new "NoTapTyping" feature. I set it via powerprefs, as I often touch the panel while typing.

Yesterday, when I had several freezes, I noticed that the last one was just after I switched from keyboard to touchpad. I unset it and I have yet to see a freeze.

Also, while looking at it, I noticed that /etc/power/pmcs-config contains "-p" in all the disk related scripts. It does not look like a great default setting for moderns drivers, though I think it is not really changing much, except the dmesg is now
hda: Enabling Ultra DMA 4
hdc: Enabling MultiWord DMA 2

and it used to be:

hda: Set PIO timing for mode 0, reg: 0x0c50032b
and nothing for the DVD

Just FYI, leaving those options as "" looks safer to me for most modern hardware.
Comment 4 Joe Jezak (RETIRED) gentoo-dev 2005-04-02 06:15:42 UTC
I've finally managed to replicate this on my powerbook, it does seem to be related to the NoTapTyping feature.  Turning it off prevents the lockups.
Comment 5 Joe Jezak (RETIRED) gentoo-dev 2005-04-08 00:54:57 UTC
There has been a new release of pbbuttonsd.  I've added it to CVS already, but could you test and see if the issue with NoTapType is fixed?  The bug occurs so rarely on my machine that I can't confirm.

Thanks!
Comment 6 Santiago Gala 2005-04-11 06:39:17 UTC
Tried. With NoTapTyping it stayed up for several hours. It froze when I was under batteries, typing and selecting.

I sent the output of /proc/cpuinfo, /proc/dev/pmu and lsadb to the upstream developer, per instructions on #gentoo-ppc
Comment 7 Lars Weiler (RETIRED) gentoo-dev 2005-05-07 16:58:02 UTC
pbbuttonsd-0.6.9 has several updates regarding the trackpad.  Did you tested that one already?
Comment 8 Joe Jezak (RETIRED) gentoo-dev 2005-05-09 12:21:42 UTC
Yeah, the message #6 was in regards to the new version.  So it's still a problem.  Santiago, can you try with the vanilla 2.6.12_rc4 kernel to see if it's still locking?  There are a number of ppc fixes in this kernel.
Comment 9 Joe Jezak (RETIRED) gentoo-dev 2005-05-25 23:46:28 UTC
I've added pbbuttonsd-0.6.9-r1 to portage which should contain a fix for the
race condition that was causing this problem.  Please give it a try and let me
know how it goes.

Thanks!
Comment 10 Joe Jezak (RETIRED) gentoo-dev 2005-05-26 12:29:22 UTC
Sorry, another version bump, 0.6.10 final is in portage now.
Comment 11 Santiago Gala 2005-05-27 05:31:28 UTC
0.6.10 froze with vanilla-kernel 2.6.11.7 after about 20 hours with NoTapTyping
activated.

It was on (low) batteries -> slow clock, powersave, which greatly increases the
likelyhood of race conditions. I guess there is still something broken. It
involved ALT-TAB to switch windows plus fast mouse move, which is something I do
often, and could be related.

Tough. I'm switching NoTapTyping off again.
Comment 12 Joe Jezak (RETIRED) gentoo-dev 2005-07-20 19:23:01 UTC
You're right, there was another race condition.  Although the author claims that
there still is the possibility for more race conditions, it should extremely
rare now.  This was achieved by reducing the number of ADB messages required for
NoTapTyping.  Please give 0.7.1 a try and let me know how it works for you. 
Also, NoTapTyping is off by default now.
Comment 13 Joe Jezak (RETIRED) gentoo-dev 2005-09-13 07:49:26 UTC
I'd like to mark 0.7.1 stable in the near future, if anyone is still having
problems with the default configuration please let me know.  I realize that
NoTapTyping isn't 100% fixed, but I'll add a warning into the ebuild to let
people know that this is an experimental option and that it has the potential to
cause hard locks.
Comment 14 Joe Jezak (RETIRED) gentoo-dev 2005-09-18 14:57:07 UTC
Warning added and ebuild marked ppc stable.  Feel free to reopen if you want to
revisit this issue.