Re: [PATCH] tests/unit: remove block layer code from test-nested-aio-poll

2024-09-02 Thread Richard W.M. Jones
On Mon, Sep 02, 2024 at 02:03:43AM +0200, Paolo Bonzini wrote: > GCC is reporting a NULL pointer dereference when compiling aio_wait_kick() > with LTO. > > The issue is that test-nested-aio-poll.c does not call qemu_init_main_loop(). > It doesn't _need_ to because it never calls AIO_WAIT_WHILE(),

[PATCH] tests/unit: remove block layer code from test-nested-aio-poll

2024-09-01 Thread Paolo Bonzini
GCC is reporting a NULL pointer dereference when compiling aio_wait_kick() with LTO. The issue is that test-nested-aio-poll.c does not call qemu_init_main_loop(). It doesn't _need_ to because it never calls AIO_WAIT_WHILE(), but it seems that LTO does not do enough dead-code elimination to catch t