Re: [gtk-list] Re: Killing X-server on Solaris 2.6



Owen Taylor wrote:
> 
> Todd Dukes <tjdukes@flash.net> writes:
> 
...
> > and the CDE login screen appeared. It appears
> > that gtk+ has the ability to kill Sun's X-server.
> >
> 
> 
> Please try the following patch to gdkimage.c and see if it helps (I'm
> not sure if this is the right final solution, but it will at least
> tell me if I'm on the right track or not.)
> 
> Regards,
>                                         Owen
> 
> Index: gdkimage.c
> ===================================================================
> RCS file: /cvs/gnome/gtk+/gdk/gdkimage.c,v
> retrieving revision 1.5
> diff -u -r1.5 gdkimage.c
> --- gdkimage.c  1998/05/03 22:33:25     1.5
> +++ gdkimage.c  1998/08/28 13:29:46
> @@ -405,6 +405,8 @@
> 
>      case GDK_IMAGE_SHARED:
>  #ifdef USE_SHM
> +      gdk_flush();
> +
>        XShmDetach (private->xdisplay, private->x_shm_info);
>        XDestroyImage (private->ximage);
> 
> 

This seemed to help with that bug. I played with the 
demo for about 5 minutes and was unable to get it to 
crash. Before, I could crash it in about 5-10 seconds.

I still can crash the server with my code I developed
under gtk+ 1.0.x. I was hoping it would magically go
away.  I am pretty sure it is not related to shared 
memory since I can crash the X server even when am 
running it on another machine and have exported the 
display. I have been unable to reproduce it on Linux.

thanks for the patch.
Todd



-- 
-----------------------------------------
Todd & Lisa Dukes
tjdukes@flash.net



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]