Jordi & Jan
Thanks for your concerns. Your advice is very helpful.
In fact my ubuntu is for 64bit target. I checked file attribute as follow:
file /usr/lib/fglrx/libGL.so/usr/lib/fglrx/libGL.so: symbolic link to `libGL.so.1'
file /usr/lib/fglrx/libGL.so.1/usr/lib/fglrx/libGL.so.1: symbolic link to `libGL.so.1.2'
file /usr/lib/fglrx/libGL.so.1.2/usr/lib/fglrx/libGL.so.1.2: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
It seems that libGL.so is OK. I set LD_PRELOAD to
/usr/lib/fglrx/libGL.so and BadRequest error exist also.
for Jan's advice, I checked glxinfo and get errors:
glxinfoname of display: :0
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 19 (X_GLXQueryServerString)
Serial number of failed request: 12
Current serial number in output stream: 12
Yes, I come close root cause. But what is it?