This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: AIX I/O failures


	I wanted to alert everyone working on libstdc++-V3 as a shared
library on AIX to an AIX "feature": AIX caches all shared objects in the
shared text segment on the assumption that the object will be used again
relatively soon, even if it it currently does not have any references.  So
even if a shared library is changed on disk, a program referencing the
shared library may use the old copy in the AIX shared text segment cache. 

	The way to override this behavior is to turn OFF the read-other
permissions of the library (the execute-other permissions do not matter).
If the read-other permissions are disabled, AIX places the shared object
in the process private data segment.  The process private data segment
only exists for the duration of the process.

	chmod o-r libstdc++-v3/src/.libs/libstdc++.a

or wherever libstdc++.a is installed temporarily for testing.

	Without this little trick, one can use a stale copy of the shared
object during development and become extremely confused why a change is
not taking effect.

David

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]