Bug 367

Summary: -terminate option crashes Xserver
Product: xorg Reporter: Alan Coopersmith <alan.coopersmith>
Component: Server/GeneralAssignee: Alan Coopersmith <alan.coopersmith>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: SPARC   
OS: Solaris   
Whiteboard:
i915 platform: i915 features:

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.