Guest User

Untitled

a guest
Oct 1st, 2023
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.46 KB | None | 0 0
  1. $ valgrind linuxcncrsh -- -ini /home/user/linuxcnc/configs/test1_client/test1.ini
  2. ==109918== Memcheck, a memory error detector
  3. ==109918== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
  4. ==109918== Using Valgrind-3.21.0 and LibVEX; rerun with -h for copyright info
  5. ==109918== Command: linuxcncrsh -- -ini /home/user/linuxcnc/configs/test1_client/test1.ini
  6. ==109918==
  7. Connected to foo
  8. ==109918== Thread 2:
  9. ==109918== Invalid read of size 1
  10. ==109918== at 0x484B0B5: rawmemchr (vg_replace_strmem.c:1566)
  11. ==109918== by 0x4C624B1: _IO_str_init_static_internal (in /usr/lib64/libc.so.6)
  12. ==109918== by 0x4C311D5: __isoc99_sscanf (in /usr/lib64/libc.so.6)
  13. ==109918== by 0x10EC97: getSpindle (emcrsh.cc:1630)
  14. ==109918== by 0x10EC97: commandGet(connectionRecType*) (emcrsh.cc:2398)
  15. ==109918== by 0x111C5F: parseCommand(connectionRecType*) (emcrsh.cc:2716)
  16. ==109918== by 0x111E3D: readClient(void*) (emcrsh.cc:2787)
  17. ==109918== by 0x4C66DAB: start_thread (in /usr/lib64/libc.so.6)
  18. ==109918== by 0x4CDFA3F: clone (in /usr/lib64/libc.so.6)
  19. ==109918== Address 0x0 is not stack'd, malloc'd or (recently) free'd
  20. ==109918==
  21. ==109918==
  22. ==109918== Process terminating with default action of signal 11 (SIGSEGV)
  23. ==109918== Access not within mapped region at address 0x0
  24. ==109918== at 0x484B0B5: rawmemchr (vg_replace_strmem.c:1566)
  25. ==109918== by 0x4C624B1: _IO_str_init_static_internal (in /usr/lib64/libc.so.6)
  26. ==109918== by 0x4C311D5: __isoc99_sscanf (in /usr/lib64/libc.so.6)
  27. ==109918== by 0x10EC97: getSpindle (emcrsh.cc:1630)
  28. ==109918== by 0x10EC97: commandGet(connectionRecType*) (emcrsh.cc:2398)
  29. ==109918== by 0x111C5F: parseCommand(connectionRecType*) (emcrsh.cc:2716)
  30. ==109918== by 0x111E3D: readClient(void*) (emcrsh.cc:2787)
  31. ==109918== by 0x4C66DAB: start_thread (in /usr/lib64/libc.so.6)
  32. ==109918== by 0x4CDFA3F: clone (in /usr/lib64/libc.so.6)
  33. ==109918== If you believe this happened as a result of a stack
  34. ==109918== overflow in your program's main thread (unlikely but
  35. ==109918== possible), you can try to increase the size of the
  36. ==109918== main thread stack using the --main-stacksize= flag.
  37. ==109918== The main thread stack size used in this run was 8388608.
  38. ==109918==
  39. ==109918== HEAP SUMMARY:
  40. ==109918== in use at exit: 682,696 bytes in 62 blocks
  41. ==109918== total heap usage: 76 allocs, 14 frees, 697,514 bytes allocated
  42. ==109918==
  43. ==109918== LEAK SUMMARY:
  44. ==109918== definitely lost: 8 bytes in 1 blocks
  45. ==109918== indirectly lost: 0 bytes in 0 blocks
  46. ==109918== possibly lost: 304 bytes in 1 blocks
  47. ==109918== still reachable: 682,384 bytes in 60 blocks
  48. ==109918== suppressed: 0 bytes in 0 blocks
  49. ==109918== Rerun with --leak-check=full to see details of leaked memory
Advertisement
Add Comment
Please, Sign In to add comment