This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/26633] [4.1/4.2 Regression] Minimal c++ program using threads and exceptions crashes when compiled statically
- From: "ahu at ds9a dot nl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2006 17:54:59 -0000
- Subject: [Bug other/26633] [4.1/4.2 Regression] Minimal c++ program using threads and exceptions crashes when compiled statically
- References: <bug-26633-7094@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from ahu at ds9a dot nl 2006-03-10 17:54 -------
Subject: Re: [4.1/4.2 Regression] Minimal c++ program using threads and
exceptions crashes when compiled statically
Sure this is (exactly) related? I tried to pull in some of the symbols that
might be missing to no avail.
Interestingly, the problem does not appear on my x86-64!
Also:
Starting program: /home/ahu/programming-new/exploit/minimal
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 11300)]
[New Thread 32769 (LWP 11301)]
[New Thread 16386 (LWP 11302)]
[Switching to Thread 16386 (LWP 11302)]
Breakpoint 1, __cxa_allocate_exception (thrown_size=8)
at ../../../../gcc-4.1.0/libstdc++-v3/libsupc++/eh_alloc.cc:115
115 thrown_size += sizeof (__cxa_exception);
(gdb) step
116 ret = malloc (thrown_size);
(gdb) print thrown_size
$1 = 88
(gdb) step
118 if (! ret)
(gdb) print ret
$2 = (void *) 0x8115a60
(gdb) step
116 ret = malloc (thrown_size);
(gdb) step
118 if (! ret)
(gdb)
154 __cxa_eh_globals *globals = __cxa_get_globals ();
(gdb)
__cxa_get_globals () at
../../../../gcc-4.1.0/libstdc++-v3/libsupc++/eh_globals.cc:71
71 { return __gnu_internal::get_global(); }
(gdb)
__gnu_internal::get_global () at
../../../../gcc-4.1.0/libstdc++-v3/libsupc++/eh_globals.cc:58
58 get_global() throw()
(gdb)
Program received signal SIGSEGV, Segmentation fault.
__gnu_internal::get_global () at
../../../../gcc-4.1.0/libstdc++-v3/libsupc++/eh_globals.cc:58
58 get_global() throw()
On Fri, Mar 10, 2006 at 04:55:41PM -0000, pinskia at gcc dot gnu dot org wrote:
>
>
> ------- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-10 16:55 -------
> Some information about this bug in both the libstdc++ library and the
> libgfortran library on the mainline:
> http://gcc.gnu.org/ml/gcc/2006-03/msg00248.html
>
>
> --
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26633
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
>
> !DSPAM:4411af8b239412042891523!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26633