public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/28854]  New: unwinder reports sentinel frame.
@ 2006-08-25 23:22 pluto at agmk dot net
  2006-08-25 23:28 ` [Bug target/28854] " pluto at agmk dot net
  2006-11-07 14:14 ` pluto at agmk dot net
  0 siblings, 2 replies; 3+ messages in thread
From: pluto at agmk dot net @ 2006-08-25 23:22 UTC (permalink / raw)
  To: gcc-bugs

on alpha-linux target the unwinder reports sentinel frame.
imho it has no sense.

$ gcc testcase.c -O2; ./a.out
ip = 0x120000768
ip = 0x20000076860
ip = 0x120000668
ip = (nil)
a.out: testcase.c:10: helper: Assertion `ip != 0' failed.

$ cat testcase.c
#include <dlfcn.h>
#include <unwind.h>
#include <assert.h>
#include <stdio.h>
_Unwind_Reason_Code helper( struct _Unwind_Context* ctx, void* arg )
{
        _Unwind_Ptr ip = _Unwind_GetIP( ctx );
        printf( "ip = %p\n", (void*)ip );
        assert( ip != 0 );
        return _URC_NO_REASON;
}
int main()
{
        _Unwind_Backtrace( helper, 0 );
        return 0;
}


-- 
           Summary: unwinder reports sentinel frame.
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
GCC target triplet: alpha-linux


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


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

* [Bug target/28854] unwinder reports sentinel frame.
  2006-08-25 23:22 [Bug target/28854] New: unwinder reports sentinel frame pluto at agmk dot net
@ 2006-08-25 23:28 ` pluto at agmk dot net
  2006-11-07 14:14 ` pluto at agmk dot net
  1 sibling, 0 replies; 3+ messages in thread
From: pluto at agmk dot net @ 2006-08-25 23:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pluto at agmk dot net  2006-08-25 23:28 -------
the 0x120000668 is a last valid return point.

0x0000000120000630 <_start+0>:  br      gp,0x120000634 <_start+4>
0x0000000120000634 <_start+4>:  ldah    gp,2(gp)
0x0000000120000638 <_start+8>:  lda     gp,-31092(gp)
0x000000012000063c <_start+12>: subq    sp,0x10,sp
0x0000000120000640 <_start+16>: mov     0,fp
0x0000000120000644 <_start+20>: ldq     a0,-32728(gp)
0x0000000120000648 <_start+24>: ldl     a1,16(sp)
0x000000012000064c <_start+28>: lda     a2,24(sp)
0x0000000120000650 <_start+32>: ldq     a3,-32736(gp)
0x0000000120000654 <_start+36>: ldq     a4,-32752(gp)
0x0000000120000658 <_start+40>: mov     v0,a5
0x000000012000065c <_start+44>: stq     sp,0(sp)
0x0000000120000660 <_start+48>: ldq     t12,-32720(gp)
0x0000000120000664 <_start+52>: jsr     ra,(t12),0x120000668 <_start+56>
0x0000000120000668 <_start+56>: halt
0x000000012000066c <_start+60>: unop


-- 


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


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

* [Bug target/28854] unwinder reports sentinel frame.
  2006-08-25 23:22 [Bug target/28854] New: unwinder reports sentinel frame pluto at agmk dot net
  2006-08-25 23:28 ` [Bug target/28854] " pluto at agmk dot net
@ 2006-11-07 14:14 ` pluto at agmk dot net
  1 sibling, 0 replies; 3+ messages in thread
From: pluto at agmk dot net @ 2006-11-07 14:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pluto at agmk dot net  2006-11-07 14:14 -------
ping, please update status.


-- 


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


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

end of thread, other threads:[~2006-11-07 14:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-25 23:22 [Bug target/28854] New: unwinder reports sentinel frame pluto at agmk dot net
2006-08-25 23:28 ` [Bug target/28854] " pluto at agmk dot net
2006-11-07 14:14 ` pluto at agmk dot net

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