Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206490 - x11-base/xorg-server-{1.3.0.0-r3,1.4.0.90-r1} security fixes break multiple applications - BadAlloc (insufficient resources for operation)
Summary: x11-base/xorg-server-{1.3.0.0-r3,1.4.0.90-r1} security fixes break multiple a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: REGRESSION
: 206564 206777 (view as bug list)
Depends on:
Blocks: 204362
  Show dependency tree
 
Reported: 2008-01-18 05:29 UTC by stupendoussteve
Modified: 2008-01-20 14:22 UTC (History)
11 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 stupendoussteve 2008-01-18 05:29:59 UTC
This bug cropped up immediately after the bump to 1.4.0.90-r1 from (I'm assuming) 1.4.0.90. Downgrading azureus has no affect and swt was working prior to the upgrade. 1.4.0.90 is no longer in portage.


$ azureus
using /home/steve/.azureus/gentoo.config
The program 'SWT' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 261 error_code 11 request_code 149 minor_code 5)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Reproducible: Always
Comment 1 Albert W. Hopkins 2008-01-18 06:54:15 UTC
I'm also getting this with eclipse.
Comment 2 Danny Brain 2008-01-18 08:36:05 UTC
Also with FileZilla. I (horrible hack) fixed it by disabling the latest Fix-for-CVE patches, was going to do them one by one to see where the issue lay but didn't have the time.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-01-18 09:17:30 UTC
(In reply to comment #2)
> Also with FileZilla.

You get exactly what w/ filezilla? It doesn't use java at all.
Comment 4 Danny Brain 2008-01-18 09:23:45 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Also with FileZilla.
> 
> You get exactly what w/ filezilla? It doesn't use java at all.
> 
I got the same BadAlloc (insufficient resources for operation) error (just not on  SWT). I should have copied the exact message down. Removed the xorg-server Fixed-for-CVE patches and now it's running fine. Will remerge with patches and reply with the error if needed.
Comment 5 Tassilo Horn 2008-01-18 10:13:44 UTC
Could someone please explain how to work around it?  Simply uncommenting the patches in the ebuild or deleting the patch files doesn't work.  And the older ebuild is gone. (I need eclipse for work, so the workaround needs not to be clean, but fast.)
Comment 6 Danny Brain 2008-01-18 10:18:05 UTC
(In reply to comment #5)
> Could someone please explain how to work around it?  Simply uncommenting the
> patches in the ebuild or deleting the patch files doesn't work.  And the older
> ebuild is gone. (I need eclipse for work, so the workaround needs not to be
> clean, but fast.)
> 
I was in the same situation earlier. Quick fix (well quick enough):
- edit /usr/portage/x11-base/xorg-server/xorg-server-<version>.ebuild
- Remove the *Fix-for-CVE* lines in PATCHES= and save.
- Run ebuild /usr/portage/x11-base/xorg-server/xorg-server-<version>.ebuild digest
- emerge -v xorg-server
Comment 7 Tassilo Horn 2008-01-18 10:53:24 UTC
Thanks, Danny. My first attempt was to only uncomment them (prepending with #) and I forgot that the patches were listed in a string. Now it seems to work. YMMD :-)
Comment 8 Jens Pranaitis 2008-01-18 13:16:03 UTC
I'm having the same errors with xorg-server-1.3.0.0-r3.

Portage 2.1.3.19 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 i686)
=================================================================
System uname: 2.6.23-gentoo-r3 i686 AMD Athlon(tm) XP 2800+
Timestamp of tree: Fri, 18 Jan 2008 09:46:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0_rc6-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/config /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer noinfo parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/wschlich-testing /usr/portage/local/layman/jenux /usr/portage/local/layman/dirtyepic /usr/portage/local/local /usr/portage/local/gentoo-de"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac aalib acl acpi additions alsa amarok amazon asf asm authdaemond autoreplace avahi bash-completion berkdb bitmap-fonts branding bzip2 cap cdparanoia cdr cdrom cgi chroot cli connectionstatus cracklib crypt css ctype cups curl dbus device-mapper dri dv dvd dvdnav dvdr dvdread encode fam fastcgi fbcon fbcondecor ffmpeg firefox flac freetype2 ftp gdbm gif glibc-omitfp gnutls gpm hal highlight history hou hyperestraier ieee1394 imagemagick imap imlib ipod ipv6 irc jabber java javascript jikes jingle john joystick jpeg jpeg2k kde kdehiddenvisibility kqemu lame live log4j logitech-mouse logrotate mad matroska midi mikmod mjpeg mmx mmxext mng motif mozbranding mp2 mp3 mp4 mpeg mpeg2 msn musepack musicbrainz mysql ncurses netmeeting nls nowin nptl nptlonly nsplugin nvidia offensive ogg openal opengl oscar pam pam_chroot pcre pdf perl php pic png psyco python qt3 qt3support qt4 quicktime rar rdesktop readline real ruby samba sasl sdl session silc slp socks5 sou spell sse ssl svg tcpd texteffect theora threadsafe thumbnail tidy tiff tordns transparency truetype truetype-fonts type1-fonts udev unicode urandom usb userlocales v4l v4l2 vcd vim vorbis wavpack wifi win32codecs winbind winpopup wxgtk1 wxwindows x11vnc x264 x86 xcomposite xine xml xorg xosd xscreensaver xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1  emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m       maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="alaw copy dshare dsnoop extplug null shm adpcm file hooks ladspa lfloat linear meter mulaw multi rate route share" 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 joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 peteru 2008-01-18 17:20:34 UTC
Try adding the following to your xorg.conf

   Section "Extensions"
      Option "MIT-SHM" "no"
   EndSection

Comment 10 Damien Thébault 2008-01-18 17:50:58 UTC
Disabling the "MIT-SHM" extension works for me, I'm now able to start azureus.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2008-01-18 19:13:50 UTC
*** Bug 206564 has been marked as a duplicate of this bug. ***
Comment 12 Tobias Franke 2008-01-18 21:15:29 UTC
Disabling the "MIT-SHM" extension causes enlightenment-0.16.8.10 and 0.16.8.11 to segfault a few seconds/minutes after starting. Usual enlightenment segfault screen. 

So this is not a good workaround for me.
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2008-01-18 21:33:30 UTC
Fixed in 1.3.0.0-r4 and 1.4.0.90-r2, thanks to upstream X developer Adam Jackson for a quick response.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2008-01-20 14:22:32 UTC
*** Bug 206777 has been marked as a duplicate of this bug. ***