Hola a todos estoy trabajando en un tp bajo linux y son mis primeros pasos bajo
este sistema, el problema me surge al ejecutar un programa que me dice que
provoca una violación de memoria, utilice el valgrind para ver si podía
entender que es lo que sucedió pero no consigo entender la salida del programa,
parte de cual copio a continuación:
Salida de valgrind --tool=memcheck tp1
==3675== Invalid write of size 1
==3675== at 0x8048D96: procesarMatriz (funcionesytipos.c:233)
==3675== by 0x8049727: main (tp1.c:243)
==3675== Address 0x52C5E880 is not stack'd, malloc'd or (recently) free'd
==3675== Process terminating with default action of signal 11 (SIGSEGV)
==3675== Bad permissions for mapped region at address 0x52C5E880
==3675== at 0x8048D96: procesarMatriz (funcionesytipos.c:233)
==3675== by 0x8049727: main (tp1.c:243)
==3675== ERROR SUMMARY: 14 errors from 6 contexts (suppressed: 0 from 0)
==3675== malloc/free: in use at exit: 0 bytes in 0 blocks.
==3675== malloc/free: 1 allocs, 1 frees, 364 bytes allocated.
==3675== For a detailed leak analysis, rerun with: --leak-check=yes
==3675== For counts of detected errors, rerun with: -v
Salida de valgrind -v tp1
==3904== malloc/free: in use at exit: 0 bytes in 0 blocks.
==3904== malloc/free: 1 allocs, 1 frees, 364 bytes allocated.
==3904== TT/TC: 0 tc sectors discarded.
==3904== 2093 tt_fast misses.
==3904== translate: new 2090 (36528 -> 469769; ratio 128:10)
==3904== discard 0 (0 -> 0; ratio 0:10).
==3904== chainings: 1439 chainings, 0 unchainings.
==3904== dispatch: 1006 jumps (bb entries); of them 5038 (500%) unchained.
==3904== 63/2242 major/minor sched events.
==3904== reg-alloc: 438 t-req-spill, 86434+3441 orig+spill uis,
==3904== 11158 total-reg-rank
==3904== sanity: 64 cheap, 3 expensive checks.
==3904== ccalls: 7490 C calls, 53% saves+restores avoided (23518 bytes)
==3904== 10013 args, avg 0.86 setup instrs each (2788 bytes)
==3904== 0% clear the stack (22470 bytes)
==3904== 3455 retvals, 26% of reg-reg movs avoided (1746 bytes)
a quien me pueda aclarar este codigo u orientarme desde ya gracias.
---------------------------------
Seguí de cerca a la Selección Argentina de Rugby
en el Mundial de Francia 2007.
http://ar.sports.yahoo.com/mundialderugby_______________________________________________
Lista de correo Programacion.
[email protected]
http://listas.fi.uba.ar/mailman/listinfo/programacion