Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147144 - x11-base/xorg-server-1.0.2-r7 - xephyr segmentation fault
Summary: x11-base/xorg-server-1.0.2-r7 - xephyr segmentation fault
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
: 173179 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-11 01:07 UTC by Vladimir
Modified: 2007-07-17 21:23 UTC (History)
2 users (show)

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


Attachments
Output from emerge --info (emerge--info,9.01 KB, text/plain)
2006-09-11 01:08 UTC, Vladimir
Details
New output from emerge --info (eminfo,9.50 KB, text/plain)
2006-09-25 03:13 UTC, Vladimir
Details
Make KD_MAX_KEYCODE=255 according to XDisplayKeycodes documentation (xorg-server-1.1.1-KD_MAX_KEYCODE.patch,992 bytes, patch)
2006-09-25 10:38 UTC, Vladimir
Details | Diff
Fixes crash of Xephyr on amd64 (xorg-server-1.1.1-xephyr-64.patch,804 bytes, patch)
2006-09-25 10:39 UTC, Vladimir
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir 2006-09-11 01:07:50 UTC
I'm trying to use Xephyr from x11-base/xorg-server-1.0.2-r7, but it shows segmentation fault just after opening its window:

$ Xephyr :5
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/quantum:5
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
Extended Input Devices not yet supported. Impelement it at line 625 in kinput.c
    xkb_keycodes             { include "xfree86+aliases(qwerty)" };
    xkb_types                { include "complete" };
    xkb_compatibility        { include "complete" };
    xkb_symbols              { include "pc(pc101)+us" };
    xkb_geometry             { include "pc(pc101)" };
Segmentation fault

Here is gdb backtrace:
#0  0x0000000000000000 in ?? ()
#1  0x00000000007050f7 in FreePictFormat ()
#2  0x000000000044d3ee in FreeCursor ()
#3  0x000000000044d7e0 in FreeCursor ()
#4  0x000000000043b967 in ReplyNotSwappd ()
#5  0x00002b6a24a44136 in __libc_start_main () from /lib/libc.so.6
#6  0x0000000000420209 in ?? ()
#7  0x00007fffff882c98 in ?? ()
#8  0x000000000000001c in ?? ()
#9  0x0000000000000002 in ?? ()
#10 0x00007fffff884032 in ?? ()
#11 0x00007fffff884042 in ?? ()
#12 0x0000000000000000 in ?? ()

Output of emerge --info is in the attached file
Comment 1 Vladimir 2006-09-11 01:08:33 UTC
Created attachment 96673 [details]
Output from emerge --info
Comment 2 Joshua Baergen (RETIRED) gentoo-dev 2006-09-12 15:12:00 UTC
You could try compiling it with different CFLAGS.  I think I've had problems with -funit-at-a-time and X in the past.
Comment 3 Vladimir 2006-09-13 04:02:38 UTC
(In reply to comment #2)
> You could try compiling it with different CFLAGS.  I think I've had problems
> with -funit-at-a-time and X in the past.
I've just tried to recompile it with CFLAGS="-march=athlon64 -O2", but I still have the same crash.
Comment 4 Joshua Baergen (RETIRED) gentoo-dev 2006-09-24 10:16:30 UTC
Please unmask Xorg 7.1 from testing (xorg-x11, xorg-server, mesa, mesa-progs and relevant drivers) and give that a try.  Re-open the bug when you've done so.
Comment 5 Vladimir 2006-09-25 03:12:01 UTC
I've already switched to xorg-7.1 ( xorg-server-1.1.1-r1 ) but segmentation fault still occurs, however backtrace is different:

(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x0000000000708b7c in PictureDestroyWindow ()
#2  0x000000000044bcfe in FreeClientPixels ()
#3  0x000000000044c023 in FreeClientPixels ()
#4  0x000000000043ae3a in NotImplemented ()
#5  0x00002b4f0abaa134 in __libc_start_main () from /lib/libc.so.6
#6  0x000000000041f6b9 in ?? ()
#7  0x00007fffa0e10ae8 in ?? ()
#8  0x0000000000000000 in ?? ()

By the way I've switched to gcc 4.1.1, new emerge --info is in the attachment.
Comment 6 Vladimir 2006-09-25 03:13:35 UTC
Created attachment 98009 [details]
New output from emerge --info
Comment 7 Joshua Baergen (RETIRED) gentoo-dev 2006-09-25 09:11:55 UTC
This should move upstream.  Please find/file a bug at https://bugs.freedesktop.org and post the link here.  Thanks!
Comment 8 Vladimir 2006-09-25 10:37:07 UTC
(In reply to comment #7)
> This should move upstream.  Please find/file a bug at
> https://bugs.freedesktop.org and post the link here.  Thanks!
I've found how to fix the problem. I'm attaching two patches: one general (which defines KD_MAX_KEYCODE to 255 according to XDisplayKeycodes documentation) and one amd64-specific. With this patches XEphyr works stable on x86_64.
I'll post this patches upstream, but may be in meantime it's good to apply it in xorg-server ebuild (without it Xephyr will not work on amd64 at all).
Comment 9 Vladimir 2006-09-25 10:38:42 UTC
Created attachment 98042 [details, diff]
Make KD_MAX_KEYCODE=255 according to XDisplayKeycodes documentation
Comment 10 Vladimir 2006-09-25 10:39:43 UTC
Created attachment 98043 [details, diff]
Fixes crash of Xephyr on amd64
Comment 11 Joshua Baergen (RETIRED) gentoo-dev 2006-09-25 15:08:24 UTC
Where are these posted upstream?  We generally don't add patches without upstream accepting them first.
Comment 12 Vladimir 2006-09-26 01:14:42 UTC
(In reply to comment #11)
> Where are these posted upstream?  We generally don't add patches without
> upstream accepting them first.

https://bugs.freedesktop.org/show_bug.cgi?id=8417

Comment 13 Joshua Baergen (RETIRED) gentoo-dev 2006-09-26 07:10:50 UTC
Thanks!  Give us a poke once upstream has said they're OK.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-07-17 21:17:51 UTC
*** Bug 173179 has been marked as a duplicate of this bug. ***