On Wed, 16 Nov 2011 21:05:21 +0100 Bruno Tarquini <btarqu...@gmail.com> said:

ooh moderation? nothing survives that! :) its a nice black hole. thanks for
sending here...
in svn it goes! thanks very much!

> Resending it to random mails, cause first didn't seem to pass moderation on 
> e-devel...
> 
> Bruno
> --
> 
> shutdown the engine before evas because Xext, Xrender and GL (loaded by evas)
> seem to register a hook which is called in XCloseDisplay (in engine_shutdown
> ()). this segfault because evas_shutdown() should unload those libs, and so,
> invalidate the hook pointer.
> 
> this bug was already noted by caro in @43373:
> > strangely, the xrender xlib and gl xlib engines are segfaulting when
> XCloseDisplay is called (in the shutdown function). > It does not with soft 
> xlib. I absolutely don't know why.
> 
> with this proper fix, remove also Xext, Xrender from dependencies, which are
> not used directly by expedite.
> 
> triggered by compiling with --as-needed, because it removed unused libs: 
> libXrender, libXext.
> 
> tested with xlib, gl and sdl engine
> 
> Index: src/bin/main.c
> ===================================================================
> --- src/bin/main.c    (révision 64710)
> +++ src/bin/main.c    (copie de travail)
> @@ -1379,7 +1379,7 @@
> 
>      evas_free(evas);
> 
> +   engine_shutdown();
>      evas_shutdown();
> -   engine_shutdown();
>      return 0;
>   }
> Index: configure.ac
> ===================================================================
> --- configure.ac    (révision 64710)
> +++ configure.ac    (copie de travail)
> @@ -148,11 +148,11 @@
>         [have_xlib="yes"],
>         [have_xlib="no"])
>      if test "x$want_evas_simple_x11" = "xyes"; then
> -      x_libs="${x_libs} -lX11 -lXext -lXrender"
> +      x_libs="${x_libs} -lX11"
>      else
>         x_dir=${x_dir:-/usr/X11R6}
>         x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
> -      x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext -lXrender"
> +      x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11"
>      fi
>   fi
>   AM_CONDITIONAL(BUILD_X11, [test "x$have_xlib" = "xyes"])
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to