public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug go/66303] New: runtime.Caller() returns infinitely deep stack frames on s390x
@ 2015-05-27 10:25 e29253 at jp dot ibm.com
  2015-05-27 13:39 ` [Bug go/66303] " ian at airs dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: e29253 at jp dot ibm.com @ 2015-05-27 10:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66303

            Bug ID: 66303
           Summary: runtime.Caller() returns infinitely deep stack frames
                    on s390x
           Product: gcc
           Version: 5.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: e29253 at jp dot ibm.com
                CC: cmang at google dot com
  Target Milestone: ---

Created attachment 35633
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35633&action=edit
Sample program

The function runtime.Caller() returns infinitely deep stack frames on s390x
when we increase the argument 'skip'. 

Attached sample program does not terminate when we ran with GCCGO on s390x:
[inagaki@inagaki caller]$ go version
go version go1.4.2 gccgo (GCC) 5.1.1 20150527 linux/s390x
[inagaki@inagaki caller]$ go run caller.go | head
pc=4397991940204, file=../../../src/libgo/runtime/proc.c, line=235, ok=true
pc=4397981455530, file=, line=0, ok=true
pc=4397981455530, file=, line=0, ok=true
pc=4397981455530, file=, line=0, ok=true
pc=4397981455530, file=, line=0, ok=true
pc=4397981455530, file=, line=0, ok=true
pc=4397981455530, file=, line=0, ok=true
pc=4397981455530, file=, line=0, ok=true
pc=4397981455530, file=, line=0, ok=true
pc=4397981455530, file=, line=0, ok=true
^Cexit status 2
[inagaki@inagaki caller]$

The same program terminates with GC on x86_64:
-bash-4.1$ go version
go version go1.4.2 linux/amd64
-bash-4.1$ go run caller.go
pc=4329617, file=/usr/local/go/src/runtime/asm_amd64.s, line=2232, ok=true
pc=0, file=, line=0, ok=false
-bash-4.1$

Is it valid usage to detect a stack bottom by the return value 'ok'?


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

end of thread, other threads:[~2015-08-06  7:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-27 10:25 [Bug go/66303] New: runtime.Caller() returns infinitely deep stack frames on s390x e29253 at jp dot ibm.com
2015-05-27 13:39 ` [Bug go/66303] " ian at airs dot com
2015-05-28  5:53 ` e29253 at jp dot ibm.com
2015-05-28  5:53 ` e29253 at jp dot ibm.com
2015-06-02  9:00 ` vogt at linux dot vnet.ibm.com
2015-06-02  9:41 ` vogt at linux dot vnet.ibm.com
2015-06-02  9:43 ` vogt at linux dot vnet.ibm.com
2015-06-02 11:17 ` vogt at linux dot vnet.ibm.com
2015-06-02 14:04 ` ian at airs dot com
2015-06-03 11:27 ` vogt at linux dot vnet.ibm.com
2015-06-03 13:18 ` vogt at linux dot vnet.ibm.com
2015-06-10  7:00 ` stli at linux dot vnet.ibm.com
2015-07-07 14:21 ` stli at linux dot vnet.ibm.com
2015-08-06  7:06 ` krebbel at gcc dot gnu.org

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