This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/18508] New: S390: backtrace() returns infinitely deep stack frames with makecontext().


https://sourceware.org/bugzilla/show_bug.cgi?id=18508

            Bug ID: 18508
           Summary: S390: backtrace() returns infinitely deep stack frames
                    with makecontext().
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: stli at linux dot vnet.ibm.com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

On s390/s390x backtrace(buffer, size) returns the series of called functions
until "makecontext_ret" and additional entries (up to "size") with
"makecontext_ret".
GDB-backtrace is also warning: "Backtrace stopped: previous frame identical to
this frame (corrupt stack?)"

To reproduce this scenario you have to setup a new context with makecontext()
and activate it with setcontext(). See e.g. cf() function in testcase
stdlib/tst-makecontext.c.
Or see bug in libgo "Bug 66303 - runtime.Caller() returns infinitely deep stack
frames on s390x " (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66303).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]