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

[C] memcheck_test_avro_commons_schema is failing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.11.1, 1.12.0
    • 1.12.0, 1.11.2
    • None

    Description

      Even with the fix in AVRO-3454, one of the memcheck test is failing in the release docker:
      cd lang/c && ./build.sh test

      ... (snip) ...
      
      98% tests passed, 1 tests failed out of 48
      
      Total Test time (real) =  20.64 sec
      
      The following tests FAILED:
      	  7 - memcheck_test_avro_commons_schema (Failed)
      Errors while running CTest
      make: *** [Makefile:85: test] Error 8
      

      WIth a bit more detail in the logs:
      tail -n 25 ../../build/c/tests/memcheck_test_avro_commons_schema.log

      ==1209==    by 0x10F97C: create_writer (test_avro_commons_schema.c:70)
      ==1209==    by 0x10F97C: read_data (test_avro_commons_schema.c:92)
      ==1209==    by 0x10F97C: run_tests (test_avro_commons_schema.c:113)
      ==1209==    by 0x10F97C: main (test_avro_commons_schema.c:139)
      ==1209== 
      ==1209== 172,133 (131,232 direct, 40,901 indirect) bytes in 2 blocks are definitely lost in loss record 80 of 80
      ==1209==    at 0x483B723: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==1209==    by 0x483E017: realloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==1209==    by 0x11032F: avro_file_writer_create_with_codec_fp (datafile.c:211)
      ==1209==    by 0x11032F: avro_file_writer_create_with_codec_fp (datafile.c:196)
      ==1209==    by 0x1107A5: avro_file_writer_create (datafile.c:179)
      ==1209==    by 0x10F97C: create_writer (test_avro_commons_schema.c:70)
      ==1209==    by 0x10F97C: read_data (test_avro_commons_schema.c:92)
      ==1209==    by 0x10F97C: run_tests (test_avro_commons_schema.c:113)
      ==1209==    by 0x10F97C: main (test_avro_commons_schema.c:139)
      ==1209== 
      ==1209== LEAK SUMMARY:
      ==1209==    definitely lost: 131,392 bytes in 4 blocks
      ==1209==    indirectly lost: 57,315 bytes in 146 blocks
      ==1209==      possibly lost: 0 bytes in 0 blocks
      ==1209==    still reachable: 1,888 bytes in 4 blocks
      ==1209==         suppressed: 0 bytes in 0 blocks
      ==1209== 
      ==1209== For lists of detected and suppressed errors, rerun with: -s
      ==1209== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
      

      Attachments

        Issue Links

          Activity

            People

              clesaec Christophe Le Saec
              rskraba Ryan Skraba
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m