Crash depuis cet après midi.
Salut, j'ai un crash depuis cet après midi, pourtant je n'ai pas modifié mon code depuis et ce matin ça marchait.
Voici ce que m'indique valgrind :
Code:
1 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
|
==11959== Invalid read of size 1
==11959== at 0x4C2E0F4: strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==11959== by 0x6486160: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
==11959== by 0x4523C8: odfaeg::network::Network::sendPbKey(odfaeg::network::User&) (in /home/laurent/Développement/Projets-c++/ODFAEGVIDEOTUTORIAL/bin/Debug/ODFAEGVIDEOTUTORIAL)
==11959== by 0x44F575: odfaeg::network::SrkServer::checkMessages() (in /home/laurent/Développement/Projets-c++/ODFAEGVIDEOTUTORIAL/bin/Debug/ODFAEGVIDEOTUTORIAL)
==11959== by 0x4330F1: odfaeg::core::Application::exec() (application.h:84)
==11959== by 0x432E1A: main (main.cpp:4)
==11959== Address 0xc278f50 is 0 bytes after a block of size 32 alloc'd
==11959== at 0x4C2B800: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==11959== by 0x44AA48: odfaeg::network::AES_ENC::AES_ENC() (in /home/laurent/Développement/Projets-c++/ODFAEGVIDEOTUTORIAL/bin/Debug/ODFAEGVIDEOTUTORIAL)
==11959== by 0x4312A8: _GLOBAL__sub_I_symEncPacket.cpp (in /home/laurent/Développement/Projets-c++/ODFAEGVIDEOTUTORIAL/bin/Debug/ODFAEGVIDEOTUTORIAL)
==11959== by 0x4DF14C: __libc_csu_init (in /home/laurent/Développement/Projets-c++/ODFAEGVIDEOTUTORIAL/bin/Debug/ODFAEGVIDEOTUTORIAL)
==11959== by 0x6C6FE54: (below main) (libc-start.c:246)
==11959==
==11959== Conditional jump or move depends on uninitialised value(s)
==11959== at 0x4C2E0F8: strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==11959== by 0x6486160: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
==11959== by 0x452407: odfaeg::network::Network::sendPbKey(odfaeg::network::User&) (in /home/laurent/Développement/Projets-c++/ODFAEGVIDEOTUTORIAL/bin/Debug/ODFAEGVIDEOTUTORIAL)
==11959== by 0x44F575: odfaeg::network::SrkServer::checkMessages() (in /home/laurent/Développement/Projets-c++/ODFAEGVIDEOTUTORIAL/bin/Debug/ODFAEGVIDEOTUTORIAL)
==11959== by 0x4330F1: odfaeg::core::Application::exec() (application.h:84)
==11959== by 0x432E1A: main (main.cpp:4)
==11959==
client connected!
==11959== Jump to the invalid address stated on the next line
==11959== at 0x3F800000: ???
==11959== Address 0x3f800000 is not stack'd, malloc'd or (recently) free'd
==11959==
==11959==
==11959== Process terminating with default action of signal 11 (SIGSEGV)
==11959== Access not within mapped region at address 0x3F800000
==11959== at 0x3F800000: ???
==11959== If you believe this happened as a result of a stack
==11959== overflow in your program's main thread (unlikely but
==11959== possible), you can try to increase the size of the
==11959== main thread stack using the --main-stacksize= flag.
==11959== The main thread stack size used in this run was 8388608.
==11959==
==11959== HEAP SUMMARY:
==11959== in use at exit: 2,448,804 bytes in 4,056 blocks
==11959== total heap usage: 10,013 allocs, 5,957 frees, 3,926,877 bytes allocated
==11959==
==11959== LEAK SUMMARY:
==11959== definitely lost: 2,540 bytes in 14 blocks
==11959== indirectly lost: 0 bytes in 0 blocks
==11959== possibly lost: 18,759 bytes in 254 blocks
==11959== still reachable: 2,427,505 bytes in 3,788 blocks
==11959== suppressed: 0 bytes in 0 blocks
==11959== Rerun with --leak-check=full to see details of leaked memory
==11959==
==11959== For counts of detected and suppressed errors, rerun with: -v
==11959== Use --track-origins=yes to see where uninitialised values come from
==11959== ERROR SUMMARY: 5 errors from 3 contexts (suppressed: 1 from 1)
Processus arrêté |