[so] [Tema2][Windows]Client in Cygwin

Solomon Avner ravenx86.underworld at gmail.com
Wed Apr 4 12:18:28 EEST 2012


2012/4/4 Solomon Avner <ravenx86.underworld at gmail.com>:
> Eu cand rulez tema de mana cu testele din checker nu am nici-o problema.
> Mentionez ca o rulez exact in ordinea spusa de tine.
> ./server 1 & ./server 2 & ./server 3 & ./server 4 & ./gateway &
> si apoi dau comenzile cu client-ul .. totul ruleaza fara probleme.
>
> Cand rulez checker-ul am o mare surpriza
> (mai jos sunt doua rulari succesive)
>
> RavenX86 at RavenX86-PC:~/tema2-checker-win$ ./run_all.sh
>
>                        = Testing - Cryptography =
>
> CreateFile: No error
> Code:2
> (utils.c, 33): 01) Testing test
> 1..........................................failed  [ 0/90]
> CreateFile: No error
> Code:2
> (utils.c, 33):
> [1]+  Exit 1                  ./server.exe 1
>
> RavenX86 at RavenX86-PC:~/tema2-checker-win$ ./run_all.sh
>
>                        = Testing - Cryptography =
>
> 01) Testing test 1..........................................passed  [10/90]
> CreateFile: No error
> Code:2
> (utils.c, 33):
>
> RavenX86 at RavenX86-PC:~/tema2-checker-win$
>
> Nu inteleg de ce uneori imi pik chair si testul 1 daca clientul e
> rualt dupa gateway.
> Primul lucru in main in programul gateway deschid "\\\\.\\mailslot\\gateway"
>
> Am presupus ca probabil ruleaza clientul inaintea gateway-ului din
> moment ce probabil checkerul seamana cu cel
> de pe linux care face asta, nu din rea intentie.
> Mai exista vre-un motiv pentru care poate aparea acea eroare? (apare
> total aleatoriu)

Da.. inchid de fiecare data...... dar am gasit ceva care poate duce la
o parte dintre simptome... unul din servere (server 1)
arunca intr-un log

WriteFile: No error
Code:1784
(crypto.c, 45):

ceea ce duce la un crash.
Asta poate fi doar de la apel gresit de decrypt, nu?

Mentionez ca nu am putut compila cu .lib-ul  ca imi spunea la link nu
sunt definite simbolurile corect
asa ca am dat

hInstance = LoadLibrary("crypto.dll");
	DIE(hInstance == NULL, "Load Library");
	//incarcare functii
	decrypt_base64 = (decrypt_func)GetProcAddress(hInstance, "decrypt_base64");
	   decrypt_des = (decrypt_func)GetProcAddress(hInstance, "decrypt_des");
	    decrypt_bf = (decrypt_func)GetProcAddress(hInstance, "decrypt_bf");
	   decrypt_rc2 = (decrypt_func)GetProcAddress(hInstance, "decrypt_rc2");

dar nu cred ca e de la asta


More information about the so mailing list