public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/37584]  New: -ftree-ch causes stack corruption on mingw32
@ 2008-09-19 11:31 sherpya at netfarm dot it
  2008-09-19 21:05 ` [Bug target/37584] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: sherpya at netfarm dot it @ 2008-09-19 11:31 UTC (permalink / raw)
  To: gcc-bugs

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


-- 
           Summary: -ftree-ch causes stack corruption on mingw32
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sherpya at netfarm dot it
 GCC build triplet: i686-pc-mingw32
  GCC host triplet: i686-pc-mingw32
GCC target triplet: i686-pc-mingw32


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


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

* [Bug target/37584] -ftree-ch causes stack corruption on mingw32
  2008-09-19 11:31 [Bug tree-optimization/37584] New: -ftree-ch causes stack corruption on mingw32 sherpya at netfarm dot it
@ 2008-09-19 21:05 ` pinskia at gcc dot gnu dot org
  2008-09-20  9:44 ` sherpya at netfarm dot it
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-19 21:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  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.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal
          Component|tree-optimization           |target


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


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

* [Bug target/37584] -ftree-ch causes stack corruption on mingw32
  2008-09-19 11:31 [Bug tree-optimization/37584] New: -ftree-ch causes stack corruption on mingw32 sherpya at netfarm dot it
  2008-09-19 21:05 ` [Bug target/37584] " pinskia at gcc dot gnu dot org
@ 2008-09-20  9:44 ` sherpya at netfarm dot it
  2008-09-22  3:24 ` dannysmith at users dot sourceforge dot net
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: sherpya at netfarm dot it @ 2008-09-20  9:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from sherpya at netfarm dot it  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


-- 


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


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

* [Bug target/37584] -ftree-ch causes stack corruption on mingw32
  2008-09-19 11:31 [Bug tree-optimization/37584] New: -ftree-ch causes stack corruption on mingw32 sherpya at netfarm dot it
  2008-09-19 21:05 ` [Bug target/37584] " pinskia at gcc dot gnu dot org
  2008-09-20  9:44 ` sherpya at netfarm dot it
@ 2008-09-22  3:24 ` dannysmith at users dot sourceforge dot net
  2008-09-22  9:52 ` sherpya at netfarm dot it
  2008-10-07 12:49 ` sherpya at netfarm dot it
  4 siblings, 0 replies; 6+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2008-09-22  3:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dannysmith at users dot sourceforge dot net  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


-- 

dannysmith at users dot sourceforge dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dannysmith at users dot
                   |                            |sourceforge dot net
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-09-22 03:23:45
               date|                            |


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


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

* [Bug target/37584] -ftree-ch causes stack corruption on mingw32
  2008-09-19 11:31 [Bug tree-optimization/37584] New: -ftree-ch causes stack corruption on mingw32 sherpya at netfarm dot it
                   ` (2 preceding siblings ...)
  2008-09-22  3:24 ` dannysmith at users dot sourceforge dot net
@ 2008-09-22  9:52 ` sherpya at netfarm dot it
  2008-10-07 12:49 ` sherpya at netfarm dot it
  4 siblings, 0 replies; 6+ messages in thread
From: sherpya at netfarm dot it @ 2008-09-22  9:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from sherpya at netfarm dot it  2008-09-22 09:51 -------
I've also seen crashes in alloca(), at least according to gdb backtrace


-- 


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


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

* [Bug target/37584] -ftree-ch causes stack corruption on mingw32
  2008-09-19 11:31 [Bug tree-optimization/37584] New: -ftree-ch causes stack corruption on mingw32 sherpya at netfarm dot it
                   ` (3 preceding siblings ...)
  2008-09-22  9:52 ` sherpya at netfarm dot it
@ 2008-10-07 12:49 ` sherpya at netfarm dot it
  4 siblings, 0 replies; 6+ messages in thread
From: sherpya at netfarm dot it @ 2008-10-07 12:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from sherpya at netfarm dot it  2008-10-07 12:48 -------


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


-- 

sherpya at netfarm dot it changed:

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


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


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

end of thread, other threads:[~2008-10-07 12:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-19 11:31 [Bug tree-optimization/37584] New: -ftree-ch causes stack corruption on mingw32 sherpya at netfarm dot it
2008-09-19 21:05 ` [Bug target/37584] " pinskia at gcc dot gnu dot org
2008-09-20  9:44 ` sherpya at netfarm dot it
2008-09-22  3:24 ` dannysmith at users dot sourceforge dot net
2008-09-22  9:52 ` sherpya at netfarm dot it
2008-10-07 12:49 ` sherpya at netfarm dot it

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