From: Matthew Wilcox <matthew@wil.cx>
To: Matthew Wilcox <matthew@wil.cx>
Cc: John David Anglin <dave@hiauly1.hia.nrc.ca>,
parisc-linux@parisc-linux.org
Subject: Re: [parisc-linux] glibc 2.2.3: setjmp/longjmp
Date: Sat, 5 May 2001 01:00:32 +0100 [thread overview]
Message-ID: <20010505010032.N32445@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20010504235711.M32445@parcelfarce.linux.theplanet.co.uk>; from matthew@wil.cx on Fri, May 04, 2001 at 11:57:11PM +0100
On Fri, May 04, 2001 at 11:57:11PM +0100, Matthew Wilcox wrote:
>
> taking a somewhat different approach:
>
> ea44: e8 42 11 d4 b,l 14334 <_setjmp>,rp
>
> 00014334 <_setjmp>:
> 14334: 6b c2 3f d9 stw rp,-14(sr0,sp)
> 14338: 34 19 00 00 ldi 0,r25
> 1433c: 37 de 00 80 ldo 40(sp),sp
> 14340: 6b d3 3f c1 stw r19,-20(sr0,sp)
> 14344: e8 41 00 d8 b,l 163b8 <__sigsetjmp>,rp
> 14348: 6b d3 3f 91 stw r19,-38(sr0,sp)
> 1434c: 4b d3 3f 91 ldw -38(sr0,sp),r19
> 14350: 4b c2 3f 59 ldw -54(sr0,sp),rp
> 14354: e8 40 c0 00 bv r0(rp)
> 14358: 37 de 3f 81 ldo -40(sp),sp
> oh. wait. 1434F is exactly where it should be. *sigh*. So why the hell
> is it returning to the wrong place?
OK, got it. the first time we call _setjmp, everything is fine.
But when we return to it through longjmp, the `rp' which got stored has
changed, and now its the rp for the last function we called. Which is
what happens using `step' through gdb (now that i have a working gdb,
thanks for the deb, matt).
Ugh. I guess we can't use _setjmp then, at least in its current form.
Oh well, at least the problem's found.
--
Revolutions do not require corporate support.
next prev parent reply other threads:[~2001-05-05 0:00 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-04 20:05 [parisc-linux] glibc 2.2.3: setjmp/longjmp Matthew Wilcox
2001-05-04 20:18 ` John David Anglin
2001-05-04 20:39 ` Matthew Wilcox
2001-05-04 21:02 ` Matthew Wilcox
2001-05-04 21:31 ` John David Anglin
2001-05-04 21:38 ` Matthew Wilcox
2001-05-04 21:51 ` John David Anglin
2001-05-04 22:36 ` Matthew Wilcox
2001-05-04 22:56 ` John David Anglin
2001-05-04 22:57 ` Matthew Wilcox
2001-05-05 0:00 ` Matthew Wilcox [this message]
2001-05-05 0:49 ` Alan Modra
2001-05-05 1:01 ` Matthew Wilcox
2001-05-05 1:18 ` Alan Modra
2001-05-05 1:47 ` Matthew Wilcox
2001-05-06 6:14 ` Ulrich Drepper
2001-05-06 7:07 ` Grant Grundler
2001-05-06 15:53 ` John David Anglin
2001-05-06 22:13 ` Matthew Wilcox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010505010032.N32445@parcelfarce.linux.theplanet.co.uk \
--to=matthew@wil.cx \
--cc=dave@hiauly1.hia.nrc.ca \
--cc=parisc-linux@parisc-linux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox