Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- opensrf@ubuntu-2604:~/OpenSRF$ valgrind --leak-check=full /openils/bin/srfsh
- ==16162== Memcheck, a memory error detector
- ==16162== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.
- ==16162== Using Valgrind-3.26.0 and LibVEX; rerun with -h for copyright info
- ==16162== Command: /openils/bin/srfsh
- ==16162==
- ==16162== Invalid write of size 8
- ==16162== at 0x48F2017: add_history (in /usr/lib/x86_64-linux-gnu/libreadline.so.8.3)
- ==16162== by 0x48F542A: read_history_range (in /usr/lib/x86_64-linux-gnu/libreadline.so.8.3)
- ==16162== by 0x4003124: load_history (srfsh.c:314)
- ==16162== by 0x4003124: main (srfsh.c:158)
- ==16162== Address 0x8 is not stack'd, malloc'd or (recently) free'd
- ==16162==
- ==16162==
- ==16162== Process terminating with default action of signal 11 (SIGSEGV)
- ==16162== Access not within mapped region at address 0x8
- ==16162== at 0x48F2017: add_history (in /usr/lib/x86_64-linux-gnu/libreadline.so.8.3)
- ==16162== by 0x48F542A: read_history_range (in /usr/lib/x86_64-linux-gnu/libreadline.so.8.3)
- ==16162== by 0x4003124: load_history (srfsh.c:314)
- ==16162== by 0x4003124: main (srfsh.c:158)
- ==16162== If you believe this happened as a result of a stack
- ==16162== overflow in your program's main thread (unlikely but
- ==16162== possible), you can try to increase the size of the
- ==16162== main thread stack using the --main-stacksize= flag.
- ==16162== The main thread stack size used in this run was 8388608.
- ==16162==
- ==16162== HEAP SUMMARY:
- ==16162== in use at exit: 90,149 bytes in 196 blocks
- ==16162== total heap usage: 1,108 allocs, 912 frees, 222,267 bytes allocated
- ==16162==
- ==16162== 4 bytes in 1 blocks are possibly lost in loss record 1 of 94
- ==16162== at 0x4855858: malloc (vg_replace_malloc.c:447)
- ==16162== by 0x4B6424E: sdsnewlen (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
- ==16162== by 0x4B68685: redisBufferWrite (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
- ==16162== by 0x4B6BF32: redisGetReply (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
- ==16162== by 0x4B6C02F: redisvCommand (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
- ==16162== by 0x4B6C0F9: redisCommand (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
- ==16162== by 0x4887955: transport_con_connect (transport_connection.c:96)
- ==16162== by 0x487BB52: osrf_system_bootstrap_common (osrf_system.c:470)
- ==16162== by 0x4002C79: main (srfsh.c:114)
- ==16162==
- ==16162== 14 bytes in 1 blocks are possibly lost in loss record 10 of 94
- ==16162== at 0x485D07F: realloc (vg_replace_malloc.c:1804)
- ==16162== by 0x4B64F2B: sdsMakeRoomFor (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
- ==16162== by 0x4B6580B: sdscatlen (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
- ==16162== by 0x4B6B19C: redisReaderFeed (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
- ==16162== by 0x4B6B335: redisBufferRead (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
- ==16162== by 0x4B6BF61: redisGetReply (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
- ==16162== by 0x4B6C02F: redisvCommand (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
- ==16162== by 0x4B6C0F9: redisCommand (in /usr/lib/x86_64-linux-gnu/libhiredis.so.1.1.0)
- ==16162== by 0x4887955: transport_con_connect (transport_connection.c:96)
- ==16162== by 0x487BB52: osrf_system_bootstrap_common (osrf_system.c:470)
- ==16162== by 0x4002C79: main (srfsh.c:114)
- ==16162==
- ==16162== 65 (24 direct, 41 indirect) bytes in 1 blocks are definitely lost in loss record 60 of 94
- ==16162== at 0x4855858: malloc (vg_replace_malloc.c:447)
- ==16162== by 0x48F06EC: xmalloc (in /usr/lib/x86_64-linux-gnu/libreadline.so.8.3)
- ==16162== by 0x48F09BE: alloc_history_entry (in /usr/lib/x86_64-linux-gnu/libreadline.so.8.3)
- ==16162== by 0x48F2008: add_history (in /usr/lib/x86_64-linux-gnu/libreadline.so.8.3)
- ==16162== by 0x48F542A: read_history_range (in /usr/lib/x86_64-linux-gnu/libreadline.so.8.3)
- ==16162== by 0x4003124: load_history (srfsh.c:314)
- ==16162== by 0x4003124: main (srfsh.c:158)
- ==16162==
- ==16162== 4,651 (24 direct, 4,627 indirect) bytes in 1 blocks are definitely lost in loss record 93 of 94
- ==16162== at 0x4855858: malloc (vg_replace_malloc.c:447)
- ==16162== by 0x488A18F: safe_malloc (utils.c:43)
- ==16162== by 0x487EC7B: osrfConfigInit (osrfConfig.c:113)
- ==16162== by 0x487B8EE: osrf_system_bootstrap_common (osrf_system.c:375)
- ==16162== by 0x4002C79: main (srfsh.c:114)
- ==16162==
- ==16162== LEAK SUMMARY:
- ==16162== definitely lost: 48 bytes in 2 blocks
- ==16162== indirectly lost: 4,668 bytes in 62 blocks
- ==16162== possibly lost: 18 bytes in 2 blocks
- ==16162== still reachable: 85,415 bytes in 130 blocks
- ==16162== suppressed: 0 bytes in 0 blocks
- ==16162== Reachable blocks (those to which a pointer was found) are not shown.
- ==16162== To see them, rerun with: --leak-check=full --show-leak-kinds=all
- ==16162==
- ==16162== For lists of detected and suppressed errors, rerun with: -s
- ==16162== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 0 from 0)
- Segmentation fault (core dumped) valgrind --leak-check=full /openils/bin/srfsh
Advertisement
Add Comment
Please, Sign In to add comment