public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/46093] New: code compiled with -fsplit-stack crashes when passing large struct
@ 2010-10-20 11:02 zsojka at seznam dot cz
  2011-10-07 22:52 ` [Bug target/46093] " ian at gcc dot gnu.org
  2011-10-07 22:55 ` ian at airs dot com
  0 siblings, 2 replies; 3+ messages in thread
From: zsojka at seznam dot cz @ 2010-10-20 11:02 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: code compiled with -fsplit-stack crashes when passing
                    large struct
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 22091
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22091
testcase

Output (-g is not needed to reproduce):
$ gcc -fsplit-stack testcase.c -g
$ gdb ./a.out
...
Program received signal SIGSEGV, Segmentation fault.
0x0000000000400ca9 in foo (s=...) at testcase.c:14
14        bar (s);
(gdb) bt
#0  0x0000000000400ca9 in foo (s=...) at testcase.c:14
#1  0x0000000000400d84 in __morestack () at
/mnt/svn/gcc-trunk/libgcc/config/i386/morestack.S:374
#2  0x0000000000400d00 in main () at testcase.c:21

I am not sure if that can be a problem here, but this is my binutils info:
$ ld -v
GNU ld (GNU Binutils) 2.20.1.20100303


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

* [Bug target/46093] code compiled with -fsplit-stack crashes when passing large struct
  2010-10-20 11:02 [Bug target/46093] New: code compiled with -fsplit-stack crashes when passing large struct zsojka at seznam dot cz
@ 2011-10-07 22:52 ` ian at gcc dot gnu.org
  2011-10-07 22:55 ` ian at airs dot com
  1 sibling, 0 replies; 3+ messages in thread
From: ian at gcc dot gnu.org @ 2011-10-07 22:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> 2011-10-07 22:51:16 UTC ---
Author: ian
Date: Fri Oct  7 22:51:11 2011
New Revision: 179702

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179702
Log:
    PR target/46093
    * generic-morestack.c (__generic_morestack): Make sure the segment
    is large enough for both the stack frame and the copied
    parameters.

Modified:
    trunk/libgcc/ChangeLog
    trunk/libgcc/generic-morestack.c


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

* [Bug target/46093] code compiled with -fsplit-stack crashes when passing large struct
  2010-10-20 11:02 [Bug target/46093] New: code compiled with -fsplit-stack crashes when passing large struct zsojka at seznam dot cz
  2011-10-07 22:52 ` [Bug target/46093] " ian at gcc dot gnu.org
@ 2011-10-07 22:55 ` ian at airs dot com
  1 sibling, 0 replies; 3+ messages in thread
From: ian at airs dot com @ 2011-10-07 22:55 UTC (permalink / raw)
  To: gcc-bugs

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

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |ian at airs dot com
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #2 from Ian Lance Taylor <ian at airs dot com> 2011-10-07 22:54:30 UTC ---
Fixed in mainline.  Sorry for the long delay.  Thanks for reporting the
problem.


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

end of thread, other threads:[~2011-10-07 22:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-20 11:02 [Bug target/46093] New: code compiled with -fsplit-stack crashes when passing large struct zsojka at seznam dot cz
2011-10-07 22:52 ` [Bug target/46093] " ian at gcc dot gnu.org
2011-10-07 22:55 ` ian at airs dot com

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