public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug backtrace/27147] New: [GNU/Linux, sparc64] GDB is unable to print full stack trace (got "previous frame inner to this frame" errors)
@ 2021-01-04 12:57 koachan+sourceware at protonmail dot com
  2021-01-04 15:58 ` [Bug backtrace/27147] " simark at simark dot ca
                   ` (39 more replies)
  0 siblings, 40 replies; 41+ messages in thread
From: koachan+sourceware at protonmail dot com @ 2021-01-04 12:57 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 27147
           Summary: [GNU/Linux, sparc64] GDB is unable to print full stack
                    trace (got "previous frame inner to this frame"
                    errors)
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: backtrace
          Assignee: unassigned at sourceware dot org
          Reporter: koachan+sourceware at protonmail dot com
  Target Milestone: ---

Created attachment 13091
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13091&action=edit
Test code to trigger the behavior

On sparc64, GDB 10.1 seems to corrupt stack traces. It displays the topmost
two functions just fine, but everything beyond that seems to be corrupted.

Steps to reproduce:

- Compile the attached gdb-test.c on sparc64.
- Load the binary under GDB, set breakpoint on puts.
- Run it, and when it reaches the breakpoint, print a backtrace.

Expected result (from GDB 9.2):
#0  0x0000000000108de4 in puts ()
#1  0x0000000000100950 in hello () at gdb-test.c:4
#2  0x0000000000100968 in main () at gdb-test.c:8

Actual result (from GDB latest git):
#0  0x0000000000108de4 in puts ()
#1  0x0000000000100950 in hello () at gdb-test.c:4
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Worked fine on 9.2, started experiencing problem in 10.1, and it seems that
latest git version (11.0.50.20210104-git, commit
e9cf3691bfa140469d52815a2307b00eecf7917c)
is still problematic.

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

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

end of thread, other threads:[~2021-11-22  7:37 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-04 12:57 [Bug backtrace/27147] New: [GNU/Linux, sparc64] GDB is unable to print full stack trace (got "previous frame inner to this frame" errors) koachan+sourceware at protonmail dot com
2021-01-04 15:58 ` [Bug backtrace/27147] " simark at simark dot ca
2021-01-04 16:26 ` simark at simark dot ca
2021-01-04 18:58 ` simark at simark dot ca
2021-01-04 23:41 ` koachan+sourceware at protonmail dot com
2021-01-04 23:42 ` koachan+sourceware at protonmail dot com
2021-02-18 17:35 ` simark at simark dot ca
2021-02-23 17:48 ` andrew.burgess at embecosm dot com
2021-02-23 18:23 ` andrew.burgess at embecosm dot com
2021-02-23 18:32 ` simark at simark dot ca
2021-02-23 18:33 ` simark at simark dot ca
2021-02-24  9:50 ` andrew.burgess at embecosm dot com
2021-02-24 21:34 ` simark at simark dot ca
2021-02-24 23:39 ` simark at simark dot ca
2021-03-04  0:49 ` simark at simark dot ca
2021-03-04 12:27 ` koachan+sourceware at protonmail dot com
2021-03-04 16:07 ` cvs-commit at gcc dot gnu.org
2021-03-04 17:08 ` cvs-commit at gcc dot gnu.org
2021-03-04 17:09 ` simark at simark dot ca
2021-03-04 17:09 ` simark at simark dot ca
2021-06-27 17:46 ` ahmedsayeed1982 at yahoo dot com
2021-08-10 11:45 ` ucelsanicin at yahoo dot com
2021-08-27 17:52 ` ribevi6798 at enamelme dot com
2021-08-28 18:31 ` buranlevent at yahoo dot com
2021-09-06  9:10 ` focixujo at livinginsurance dot co.uk
2021-09-10 19:40 ` mehmetgelisin at aol dot com
2021-09-14 17:29 ` johnb6174 at gmail dot com
2021-09-14 18:48 ` mark at klomp dot org
2021-09-26 13:31 ` tes.vik1986 at gmail dot com
2021-10-09 11:00 ` gulsenenginar at aol dot com
2021-10-10 16:10 ` oficaj3 at gmail dot com
2021-10-19  7:14 ` progonsaytu at gmail dot com
2021-10-23 13:46 ` fiteva5725 at bomoads dot com
2021-10-24 10:02 ` glassmtech at ukr dot net
2021-10-29 10:57 ` kimolsun2020 at outlook dot com
2021-10-29 12:07 ` huracantili20 at gmail dot com
2021-11-02 15:21 ` gepaw63633 at dukeoo dot com
2021-11-06 21:12 ` paneki8601 at dukeoo dot com
2021-11-16 19:05 ` xecana8007 at funboxcn dot com
2021-11-16 19:08 ` xecana8007 at funboxcn dot com
2021-11-22  7:37 ` gexed96894 at keagenan 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).