[Bug libstdc++/16612] empty basic_strings can't live in shared memory

steve dot horn at gs dot com gcc-bugzilla@gcc.gnu.org
Wed Jul 21 12:55:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list