Bonsoir à tous,
J'ai un petit soucis avec le rapport de débogage de valgrind, a vrai dire je ne le comprend pas bien ...
Je vais commencer par vous mettre le rapport
et voici les parties qui semblent poser problème==6458==
==6458== Conditional jump or move depends on uninitialised value(s)
==6458== at 0x804B12E: del_client (in /home/serveur/S-Inspire/sinspire)
==6458== by 0x804B17F: free_clients (in /home/serveur/S-Inspire/sinspire)
==6458== by 0x405B6E7: (within /lib/i686/cmov/libc-2.7.so)
==6458== by 0x804B56D: main (in /home/serveur/S-Inspire/sinspire)
==6458==
==6458== Invalid read of size 4
==6458== at 0x804B180: free_clients (in /home/serveur/S-Inspire/sinspire)
==6458== by 0x405B6E7: (within /lib/i686/cmov/libc-2.7.so)
==6458== by 0x804B56D: main (in /home/serveur/S-Inspire/sinspire)
==6458== Address 0x418f47c is 244 bytes inside a block of size 248 free'd
==6458== at 0x4022B8A: free (vg_replace_malloc.c:323)
==6458== by 0x804B17F: free_clients (in /home/serveur/S-Inspire/sinspire)
==6458== by 0x405B6E7: (within /lib/i686/cmov/libc-2.7.so)
==6458== by 0x804B56D: main (in /home/serveur/S-Inspire/sinspire)
ERROR: with function recv() [Resource temporarily unavailable]
==6458==
==6458== ERROR SUMMARY: 7 errors from 3 contexts (suppressed: 71 from 2)
==6458== malloc/free: in use at exit: 9,052 bytes in 38 blocks.
==6458== malloc/free: 45 allocs, 7 frees, 11,204 bytes allocated.
==6458== For counts of detected errors, rerun with: -v
==6458== searching for pointers to 38 not-freed blocks.
==6458== checked 87,632 bytes.
==6458==
==6458== LEAK SUMMARY:
==6458== definitely lost: 0 bytes in 0 blocks.
==6458== possibly lost: 0 bytes in 0 blocks.
==6458== still reachable: 9,052 bytes in 38 blocks.
==6458== suppressed: 0 bytes in 0 blocks.
==6458== Reachable blocks (those to which a pointer was found) are not shown.
==6458== To see them, rerun with: --leak-check=full --show-reachable=yes
dans le main
le fichier clients.c
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
et la structure client
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Il n'y a pas de plantage du programme mais les 7 erreurs qu'il me trouve me tracasse un peu.
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Je sollicite une nouvelle fois votre aide ...
Merci à vous

 

 
		
		 
         
 

 
			
			

 
   
 


 Rapport de debogage valgrind
 Rapport de debogage valgrind
				 Répondre avec citation
  Répondre avec citation



![Avatar de D[r]eadLock Avatar de D[r]eadLock](https://www.developpez.net/forums/avatars/1944-d-r-eadlock.gif?dateline=1166375583) 
			 Envoyé par Ganondorf
 Envoyé par Ganondorf
					

Partager