Re: [PATCH] trace/simple: Fix hang when using simpletrace with fork()

2025-02-27 Thread Eric Blake
On Wed, Feb 26, 2025 at 09:50:15AM +0100, Thomas Huth wrote: > When compiling QEMU with --enable-trace-backends=simple , the > iotest 233 is currently hanging. This happens because qemu-nbd > calls trace_init_backends() first - which causes simpletrace to > install its writer thread and the atexit(

Re: [PATCH] trace/simple: Fix hang when using simpletrace with fork()

2025-02-26 Thread Stefan Hajnoczi
On Wed, Feb 26, 2025 at 09:53:53AM +, Daniel P. Berrangé wrote: > On Wed, Feb 26, 2025 at 10:38:56AM +0100, Thomas Huth wrote: > > On 26/02/2025 10.15, Daniel P. Berrangé wrote: > > > On Wed, Feb 26, 2025 at 09:50:15AM +0100, Thomas Huth wrote: > > > > When compiling QEMU with --enable-trace-ba

Re: [PATCH] trace/simple: Fix hang when using simpletrace with fork()

2025-02-26 Thread Daniel P . Berrangé
On Wed, Feb 26, 2025 at 10:38:56AM +0100, Thomas Huth wrote: > On 26/02/2025 10.15, Daniel P. Berrangé wrote: > > On Wed, Feb 26, 2025 at 09:50:15AM +0100, Thomas Huth wrote: > > > When compiling QEMU with --enable-trace-backends=simple , the > > > iotest 233 is currently hanging. This happens beca

Re: [PATCH] trace/simple: Fix hang when using simpletrace with fork()

2025-02-26 Thread Daniel P . Berrangé
On Wed, Feb 26, 2025 at 10:29:59AM +0100, Kevin Wolf wrote: > Am 26.02.2025 um 09:50 hat Thomas Huth geschrieben: > > When compiling QEMU with --enable-trace-backends=simple , the > > iotest 233 is currently hanging. This happens because qemu-nbd > > calls trace_init_backends() first - which causes

Re: [PATCH] trace/simple: Fix hang when using simpletrace with fork()

2025-02-26 Thread Thomas Huth
On 26/02/2025 10.15, Daniel P. Berrangé wrote: On Wed, Feb 26, 2025 at 09:50:15AM +0100, Thomas Huth wrote: When compiling QEMU with --enable-trace-backends=simple , the iotest 233 is currently hanging. This happens because qemu-nbd calls trace_init_backends() first - which causes simpletrace to

Re: [PATCH] trace/simple: Fix hang when using simpletrace with fork()

2025-02-26 Thread Kevin Wolf
Am 26.02.2025 um 09:50 hat Thomas Huth geschrieben: > When compiling QEMU with --enable-trace-backends=simple , the > iotest 233 is currently hanging. This happens because qemu-nbd > calls trace_init_backends() first - which causes simpletrace to > install its writer thread and the atexit() handler

Re: [PATCH] trace/simple: Fix hang when using simpletrace with fork()

2025-02-26 Thread Daniel P . Berrangé
On Wed, Feb 26, 2025 at 09:50:15AM +0100, Thomas Huth wrote: > When compiling QEMU with --enable-trace-backends=simple , the > iotest 233 is currently hanging. This happens because qemu-nbd > calls trace_init_backends() first - which causes simpletrace to > install its writer thread and the atexit(

[PATCH] trace/simple: Fix hang when using simpletrace with fork()

2025-02-26 Thread Thomas Huth
When compiling QEMU with --enable-trace-backends=simple , the iotest 233 is currently hanging. This happens because qemu-nbd calls trace_init_backends() first - which causes simpletrace to install its writer thread and the atexit() handler - before calling fork(). But the simpletrace writer thread