Bug 367 - -terminate option crashes Xserver
Summary: -terminate option crashes Xserver
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: unspecified
Hardware: SPARC Solaris
: high normal
Assignee: Alan Coopersmith
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-23 16:49 UTC by Alan Coopersmith
Modified: 2004-03-22 22:11 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Alan Coopersmith 2004-03-23 16:49:41 UTC
xc/programs/Xserver/dix/dispatch.c defines dispatchExceptionAtReset as char,
but xc/programs/Xserver/os/utils.c externs it as an int, which causes a bus error
due to misalignment on SPARC when you start the server with the -terminate flag
which causes utils.c to try to write to the dispatchExceptionAtReset variable
Comment 1 Alan Coopersmith 2004-03-23 16:56:52 UTC
Fix to xc/programs/Xserver/os/utils.c is trivial:
-extern int dispatchExceptionAtReset;
+extern char dispatchExceptionAtReset;

Long term this may be better moved to globals.h or another header.

(This was originally reported as Sun bug id #5017154.)
Comment 2 Alan Coopersmith 2004-03-23 17:11:30 UTC
Log message:
   58. -terminate option crashes Xserver.  Bugzilla #367. (Alan Coopersmith)

Modified files:
      ./:	Tag: XORG-RELEASE-1
        CHANGELOG-RELEASE-1 
      xc/programs/Xserver/os/:	Tag: XORG-RELEASE-1
        utils.c 
  
  Revision      Changes    Path
  1.1.2.41      +2 -1      xc/Attic/CHANGELOG-RELEASE-1
  1.1.4.6.2.5   +2 -2      xc/programs/Xserver/os/utils.c


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.