library problem on AIX

Hi Unix Experts,

I have seen with AIX, that sometimes my new libraries are not picked up by executable. This could be the problem of "loader domain" on AIX.

As I found on below link AIX libraries do stick in the memory.

AIX shared libraries

The remedy for this is to run slibclean command or removing read permission for others on library. However I have seen that none of these remedies work at many times and the only solution remains is to restart AIX box.

Recently I have seen a problem wherein my exe was taking a lib from a path not shown in LIBPATH/PATH. May be that was the path used to build that exe at compile time. Does anyone know how this is possible?

Related links...
Why does slibclean require root?

pSeries and AIX Information Center

(1) Is the library stick in the memory is a feature of AIX or is it a problem in AIX?
(2) Is slibclean really works?

thanks in advance,
Ashish

slibclean usually works when no application is actively using the library - but sometimes you need to execute it a few times until really everything's gone

Maybe another application uses the same shared library and AIX doesnt load 'your' version because another version of the same library is already in memory

Regards
zxmaus

Thanks zxmaus. Is there a way I know whether slibclean really worked? Due to this I find it difficult to work with AIX.
-Ashish

genkld

shows you all actually loaded libraries

you may be interested in this article

regards
zxmaus

1 Like