Opened 3 years ago
Closed 2 years ago
#63650 closed defect (fixed)
glib2: regression after update to 2.62 version with qemu tap-bridge networking
Reported by: | andriytk (Andriy Tkachuk) | Owned by: | mascguy (Christopher Nielsen) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | glib2 |
Description (last modified by andriytk (Andriy Tkachuk))
After recent update from glib2 2.58.3_1 to 2.62.6_2 - QEMU tap-bridge networking stopped working: DHCP requests and replies from guest VM are seen on bridge0 interface, but on tap0 interface there are no replies (only the requests).
The problem was reported also here - https://forum.osdev.org/viewtopic.php?f=1&t=39828.
Tried with qemu-6.1 and 5.2 versions: in both cases it works fine with glib2 @2.58.3_1 (plus required libffi @3.3_1), and fails with glib2 @2.62.6_2 (plus required libffi @3.4.2_2).
As suggested at https://forum.osdev.org/viewtopic.php?p=316408&sid=427623ba50fe49f3c5267a45f83fb1da#p316408 the problem might be related to polling the device.
Also, I noticed that qemu process always consumes 100% CPU even when the quest VM is idle. (Which supports the idea about some problem with polling the device.) Again, this is not observed with the previous glibc2 version 2.58.3_1.
See more details here on how to reproduce the problem - https://gist.github.com/andriytk/bd3def8c30cbd474490280436c779027.
Change History (9)
comment:1 Changed 3 years ago by andriytk (Andriy Tkachuk)
Description: | modified (diff) |
---|
comment:2 Changed 3 years ago by andriytk (Andriy Tkachuk)
comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | qemu tap bridge networking regression removed |
---|---|
Port: | glib2 added; glibc2 removed |
comment:4 Changed 3 years ago by mascguy (Christopher Nielsen)
Cc: | mascguy added |
---|
comment:5 Changed 2 years ago by mascguy (Christopher Nielsen)
Cc: | ryandesign added; mascguy removed |
---|---|
Owner: | set to mascguy |
Status: | new → assigned |
Summary: | Regression in glib2 after update to 2.62 version with qemu tap-bridge networking → glib2: regression after update to 2.62 version with qemu tap-bridge networking |
comment:6 Changed 2 years ago by mascguy (Christopher Nielsen)
It looks like the fix is included in upstream releases, starting with 2.72.1. So glib2-upstream
is fine.
But I'll patch glib2
and glib2-devel
. Thanks for the heads-up!
comment:7 Changed 2 years ago by Christopher Nielsen <mascguy@…>
comment:8 Changed 2 years ago by Christopher Nielsen <mascguy@…>
comment:9 Changed 2 years ago by mascguy (Christopher Nielsen)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Maybe we need to add something like this to meson.build for macOS too:
https://gitlab.gnome.org/GNOME/glib/-/blob/85969ce3dac5095d6bcdea5fa662220d01474f3c/meson.build#L151-154
Apparently, in the old version with configure.ac - the broken poll was detected automatically:
https://gitlab.gnome.org/GNOME/glib/-/blob/d80d9af9b7f1fdd25e61ae04fb660e65bf5bb5fc/configure.ac#L2353-2374
But in the new version, after they switched to meson.build - this does not work anymore, I'm afraid.