help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Cleanup resources on shell exit


From: Chet Ramey
Subject: Re: [Help-bash] Cleanup resources on shell exit
Date: Mon, 13 May 2019 14:24:50 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 5/7/19 1:40 AM, Jeffrey Walton wrote:

> When I attempt to use LD_PRELOAD Bash is producing findings that are
> tainting the tests. Sometimes the tests fail to run, and other times
> the tests run but report results from Bash. For example, this should
> build and install OpenSSL and its dependencies with Asan, and then run
> the self tests:
> 
>     LD_PRELOAD=/usr/lib64/libasan.so.5 INSTX_ASAN=1 \
>         INSTX_PREFIX=/var/sanitize ./build-openssl.sh
> 
> Each subshell in the script generates one of these:
> 
> =================================================================
> ==11296==ERROR: LeakSanitizer: detected memory leaks
> 
> Direct leak of 23 byte(s) in 1 object(s) allocated from:
>     #0 0x7f93594ddc08 in __interceptor_malloc 
> (/usr/lib64/libasan.so.5+0xefc08)
>     #1 0x564763da8341 in xmalloc (/usr/bin/bash+0x8a341)

If you can isolate that to a smaller reproducer, I will be glad to see
if it still exists in bash-5.0.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]