Skip to content

Invalid read in vg_replace_strmem.c:210 #38

@wanghualei2

Description

@wanghualei2

command line:Thordec crash

valgrind command line to get detail: valgrind Thordec crash

click this to get crash file.

environment:ubuntu18.04,gcc7.5,g++7.5

==3841557== Memcheck, a memory error detector
==3841557== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==3841557== Using Valgrind-3.17.0 and LibVEX; rerun with -h for copyright info
==3841557== Command: ../../software/thor-master/build/Thordec crash
==3841557== Parent PID: 229797
==3841557==
==3841557== Invalid read of size 1
==3841557== at 0x403B006: rindex (vg_replace_strmem.c:210)
==3841557== by 0x10AB71: main (maindec.c:116)
==3841557== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3841557==
==3841557==
==3841557== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==3841557== Access not within mapped region at address 0x0
==3841557== at 0x403B006: rindex (vg_replace_strmem.c:210)
==3841557== by 0x10AB71: main (maindec.c:116)
==3841557== If you believe this happened as a result of a stack
==3841557== overflow in your program's main thread (unlikely but
==3841557== possible), you can try to increase the size of the
==3841557== main thread stack using the --main-stacksize= flag.
==3841557== The main thread stack size used in this run was 8388608.
==3841557==
==3841557== HEAP SUMMARY:
==3841557== in use at exit: 552 bytes in 1 blocks
==3841557== total heap usage: 1 allocs, 0 frees, 552 bytes allocated
==3841557==
==3841557== LEAK SUMMARY:
==3841557== definitely lost: 0 bytes in 0 blocks
==3841557== indirectly lost: 0 bytes in 0 blocks
==3841557== possibly lost: 0 bytes in 0 blocks
==3841557== still reachable: 552 bytes in 1 blocks
==3841557== suppressed: 0 bytes in 0 blocks
==3841557== Rerun with --leak-check=full to see details of leaked memory
==3841557==
==3841557== For lists of detected and suppressed errors, rerun with: -s
==3841557== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions