xpack-dev-tools / qemu

A fork of the QEMU project, used to build the xPack QEMU ARM
Other
34 stars 16 forks source link

-daemonize failes with "operation not permitted" #7

Open LnnrtS opened 3 years ago

LnnrtS commented 3 years ago

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

ilg-ul commented 3 years ago

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?

LnnrtS commented 3 years ago

-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.

ilg-ul commented 3 years ago

:-(

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 commented 3 years ago

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

Any other ideas?

Fasten90 commented 2 years ago

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

ilg-ul commented 2 years ago

I suggest you try qemu-system-arm.