[so] [Tema3][Linux] faild test

Irina Stanescu ironmissy at gmail.com
Sat May 9 15:54:55 EEST 2009


ce faci cu o zona dupa o ce demapezi (cand o scoti din ram) ?

programul de test mai face niste malloc-uri la un moment dat si s-ar putea
sa primeasca spatiu tocmai din zona asta. de aceea trebuie sa o protejezi
cumva. eu am realocat-o anonim, ca sa o pastrez in "posesia" librariei.

poate e de la asta.

Irina

2009/5/9 alexandrujuncu at gmail.com <alexandrujuncu at gmail.com>

> strace ciclează la
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> rt_sigreturn(0xb7edaff4)                = 67032
>
> am assert-uri şi la intrări şi la ieşiri din funcţie şi funcţiile
> intră şi ies ok
>
> 2009/5/9 alexandrujuncu at gmail.com <alexandrujuncu at gmail.com>:
> > 2009/5/9 Daniel Baluta <daniel.baluta at gmail.com>:
> >> On Sat, May 9, 2009 at 1:36 PM, Catalin <catalin.me at gmail.com> wrote:
> >>> alexandrujuncu at gmail.com wrote:
> >>>>>
> >>>>> Ai incercat gdb , strace :)?
> >>>>> Pune tema pe site.
> >>
> >> Creaza-ti o functie care-ti printeaza starea paginilor tale si
> >> apeleaz-o in diferite momente.
> >> Probabil ca nu marchezi corespunzator o pagina cand o muti in swap.
> > did that...looked ok...
> >>
> >> Daniel.
> >> _______________________________________________
> >> so mailing list
> >> so at cursuri.cs.pub.ro
> >> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
> >>
> >
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090509/772f77fe/attachment-0001.htm>


More information about the so mailing list