[so] [Tema5]Probleme io_submit
Razvan Deaconescu
razvan.deaconescu at cs.pub.ro
Sun Aug 23 13:33:48 EEST 2009
On Sun, 2009-08-09 at 17:24 +0300, Dumitru Sorin wrote:
> Salut,
>
> Am niste probleme la tema 5.
> In momentul in care adaug in cod un apel la io_submit primesc
> eroare pe accept.
> perror raporteaza Invalid Argument. Fara apelul de io_submit merge
> bine. Ce e si mai
> ciudat e ca daca rulez cu valgrind merge, insa cand se ajunge la
> apelul de io_submit primesc
> eroarea(sau warning ca nu imi iese din program) asta:
> ==12076== Syscall param io_submit(ctx_id) contains uninitialised byte(s)
> ==12076== at 0x40007F2: (within /lib/ld-2.9.so)
> ==12076== by 0x8049653: main (server.c:224)
Scuze de raspunsul tarziu. Ai initializat primul argument al io_submit
(aio_context_t) folosind io_setup?
Din pagina de manual a io_setup[1]:
---
io_setup() creates an asynchronous I/O context capable of receiving at least
nr_events. ctxp must not point to an AIO context that already exists, and
must be initialized to 0 prior to the call.
---
Solutiile exercitiilor de laborator iti merg[2]?
Razvan
[1] http://www.kernel.org/doc/man-pages/online/pages/man2/io_setup.2.html
[2] http://cs.pub.ro/~so/Laboratoare/arhive/sol-lab11.zip
More information about the so
mailing list