public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49037] New: SEGV within __gnu_cxx::bitmap_allocator if used within in constructor of global static
@ 2011-05-18  6:55 craigs at postincrement dot com
  2011-05-18 10:06 ` [Bug libstdc++/49037] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: craigs at postincrement dot com @ 2011-05-18  6:55 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: SEGV within __gnu_cxx::bitmap_allocator if used within
                    in constructor of global static
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: craigs@postincrement.com


Created attachment 24275
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24275
preprocessed file

A SEGV is generated if __gnu_cxx::bitmap_allocator is used within the
constructor of a global static. 

This does not occur for gcc versions prior to gcc 4.4.0 (approximately), and
does not occur if the same code is used with the std::allocator or
__gnu_cxx::__mt_alloc allocators.

Host system: (uname -a)
Linux shogun.erina.postincrement.net 2.6.32.16-150.fc12.x86_64 #1 SMP Sat Jul
24 05:19:12 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

g++ version is compiled from release tarball, no patches

g++ (GCC) 4.6.0
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

t.ii file is attached


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/49037] SEGV within __gnu_cxx::bitmap_allocator if used within in constructor of global static
  2011-05-18  6:55 [Bug c++/49037] New: SEGV within __gnu_cxx::bitmap_allocator if used within in constructor of global static craigs at postincrement dot com
@ 2011-05-18 10:06 ` rguenth at gcc dot gnu.org
  2011-05-18 10:35 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-05-18 10:06 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.05.18 09:27:49
          Component|c++                         |libstdc++
     Ever Confirmed|0                           |1
      Known to fail|                            |4.5.2, 4.6.0

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-05-18 09:27:49 UTC ---
Confirmed.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/49037] SEGV within __gnu_cxx::bitmap_allocator if used within in constructor of global static
  2011-05-18  6:55 [Bug c++/49037] New: SEGV within __gnu_cxx::bitmap_allocator if used within in constructor of global static craigs at postincrement dot com
  2011-05-18 10:06 ` [Bug libstdc++/49037] " rguenth at gcc dot gnu.org
@ 2011-05-18 10:35 ` paolo.carlini at oracle dot com
  2011-05-18 11:01 ` redi at gcc dot gnu.org
  2011-05-18 12:11 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-05-18 10:35 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-05-18 10:09:53 UTC ---
Really, nobody is going to spend time on bitmap_allocator. If you ask me, I
would be in favor of removing it completely.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/49037] SEGV within __gnu_cxx::bitmap_allocator if used within in constructor of global static
  2011-05-18  6:55 [Bug c++/49037] New: SEGV within __gnu_cxx::bitmap_allocator if used within in constructor of global static craigs at postincrement dot com
  2011-05-18 10:06 ` [Bug libstdc++/49037] " rguenth at gcc dot gnu.org
  2011-05-18 10:35 ` paolo.carlini at oracle dot com
@ 2011-05-18 11:01 ` redi at gcc dot gnu.org
  2011-05-18 12:11 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2011-05-18 11:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-05-18 10:31:46 UTC ---
The static data members aren't initialized before they're first used and I
don't see an easy way to fix it.

I agree with Paolo. At the very least we should mark it _GLIBCXX_DEPRECATED


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/49037] SEGV within __gnu_cxx::bitmap_allocator if used within in constructor of global static
  2011-05-18  6:55 [Bug c++/49037] New: SEGV within __gnu_cxx::bitmap_allocator if used within in constructor of global static craigs at postincrement dot com
                   ` (2 preceding siblings ...)
  2011-05-18 11:01 ` redi at gcc dot gnu.org
@ 2011-05-18 12:11 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-05-18 12:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-05-18 11:30:15 UTC ---
Jon, if you want to send to the mailing list the deprecation bits, just to make
sure we are all on the same page on this, it would be great. Really, I never
really liked this code, and I don't see who is going to spend time on it in the
foreseeable future.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-18 12:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-18  6:55 [Bug c++/49037] New: SEGV within __gnu_cxx::bitmap_allocator if used within in constructor of global static craigs at postincrement dot com
2011-05-18 10:06 ` [Bug libstdc++/49037] " rguenth at gcc dot gnu.org
2011-05-18 10:35 ` paolo.carlini at oracle dot com
2011-05-18 11:01 ` redi at gcc dot gnu.org
2011-05-18 12:11 ` paolo.carlini at oracle dot com

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