Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405951 - x11-libs/libxcb-1.8 makes X11 clients hang on Mac OS X
Summary: x11-libs/libxcb-1.8 makes X11 clients hang on Mac OS X
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: http://archives.gentoo.org/gentoo-alt...
Whiteboard:
Keywords:
: 406381 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-26 20:06 UTC by Michael Weiser
Modified: 2012-03-03 12:19 UTC (History)
2 users (show)

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 Michael Weiser 2012-02-26 20:06:31 UTC
With libxcb-1.8 installed, all X11 clients hang. top shows them hoging a CPU core at 100%. Attaching to the process with dtruss shows an endless loop of 

select(0x4, 0xBFFFE0C0, 0xBFFFE040, 0x0, 0x0)		 = 1 0
recvfrom(0x3, 0x801A58, 0x1000)		 = -1 Err#35

Downgrading to 1.7 avoids the problem.

The problem is already known upstream and seems to hit FreeBSD as well: https://bugs.freedesktop.org/show_bug.cgi?id=45776.

It's fixed in Debian with patch:
http://anonscm.debian.org/gitweb/?p=collab-maint/libxcb.git;a=commitdiff;h=2b5bc1d3299510e10a1733e5a3b326232c774b75

Adding this patch to the Gentoo ebuild reliably solves the problem. Inclusion of this patch in the standard or prefix trees would be greatly appreciated.

Reproducible: Always




Portage 2.2.01.20239-prefix (prefix/darwin/macos/10.6/x86, gcc-4.2.1, unavailable, 10.8.0 i386)
=================================================================
System uname: Darwin-10.8.0-i386-32bit
Timestamp of tree: Fri, 24 Feb 2012 12:11:58 +0000
distcc 3.1-toolwhip.1 i386-apple-darwin10.0 [disabled]
app-shells/bash:      4.2_p20::gentoo_prefix
dev-lang/python:      2.7.2-r3::gentoo_prefix
dev-util/cmake:       2.8.7-r3::gentoo_prefix
dev-util/pkgconfig:   0.26::gentoo_prefix
sys-devel/autoconf:   2.68::gentoo_prefix
sys-devel/automake:   1.11.1::gentoo_prefix
sys-devel/gcc:        4.6.2::gentoo_prefix
sys-devel/gcc-config: 1.5-r2::gentoo_prefix
sys-devel/libtool:    2.4-r4::gentoo_prefix
sys-devel/make:       3.82::gentoo_prefix
Repositories: gentoo_prefix local
Installed sets: 
ACCEPT_KEYWORDS="~x86-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-apple-darwin10"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-apple-darwin10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/local/gentoo/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=10"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles force-prefix macosprefixsandbox macossandbox news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-dead_strip_dylibs"
MAKEOPTS="-j2"
PKGDIR="/usr/local/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/usr/local/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/usr/local/gentoo/var/tmp"
PORTDIR="/usr/local/gentoo/usr/portage"
PORTDIR_OVERLAY="/usr/local/gentoo/usr/local/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="aqua bzip2 cairo coreaudio cracklib cxx iconv idn ipv6 ithreads jpeg kerberos kpathsea logrotate mbox mmap mmx mmxext modules ncurses objc objc++ openssl pic png prefix readline recode slang sse sse2 ssl threads tidy tiff unicode x86-macos xml zlib" 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 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="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby19" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-02-26 21:26:39 UTC
Thanks for the research.

(In reply to comment #0)
> Adding this patch to the Gentoo ebuild reliably solves the problem. Inclusion
> of this patch in the standard or prefix trees would be greatly appreciated.

It will have to be the gentoo-x86 tree.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-03-01 04:18:17 UTC
*** Bug 406381 has been marked as a duplicate of this bug. ***
Comment 3 Fabian Groffen gentoo-dev 2012-03-03 11:32:20 UTC
I'm hoping for upstream to come to some conclusion in a reasonable timeframe.
Comment 4 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-03-03 12:19:57 UTC
I asked in upstream's IRC channel and they sort of ACK'ed the patch. So I applied it in 1.8-r1.

Marking as FIXED.