[apparmor] Memory leaks in parser/parser_regex.c (at least)

intrigeri intrigeri at debian.org
Sat Aug 29 08:56:53 UTC 2015


Steve Beattie wrote (29 Aug 2015 00:26:10 GMT) :
> On Fri, Aug 28, 2015 at 04:36:35PM +0200, intrigeri wrote:
>> It helps! With your 5 patches applied, including the two ones you've
>> sent yesterday, the build now stops at:
>> FAIL: test case failed for testcase_dmesg_rename_dest: child process exited abnormally
>> FAIL: test case failed for testcase_dmesg_link_01: child process exited abnormally
>> [...]

> The following patch should address these:

> Signed-off-by: Steve Beattie <steve at nxnw.org>
> ---
>  libraries/libapparmor/src/grammar.y |    7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)

Confirmed, thanks again!

Now I see:

make[4]: Entering directory '/tmp/buildd/apparmor-2.10/libraries/libapparmor.python2.7/swig/python'
Making check in test
make[5]: Entering directory '/tmp/buildd/apparmor-2.10/libraries/libapparmor.python2.7/swig/python/test'
make  check-TESTS
make[6]: Entering directory '/tmp/buildd/apparmor-2.10/libraries/libapparmor.python2.7/swig/python/test'
make[7]: Entering directory '/tmp/buildd/apparmor-2.10/libraries/libapparmor.python2.7/swig/python/test'
cd "../../.." && \
/bin/bash ./config.status --file="swig/python/test/test_python.py"
config.status: creating swig/python/test/test_python.py
chmod +x test_python.py
FAIL: test_python.py
Testsuite summary for 
# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
See swig/python/test/test-suite.log
Makefile:540: recipe for target 'test-suite.log' failed
make[7]: *** [test-suite.log] Error 1
make[7]: Leaving directory '/tmp/buildd/apparmor-2.10/libraries/libapparmor.python2.7/swig/python/test'
Makefile:646: recipe for target 'check-TESTS' failed
make[6]: *** [check-TESTS] Error 2
make[6]: Leaving directory '/tmp/buildd/apparmor-2.10/libraries/libapparmor.python2.7/swig/python/test'
Makefile:719: recipe for target 'check-am' failed
make[5]: *** [check-am] Error 2
make[5]: Leaving directory '/tmp/buildd/apparmor-2.10/libraries/libapparmor.python2.7/swig/python/test'
Makefile:377: recipe for target 'check-recursive' failed
make[4]: *** [check-recursive] Error 1
make[4]: Leaving directory '/tmp/buildd/apparmor-2.10/libraries/libapparmor.python2.7/swig/python'
Makefile:374: recipe for target 'check-recursive' failed
make[3]: *** [check-recursive] Error 1

... and swig/python/test/test-suite.log reads:

==13519==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
FAIL test_python.py (exit status: 1)

Can it be because the Python interpreter wasn't built with ASan?
(I was told that whenever a library is built with ASan, all reverse
build-deps must be built with ASan as well; my knowledge in this area
is basically non-existing, though, and that's just hearsay.)

What should be my next step? Skipping these specific tests and looking
for other potential problems later in the build/test process?


More information about the AppArmor mailing list