[Bug c++/21251] New: Placement into shared memory
mronell at alumni dot upenn dot edu
gcc-bugzilla@gcc.gnu.org
Wed Apr 27 13:56:00 GMT 2005
I would like to use placement to instantiate a C++ object into a
shared memory segment and access that object from a second process.
When I test with an integer, the integer is accessible from the second
process. But when I instantiate a C++ class object, it seems a memory
pointer, which is local within the first process, is placed in memory.
The place object is fully accessible and usable in the first process.
I am guessing that the pointer points to the class definition within a
table local to that first process. Unfortunately, that table, which
does not seem to exist at the same address in the second process,
causes the second process to Seg fault when it attempts to access the
object instantiated in shared memory.
What is the current correct approach to instantiating objects in
shared memory so that multiple processes can access the C++ objects?
--
Summary: Placement into shared memory
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mronell at alumni dot upenn dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21251
More information about the Gcc-bugs
mailing list