libmirclient does the right thing unless mesa.so.2 is loaded before mesa.so.3 (so on some systems it works when mesa.so.3 is encountered first when listing the directory.)
It then correctly identifies that it can't find the versioned entry points in mesa.so.2 and tries to use mesa.so.3. That ends up with a SEGFAULT.
libmirclient does the right thing unless mesa.so.2 is loaded before mesa.so.3 (so on some systems it works when mesa.so.3 is encountered first when listing the directory.)
It then correctly identifies that it can't find the versioned entry points in mesa.so.2 and tries to use mesa.so.3. That ends up with a SEGFAULT.