dbhi / qus

qemu-user-static (qus) and containers, non-invasive minimal working setups
https://dbhi.github.io/qus
Other
315 stars 17 forks source link

How to turn off core dump #16

Open SaschaJohn opened 2 years ago

SaschaJohn commented 2 years ago

Hello,

I'm running an amd64 container on Raspberry 4 (armv7l). Running a particular binary in that container raises a "Segmentation fault" which is the same running it in a native amd64 environment. Each time the "Segmentation fault" occurs, a core dump is created for that binary: Segmentation fault (core dumped) e.g. qemu_L_H0JDGCZAZ_20220817-085108_146.core

Can I configure qus in a way not to create those core dumps?

Thanks in advance

Best

Sascha

umarcor commented 3 months ago

I'm not sure about that. qemu-user-static seems to have option -d Activate log (logfile=/tmp/qemu.log), I don't know if that will avoid printing content to the terminal.

So, you can try calling the qemu-user-static binary explicitly and using that option. If that works as expected, we can then guess how to pass that option to qus for it to be used when registering the interpeter.