Skip to content

Valgrind "Conditional jump or move depends on uninitialised value" #33

Description

@mingodad

When testing bin/linux/q3cpp:

valgrind bin/linux/q3cpp bg_lib.c > /dev/null
==32739== Memcheck, a memory error detector
==32739== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==32739== Using Valgrind-3.17.0 and LibVEX; rerun with -h for copyright info
==32739== Command: bin/linux/q3cpp bg_lib.c
==32739== 
==32739== Conditional jump or move depends on uninitialised value(s)
==32739==    at 0x10E9DC: substargs (macro.c:340)
==32739==    by 0x10E339: expand (macro.c:201)
==32739==    by 0x10E17A: expandrow (macro.c:164)
==32739==    by 0x10AFB5: process (cpp.c:77)
==32739==    by 0x10AE10: main (cpp.c:39)
==32739== 
==32739== 
==32739== HEAP SUMMARY:
==32739==     in use at exit: 50,801 bytes in 665 blocks
==32739==   total heap usage: 934 allocs, 269 frees, 130,682 bytes allocated
==32739== 
==32739== LEAK SUMMARY:
==32739==    definitely lost: 854 bytes in 151 blocks
==32739==    indirectly lost: 0 bytes in 0 blocks
==32739==      possibly lost: 1,396 bytes in 344 blocks
==32739==    still reachable: 48,551 bytes in 170 blocks
==32739==         suppressed: 0 bytes in 0 blocks
==32739== Rerun with --leak-check=full to see details of leaked memory
==32739== 
==32739== Use --track-origins=yes to see where uninitialised values come from
==32739== For lists of detected and suppressed errors, rerun with: -s
==32739== ERROR SUMMARY: 2 errors from 1 contexts (suppressed: 0 from 0)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions