* [Bug middle-end/39832] program built by x86_64-pc-mingw32-gcc run crash, maybe for _Unwind_SjLj_Unregister,
2009-04-21 5:23 [Bug libstdc++/39832] New: program built by x86_64-pc-mingw32-gcc run crash, maybe for _Unwind_SjLj_Unregister, drangon dot mail at gmail dot com
@ 2009-04-22 23:53 ` pinskia at gcc dot gnu dot org
2009-04-23 15:49 ` drangon dot mail at gmail dot com
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-22 23:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2009-04-22 23:53 -------
Can you try this again, there were some Exceptions handling issues recently.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Component|libstdc++ |middle-end
Keywords| |wrong-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39832
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/39832] program built by x86_64-pc-mingw32-gcc run crash, maybe for _Unwind_SjLj_Unregister,
2009-04-21 5:23 [Bug libstdc++/39832] New: program built by x86_64-pc-mingw32-gcc run crash, maybe for _Unwind_SjLj_Unregister, drangon dot mail at gmail dot com
2009-04-22 23:53 ` [Bug middle-end/39832] " pinskia at gcc dot gnu dot org
@ 2009-04-23 15:49 ` drangon dot mail at gmail dot com
2009-04-23 15:50 ` [Bug middle-end/39832] [4.5 Regression] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: drangon dot mail at gmail dot com @ 2009-04-23 15:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from drangon dot mail at gmail dot com 2009-04-23 15:49 -------
(In reply to comment #1)
> Can you try this again, there were some Exceptions handling issues recently.
>
I update the newest gcc code from SVN (20090423), and rebuilt the toolchain.
The application built by this new toolchain runs well, no longer crashed.
This bug should bave been fixed. Good Job!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39832
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/39832] [4.5 Regression] program built by x86_64-pc-mingw32-gcc run crash, maybe for _Unwind_SjLj_Unregister,
2009-04-21 5:23 [Bug libstdc++/39832] New: program built by x86_64-pc-mingw32-gcc run crash, maybe for _Unwind_SjLj_Unregister, drangon dot mail at gmail dot com
2009-04-22 23:53 ` [Bug middle-end/39832] " pinskia at gcc dot gnu dot org
2009-04-23 15:49 ` drangon dot mail at gmail dot com
@ 2009-04-23 15:50 ` pinskia at gcc dot gnu dot org
2009-07-21 7:46 ` drangon dot mail at gmail dot com
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-23 15:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2009-04-23 15:50 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Keywords| |EH
Resolution| |FIXED
Summary|program built by x86_64-pc- |[4.5 Regression] program
|mingw32-gcc run crash, maybe|built by x86_64-pc-mingw32-
|for _Unwind_SjLj_Unregister,|gcc run crash, maybe for
| |_Unwind_SjLj_Unregister,
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39832
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/39832] [4.5 Regression] program built by x86_64-pc-mingw32-gcc run crash, maybe for _Unwind_SjLj_Unregister,
2009-04-21 5:23 [Bug libstdc++/39832] New: program built by x86_64-pc-mingw32-gcc run crash, maybe for _Unwind_SjLj_Unregister, drangon dot mail at gmail dot com
` (2 preceding siblings ...)
2009-04-23 15:50 ` [Bug middle-end/39832] [4.5 Regression] " pinskia at gcc dot gnu dot org
@ 2009-07-21 7:46 ` drangon dot mail at gmail dot com
2009-07-21 7:48 ` drangon dot mail at gmail dot com
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: drangon dot mail at gmail dot com @ 2009-07-21 7:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from drangon dot mail at gmail dot com 2009-07-21 07:46 -------
The bug seems to occur again. It is ok in svn 2009-06-20, but today's svn code
is has problem.
C program is fine, but C++ program crashed. The error message is :
The instruction at "0x0040a7e0 referenced memory at "0x00000046". The memory
could not be "read".
If I change the libgcc_s_sjlj-1.dll to version 2009-06-20, the program works
fine.
the code at "0x0040a7e0" is :
000000000040a7c0 <__ZL15eh_globals_dtorPv>:
#if __GTHREADS
static void
eh_globals_dtor(void* ptr)
{
40a7c0: 56 push %rsi
40a7c1: 48 89 ce mov %rcx,%rsi
40a7c4: 53 push %rbx
40a7c5: 48 83 ec 28 sub $0x28,%rsp
if (ptr)
40a7c9: 48 85 c9 test %rcx,%rcx
40a7cc: 74 35 je 40a803
<__ZL15eh_globals_dtorPv+0x43>
{
__cxa_eh_globals* g = reinterpret_cast<__cxa_eh_globals*>(ptr);
__cxa_exception* exn = g->caughtExceptions;
40a7ce: 48 8b 09 mov (%rcx),%rcx
__cxa_exception* next;
while (exn)
40a7d1: 48 85 c9 test %rcx,%rcx
40a7d4: 74 1f je 40a7f5
<__ZL15eh_globals_dtorPv+0x35>
40a7d6: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
40a7dd: 00 00 00
{
next = exn->nextException;
40a7e0: 48 8b 59 20 mov 0x20(%rcx),%rbx
_Unwind_DeleteException(&exn->unwindHeader);
40a7e4: 48 83 c1 50 add $0x50,%rcx
40a7e8: e8 63 ca ff ff callq 407250 <__Unwind_DeleteException>
if (ptr)
{
__cxa_eh_globals* g = reinterpret_cast<__cxa_eh_globals*>(ptr);
__cxa_exception* exn = g->caughtExceptions;
__cxa_exception* next;
while (exn)
40a7ed: 48 85 db test %rbx,%rbx
{
next = exn->nextException;
_Unwind_DeleteException(&exn->unwindHeader);
40a7f0: 48 89 d9 mov %rbx,%rcx
if (ptr)
{
__cxa_eh_globals* g = reinterpret_cast<__cxa_eh_globals*>(ptr);
__cxa_exception* exn = g->caughtExceptions;
__cxa_exception* next;
while (exn)
40a7f3: 75 eb jne 40a7e0
<__ZL15eh_globals_dtorPv+0x20>
_Unwind_DeleteException(&exn->unwindHeader);
exn = next;
}
free(ptr);
}
}
40a7f5: 48 83 c4 28 add $0x28,%rsp
{
next = exn->nextException;
_Unwind_DeleteException(&exn->unwindHeader);
exn = next;
}
free(ptr);
40a7f9: 48 89 f1 mov %rsi,%rcx
}
}
40a7fc: 5b pop %rbx
40a7fd: 5e pop %rsi
{
next = exn->nextException;
_Unwind_DeleteException(&exn->unwindHeader);
exn = next;
}
free(ptr);
40a7fe: e9 fd f6 ff ff jmpq 409f00 <_free>
}
}
40a803: 48 83 c4 28 add $0x28,%rsp
40a807: 5b pop %rbx
40a808: 5e pop %rsi
40a809: c3 retq
40a80a: 90 nop
40a80b: 90 nop
40a80c: 90 nop
40a80d: 90 nop
40a80e: 90 nop
40a80f: 90 nop
000000000040a810 <__ZL15get_ttype_entryP16lsda_header_infoy>:
--
drangon dot mail at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39832
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/39832] [4.5 Regression] program built by x86_64-pc-mingw32-gcc run crash, maybe for _Unwind_SjLj_Unregister,
2009-04-21 5:23 [Bug libstdc++/39832] New: program built by x86_64-pc-mingw32-gcc run crash, maybe for _Unwind_SjLj_Unregister, drangon dot mail at gmail dot com
` (3 preceding siblings ...)
2009-07-21 7:46 ` drangon dot mail at gmail dot com
@ 2009-07-21 7:48 ` drangon dot mail at gmail dot com
2009-07-25 7:45 ` [Bug middle-end/39832] [4.4/4.5 Regression] program built by x86_64-pc-mingw32-g++ run crash, maybe for _Unwind_SjLj_Unregister or __dyn_tls_dtor drangon dot mail at gmail dot com
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: drangon dot mail at gmail dot com @ 2009-07-21 7:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from drangon dot mail at gmail dot com 2009-07-21 07:47 -------
and newest code in gcc svn trunk and gcc svn branch-4.4 both has this problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39832
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/39832] [4.4/4.5 Regression] program built by x86_64-pc-mingw32-g++ run crash, maybe for _Unwind_SjLj_Unregister or __dyn_tls_dtor
2009-04-21 5:23 [Bug libstdc++/39832] New: program built by x86_64-pc-mingw32-gcc run crash, maybe for _Unwind_SjLj_Unregister, drangon dot mail at gmail dot com
` (4 preceding siblings ...)
2009-07-21 7:48 ` drangon dot mail at gmail dot com
@ 2009-07-25 7:45 ` drangon dot mail at gmail dot com
2009-07-29 22:33 ` jsm28 at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: drangon dot mail at gmail dot com @ 2009-07-25 7:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from drangon dot mail at gmail dot com 2009-07-25 07:45 -------
I try the newest gcc svn trunk code, the problem still exist.
program built by x86_64-w64-mingw32-gcc runs ok, but program built by
x86_64-w64-mingw32-g++ runs failed, change libgcc_s_sjlj-1.dll to version
2009-06-20, the same program runs ok ( need not recompile ).
I use gdb or windbg to run the program, it show the following result:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000408059 in __dyn_tls_dtor (hDllHandle=0x400000, dwReason=0,
lpreserved=0x0)
at
/compile/mingw-w64-dgn/source/mingw-w64/trunk/mingw-w64-crt/crt/tlssup.c:
120
120
/compile/mingw-w64-dgn/source/mingw-w64/trunk/mingw-w64-crt/crt/tlssup.c
: No such file or directory.
in
/compile/mingw-w64-dgn/source/mingw-w64/trunk/mingw-w64-crt/crt/tlssu
p.c
(gdb) bt
#0 0x0000000000408059 in __dyn_tls_dtor (hDllHandle=0x400000, dwReason=0,
lpreserved=0x0)
at
/compile/mingw-w64-dgn/source/mingw-w64/trunk/mingw-w64-crt/crt/tlssup.c:
120
#1 0x0000000077f1cc41 in ?? ()
warning: (Internal error: pc 0x3fffff in read in psymtab, but not in symtab.)
#2 0x0000000000400000 in ?? (warning: (Internal error: pc 0x3fffff in read in
p
symtab, but not in symtab.)
)
warning: (Internal error: pc 0x3fffff in read in psymtab, but not in symtab.)
#3 0x0000000000000000 in ?? ()
(gdb) info register
rax 0xfeeefeeefeeefeee -76843841185972498
rbx 0x49e050 4841552
rcx 0x0 0
rdx 0x0 0
rsi 0x400000 4194304
rdi 0x408024 4227108
rbp 0x22fb10 0x22fb10
rsp 0x22fad0 0x22fad0
r8 0x0 0
r9 0x9f000 651264
r10 0x400080 4194432
r11 0x22fb50 2292560
r12 0x0 0
r13 0x7fffffd8000 8796092858368
r14 0x77fa8f50 2012909392
r15 0x0 0
rip 0x408059 0x408059 <__dyn_tls_dtor+53>
eflags 0x10202 [ IF RF ]
cs 0x33 51
ss 0x202002b 33685547
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x2b0000 2818048
(gdb)
0000000000408024 <___dyn_tls_dtor>:
static BOOL WINAPI
__dyn_tls_dtor (HANDLE hDllHandle, DWORD dwReason, LPVOID lpreserved)
{
408024: 55 push %rbp
408025: 48 89 e5 mov %rsp,%rbp
408028: 48 83 ec 40 sub $0x40,%rsp
40802c: 48 89 4d 10 mov %rcx,0x10(%rbp)
408030: 89 55 18 mov %edx,0x18(%rbp)
408033: 4c 89 45 20 mov %r8,0x20(%rbp)
TlsDtorNode *pnode, *pnext;
int i;
if (dwReason != DLL_THREAD_DETACH && dwReason != DLL_PROCESS_DETACH)
408037: 83 7d 18 03 cmpl $0x3,0x18(%rbp)
40803b: 74 10 je 40804d <___dyn_tls_dtor+0x29>
40803d: 83 7d 18 00 cmpl $0x0,0x18(%rbp)
408041: 74 0a je 40804d <___dyn_tls_dtor+0x29>
return TRUE;
408043: b8 01 00 00 00 mov $0x1,%eax
408048: e9 ab 00 00 00 jmpq 4080f8 <___dyn_tls_dtor+0xd4>
for (pnode = dtor_list; pnode != NULL; pnode = pnext)
40804d: 48 8d 0d 6c 3a 08 00 lea 0x83a6c(%rip),%rcx # 48bac0
<___emutls_v.dtor_list>
408054: e8 ef 0c 00 00 callq 408d48 <___emutls_get_address>
408059: 48 8b 00 mov (%rax),%rax
40805c: 48 89 45 f0 mov %rax,-0x10(%rbp)
408060: eb 6a jmp 4080cc <___dyn_tls_dtor+0xa8>
{
for (i = pnode->count - 1; i >= 0; --i)
408062: 48 8b 45 f0 mov -0x10(%rbp),%rax
408066: 8b 00 mov (%rax),%eax
408068: 83 e8 01 sub $0x1,%eax
40806b: 89 45 fc mov %eax,-0x4(%rbp)
40806e: eb 2f jmp 40809f <___dyn_tls_dtor+0x7b>
--
drangon dot mail at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.5 Regression] program |[4.4/4.5 Regression] program
|built by x86_64-pc-mingw32- |built by x86_64-pc-mingw32-
|gcc run crash, maybe for |g++ run crash, maybe for
|_Unwind_SjLj_Unregister, |_Unwind_SjLj_Unregister or
| |__dyn_tls_dtor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39832
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/39832] [4.4/4.5 Regression] program built by x86_64-pc-mingw32-g++ run crash, maybe for _Unwind_SjLj_Unregister or __dyn_tls_dtor
2009-04-21 5:23 [Bug libstdc++/39832] New: program built by x86_64-pc-mingw32-gcc run crash, maybe for _Unwind_SjLj_Unregister, drangon dot mail at gmail dot com
` (5 preceding siblings ...)
2009-07-25 7:45 ` [Bug middle-end/39832] [4.4/4.5 Regression] program built by x86_64-pc-mingw32-g++ run crash, maybe for _Unwind_SjLj_Unregister or __dyn_tls_dtor drangon dot mail at gmail dot com
@ 2009-07-29 22:33 ` jsm28 at gcc dot gnu dot org
2009-08-30 8:27 ` ktietz at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-07-29 22:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jsm28 at gcc dot gnu dot org 2009-07-29 22:33 -------
x86_64-pc-mingw32 is not a primary or secondary platform, moving to P4.
Please restore to P3 if this also appears on i686-mingw32 or another
primary or secondary platform.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39832
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/39832] [4.4/4.5 Regression] program built by x86_64-pc-mingw32-g++ run crash, maybe for _Unwind_SjLj_Unregister or __dyn_tls_dtor
2009-04-21 5:23 [Bug libstdc++/39832] New: program built by x86_64-pc-mingw32-gcc run crash, maybe for _Unwind_SjLj_Unregister, drangon dot mail at gmail dot com
` (6 preceding siblings ...)
2009-07-29 22:33 ` jsm28 at gcc dot gnu dot org
@ 2009-08-30 8:27 ` ktietz at gcc dot gnu dot org
2009-08-30 13:53 ` drangon dot mail at gmail dot com
2009-09-04 12:18 ` fxcoudert at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2009-08-30 8:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from ktietz at gcc dot gnu dot org 2009-08-30 08:27 -------
(In reply to comment #7)
> x86_64-pc-mingw32 is not a primary or secondary platform, moving to P4.
> Please restore to P3 if this also appears on i686-mingw32 or another
> primary or secondary platform.
>
Could you please re-test your failure. It seems to be a duplicate of PR/41184.
It is fix on trunk and on 4.4.x branch.
Cheers,
Kai
--
ktietz at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ktietz at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39832
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/39832] [4.4/4.5 Regression] program built by x86_64-pc-mingw32-g++ run crash, maybe for _Unwind_SjLj_Unregister or __dyn_tls_dtor
2009-04-21 5:23 [Bug libstdc++/39832] New: program built by x86_64-pc-mingw32-gcc run crash, maybe for _Unwind_SjLj_Unregister, drangon dot mail at gmail dot com
` (7 preceding siblings ...)
2009-08-30 8:27 ` ktietz at gcc dot gnu dot org
@ 2009-08-30 13:53 ` drangon dot mail at gmail dot com
2009-09-04 12:18 ` fxcoudert at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: drangon dot mail at gmail dot com @ 2009-08-30 13:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from drangon dot mail at gmail dot com 2009-08-30 13:53 -------
yes, the issue should be fixed, wxWidgets works fine now.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39832
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/39832] [4.4/4.5 Regression] program built by x86_64-pc-mingw32-g++ run crash, maybe for _Unwind_SjLj_Unregister or __dyn_tls_dtor
2009-04-21 5:23 [Bug libstdc++/39832] New: program built by x86_64-pc-mingw32-gcc run crash, maybe for _Unwind_SjLj_Unregister, drangon dot mail at gmail dot com
` (8 preceding siblings ...)
2009-08-30 13:53 ` drangon dot mail at gmail dot com
@ 2009-09-04 12:18 ` fxcoudert at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-09-04 12:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from fxcoudert at gcc dot gnu dot org 2009-09-04 12:18 -------
*** This bug has been marked as a duplicate of 41184 ***
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39832
^ permalink raw reply [flat|nested] 11+ messages in thread