Jos��� Ricardo Ziviani changed bug 1166419
What Removed Added
Status REOPENED RESOLVED
Resolution --- WORKSFORME

Comment # 7 on bug 1166419 from
(In reply to Michal Suchanek from comment #6)
> It still does not change the fact that qemu cannot be used with the timeout
> command. Sure, workarounds do exist.

Yes, it can:

% timeout 15 qemu-system-x86_64 -cpu core2duo -serial file:/tmp/out.txt -smp
cores=2,threads=2,sockets=2 -m 1024 -nographic -no-reboot -kernel /boot/vmlinuz
-append console=ttyS0\ panic=-1; tail /tmp/out.txt
QEMU 6.0.0 monitor - type 'help' for more information
(qemu) [    2.223459] Call Trace:
[    2.224655]  dump_stack+0x76/0x94
[    2.224903]  panic+0x101/0x2e3
[    2.225050]  mount_block_root+0x299/0x313
[    2.225275]  prepare_namespace+0x136/0x165
[    2.225455]  kernel_init_freeable+0x227/0x24b
[    2.225632]  ? rest_init+0xb4/0xb4
[    2.225768]  kernel_init+0xa/0x10c
[    2.225902]  ret_from_fork+0x22/0x30
[    2.226865] Kernel Offset: 0x25a00000 from 0xffffffff81000000 (relocation
range: 0xffffffff80000000-0xffffffffbfffffff)

% timeout 2 qemu-system-x86_64 -cpu core2duo -serial file:/tmp/out.txt -smp
cores=2,threads=2,sockets=2 -m 1024 -nographic -no-reboot -kernel /boot/vmlinuz
-append console=ttyS0\ panic=-1; tail /tmp/out.txt
QEMU 6.0.0 monitor - type 'help' for more information
(qemu) qemu-system-x86_64: terminating on signal 15 from pid 16851 (timeout)
[    1.156527] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window]
[    1.156781] pci_bus 0000:00: resource 7 [mem 0x40000000-0xfebfffff window]
[    1.157038] pci_bus 0000:00: resource 8 [mem 0x100000000-0x17fffffff window]
[    1.157921] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[    1.158271] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[    1.158555] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[    1.159023] pci 0000:00:02.0: Video device with shadowed ROM at [mem
0x000c0000-0x000dffff]
[    1.159459] PCI: CLS 0 bytes, default 64
[    1.164080] check: Scanning for low memory corruption every 60 seconds
[    1.168011] Initialise system trusted keyrings

It's a more difficult to control than other commands and script needs some
tweak to work properly, for sure. But I don't think there's much more we can do
here.


You are receiving this mail because: