public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug go/48553] New: fmt FAILs on 32-bit Solaris 2 with stack overflow
@ 2011-04-11 13:09 ro at gcc dot gnu.org
2011-04-23 0:10 ` [Bug go/48553] " ian at gcc dot gnu.org
2011-04-23 4:38 ` ian at airs dot com
0 siblings, 2 replies; 3+ messages in thread
From: ro at gcc dot gnu.org @ 2011-04-11 13:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48553
Summary: fmt FAILs on 32-bit Solaris 2 with stack overflow
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: go
AssignedTo: ian@airs.com
ReportedBy: ro@gcc.gnu.org
Host: *-*-solaris2.*
Target: *-*-solaris2.*
Build: *-*-solaris2.*
While investigating libgo failures, I noticed that the fmt tests fails only
for 32-bit and if compiled without optimization. The failure is like this:
=== RUN fmt_test.TestScanInts
Segmentation Fault
With truss, I see
23987/2: Incurred fault #6, FLTBOUNDS %pc = 0x080676B8
23987/2: siginfo: SIGSEGV SEGV_MAPERR addr=0xCDF10FFC
23987/2: Received signal #11, SIGSEGV [caught]
23987/2: siginfo: SIGSEGV SEGV_MAPERR addr=0xCDF10FFC
which is exactly the lower bound of the thread stack:
CDF00000 64K rwx-- [ anon ]
CDF11000 1016K rwx-R [ stack tid=2 ]
CE010000 64K rw--- [ anon ]
This matches the very deep nesting seen in gdb (ca. 4000 frames).
The test passes with -m64 (default thread stack size of 2 MB instead of 1 MB
for 32-bit) and with -O2.
Perhaps the nesting should be reduced to accomodate platforms without split
stack support?
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug go/48553] fmt FAILs on 32-bit Solaris 2 with stack overflow
2011-04-11 13:09 [Bug go/48553] New: fmt FAILs on 32-bit Solaris 2 with stack overflow ro at gcc dot gnu.org
@ 2011-04-23 0:10 ` ian at gcc dot gnu.org
2011-04-23 4:38 ` ian at airs dot com
1 sibling, 0 replies; 3+ messages in thread
From: ian at gcc dot gnu.org @ 2011-04-23 0:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48553
--- Comment #1 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> 2011-04-23 00:09:28 UTC ---
Author: ian
Date: Sat Apr 23 00:09:23 2011
New Revision: 172883
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172883
Log:
PR go/48553
libgo: Bring over patch to lower recursion depth in fmt.
Modified:
trunk/libgo/go/fmt/scan_test.go
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug go/48553] fmt FAILs on 32-bit Solaris 2 with stack overflow
2011-04-11 13:09 [Bug go/48553] New: fmt FAILs on 32-bit Solaris 2 with stack overflow ro at gcc dot gnu.org
2011-04-23 0:10 ` [Bug go/48553] " ian at gcc dot gnu.org
@ 2011-04-23 4:38 ` ian at airs dot com
1 sibling, 0 replies; 3+ messages in thread
From: ian at airs dot com @ 2011-04-23 4:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48553
Ian Lance Taylor <ian at airs dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
--- Comment #2 from Ian Lance Taylor <ian at airs dot com> 2011-04-23 04:37:41 UTC ---
Should be fixed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-04-23 4:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-11 13:09 [Bug go/48553] New: fmt FAILs on 32-bit Solaris 2 with stack overflow ro at gcc dot gnu.org
2011-04-23 0:10 ` [Bug go/48553] " ian at gcc dot gnu.org
2011-04-23 4:38 ` 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).