[PATCH] Apitrace replay: Fix "apitrace replay" regression when used with fips

Alexander Monakov amonakov at ispras.ru
Thu Nov 28 05:39:40 PST 2013


Hi,

Indeed it doesn't really make sense for apitrace to protect itself from dlsym
interposition when retracing.  Therefore the patch is reasonable.  One note:
apitrace also protects itself from dlopen interposition.  In that sense the
patch does half of the work.  Undoing either _dlsym or _dlopen would solve the
problem.

Pointing TRACE_LIBGL to fips' interposer would also solve the problem.

Sigh, I warned Carl that playing games with dl* interposition is not going to
work well, and it's disappointing to see that fips does that by default (and
interposes dlsym, which it doesn't need to -- interposing dlopen is enough;
I wouldn't recommend following Steam's example).  And now Carl's colleague at
Intel had to spend time figuring out and fixing a problem...

Alexander


More information about the apitrace mailing list