public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/16612] New: empty basic_strings can't live in shared memory
@ 2004-07-18  3:37 steve dot horn at gs dot com
  2004-07-18  3:42 ` [Bug libstdc++/16612] " pinskia at gcc dot gnu dot org
                   ` (26 more replies)
  0 siblings, 27 replies; 36+ messages in thread
From: steve dot horn at gs dot com @ 2004-07-18  3:37 UTC (permalink / raw)
  To: gcc-bugs

It appears that a basic_string created with a default constructor can't live in
shared memory because basic_string uses a static variable to hold a single empty
string (stored in _S_empty_rep_storage)
The memory associated with the empty string representation is local to the
process that created the string. Therefore one process can not access empty
strings created by a different process.

I would guess that basic_string should use it's allocator to acquire the memory
for the empty string representation.

-- 
           Summary: empty basic_strings can't live in shared memory
           Product: gcc
           Version: 3.2.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: steve dot horn at gs dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16612


^ permalink raw reply	[flat|nested] 36+ messages in thread
[parent not found: <bug-16612-8972@http.gcc.gnu.org/bugzilla/>]
[parent not found: <bug-16612-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2015-03-23 13:02 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-18  3:37 [Bug libstdc++/16612] New: empty basic_strings can't live in shared memory steve dot horn at gs dot com
2004-07-18  3:42 ` [Bug libstdc++/16612] " pinskia at gcc dot gnu dot org
2004-07-18 12:39 ` steve dot horn at gs dot com
2004-07-18 14:25 ` pinskia at gcc dot gnu dot org
2004-07-19 13:59 ` bangerth at dealii dot org
2004-07-19 23:20 ` bkoz at gcc dot gnu dot org
2004-07-21  6:53 ` bkoz at gcc dot gnu dot org
2004-07-21 12:55 ` steve dot horn at gs dot com
2004-07-21 14:02 ` bangerth at dealii dot org
2004-07-21 19:35 ` pinskia at gcc dot gnu dot org
2004-07-22  1:31 ` steve dot horn at gs dot com
2004-07-22  4:35 ` bkoz at gcc dot gnu dot org
2004-07-22  5:28 ` bkoz at gcc dot gnu dot org
2004-07-22  7:25 ` bkoz at gcc dot gnu dot org
2004-08-02 11:48 ` pcarlini at suse dot de
2004-08-04  4:56 ` ncm-nospam at cantrip dot org
2004-09-08 14:43 ` bkoz at gcc dot gnu dot org
2004-09-28  8:59 ` cvs-commit at gcc dot gnu dot org
2004-09-28  9:28 ` [Bug libstdc++/16612] [3.4 only] " pcarlini at suse dot de
2004-10-07  3:57 ` bkoz at gcc dot gnu dot org
2004-10-28 21:53 ` cvs-commit at gcc dot gnu dot org
2004-10-28 21:55 ` pcarlini at suse dot de
2005-01-05  9:49 ` cvs-commit at gcc dot gnu dot org
2005-01-20 23:01 ` pcarlini at suse dot de
2005-01-20 23:02 ` pcarlini at suse dot de
2005-01-21  0:47 ` pinskia at gcc dot gnu dot org
2005-01-21  9:50 ` pcarlini at suse dot de
2005-09-05 15:29 ` pinskia at gcc dot gnu dot org
     [not found] <bug-16612-8972@http.gcc.gnu.org/bugzilla/>
2005-10-05 22:09 ` [Bug libstdc++/16612] " gerrit at gcc dot gnu dot org
2006-12-14  7:29 ` choe dot hwanjin at gmail dot com
2006-12-14  7:31 ` choe dot hwanjin at gmail dot com
2006-12-14 10:01 ` bkoz at gcc dot gnu dot org
2010-01-20 18:49 ` paolo dot carlini at oracle dot com
     [not found] <bug-16612-4@http.gcc.gnu.org/bugzilla/>
2012-04-05 18:46 ` julians37 at googlemail dot com
2012-04-08 14:00 ` redi at gcc dot gnu.org
2015-03-23 13:38 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).