Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2026

Incorporate valgrind memory testing for C

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.9.0
    • c
    • None

    Description

      With the work done for AVRO-1167 & AVRO-766 in identifying memory leaks decided to make it a standard part of the testing framework. This issue requires https://github.com/apache/avro/pull/218 otherwise test_avro_schema and test_avro_values fail due to to avro_schema_copy calls.

      Adding valgrind tool to the docker container
      Adding valgrind to CMakeLists.txt to optionally do valgrind testing if the tool is found
      Cleaning up existing tests that were failing due to not properly cleaning up memory
      Lastly, as part of ./build.sh test for lang/c do not remove the build/c directory. The memcheck output is kept so that memory leak issues can be reviewed and addressed.

      Attachments

        1. AVRO-2026.patch
          7 kB
          John Gill

        Issue Links

          Activity

            People

              johnsgill3 John Gill
              johnsgill3 John Gill
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: