[so] Tema5: Protectie ciudata

Claudiu-Florin FILIMON so@cursuri.cs.pub.ro
Sat, 12 Feb 2005 12:36:07 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_000B_01C510FF.6C9E0F50
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Problema cam aiurea pe linux:
Mapez o zona de memorie anonima cu mmap si protectie NONE. Apoi setez un =
handler pe SIGSEGV cu sigaction.
Daca accesez zona de memorie imi intra in handler, imi completeaza =
corect signum si info->si_signo, dar info->si_addr este pe 0, orice i-as =
face.
Chestia asta imi cam baga niste bete in roate... Are cineva idee de la =
ce e?

Have FUN,
FeeL E!
------=_NextPart_000_000B_01C510FF.6C9E0F50
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Problema cam aiurea pe =
linux:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Mapez o zona de memorie anonima cu mmap =
si=20
protectie NONE. Apoi setez un handler pe SIGSEGV cu =
sigaction.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Daca accesez zona de memorie imi intra =
in handler,=20
imi completeaza corect signum si info-&gt;si_signo, dar info-&gt;si_addr =
este pe=20
0, orice i-as face.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Chestia asta imi cam baga niste bete in =
roate...=20
Are cineva idee de la ce e?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Have FUN,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>FeeL E!</FONT></DIV></BODY></HTML>

------=_NextPart_000_000B_01C510FF.6C9E0F50--