On 2/16/07, Ken Mandelberg <[EMAIL PROTECTED]> wrote:
We have been having trouble with matlab crashing the Sunray XSun on
Solaris Sparc. Some X protocol traces point to matlab using the SUN_DGA
extension, and causing the problem.

Do you have core files from the crashed Xsuns?  Since Xsun is a setgid
program it doesn't usually leave a core, but you can use 'coreadm' to tell
the system to capture cores from setuid/setgid programs.  If you include
core files when you open a support call then fixing the problem should be
much easier.

How can I configure the Sunray server to return false to QueryExtension
for SUN_DGA?

I don't think that's possible.  SUN_DGA is hardwired into Xsun.  It's not
loaded dynamically (there's no configuration that you can undo), there's
no command-line option to disable it and Sun Ray has no say in whether
it gets advertised or not.  It makes no sense for a Sun Ray Xsun to be
advertising SUN_DGA because Sun Ray does not support that extension.
I think applications are supposed to figure that out when their DGA calls
fail.

As a workaround you could try writing an LD_PRELOAD'able interposer
library that intercepts the application's call to XQueryExtension and drops
SUN_DGA from the result.

An easier but much uglier hack would be to use a binary editor to modify
the string that defines the "SUN_DGA" extension name in the Xsun
executable.  "SUN_DGA" occurs three times in Xsun, twice in error
messages and once on its own as the name of the extension.  You'd
need to edit only the last of those.  If I was doing this I'd experiment first
by making a copy of Xsun (be careful to preserve the same ownership
and permissions as the original, including the setgid bit), modifying that
copy, then editing the Sun Ray 'utxsun' script to exec the modified Xsun.
Of course any such edits could be undone by a patch install.  A proper
long-term solution will have to come from Sun as a result of a bug being
opened.

OttoM.
__
ottomeister

Disclaimer: These are my opinions.  I do not speak for my employer.
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to