*BSD News Article 9429


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA5757 ; Fri, 01 Jan 93 01:54:54 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!newsflash.concordia.ca!nstn.ns.ca!psinntp!psinntp!dg-rtp!ponds.uucp!rivers
From: rivers@ponds.uucp (Thomas David Rivers)
Subject: Re: XFree86 problem in XDrawSegments
References: <1992Dec30.013451.13074@ponds.uucp> <1992Dec30.063602.8978@fcom.cc.utah.edu>
Message-ID: <1992Dec30.140352.18037@ponds.uucp>
Date: Wed, 30 Dec 1992 14:03:52 GMT
Lines: 68

In article <1992Dec30.063602.8978@fcom.cc.utah.edu> terry@cs.weber.edu (A Wizard of Earth C) writes:
>In article <1992Dec30.013451.13074@ponds.uucp> rivers@ponds.uucp (Thomas David Rivers) writes:
>>
>> In trying to get cbzone up and running in 386bsd; I discovered the 
>> following problem.
>>
>> I'm using XFree86 version 1.1 as available on agate.
>>
>> After the game starts up (opens the display and does some drawing) it
>> will bomb out with the following message:
>>
>>XIO:  fatal IO error 14 (Bad address) on X server ":0.0"
>>      after 400 requests (399 known processed) with 17 events remaining.
>>
>>
>>  A breakpoint in _XDefaultIOError() reveals the following traceback:
>>
>>    _XDefaultIOError()
>>    _XIOError()
>>    _XSend()
>>    _XDrawSegments()
>>    multiline()              <----- cbzone function
>>    drawhorizone()           <----- cbzone function
>>    main()()                 <----- cbzone function
>>
>> It would appear that something is wrong in XDrawSegments....
>>
>> Has anyone else run into this?
>
>I have run into a similar problem (resulting in "BadMatch" errors) on an
>AT&T X terminal.  The problem traced back to a modification of the GC
>occurring before a draw, but not being forced to take effect (basically,
>an event queueing problem).  Using an XSync( Display, False); prior to
>the draw fixed the problem.
>
>
>					Terry Lambert
>					terry@icarus.weber.edu
>					terry_lambert@novell.com
>---
>Any opinions in this posting are my own and not those of my present
>or previous employers.
>-- 
>-------------------------------------------------------------------------------
>                                        "I have an 8 user poetic license" - me
> Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
>-------------------------------------------------------------------------------



 Well, I was anxious and since that sounded plausible, I tried it out.

 Unfortunately, it didn't seem to change the situation.  I'm beginning
 to wonder if this is simply a R5 problem - except that I build it
 regularly at work with my own R5 X libraries for the IBM 370 (really, honest.)

 To be specific; I placed an XSync( d, False )  [D is a global Display
 pointer] before the only call to XDrawSegments.  But, sadly enough,
 I still get the same error and same traceback.  

       - Dave Rivers -
       (rivers@ponds.uucp)

p.s. If anyone who has space and is building XFree86 would like to
     take a crack at this, I can mail you the sources, or you can
     find them in the X distribution.