Further analysis of the HPUX 11 Xvnc core dump showed the Xvnc font cache
was handing back corrupted _Font structures. So I changed the code to
disable font caching and the problem went away. So there seems to be a
defect in Xvnc font caching, or perhaps more likely, memory management of
the data structures being cached (maybe the data structures are being freed
while still in the cache?). I don't know what it is about HPUX 11 that
brings this defect to light. We haven't seen the problem on Solaris.
Perhaps freed memory is reused more quickly on HPUX 11?
Anyway, for those that care, here's what I did to turn off font caching. In
InitFonts() in Xvnc/programs/Xserver/dix/dixfonts.c I replaced
patternCache = MakeFontPatternCache();
with
patternCache = NULL;
Jim
(P.S., I saw the recent posting about using the font server on HPUX 11
instead of specifying a font path. I had tried that too. It did not fix
this particular problem.)
> -----Original Message-----
> From: GREUEL,JIM (HP-FtCollins,ex1)
> Sent: Thursday, June 21, 2001 10:37 AM
> To: '[EMAIL PROTECTED]'
> Subject: Xvnc core dump on HPUX 11
>
>
> We are using Xvnc as the X display server for a java servlet
> web application. The application uses awt to generate gif
> images. On Unix, the awt requires an active X server session.
>
> Periodically Xvnc dumps core in the QueryFont() function.
> The direct cause seems to be a corrupt struct _Font structure
> (the one pointed to by the pFont parameter). However, I'm
> having trouble determining the cause of the actual corruption.
>
> Has anyone else seen this symptom? Any ideas as to what the
> problem might be?
>
> We are using version 3.3.3r2 of Xvnc. I've verified (twice
> :-) that all directories specified in the font path exist.
> Are there other font related issues with Xvnc?
>
> Thanks in advance,
> Jim
>
> ------------------------------
> Jim Greuel
> Hewlett-Packard
> [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to [EMAIL PROTECTED]
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------