<div dir="ltr">I intend to intercept dlsym instead.<div><br></div><div>(At least on Linux with glibc, where we have mechanisms to get the real dlsym even when we define our own without failling into an inifinite recursion.  On Android we'll probably need to continue to intercept dlopen and hope for the best.)<div><br></div><div>But don't worry, dlsym(dlopen("libGL.so.1"), "glXxxx") will continue to work, one way or the other.</div><div><br></div><div>The objective here will be handle better corner cases; e.g. where the app does dlopen("libGL.so.1", RTLD_LOCAL), or when the IHV's EGL/GL driver does dlopen("libEGL.so" and segfaults when it fails to find internal symbols in our wrapper.</div><div><div><div class="gmail_extra"><br></div><div class="gmail_extra">Jose</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 16, 2015 at 11:06 PM,  <span dir="ltr"><<a href="mailto:io.github.apitrace@io7m.com" target="_blank">io.github.apitrace@io7m.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2015-11-16T21:10:44 +0000<br>
José Fonseca <<a href="mailto:jose.r.fonseca@gmail.com">jose.r.fonseca@gmail.com</a>> wrote:<br>
<br>
> I plan to update apitrace to not intercept dlopen -- it causes more<br>
> problems than it solves.<br>
><br>
> Jose<br>
<br>
'Lo.<br>
<br>
May I ask what you intend to do instead? I may be unnecessarily<br>
fearful, but I use apitrace to trace JOGL programs (Java programs using<br>
the JOGL bindings). I suspect (but may be entirely wrong) that apitrace<br>
works well there precisely because the JOGL bindings call dlopen() on<br>
libGL.so and apitrace correctly intercepts the call.<br>
<br>
I would hate to find that apitrace was updated in a manner that stopped<br>
it working for Java OpenGL programs.<br>
<br>
M<br>
_______________________________________________<br>
apitrace mailing list<br>
<a href="mailto:apitrace@lists.freedesktop.org">apitrace@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/apitrace" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/apitrace</a><br>
</blockquote></div><br></div></div></div></div></div>