[pso] [Tema 1] Eroare test interceptor
Laura Ionita
laura.ionita at gmail.com
Sun Mar 30 09:56:17 EEST 2008
Am gasit! :)
Aveam niste extra lock-uri. Dar, problema a fost ca functia monitor imi
intorcea o valoare intotdeauna modificand-o pe cea obtinuta in urma apelului
functiei originale, chiar si atunci cand nu era cazul.
spor la treaba,
Laura
2008/3/30 Laura Ionita <laura.ionita at gmail.com>:
> Salutare,
>
> Am o problema cu testul interceptor. Primesc urmatoarele mesaje si testul
> imi pica:
>
> sh: error while loading shared libraries: /lib/tls/i686/sse2/cmov/libncurses.so.5: cannot read file data: Error 9
>
> bash: error while loading shared libraries: /lib/tls/i686/sse2/cmov/libncurses.so.5: cannot read file data: Error 9
> bash: error while loading shared libraries: /lib/tls/i686/sse2/cmov/libncurses.so.5: cannot read file data: Error 9
>
> sbbsh: error while loading shared libraries: libncurses.so.5: cannot close file descriptor
> bash: error while loading shared libraries: libncurses.so.5: cannot close file descriptor
> bash: error while loading shared libraries: libncurses.so.5: cannot close file descriptor
>
>
> In functia Interceptor (cea din curs) fac apelul de sistem (original), si
> in cazul in care imi trebuie si monitorizare, apelez o functie monitor(int
> syscall, struct pt_regs regs). In aceasta functie se pare ca intra de foarte
> multe ori pe test.
>
> syscall 5: return 3
> [--interceptor--]
> syscall 5: return -6[--interceptor--]
> syscall 5: return 3[--interceptor--]
> ................
>
> In functia monitor face cautari dupa pid-uri in lista: primul este cel cautat si valoarea intoarsa este 0, dar mai intra de cateva ori in monitor cu pid-uri diferite care nu se mai regasesc in lista.
>
>
> Orice idee legata de aceasta problema e binevenita!
>
> Multumesc anticipat,
> Laura
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20080330/6955418e/attachment.htm
More information about the pso
mailing list