Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 37584
Product:  
Component:  
Status: RESOLVED
Resolution: DUPLICATE of bug 37750
Assigned To: Not yet assigned to anyone <unassigned@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Gianluigi Tiesi <sherpya@netfarm.it>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 37584 depends on: Show dependency tree
Show dependency graph
Bug 37584 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: 2008-09-22 03:23 Opened: 2008-09-19 11:29
Unfortunately there is no simple testcase for this,
but compiling mplayer I get a lot of crashes related to
stack corruption

i.e. a function allocates in the stack 80000 bytes
and later gdb says that it cannot access to a byte that instead is bound

I've tested with --stack-size on the linker but nothing changes
gcc version 4.4.0 20080916 (experimental)
does the same thing

while gcc 4.2 is ok

it can be reproduced compiling mplayer/mencoder with gcc >= 4.3
and doing a simple encoding using snow codec:

mencoder -oac faac -faacopts br=64  -ovc lavc -lavcopts
vcodec=snow:vstrict=-2:vqscale=3:pred=0:cmp=1:subcmp=1:mbcmp=1:qpel a.mpg -o
a.avi

Please tell me if I can provide more infos

------- Comment #1 From Andrew Pinski 2008-09-19 21:03 -------
We really need a testcase.  And I really doubt -ftree-ch is causing any issues,
there must be a latent bug in the back-end.

------- Comment #2 From Gianluigi Tiesi 2008-09-20 09:43 -------
adding -fno-tree-ch avoid crashing in mencoder, so I filled the bug on this,
but it can be a side effect of something else

------- Comment #3 From Danny Smith 2008-09-22 03:23 -------
I have run into what I believe is the same bug in build of of cc1plus.exe, with
miscompilation of cp/pt.c
When exercising cp/pt.c:process_partial_specialization (eg, when compiling
libstdc++'s mt_allocator.cc) I get a segfault in cygwin.asm (used in w32
implementation  of __builtin_alloca)  
Adding -fno-tree-ch to CFLAGS for pt.c fixes build of libstdc++ and testsuite
results  

I will try to reduce a testcase when time permits.
Danny

------- Comment #4 From Gianluigi Tiesi 2008-09-22 09:51 -------
I've also seen crashes in alloca(), at least according to gdb backtrace

------- Comment #5 From Gianluigi Tiesi 2008-10-07 12:48 -------

*** This bug has been marked as a duplicate of 37750 ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug