Untitled

 avatar
unknown
plain_text
3 years ago
4.9 kB
5
Indexable
[aphilibert@fedora B-MUL-100-REN-1-1-myhunter-adrien.philibert]$ valgrind ./my_hunter 
==7776== Memcheck, a memory error detector
==7776== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==7776== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info
==7776== Command: ./my_hunter
==7776== 
==7776== Conditional jump or move depends on uninitialised value(s)
==7776==    at 0x401CA4: game_function (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==    by 0x402093: is_start (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==    by 0x4013A2: home_page (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==    by 0x401E7D: main (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776== 
==7776== Use of uninitialised value of size 8
==7776==    at 0x4AD558C: sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&) (RenderTarget.cpp:241)
==7776==    by 0x4882376: sfRenderWindow_drawSprite (RenderWindow.cpp:441)
==7776==    by 0x401BF9: destroyer (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==    by 0x401D4D: game_function (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==    by 0x402093: is_start (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==    by 0x4013A2: home_page (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==    by 0x401E7D: main (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776== 
==7776== Invalid read of size 8
==7776==    at 0x4AD558C: sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&) (RenderTarget.cpp:241)
==7776==    by 0x4882376: sfRenderWindow_drawSprite (RenderWindow.cpp:441)
==7776==    by 0x401BF9: destroyer (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==    by 0x401D4D: game_function (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==    by 0x402093: is_start (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==    by 0x4013A2: home_page (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==    by 0x401E7D: main (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==7776== 
==7776== 
==7776== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==7776==  Access not within mapped region at address 0x0
==7776==    at 0x4AD558C: sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&) (RenderTarget.cpp:241)
==7776==    by 0x4882376: sfRenderWindow_drawSprite (RenderWindow.cpp:441)
==7776==    by 0x401BF9: destroyer (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==    by 0x401D4D: game_function (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==    by 0x402093: is_start (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==    by 0x4013A2: home_page (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==    by 0x401E7D: main (in /home/aphilibert/project/mul/my_hunter/B-MUL-100-REN-1-1-myhunter-adrien.philibert/my_hunter)
==7776==  If you believe this happened as a result of a stack
==7776==  overflow in your program's main thread (unlikely but
==7776==  possible), you can try to increase the size of the
==7776==  main thread stack using the --main-stacksize= flag.
==7776==  The main thread stack size used in this run was 8388608.
==7776== 
==7776== HEAP SUMMARY:
==7776==     in use at exit: 3,224,739 bytes in 13,350 blocks
==7776==   total heap usage: 61,408 allocs, 48,058 frees, 45,434,013 bytes allocated
==7776== 
==7776== LEAK SUMMARY:
==7776==    definitely lost: 384 bytes in 2 blocks
==7776==    indirectly lost: 40 bytes in 1 blocks
==7776==      possibly lost: 614,981 bytes in 3,267 blocks
==7776==    still reachable: 2,609,334 bytes in 10,080 blocks
==7776==         suppressed: 0 bytes in 0 blocks
==7776== Rerun with --leak-check=full to see details of leaked memory
==7776== 
==7776== Use --track-origins=yes to see where uninitialised values come from
==7776== For lists of detected and suppressed errors, rerun with: -s
==7776== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)
Editor is loading...