Bug 11582 - Xephy segfaults on x86_64
Summary: Xephy segfaults on x86_64
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/DDX/Xephyr (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Matthew Allum
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-13 03:23 UTC by Stefan Dirsch
Modified: 2007-08-18 02:53 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Stefan Dirsch 2007-07-13 03:23:13 UTC
Xephy segfaults immediately on x86_64.
# Xephyr
[...]
Segmentation fault

This has also been reported to Novell Bugzilla.

  https://bugzilla.novell.com/show_bug.cgi?id=235320

Find some more details there.
Comment 1 Daniel Stone 2007-07-13 05:25:55 UTC
realizeCursor is NULL, which really shouldn't happen.  works fine for me on amd64 with git master, and also with 1.3 branch (at least, last time i tried).
Comment 2 Stefan Dirsch 2007-07-13 06:30:20 UTC
I'm using xorg-server-1.3.0.0. Hmm ...
Comment 3 Stefan Dirsch 2007-07-19 09:24:19 UTC
Date: Thu, 19 Jul 2007 08:25:50 -0700
From: Alan Coopersmith
To: Stefan Dirsch <sndirsch@suse.de>
Cc: xorg@freedesktop.org
Subject: Re: Xephyr crashes immediately on x86_64

Stefan Dirsch wrote:
> Hi Anybody, who can reproduce the immediate crash of Xepyhr on x86_64?
> I've opened a bugreport (#11582) for this. I'm using
> xorg-server-1.3.0.0 sources.

With 1.2 & 1.3, we had that problem due to the long vs. CARD32 mismatch
in KeySym definitions between client and server code - this patch seemed
to fix it (and the input rework in head fixed it as well in a different
way):


--- xorg-server-1.2.0/hw/kdrive/ephyr/hostx.c~  2007-01-22
21:39:15.000000000 -0800
+++ xorg-server-1.2.0/hw/kdrive/ephyr/hostx.c   2007-02-02
16:03:09.840426000 -0800
@@ -40,6 +40,7 @@
 #include <X11/Xatom.h>
 #include <X11/keysym.h>
 #include <X11/extensions/XShm.h>
+#include <X11/Xmd.h>

 /*
  * All xlib calls go here, which gets built as its own .a .
@@ -79,7 +80,8 @@

 extern KeySym         EphyrKeymap[];

-extern KeySym        kdKeymap[];
+extern CARD32        kdKeymap[];       /* really KeySym, but Xlib &
Xserver
+                                          use different sizes for that */
 extern int           kdMinScanCode;
 extern int           kdMaxScanCode;
 extern int           kdMinKeyCode;


For 1.2, we also needed this patch:
http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=commit;h=5dcad9e9d7d9993d65f989219bee94a060bbf476
Comment 4 Stefan Dirsch 2007-07-19 15:47:28 UTC
Indeed. The patch by Alan Coppersmith fixes this.
Comment 5 Dodji Seketeli 2007-08-18 02:53:46 UTC
This patch does not apply to the master branch anymore. The bug has been fixed in master in another way.

So I have applied it to server-1.3-branch so that we don't loose it.

It is changeset dcc3de91d2b80be98e4488df29ec6b551c7ff6d1.

I close the bug for now.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.