[Top][All Lists]

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

Re: current bash.git.devel segfaults on my code

From: Chet Ramey
Subject: Re: current bash.git.devel segfaults on my code
Date: Wed, 13 Oct 2021 09:27:33 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.2.0

On 10/12/21 9:15 PM, Alex fxmbsw7 Ratchev wrote:
could you give me maybe good urls about such to learn ( maybe not too long ones .. ) ?

You should, with a current bash devel, just be able to run

make clean
make valgrind

That disables some bash malloc wrapping functions that confuse valgrind
severely. Then just run

valgrind bash
valgrind --leak-check=full bash

and see what you get. (Assuming you have valgrind installed, of course, and
depending on what you want to find out).

If you want to try address sanitizer, make sure you have a compiler that
supports it, then run

make clean
make asan

I put the shorthand targets in for convenience. Once you build a bash with
address sanitizer support, you just have to run it and see what it reports.


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

reply via email to

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