Bug 1479

Summary: Selection.c damages user error handler function
Product: xorg Reporter: Michael <mikets>
Component: Lib/XtAssignee: Jim Gettys <jg>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Michael 2004-09-27 09:42:20 UTC
It looks like under certain conditions a user error handler routine set by 
XSetErrorHandler can be effectively canceled from inside of Xt/Selection.c.

The place to suspect is the loop in the SelectionRequest case of 
HandleSelectionEvents function. Under certain conditions there can be several 
two calls to EndProtectedSection after single StartProtectedSection. Since 
EndProtectedSection zeroes the global oldErrorHandler variable, the second 
call to EndProtectedSection restores the default error procedure instead of 
user's one.

Probably there exist more than one problematic code fragments.
(Checked in 6.6 and 6.8.1 sources).
Comment 1 Josh Triplett 2005-05-05 00:06:39 UTC

*** This bug has been marked as a duplicate of 1478 ***

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.