[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/12730] New: crash when allocating in a static constructor
From: |
doko at debian dot org |
Subject: |
[Bug ld/12730] New: crash when allocating in a static constructor |
Date: |
Wed, 4 May 2011 18:19:38 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=12730
Summary: crash when allocating in a static constructor
Product: binutils
Version: 2.22 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: address@hidden
ReportedBy: address@hidden
[forwarded from http://bugs.debian.org/625616]
segfaults with trunk 20110501, works with 2.21 branch 20110327, works with
gold.
$ g++ test.cxx && ./a.out
Segmentation fault
$ cat test.cxx
#include <iostream>
#include <ext/bitmap_allocator.h>
class Hello
{
public:
Hello ()
{}
~Hello ()
{}
void act ()
{ std::cout << "Hello, world!" << std::endl; }
};
static void __attribute__ (( constructor )) PWLIB_StaticLoader() { \
__gnu_cxx::bitmap_allocator<Hello> allocator; \
Hello* salut = allocator._M_allocate_single_object (); \
salut->act (); \
}
int
main (int /*argc*/,
char* /*argv*/[])
{
return 0;
}
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug ld/12730] New: crash when allocating in a static constructor,
doko at debian dot org <=
- [Bug ld/12730] [regression] crash when allocating in a static constructor, doko at debian dot org, 2011/05/04
- [Bug ld/12730] [regression] crash when allocating in a static constructor, doko at debian dot org, 2011/05/04
- [Bug ld/12730] [regression] crash when allocating in a static constructor, hjl.tools at gmail dot com, 2011/05/04
- [Bug ld/12730] [regression] crash when allocating in a static constructor, hjl.tools at gmail dot com, 2011/05/04
- [Bug ld/12730] [regression] crash when allocating in a static constructor, hjl.tools at gmail dot com, 2011/05/05
- [Bug ld/12730] [regression] crash when allocating in a static constructor, cvs-commit at gcc dot gnu.org, 2011/05/07
- [Bug ld/12730] [regression] crash when allocating in a static constructor, address@hidden, 2011/05/13
- [Bug ld/12730] [regression] crash when allocating in a static constructor, hjl.tools at gmail dot com, 2011/05/13
- [Bug ld/12730] [regression] crash when allocating in a static constructor, craigs at postincrement dot com, 2011/05/16
- [Bug ld/12730] [regression] crash when allocating in a static constructor, craigs at postincrement dot com, 2011/05/16