[PATCH 0/2] vhost-user-bridge: Fix stdbuf and ASAN interaction

Yodel Eldar posted 2 patches 1 week, 6 days ago
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, Stefano Garzarella <sgarzare@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Zhao Liu <zhao1.liu@intel.com>
contrib/vhost-user-bridge/vhost-user-bridge.c     | 2 +-
tests/functional/x86_64/test_vhost_user_bridge.py | 6 ------
2 files changed, 1 insertion(+), 7 deletions(-)
[PATCH 0/2] vhost-user-bridge: Fix stdbuf and ASAN interaction
Posted by Yodel Eldar 1 week, 6 days ago
From: Yodel Eldar <yodel.eldar@yodel.dev>

Hi,

As reported by Marc-André in (1), the functional test of
vhost-user-bridge (vubr) encounters a runtime error when
vubr is built with ASAN, because the "ASan runtime does
not come first in initial library list."

Upon Michael's suggestion, this series converts the DPRINT
debug output macro in vubr to use stderr instead of stdout
for output. With that change, the functional test no longer
needs to invoke stdbuf, so it is removed.

Thanks,
Yodel

(1) https://lore.kernel.org/qemu-devel/20260906-nohmp-next-v1-2-2b21e63974f3@redhat.com/

Yodel Eldar (2):
  contrib/vhost-user-bridge: Use stderr for debug output
  tests/functional/x86_64/test_vhost_user_bridge: Eliminate stdbuf usage

 contrib/vhost-user-bridge/vhost-user-bridge.c     | 2 +-
 tests/functional/x86_64/test_vhost_user_bridge.py | 6 ------
 2 files changed, 1 insertion(+), 7 deletions(-)

-- 
2.55.0


Re: [PATCH 0/2] vhost-user-bridge: Fix stdbuf and ASAN interaction
Posted by Yodel Eldar 6 days, 6 hours ago
Hi,

On 14/09/2026 11:52, Yodel Eldar wrote:
> From: Yodel Eldar <yodel.eldar@yodel.dev>
> 
> Hi,
> 
> As reported by Marc-André in (1), the functional test of
> vhost-user-bridge (vubr) encounters a runtime error when
> vubr is built with ASAN, because the "ASan runtime does
> not come first in initial library list."
> 
> Upon Michael's suggestion, this series converts the DPRINT
> debug output macro in vubr to use stderr instead of stdout
> for output. With that change, the functional test no longer
> needs to invoke stdbuf, so it is removed.
> 
> Thanks,
> Yodel
> 
> (1) https://lore.kernel.org/qemu-devel/20260906-nohmp-next-v1-2-2b21e63974f3@redhat.com/
> 
> Yodel Eldar (2):
>    contrib/vhost-user-bridge: Use stderr for debug output
>    tests/functional/x86_64/test_vhost_user_bridge: Eliminate stdbuf usage
> 
>   contrib/vhost-user-bridge/vhost-user-bridge.c     | 2 +-
>   tests/functional/x86_64/test_vhost_user_bridge.py | 6 ------
>   2 files changed, 1 insertion(+), 7 deletions(-)
> 

Ping?

Note: Series is fully reviewed (thanks Marc-André).

Link:
https://lore.kernel.org/qemu-devel/20260914165250.88382-1-yodel.eldar@yodel.dev/

Thanks,
Yodel

Re: [PATCH 0/2] vhost-user-bridge: Fix stdbuf and ASAN interaction
Posted by Michael S. Tsirkin 6 days, 4 hours ago
On Mon, Sep 21, 2026 at 12:57:30PM -0500, Yodel Eldar wrote:
> Hi,
> 
> On 14/09/2026 11:52, Yodel Eldar wrote:
> > From: Yodel Eldar <yodel.eldar@yodel.dev>
> > 
> > Hi,
> > 
> > As reported by Marc-André in (1), the functional test of
> > vhost-user-bridge (vubr) encounters a runtime error when
> > vubr is built with ASAN, because the "ASan runtime does
> > not come first in initial library list."
> > 
> > Upon Michael's suggestion, this series converts the DPRINT
> > debug output macro in vubr to use stderr instead of stdout
> > for output. With that change, the functional test no longer
> > needs to invoke stdbuf, so it is removed.
> > 
> > Thanks,
> > Yodel
> > 
> > (1) https://lore.kernel.org/qemu-devel/20260906-nohmp-next-v1-2-2b21e63974f3@redhat.com/
> > 
> > Yodel Eldar (2):
> >    contrib/vhost-user-bridge: Use stderr for debug output
> >    tests/functional/x86_64/test_vhost_user_bridge: Eliminate stdbuf usage
> > 
> >   contrib/vhost-user-bridge/vhost-user-bridge.c     | 2 +-
> >   tests/functional/x86_64/test_vhost_user_bridge.py | 6 ------
> >   2 files changed, 1 insertion(+), 7 deletions(-)
> > 
> 
> Ping?
> 
> Note: Series is fully reviewed (thanks Marc-André).
> 
> Link:
> https://lore.kernel.org/qemu-devel/20260914165250.88382-1-yodel.eldar@yodel.dev/
> 
> Thanks,
> Yodel

Hi!
Review delayed due to lots of holidays. I'll get back on the
treadmill beginning of Oct. Sorry.
Re: [PATCH 0/2] vhost-user-bridge: Fix stdbuf and ASAN interaction
Posted by Marc-André Lureau 1 week, 6 days ago
On Mon, Sep 14, 2026 at 8:55 PM Yodel Eldar <yodel.eldar@yodel.dev> wrote:
>
> From: Yodel Eldar <yodel.eldar@yodel.dev>
>
> Hi,
>
> As reported by Marc-André in (1), the functional test of
> vhost-user-bridge (vubr) encounters a runtime error when
> vubr is built with ASAN, because the "ASan runtime does
> not come first in initial library list."
>
> Upon Michael's suggestion, this series converts the DPRINT
> debug output macro in vubr to use stderr instead of stdout
> for output. With that change, the functional test no longer
> needs to invoke stdbuf, so it is removed.
>
> Thanks,
> Yodel
>
> (1) https://lore.kernel.org/qemu-devel/20260906-nohmp-next-v1-2-2b21e63974f3@redhat.com/
>
> Yodel Eldar (2):
>   contrib/vhost-user-bridge: Use stderr for debug output
>   tests/functional/x86_64/test_vhost_user_bridge: Eliminate stdbuf usage
>
>  contrib/vhost-user-bridge/vhost-user-bridge.c     | 2 +-
>  tests/functional/x86_64/test_vhost_user_bridge.py | 6 ------
>  2 files changed, 1 insertion(+), 7 deletions(-)
>

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>

thanks

> --
> 2.55.0
>
>