Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XIO: fatal IO error 9 (Bad file number) on X server "hosthame:0.0"

423 views
Skip to first unread message

Michael Cohen

unread,
Aug 11, 1997, 3:00:00 AM8/11/97
to

We are running an X-Windows program on a "HP-UX 10.10 9000/735" platform

and after running this
program for several hours we get the following error message 'XIO: fatal

IO error 9 (Bad file number)
on X server "hosthame:0.0"'. Has anyone seen this error message
before? Is there a way to fix this
error? We are running this application on the console and there are
only a few other processes
running at the same time.

Thanks in advance for your help,
Michael Cohen
mco...@csc.com


Mike Stroyan

unread,
Aug 12, 1997, 3:00:00 AM8/12/97
to

Michael Cohen (mco...@csc.com) wrote:
|We are running an X-Windows program on a "HP-UX 10.10 9000/735" platform

|and after running this
|program for several hours we get the following error message 'XIO: fatal

|IO error 9 (Bad file number)
|on X server "hosthame:0.0"'. Has anyone seen this error message
|before? Is there a way to fix this
|error? We are running this application on the console and there are
|only a few other processes
|running at the same time.

That sounds like the display's file descriptor, "display->fd", has
been either closed or overwritten. You could print the correct fd value
after calling XOpenDisplay, then set up an IO error handler with
XSetIOErrorHandler(3x) to check which of those has occured. You will
probably end up debugging the application and looking for either bad
calls to close() or memory overwrites.

--
Mike Stroyan, mike_s...@fc.hp.com

0 new messages