Re: Docker Support

Paul Floyd via Valgrind-users <[email protected]> Tue, 5 Mar 2024 07:44:06 +0100
Newsgroups gmane.comp.debugging.valgrind
Message-ID <[email protected]>

On 04-03-24 11:42, jinesh gada wrote:
> Hi Everyone,
> 
> I am working on integrating a docker based application on a virtual 
> machine with Valgrind.
> 
> I have bind the Valgrind libraries and required folder structure with 
> the container.
> 
> But on running my app with Valgrind I'm facing an issue saying SIGILL 
> error in ld-2.3.so <http://ld-2.3.so>
> 
> Can you suggest how shall I proceed.

My basic advice is to not use Docker. I've never used it, but I have 
tried FreeBSD jails. The experience was unsatisfactory. The main problem 
is that these systems only provide lightweight virtualization. That 
means that Valgrind will detect an incorrect or incomplete environment 
and will likely not work correctly.

Full virtualization (VMware, VirtualBox) will work better. The 
virtualization will still not be the same as running directly on the 
underlying operating system but in my experience it is good enough.

A+
Paul