public
Authored by avatar Ignacio Ianello

ERROR

Edited
run tester log tp1b 3.32 KiB
** Compilando
make: 'tester' is up to date.

** Corriendo Valgrind
==27308== Memcheck, a memory error detector
==27308== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==27308== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==27308== Command: ./tester
==27308== 
= Checkpoint 2
==============
- test_alternate_sum_4 OK
- test_alternate_sum_4_using_c OK
- test_alternate_sum_4_simplified OK
- test_alternate_sum_8 OK
- test_product_2_f FAILED
    al probar test_product_2_f(&result, 916, 849.89)
    fallo en tester.c:73
        Esperado: 778499
        Recibido: 778500
- test_product_9_f OK

= Checkpoint 3
==============
- test_cantidad_total_de_elementos OK
- test_cantidad_total_de_elementos_packed OK

= Checkpoint 4
==============
- test_strLen OK
==27308== Use of uninitialised value of size 8
==27308==    at 0x407914: ??? (checkpoint4.asm:105)
==27308==    by 0x40458D: test_strClone_string_normal__impl (tester.c:189)
==27308==    by 0x404519: test_strClone_string_normal (tester.c:187)
==27308==    by 0x4076A9: main (tester.c:303)
==27308== 
==27308== 
==27308== Process terminating with default action of signal 11 (SIGSEGV)
==27308==  Bad permissions for mapped region at address 0x4A8B780
==27308==    at 0x4A8B780: ??? (in /usr/lib/x86_64-linux-gnu/libc.so.6)
==27308==    by 0x40458D: test_strClone_string_normal__impl (tester.c:189)
==27308==    by 0x404519: test_strClone_string_normal (tester.c:187)
==27308==    by 0x4076A9: main (tester.c:303)
==27308== 
==27308== HEAP SUMMARY:
==27308==     in use at exit: 1,031 bytes in 2 blocks
==27308==   total heap usage: 802 allocs, 800 frees, 22,231 bytes allocated
==27308== 
==27308== 7 bytes in 1 blocks are definitely lost in loss record 1 of 2
==27308==    at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==27308==    by 0x40790C: ??? (checkpoint4.asm:94)
==27308==    by 0x40458D: test_strClone_string_normal__impl (tester.c:189)
==27308==    by 0x404519: test_strClone_string_normal (tester.c:187)
==27308==    by 0x4076A9: main (tester.c:303)
==27308== 
==27308== 1,024 bytes in 1 blocks are still reachable in loss record 2 of 2
==27308==    at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==27308==    by 0x48EEBA3: _IO_file_doallocate (filedoalloc.c:101)
==27308==    by 0x48FDCDF: _IO_doallocbuf (genops.c:347)
==27308==    by 0x48FCF5F: _IO_file_overflow@@GLIBC_2.2.5 (fileops.c:744)
==27308==    by 0x48FB6D4: _IO_new_file_xsputn (fileops.c:1243)
==27308==    by 0x48FB6D4: _IO_file_xsputn@@GLIBC_2.2.5 (fileops.c:1196)
==27308==    by 0x48F0F1B: puts (ioputs.c:40)
==27308==    by 0x4075E6: main (tester.c:284)
==27308== 
==27308== LEAK SUMMARY:
==27308==    definitely lost: 7 bytes in 1 blocks
==27308==    indirectly lost: 0 bytes in 0 blocks
==27308==      possibly lost: 0 bytes in 0 blocks
==27308==    still reachable: 1,024 bytes in 1 blocks
==27308==         suppressed: 0 bytes in 0 blocks
==27308== 
==27308== Use --track-origins=yes to see where uninitialised values come from
==27308== For lists of detected and suppressed errors, rerun with: -s
==27308== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
./runTester.sh: line 20: 27308 Segmentation fault      (core dumped) valgrind --show-reachable=yes --leak-check=full --error-exitcode=99 ./tester
** Error durante la ejecución
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment