problem on handling SIGSEGV
JiaQi <[email protected]> Sat, 6 May 2006 15:32:03 +0800 (CST)
| Newsgroups | gmane.linux.redhat.amd64 |
|---|---|
| Message-ID | <[email protected]> |
--===============1205985996==
Content-Type: multipart/alternative; boundary="0-34463190-1146900723=:89875"
Content-Transfer-Encoding: 7bit
--0-34463190-1146900723=:89875
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: quoted-printable
I'm now porting a program from IA64 to x86_64 and encountered problems on=
the segv_handler. I used struct sigcontext instead of siginfo_t and wrot=
e the function as=20
segv_handler(int sig, struct sigcontext sc)
but i can not get a proper failing address using sc.cr2.
Could anyone help me?=20
kernel is 2.4.22
ur attention is appreciated.
=09
---------------------------------
=D1=C5=BB=A21G=C3=E2=B7=D1=D3=CA=CF=E4=B0=D9=B7=D6=B0=D9=B7=C0=C0=AC=BB=F8=
=D0=C5
--0-34463190-1146900723=:89875
Content-Type: text/html; charset=gb2312
Content-Transfer-Encoding: quoted-printable
<div>I'm now porting a program from IA64 to x86_64 and encountered proble=
ms on the segv_handler. I used struct sigcontext instead of siginfo_=
t and wrote the function as </div> <div> segv_handler(int si=
g, struct sigcontext sc)</div> <div>but i can not get a proper fail=
ing address using sc.cr2.</div> <div>Could anyone help me? </d=
iv> <div>kernel is 2.4.22</div> <div>ur attention is appreciated.</div>=
<p>
<hr size=3D1><a href=3D"http://cn.mail.yahoo.com" target=3Dblank>=20
=D1=C5=BB=A21G=C3=E2=B7=D1=D3=CA=CF=E4=B0=D9=B7=D6=B0=D9=B7=C0=C0=AC=BB=F8=
=D0=C5</a>
--0-34463190-1146900723=:89875--
--===============1205985996==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline