chrissharp123

Untitled

Aug 31st, 2026
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.13 KB | None | 0 0
  1. opensrf@ubuntu-2604:~/OpenSRF$ valgrind --leak-check=full /openils/bin/srfsh
  2. ==16162== Memcheck, a memory error detector
  3. ==16162== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.
  4. ==16162== Using Valgrind-3.26.0 and LibVEX; rerun with -h for copyright info
  5. ==16162== Command: /openils/bin/srfsh
  6. ==16162==
  7. ==16162== Invalid write of size 8
  8. ==16162== at 0x48F2017: add_history (in /usr/lib/x86_64-linux-gnu/libreadline.so.8.3)
  9. ==16162== by 0x48F542A: read_history_range (in /usr/lib/x86_64-linux-gnu/libreadline.so.8.3)
  10. ==16162== by 0x4003124: load_history (srfsh.c:314)
  11. ==16162== by 0x4003124: main (srfsh.c:158)
  12. ==16162== Address 0x8 is not stack'd, malloc'd or (recently) free'd
  13. ==16162==
  14. ==16162==
  15. ==16162== Process terminating with default action of signal 11 (SIGSEGV)
  16. ==16162== Access not within mapped region at address 0x8
  17. ==16162== at 0x48F2017: add_history (in /usr/lib/x86_64-linux-gnu/libreadline.so.8.3)
  18. ==16162== by 0x48F542A: read_history_range (in /usr/lib/x86_64-linux-gnu/libreadline.so.8.3)
  19. ==16162== by 0x4003124: load_history (srfsh.c:314)
  20. ==16162== by 0x4003124: main (srfsh.c:158)
  21. ==16162== If you believe this happened as a result of a stack
  22. ==16162== overflow in your program's main thread (unlikely but
  23. ==16162== possible), you can try to increase the size of the
  24. ==16162== main thread stack using the --main-stacksize= flag.
  25. ==16162== The main thread stack size used in this run was 8388608.
  26. ==16162==
  27. ==16162== HEAP SUMMARY:
  28. ==16162== in use at exit: 90,149 bytes in 196 blocks
  29. ==16162== total heap usage: 1,108 allocs, 912 frees, 222,267 bytes allocated
  30. ==16162==
  31. ==16162== 4 bytes in 1 blocks are possibly lost in loss record 1 of 94
  32. ==16162== at 0x4855858: malloc (vg_replace_malloc.c:447)
  33. ==16162== by 0x4B6424E: sdsnewlen (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
  34. ==16162== by 0x4B68685: redisBufferWrite (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
  35. ==16162== by 0x4B6BF32: redisGetReply (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
  36. ==16162== by 0x4B6C02F: redisvCommand (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
  37. ==16162== by 0x4B6C0F9: redisCommand (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
  38. ==16162== by 0x4887955: transport_con_connect (transport_connection.c:96)
  39. ==16162== by 0x487BB52: osrf_system_bootstrap_common (osrf_system.c:470)
  40. ==16162== by 0x4002C79: main (srfsh.c:114)
  41. ==16162==
  42. ==16162== 14 bytes in 1 blocks are possibly lost in loss record 10 of 94
  43. ==16162== at 0x485D07F: realloc (vg_replace_malloc.c:1804)
  44. ==16162== by 0x4B64F2B: sdsMakeRoomFor (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
  45. ==16162== by 0x4B6580B: sdscatlen (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
  46. ==16162== by 0x4B6B19C: redisReaderFeed (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
  47. ==16162== by 0x4B6B335: redisBufferRead (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
  48. ==16162== by 0x4B6BF61: redisGetReply (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
  49. ==16162== by 0x4B6C02F: redisvCommand (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
  50. ==16162== by 0x4B6C0F9: redisCommand (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
  51. ==16162== by 0x4887955: transport_con_connect (transport_connection.c:96)
  52. ==16162== by 0x487BB52: osrf_system_bootstrap_common (osrf_system.c:470)
  53. ==16162== by 0x4002C79: main (srfsh.c:114)
  54. ==16162==
  55. ==16162== 65 (24 direct, 41 indirect) bytes in 1 blocks are definitely lost in loss record 60 of 94
  56. ==16162== at 0x4855858: malloc (vg_replace_malloc.c:447)
  57. ==16162== by 0x48F06EC: xmalloc (in /usr/lib/x86_64-linux-gnu/libreadline.so.8.3)
  58. ==16162== by 0x48F09BE: alloc_history_entry (in /usr/lib/x86_64-linux-gnu/libreadline.so.8.3)
  59. ==16162== by 0x48F2008: add_history (in /usr/lib/x86_64-linux-gnu/libreadline.so.8.3)
  60. ==16162== by 0x48F542A: read_history_range (in /usr/lib/x86_64-linux-gnu/libreadline.so.8.3)
  61. ==16162== by 0x4003124: load_history (srfsh.c:314)
  62. ==16162== by 0x4003124: main (srfsh.c:158)
  63. ==16162==
  64. ==16162== 4,651 (24 direct, 4,627 indirect) bytes in 1 blocks are definitely lost in loss record 93 of 94
  65. ==16162== at 0x4855858: malloc (vg_replace_malloc.c:447)
  66. ==16162== by 0x488A18F: safe_malloc (utils.c:43)
  67. ==16162== by 0x487EC7B: osrfConfigInit (osrfConfig.c:113)
  68. ==16162== by 0x487B8EE: osrf_system_bootstrap_common (osrf_system.c:375)
  69. ==16162== by 0x4002C79: main (srfsh.c:114)
  70. ==16162==
  71. ==16162== LEAK SUMMARY:
  72. ==16162== definitely lost: 48 bytes in 2 blocks
  73. ==16162== indirectly lost: 4,668 bytes in 62 blocks
  74. ==16162== possibly lost: 18 bytes in 2 blocks
  75. ==16162== still reachable: 85,415 bytes in 130 blocks
  76. ==16162== suppressed: 0 bytes in 0 blocks
  77. ==16162== Reachable blocks (those to which a pointer was found) are not shown.
  78. ==16162== To see them, rerun with: --leak-check=full --show-leak-kinds=all
  79. ==16162==
  80. ==16162== For lists of detected and suppressed errors, rerun with: -s
  81. ==16162== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 0 from 0)
  82. Segmentation fault (core dumped) valgrind --leak-check=full /openils/bin/srfsh
  83.  
Advertisement
Add Comment
Please, Sign In to add comment