shared object filter is causing crash of application on Solaris 10
I have compiled my application on Solaris 10 which is using Qt 4.7.2. ldd of executable shows following:
libQtScript.so.4 =>
libclucene.so.0 => (file not found)
libX11.so.4 => /usr/lib/libX11.so.4
libQtWebKit.so.4 =>
libQtXml.so.4 =>
libQtGui.so.4 =>
libQtNetwork.so.4 =>
libr开发者_如何学Pythonesolv.so.2 => /lib/libresolv.so.2
libsocket.so.1 => /lib/libsocket.so.1
libxnet.so.1 => /lib/libxnet.so.1
libnsl.so.1 => /lib/libnsl.so.1
libQtCore.so.4 =>
libpthread.so.1 => /lib/libpthread.so.1
librt.so.1 => /lib/librt.so.1
libCstd.so.1 => /usr/lib/libCstd.so.1
libCrun.so.1 => /usr/lib/libCrun.so.1
libm.so.2 => /lib/libm.so.2
libthread.so.1 => /lib/libthread.so.1
libc.so.1 => /lib/libc.so.1
libXext.so.0 => /usr/openwin/lib/libXext.so.0
libXrender.so.1 => /usr/sfw/lib/libXrender.so.1
libfreetype.so.6 => /usr/sfw/lib/libfreetype.so.6
libSM.so.6 => /usr/lib/libSM.so.6
libICE.so.6 => /usr/lib/libICE.so.6
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1
libscf.so.1 => /lib/libscf.so.1
libdl.so.1 => /lib/libdl.so.1
libaio.so.1 => /lib/libaio.so.1
libz.so.1 => /usr/lib/libz.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
/usr/lib/cpu/sparcv8plus/libCstd_isa.so.1
/platform/SUNW,Sun-Fire-V490/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-V490/lib/libmd_psr.so.1
My application is crashing and dbx shows that _memcpy of libc_psr.so.1 is the problem. I came to know about concept of auxiliary filters which is causing to pick definition of memcpy from libc_psr.so.1 instead of libc.so.1 Is there any way to stop this filtering so that definition of memcpy could be picked up from libc instead of libc_psr oa any other workaround ??
Try exporting
LD_NOAUXFLTR=1
Read this
精彩评论