[bip] alignment/padding differs
Hi, I'm using interprocess to share mem between different processes. Unfortunately these processes were built using different compiler version (gcc3, gcc4, gcc5) and we're seeing different alignment or padding dependent on which run-time was in charge of creating the mapped files. Of course we used the same boost version (1.60) while creating the binaries. Obviously ip can't handle these different layouts and mostly runs in indefinite loops while traversing an rb-tree not finding the first shm object. Are there any template parameters that enable the code to be accessed using different run times through forcing the same layout? Thanks a lot, Jan.
On 22/02/2017 11:44, Jan Boehme via Boost-users wrote:
Hi,
I'm using interprocess to share mem between different processes. Unfortunately these processes were built using different compiler version (gcc3, gcc4, gcc5) and we're seeing different alignment or padding dependent on which run-time was in charge of creating the mapped files. Of course we used the same boost version (1.60) while creating the binaries.
Obviously ip can't handle these different layouts and mostly runs in indefinite loops while traversing an rb-tree not finding the first shm object.
Are there any template parameters that enable the code to be accessed using different run times through forcing the same layout?
I don't think so. GCC has a flag -fabi-version, but i don't know if it's useful in your case. Ion
participants (2)
-
Ion GaztaƱaga
-
Jan Boehme