<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:14pt"><div><span>Cand rulez : ./run_all.sh </span></div><div><span>primesc<br> = Testing - Cryptography =<br><br>(client.c, 104): mq_open: Cannot allocate memory<br>(client.c, 104): mq_open: Cannot allocate memory<br>01) Testing test 1..........................................failed [ 0/130]<br>(client.c, 104): mq_open: Cannot allocate memory<br>(client.c, 104): mq_open: Cannot allocate memory<br>02) Testing test 2..........................................failed [ 0/130]<br>(client.c, 104): mq_open: Cannot allocate memory<br>(client.c, 104): mq_open: Cannot allocate memory<br></span></div><div>Imi dati linia 104 din client.c ? ( glumesc, un hint ? )<br></div><div><br></div><div>(
apare 130 ca am mai creat eu teste - nu e aceea problema )<br></div><div><br></div> <div style="font-family: times new roman,new york,times,serif; font-size: 14pt;"> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight: bold;">From:</span></b> "so-request@cursuri.cs.pub.ro" <so-request@cursuri.cs.pub.ro><br> <b><span style="font-weight: bold;">To:</span></b> so@cursuri.cs.pub.ro <br> <b><span style="font-weight: bold;">Sent:</span></b> Sunday, April 8, 2012 11:22 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> so Digest, Vol 71, Issue 23<br> </font> </div> <br>
Send so mailing list submissions to<br> <a ymailto="mailto:so@cursuri.cs.pub.ro" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so<br>or, via email, send a message with subject or body 'help' to<br> <a ymailto="mailto:so-request@cursuri.cs.pub.ro" href="mailto:so-request@cursuri.cs.pub.ro">so-request@cursuri.cs.pub.ro</a><br><br>You can reach the person managing the list at<br> <a ymailto="mailto:so-owner@cursuri.cs.pub.ro" href="mailto:so-owner@cursuri.cs.pub.ro">so-owner@cursuri.cs.pub.ro</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of so digest..."<br><br><br>Today's Topics:<br><br> 1. Calendar laboratoare SO (Irina Preșa)<br> 2. Re: [Tema2][Linux] Problema decriptari
consecutive<br> (Alexandra Ghecenco)<br> 3. Tema 3 linux nelamuriri (Stanciu Alexandru)<br> 4. Re: Tema 3 linux nelamuriri (Ghennadi Procopciuc)<br> 5. Re: Tema 3 linux nelamuriri (Alexandru Juncu)<br> 6. [Tema2][Linux] gateway (Adil Serroukh)<br> 7. Re: [Tema2][Linux] gateway (Alexandru Petrisor Pajarcu)<br> 8. Re : [Tema2][Linux] gateway (Adil Serroukh)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Sun, 8 Apr 2012 14:47:07 +0300<br>From: Irina Preșa <<a ymailto="mailto:irina.presa@gmail.com" href="mailto:irina.presa@gmail.com">irina.presa@gmail.com</a>><br>Subject: [so] Calendar laboratoare SO<br>To: Sisteme de Operare <<a ymailto="mailto:so@cursuri.cs.pub.ro" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a>><br>Message-ID:<br> <CAFovW94pwra-0H8B+<a
ymailto="mailto:GLPCMPUJwj-sMHMdovGMW6BrRGjnCGUQQ@mail.gmail.com" href="mailto:GLPCMPUJwj-sMHMdovGMW6BrRGjnCGUQQ@mail.gmail.com">GLPCMPUJwj-sMHMdovGMW6BrRGjnCGUQQ@mail.gmail.com</a>><br>Content-Type: text/plain; charset=UTF-8<br><br>Salut!<br><br>Ca un scurt reminder (pentru că au întrebat mai multe persoane),<br>conform planificării din calendar [1], nu se vor ține laboratoarele de<br>SO în datele de 12, 13 și 16 aprilie.<br><br>[1] http://elf.cs.pub.ro/so/wiki/calendar<br><br>--<br>Irina<br><br><br>------------------------------<br><br>Message: 2<br>Date: Sun, 08 Apr 2012 15:22:25 +0300<br>From: Alexandra Ghecenco <<a ymailto="mailto:alexandra.ghecenco@gmail.com" href="mailto:alexandra.ghecenco@gmail.com">alexandra.ghecenco@gmail.com</a>><br>Subject: Re: [so] [Tema2][Linux] Problema decriptari consecutive<br>To: Sisteme de Operare <<a ymailto="mailto:so@cursuri.cs.pub.ro"
href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a>><br>Message-ID: <<a ymailto="mailto:4F818301.3030704@gmail.com" href="mailto:4F818301.3030704@gmail.com">4F818301.3030704@gmail.com</a>><br>Content-Type: text/plain; charset=UTF-8; format=flowed<br><br>On 04/08/2012 12:50 AM, Razvan Crainea wrote:<br>> On Fri, Apr 6, 2012 at 9:28 PM, Alexandra Ghecenco<br>> <<a ymailto="mailto:alexandra.ghecenco@gmail.com" href="mailto:alexandra.ghecenco@gmail.com">alexandra.ghecenco@gmail.com</a>> wrote:<br>>> Buna,<br>>><br>>> Am o problema bizara la decriptari consecutive pe aceleasi date. Am<br>>> constatat-o facand debug pentru alte probleme legate tot de decriptare (bad<br>>> magic number, bad decrypt etc).<br>>> De exemplu:<br>>><br>>> student@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1<br>>> student@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1
-1<br>>> student@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1<br>>> teststudent@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1<br>>> teststudent@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1<br>>> teststudent@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1<br>>> student@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1<br>>> teststudent@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1<br>>> student@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1<br>>> student@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1<br>>> student@spook:~/2/src$ ./client "test" "mq_test" 1 2 3 4 3 2 1 -1<br>>> ^C<br>>> student@spook:~/2/src$<br>>><br>>> La ultima rulare, a dat seg fault in gateway. De fiecare data cand a gresit<br>>> decriptarea, in cel putin unul din server-ele 2, 3 si 4 aparea:<br>>>
digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:330:<br>>><br>>> Are cineva vreo idee de ce se intampla asa? :)<br>>><br>> Bună, Alexandra!<br>><br>> Ai verificat [1]?<br>><br>> [1] http://elf.cs.pub.ro/so/wiki/teme/tema-2#faq<br>><br>Buna!<br><br>Da, am verificat, citesc cati octeti trebuie, iar inainte sa scriu <br>zero-izez ca sa nu ramana in plus (si oricum scriu dimensiunea sirului <br>inainte de sirul propriu-zis, deci stiu cat am de citit). Ceea ce nu <br>reusesc sa-mi explic e de ce *uneori* functioneaza si alteori nu. Daca <br>facea ceva gresit, nu ar fi trebuit sa dea eroare la decriptare de <br>fiecare data?<br><br>Multumesc!<br><br><br>------------------------------<br><br>Message: 3<br>Date: Sun, 8 Apr 2012 05:44:30 -0700 (PDT)<br>From: Stanciu Alexandru <<a ymailto="mailto:the_marian_2006@yahoo.com"
href="mailto:the_marian_2006@yahoo.com">the_marian_2006@yahoo.com</a>><br>Subject: [so] Tema 3 linux nelamuriri<br>To: "<a ymailto="mailto:so@cursuri.cs.pub.ro" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a>" <<a ymailto="mailto:so@cursuri.cs.pub.ro" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a>><br>Message-ID:<br> <<a ymailto="mailto:1333889070.75784.YahooMailNeo@web122103.mail.ne1.yahoo.com" href="mailto:1333889070.75784.YahooMailNeo@web122103.mail.ne1.yahoo.com">1333889070.75784.YahooMailNeo@web122103.mail.ne1.yahoo.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Nu inteleg cu ce dimensiune sa creez fisierele ram si swap si ce o sa se scrie in ele. La ce se refera dimensiunea unei pagini? 4k? Eu am creat fisierele alea si le-am trunchiat la num_frames * sizeof(frame), unde frame e structura aceeea din enunt si ma gandeam ca pt fiecare pagina fizica alocata, sa modific
in acel fisier campul w_size_t index sau mai stiu eu ce. Puteti sa fiti mai expliciti va rog in legatura cu dimensiunea unei pagini si cu ce o sa se completeze? <br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://cursuri.cs.pub.ro/pipermail/so/attachments/20120408/4935a132/attachment-0001.html" target="_blank">http://cursuri.cs.pub.ro/pipermail/so/attachments/20120408/4935a132/attachment-0001.html</a>><br><br>------------------------------<br><br>Message: 4<br>Date: Sun, 8 Apr 2012 17:25:24 +0300<br>From: Ghennadi Procopciuc <<a ymailto="mailto:unix140@gmail.com" href="mailto:unix140@gmail.com">unix140@gmail.com</a>><br>Subject: Re: [so] Tema 3 linux nelamuriri<br>To: Stanciu Alexandru <<a ymailto="mailto:the_marian_2006@yahoo.com" href="mailto:the_marian_2006@yahoo.com">the_marian_2006@yahoo.com</a>>, Sisteme de Operare<br> <<a
ymailto="mailto:so@cursuri.cs.pub.ro" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a>><br>Message-ID:<br> <CAP7O53Mp3NePPjM_1zM3CbVGMzo=<a ymailto="mailto:ubSNdF3pw4iAu1FPwZ0v-w@mail.gmail.com" href="mailto:ubSNdF3pw4iAu1FPwZ0v-w@mail.gmail.com">ubSNdF3pw4iAu1FPwZ0v-w@mail.gmail.com</a>><br>Content-Type: text/plain; charset=UTF-8<br><br>Salut Alexandru !<br><br>> Nu inteleg cu ce dimensiune sa creez fisierele ram si swap si ce o sa se<br>> scrie in ele.<br><br>Cum e sugerat si in imaginea din tema, fiserul RAM va avea dimensiunea<br>nr_frames * page_size, si swap-ul nr_pages * page_size. In fisierul<br>RAM se vor "scrie" paginile fizice, in swap paginile obtinute in urma<br>operatiie de swap-in / swap-out, pagini care nu le mai poti aloca pe<br>RAM.<br><br>> La ce se refera dimensiunea unei pagini? 4k?<br>Enunt :<br>Puteți determina dimensiunea unei pagini folosiți funcția<br>w_get_page_size definită
în fișierul header common.h.<br><br>> cu ce o sa se completeze?<br>O pagina / frame contine _doar_ date efective, nimic altceva.<br>Gestionarea paginilor o faci cu ajutorul structurilor de date.<br><br>--<br><br>Numai bine,<br><br>Ghennadi Procopciuc<br><br><br>------------------------------<br><br>Message: 5<br>Date: Sun, 8 Apr 2012 17:31:01 +0300<br>From: Alexandru Juncu <<a ymailto="mailto:alexj@rosedu.org" href="mailto:alexj@rosedu.org">alexj@rosedu.org</a>><br>Subject: Re: [so] Tema 3 linux nelamuriri<br>To: Stanciu Alexandru <<a ymailto="mailto:the_marian_2006@yahoo.com" href="mailto:the_marian_2006@yahoo.com">the_marian_2006@yahoo.com</a>>, Sisteme de Operare<br> <<a ymailto="mailto:so@cursuri.cs.pub.ro" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a>><br>Message-ID:<br> <CAPhGq=ZJgPDenGzaizppUp8GyoSgv5vKJz+<a
ymailto="mailto:kqESdjTsMaZmY7Q@mail.gmail.com" href="mailto:kqESdjTsMaZmY7Q@mail.gmail.com">kqESdjTsMaZmY7Q@mail.gmail.com</a>><br>Content-Type: text/plain; charset=UTF-8<br><br>2012/4/8 Stanciu Alexandru <<a ymailto="mailto:the_marian_2006@yahoo.com" href="mailto:the_marian_2006@yahoo.com">the_marian_2006@yahoo.com</a>>:<br>> Nu inteleg cu ce dimensiune sa creez fisierele ram si swap si ce o sa se<br>> scrie in ele. La ce se refera dimensiunea unei pagini? 4k? Eu am creat<br>> fisierele alea si le-am trunchiat la num_frames * sizeof(frame), unde frame<br>> e structura aceeea din enunt si ma gandeam ca pt fiecare pagina fizica<br>> alocata, sa modific in acel fisier campul w_size_t index sau mai stiu eu ce.<br>> Puteti sa fiti mai expliciti va rog in legatura cu dimensiunea unei pagini<br>> si cu ce o sa se completeze?<br><br>Vei seta mărimea RAM-ului și a swap-ului virtual cu vm_alloc.<br>Checker-ul va apela
vm_alloc pentru a stabili valorile respective.<br><br><br>------------------------------<br><br>Message: 6<br>Date: Sun, 8 Apr 2012 19:56:26 +0100 (BST)<br>From: Adil Serroukh <<a ymailto="mailto:adil.serroukh@yahoo.com" href="mailto:adil.serroukh@yahoo.com">adil.serroukh@yahoo.com</a>><br>Subject: [so] [Tema2][Linux] gateway<br>To: Sisteme de Operare <<a ymailto="mailto:so@cursuri.cs.pub.ro" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a>><br>Message-ID:<br> <<a ymailto="mailto:1333911386.92122.YahooMailNeo@web29110.mail.ird.yahoo.com" href="mailto:1333911386.92122.YahooMailNeo@web29110.mail.ird.yahoo.com">1333911386.92122.YahooMailNeo@web29110.mail.ird.yahoo.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Salut,<br><br>La mine tema pe linux rulata pe checker-ul in masina locala o data trece 2 teste alteori nimic.<br><br>Am adaugat un sleep 1 inante de # start gateway si de # start
clients in <br>run_test.sh si trece toate testele.<br>Pe vmchecker nu afiseaza nimic ramine in faza :<br><br>checker: testing<br><br> = Testing - Cryptography =<br><br>Primul lucru care fac in gateway.c e sa deschid coada gateway.<br>Deci e obligatoriu sa verific coada daca exista chiar daca gateway ruleaza <br>inainte de clienti? Sau gresesc in alta parte?<br><br><br><br>Multumesc<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://cursuri.cs.pub.ro/pipermail/so/attachments/20120408/55366f44/attachment.htm" target="_blank">http://cursuri.cs.pub.ro/pipermail/so/attachments/20120408/55366f44/attachment.htm</a>><br><br>------------------------------<br><br>Message: 7<br>Date: Sun, 8 Apr 2012 22:34:17 +0300<br>From: Alexandru Petrisor Pajarcu <<a ymailto="mailto:pajarcu.petre@gmail.com"
href="mailto:pajarcu.petre@gmail.com">pajarcu.petre@gmail.com</a>><br>Subject: Re: [so] [Tema2][Linux] gateway<br>To: Adil Serroukh <<a ymailto="mailto:adil.serroukh@yahoo.com" href="mailto:adil.serroukh@yahoo.com">adil.serroukh@yahoo.com</a>>, Sisteme de Operare<br> <<a ymailto="mailto:so@cursuri.cs.pub.ro" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a>><br>Message-ID:<br> <CAEC-Mzt=boo+<a ymailto="mailto:iymO4fjPuViaPdktHRV5KTK4REH0iZKSdjvtOg@mail.gmail.com" href="mailto:iymO4fjPuViaPdktHRV5KTK4REH0iZKSdjvtOg@mail.gmail.com">iymO4fjPuViaPdktHRV5KTK4REH0iZKSdjvtOg@mail.gmail.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Salut,<br><br>Incearca sa pui sleep 1 in codul din gateway primul lucru din main.<br>Ar trebui sa aiba acelasi efect ca cel din run_test.sh.<br><br>La mine a avut efect. Aveam aceeasi problema ca
tine.<br><br>Petre<br><br>2012/4/8 Adil Serroukh <<a ymailto="mailto:adil.serroukh@yahoo.com" href="mailto:adil.serroukh@yahoo.com">adil.serroukh@yahoo.com</a>><br><br>> Salut,<br>><br>> La mine tema pe linux rulata pe checker-ul in masina locala o data trece 2<br>> teste alteori nimic.<br>> Am adaugat un sleep 1 inante de # start gateway si de # start clients in<br>> run_test.sh si trece toate testele.<br>> Pe vmchecker nu afiseaza nimic ramine in faza :<br>><br>> checker: testing<br>><br>> = Testing - Cryptography =<br>><br>> Primul lucru care fac in gateway.c e sa deschid coada gateway.<br>> Deci e obligatoriu sa verific coada daca exista chiar daca gateway ruleaza<br>> inainte de clienti? Sau gresesc in alta parte?<br>><br>><br>><br>> Multumesc<br>><br>><br>>
_______________________________________________<br>> <a href="http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii" target="_blank">http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii</a><br>><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://cursuri.cs.pub.ro/pipermail/so/attachments/20120408/ac6f8333/attachment.htm" target="_blank">http://cursuri.cs.pub.ro/pipermail/so/attachments/20120408/ac6f8333/attachment.htm</a>><br><br>------------------------------<br><br>Message: 8<br>Date: Sun, 8 Apr 2012 21:22:07 +0100 (BST)<br>From: Adil Serroukh <<a ymailto="mailto:adil.serroukh@yahoo.com" href="mailto:adil.serroukh@yahoo.com">adil.serroukh@yahoo.com</a>><br>Subject: [so] Re : [Tema2][Linux] gateway<br>To: Alexandru Petrisor Pajarcu <<a ymailto="mailto:pajarcu.petre@gmail.com" href="mailto:pajarcu.petre@gmail.com">pajarcu.petre@gmail.com</a>>, Sisteme
de<br> Operare <<a ymailto="mailto:so@cursuri.cs.pub.ro" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a>><br>Message-ID:<br> <<a ymailto="mailto:1333916527.19226.YahooMailNeo@web29111.mail.ird.yahoo.com" href="mailto:1333916527.19226.YahooMailNeo@web29111.mail.ird.yahoo.com">1333916527.19226.YahooMailNeo@web29111.mail.ird.yahoo.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br><br><br><br><br>________________________________<br> De : Alexandru Petrisor Pajarcu <<a ymailto="mailto:pajarcu.petre@gmail.com" href="mailto:pajarcu.petre@gmail.com">pajarcu.petre@gmail.com</a>><br><br>Salut,<br><br>Incearca sa pui sleep 1 in codul din gateway primul lucru din main.<br>Ar trebui sa aiba acelasi efect ca cel din run_test.sh.<br><br>La mine a avut efect. Aveam aceeasi problema ca tine.<br><br>Petre<br><br><br>Inseamna ca doar ai deschis coada gateway in
gateway.c , nu ai creat-o acolo ?<br>La cum am facut ideal ar fi sa am un delay la client sa ruleze dupa ce stiu ca gateway-ul a terminat executia.<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://cursuri.cs.pub.ro/pipermail/so/attachments/20120408/99ec1acd/attachment.htm" target="_blank">http://cursuri.cs.pub.ro/pipermail/so/attachments/20120408/99ec1acd/attachment.htm</a>><br><br>------------------------------<br><br>_______________________________________________<br>so mailing list<br><a ymailto="mailto:so@cursuri.cs.pub.ro" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a><br><a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br><br><br>End of so Digest, Vol 71, Issue 23<br>**********************************<br><br><br> </div> </div> </div></body></html>