Skip to content

memleak test on some builds #10715

@richsalz

Description

@richsalz

The memleak test, on some builds, seems to fail. See https://travis-ci.org/openssl/openssl/jobs/628227828 for example.

There's a subthread in PR #10689, starting around #10689 (comment), that talks about failing memleaktest But now it seems to not be a problem?

I copied the failed config line:

l ./config no-asm enable-asan enable-rc5 enable-md2 no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -D__NO_STRING_INLINES -Wno-unused-command-line-argument

Doing a make and running the test:

; make V=1 TESTS=test_memleak test
make depend && make _tests
make[1]: Entering directory '/home/rsalz/openssl/github'
make[1]: Leaving directory '/home/rsalz/openssl/github'
make[1]: Entering directory '/home/rsalz/openssl/github'
( cd test; \
  mkdir -p test-runs; \
  SRCTOP=../. \
  BLDTOP=../. \
  RESULT_D=test-runs \
  PERL="/usr/bin/perl" \
  EXE_EXT= \
  OPENSSL_ENGINES=`cd .././engines 2>/dev/null && pwd` \
  OPENSSL_MODULES=`cd .././providers 2>/dev/null && pwd` \
  /usr/bin/perl .././test/run_tests.pl test_memleak )
90-test_memleak.t .. 
1..2
/home/rsalz/openssl/github/util/shlib_wrap.sh /home/rsalz/openssl/github/test/memleaktest => 0
not ok 1 - running leak test

#   Failed test 'running leak test'
#   at ../test/recipes/90-test_memleak.t line 18.
/home/rsalz/openssl/github/util/shlib_wrap.sh /home/rsalz/openssl/github/test/memleaktest freeit => 0
ok 2 - running no leak test
# Looks like you failed 1 test of 2.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests 

Test Summary Report
-------------------
90-test_memleak.t (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=1, Tests=2,  0 wallclock secs ( 0.01 usr  0.00 sys +  0.02 cusr  0.03 csys =  0.06 CPU)
Result: FAIL
Makefile:2199: recipe for target '_tests' failed
make[1]: *** [_tests] Error 1
make[1]: Leaving directory '/home/rsalz/openssl/github'
Makefile:2197: recipe for target 'tests' failed

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