Xorg segfaults when using Xevie, after calling XNextEvent(). xorg-6.8.2-r6 suffers from this problem. I recently moved to the cvs ebuilds, and it seemd to be corrected on 6.8.99.15-r4, but reapeared on 7.0.0_rc4 (the new "modular X"). Reproducible: Always Steps to Reproduce: 1. Activate the Xevie extension on xorg.conf 2. Make a simple program using xevie or use the "demo" availiable on freedesktop.org 3. Make it call XNextEvent() when appropriate 4. Compile and run 5. Comment out the XNextEvent() call 6. Compile and run Actual Results: The version calling XNextEvent() crashes givig us "Segmentation fault". The other version runs normally (without intercepting the events of course..) Expected Results: The program shouldn't be crashing on that call. Xorg's Xevie extension isn't working in gentoo's xorg. I googled around and found no reference to this bug whatsoever. It may be because it's only used by devs right now.. I suspect the problem may be related to gentoo's "modular X", but it may as well be a xorg bug. Please "upstream-it" in such case.
Please attach your 'emerge info'.
Here's the output of emerge info: Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-gentoo-r3 i686) ================================================================= System uname: 2.6.14-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.2.3-r5, 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -mcpu=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/confi g /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/ config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.rnl.ist.utl.pt/pub/gentoo http://darkstar.ist.utl.pt/gentoo http://ftp.gentoo-pt.org/pub/gentoo ftp://gent oo.chem.wisc.edu/gentoo/ ftp://ftp.rxd.hu ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.datapipe.net/gentoo rsync://lin ux.rz.ruhr-uni-bochum.de/gentoo/ rsync://planetmirror.com/gentoo/" LANG="pt_PT@euro" LINGUAS="pt" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac aalib acpi alsa apm audiofile avi berkdb bitmap-fonts bzip2 cdb cdparanoia cdr crypt cups curl directfb divx4linux dv d dvdr eds emboss encode exif expat fam fbcon ffmpeg flac font-server foomaticdb fortran gcj gdbm gif glibc-compat20 glut gpm gtk gt k2 hal idn imagemagick imlib jack java jpeg lcms libcaca libg++ libwww lirc live mad matroska mikmod mmx mmxext mng motif mozsvg mp3 mpeg mppe-mppc nas ncurses network nls nptl nvidia offensive ogg oggvorbis openal opengl oss pam pcre pdflib perl png ppds python q t quicktime readline recode samba sdl slang sox spell sqlite sse sse2 ssl stroke svg svga swsusp2 tcltk tcpd tetex threads tiff tls truetype truetype-fonts type1-fonts udev usb v4l v4l2 videos vorbis win32codecs xine xml xml2 xmms xpm xv xvid zlib linguas_pt userl and_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS
Did you try any other versions of modular in between 6.8.99.15 and the latest 7.0?
No, I haven't. I only switched to modular when the "cvs" (hard masked) version went modular..
Well, we've had a masked modular version in the tree since rc0, which was ~2 months ago, and there have been 3 different modular releases. Was just wondering how long you had been using modular.
Can you get a useful backtrace out of the app that segfaults?
I'm sorry but it works perfectly now.. I'm using xorg-x11-7.0.0 and libxevie-1.0.0. I thought it was already solved.. :/ I'm switching it to "fixed". I guess I should have done that before.. Thanks anyway!