qemu icon indicating copy to clipboard operation
qemu copied to clipboard

-daemonize failes with "operation not permitted"

Open LnnrtS opened this issue 4 years ago • 6 comments

Description

emulator does not start with -daemonize option

Steps to Reproduce

works:

$ qemu-system-gnuarmeclipse -board STM32F4-Discovery -mcu STM32F407VG -image some/elf/file -S -nographic
QEMU 2.8.0-9 monitor - type 'help' for more information
(qemu)

fails:

$ qemu-system-gnuarmeclipse -board STM32F4-Discovery -mcu STM32F407VG -image some/elf/file -S -nographic -daemonize
qemu: qemu_mutex_unlock: Operation not permitted

Versions

2.8.0-9.2

Additional information

A quick search bings up this patch

LnnrtS avatar Nov 25 '20 16:11 LnnrtS

Thank you, the current code is quite old, it probably has lots of issues and needs a major update.

I never used -daemonize, what is it supposed to do?

ilg-ul avatar Nov 25 '20 16:11 ilg-ul

-daemonize should make it run in the background.

I was trying to use it for automatic testing from CTest. Without that feature I probably will need some intermediate tool to handle daemonization.

LnnrtS avatar Nov 25 '20 16:11 LnnrtS

:-(

I don't know, perhaps it can be easily fixed. You can rebuild qemu and try that patch; if it is functional I can make a new release.

ilg-ul avatar Nov 25 '20 16:11 ilg-ul

I tried the suggested patch, but it did not help.

Any other ideas?

ilg-ul avatar Dec 19 '20 20:12 ilg-ul

I get this issue at docker container, but I don't at other situation. Is it help for you somehow?

Fasten90 avatar Feb 21 '22 00:02 Fasten90

I suggest you try qemu-system-arm.

ilg-ul avatar Feb 21 '22 08:02 ilg-ul