This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/16612] empty basic_strings can't live in shared memory
- From: "steve dot horn at gs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jul 2004 12:55:58 -0000
- Subject: [Bug libstdc++/16612] empty basic_strings can't live in shared memory
- References: <20040718033747.16612.steve.horn@gs.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From steve dot horn at gs dot com 2004-07-21 12:55 -------
Created an attachment (id=6793)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6793&action=view)
example of problem
Tested on:
gcc 3.4.1 on Mac OS X and
gcc 3.2.3 on RedHat Enterprice Linux 3 AS (update 1)
The makefile builds 'test-bigger', 'test', and cleanShm.
cleanShm deletes the shared memory segment created by the other programs.
'test' and 'test-bigger' are created from the same source files.
The only different between 'test-bigger' and 'test' is that 'test-bigger'
declares a static array of integers before any includes in order to force
basic_string's _S_empty_rep_storage to move to a different location.
Execute 'test-bigger' before 'test' to observe the problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16612