On Mon, Sep 13, 2021 at 8:05 PM Matthew Ruffell <email address hidden>
wrote:
> Test packages are now available in:
>
> https://launchpad.net/~mruffell/+archive/ubuntu/lp1943481-test
>
> Please note these test packages are NOT SUPPORTED by Canonical, and are
> for TEST PURPOSES ONLY. ONLY install in a dedicated test environment.
>
> Instructions to Install (on a Focal system):
> 1) sudo add-apt-repository ppa:mruffell/lp1943481-test
> 2) sudo apt update
> 3) sudo apt install libvirt-daemon-system libvirt-clients
> 4) sudo reboot
> 5) sudo apt-cache policy libvirt-daemon-system
> Installed: 6.0.0-0ubuntu8.13+lp1943481v20210914b2
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1943481
>
> Title:
> libvirtd crashes when creating network interface pools in
> 6.0.0-0ubuntu8.13
>
> Status in libvirt package in Ubuntu:
> New
> Status in libvirt source package in Focal:
> In Progress
>
> Bug description:
> The latest libvirtd (6.0.0-0ubuntu8.13) crashes when trying to bring
> up network pools with the stacktrace below. I tracked down the
> problem to the newly added patch (lp-1892132-Add-phys_port_name-
> support-on-virPCIGetNetName.patch). Assigning *netname =
> firstEntryName; ends up in memory corruption. Looking at the
> mainline, I changed it to the following:
>
> *netname = g_steal_pointer(&firstEntryName);
>
> or you can just do
>
> firstEntryName = NULL;
>
> Both will solve the problem.
>
>
> #0 __GI_raise (sig=sig@entry=6) at
> ../sysdeps/unix/sysv/linux/raise.c:50
> #1 0x00007f40e5d1c859 in __GI_abort () at abort.c:79
> #2 0x00007f40e5d873ee in __libc_message (action=action@entry=do_abort,
> fmt=fmt@entry=0x7f40e5eb1285 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
> #3 0x00007f40e5d8f47c in malloc_printerr (str=str@entry=0x7f40e5eb35d0
> "free(): double free detected in tcache 2") at malloc.c:5347
> #4 0x00007f40e5d910ed in _int_free (av=0x7f40c8000020,
> p=0x7f40c80079e0, have_lock=0) at malloc.c:4201
> #5 0x00007f40e61a9a4f in virFree (ptrptr=0x7f40c8003b60) at
> ../../../src/util/viralloc.c:348
> #6 0x00007f40dd0cf8b1 in networkCreateInterfacePool
> (netdef=0x7f40840187f0) at ../../../src/network/bridge_driver.c:2849
> #7 0x00007f40dd0d799c in networkStartNetworkExternal
> (obj=0x7f408400f720) at ../../../src/network/bridge_driver.c:2938
> #8 networkStartNetwork (driver=driver@entry=0x7f408400a7a0,
> obj=0x7f408400f720) at ../../../src/network/bridge_driver.c:2938
> #9 0x00007f40dd0d854d in networkCreate (net=0x7f40c8000c60) at
> ../../../src/network/bridge_driver.c:4013
> #10 0x00007f40e63fac3f in virNetworkCreate (network=network@entry=0x7f40c8000c60)
> at ../../../src/libvirt-network.c:585
> #11 0x0000560240e255d1 in remoteDispatchNetworkCreate
> (server=0x560240ea4280, msg=0x560240ee8200, args=0x7f40c8000c40,
> rerr=0x7f40e00ec9a0, client=<optimized out>) at
> ./remote/remote_daemon_dispatch_stubs.h:13570
> #12 remoteDispatchNetworkCreateHelper (server=0x560240ea4280,
> client=<optimized out>, msg=0x560240ee8200, rerr=0x7f40e00ec9a0,
> args=0x7f40c8000c40, ret=0x0) at
> ./remote/remote_daemon_dispatch_stubs.h:13549
> #13 0x00007f40e630c970 in virNetServerProgramDispatchCall
> (msg=0x560240ee8200, client=0x560240eea270, server=0x560240ea4280,
> prog=0x560240ee1520) at ../../../src/rpc/virnetserverprogram.c:430
> #14 virNetServerProgramDispatch (prog=0x560240ee1520, server=server@entry=0x560240ea4280,
> client=0x560240eea270, msg=0x560240ee8200) at
> ../../../src/rpc/virnetserverprogram.c:302
> #15 0x00007f40e6311c2c in virNetServerProcessMsg (msg=<optimized out>,
> prog=<optimized out>, client=<optimized out>, srv=0x560240ea4280) at
> ../../../src/rpc/virnetserver.c:136
> #16 virNetServerHandleJob (jobOpaque=<optimized out>,
> opaque=0x560240ea4280) at ../../../src/rpc/virnetserver.c:153
> #17 0x00007f40e62301af in virThreadPoolWorker (opaque=opaque@entry=0x560240e885f0)
> at ../../../src/util/virthreadpool.c:163
> #18 0x00007f40e622f51c in virThreadHelper (data=<optimized out>) at
> ../../../src/util/virthread.c:196
> #19 0x00007f40e5ef2609 in start_thread (arg=<optimized out>) at
> pthread_create.c:477
> #20 0x00007f40e5e19293 in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1943481/+subscriptions
>
>
Patch applied, installed and rebooted. Guest VM comes up now.
Thank you!
libvirt- daemon- system: 13+lp1943481v20 210914b2 13+lp1943481v20 210914b2 13+lp1943481v20 210914b2 500 ppa.launchpad. net/mruffell/ lp1943481- test/ubuntu dpkg/status 0.0-0ubuntu8. 13 500 us.archive. ubuntu. com/ubuntu focal-updates/main amd64 0.0-0ubuntu8. 3 500 us.archive. ubuntu. com/ubuntu focal-security/main amd64 us.archive. ubuntu. com/ubuntu focal/main amd64 Packages
Installed: 6.0.0-0ubuntu8.
Candidate: 6.0.0-0ubuntu8.
Version table:
*** 6.0.0-0ubuntu8.
500 http://
focal/main amd64 Packages
100 /var/lib/
6.
500 http://
Packages
6.
500 http://
Packages
6.0.0-0ubuntu8 500
500 http://
On Mon, Sep 13, 2021 at 8:05 PM Matthew Ruffell <email address hidden>
wrote:
> Test packages are now available in: /launchpad. net/~mruffell/ +archive/ ubuntu/ lp1943481- test lp1943481- test daemon- system libvirt-clients daemon- system 13+lp1943481v20 210914b2 /bugs.launchpad .net/bugs/ 1943481 Add-phys_ port_name- on-virPCIGetNet Name.patch) . Assigning *netname = pointer( &firstEntryName ); unix/sysv/ linux/raise. c:50 action@ entry=do_ abort, entry=0x7f40e5e b1285 "%s\n") at ../sysdeps/ posix/libc_ fatal.c: 155 entry=0x7f40e5e b35d0 0x7f40c8003b60) at ./src/util/ viralloc. c:348 terfacePool 0x7f40840187f0) at ../../. ./src/network/ bridge_ driver. c:2849 workExternal f720) at ../../. ./src/network/ bridge_ driver. c:2938 driver@ entry=0x7f40840 0a7a0, ./src/network/ bridge_ driver. c:2938 0c60) at ./src/network/ bridge_ driver. c:4013 network@ entry=0x7f40c80 00c60) ./src/libvirt- network. c:585 etworkCreate 0x560240ea4280, msg=0x560240ee8200, args=0x7f40c800 0c40, c9a0, client=<optimized out>) at remote_ daemon_ dispatch_ stubs.h: 13570 etworkCreateHel per (server= 0x560240ea4280, c9a0, 0c40, ret=0x0) at remote_ daemon_ dispatch_ stubs.h: 13549 gramDispatchCal l 8200, client= 0x560240eea270, server= 0x560240ea4280, 1520) at ../../. ./src/rpc/ virnetserverpro gram.c: 430 gramDispatch (prog=0x560240e e1520, server= server@ entry=0x560240e a4280, 0x560240eea270, msg=0x560240ee8200) at ./src/rpc/ virnetserverpro gram.c: 302 cessMsg (msg=<optimized out>, ./src/rpc/ virnetserver. c:136 dleJob (jobOpaque= <optimized out>, 0x560240ea4280) at ../../. ./src/rpc/ virnetserver. c:153 opaque@ entry=0x560240e 885f0) ./src/util/ virthreadpool. c:163 ./src/util/ virthread. c:196 create. c:477 unix/sysv/ linux/x86_ 64/clone. S:95 /bugs.launchpad .net/ubuntu/ +source/ libvirt/ +bug/1943481/ +subscriptions
>
> https:/
>
> Please note these test packages are NOT SUPPORTED by Canonical, and are
> for TEST PURPOSES ONLY. ONLY install in a dedicated test environment.
>
> Instructions to Install (on a Focal system):
> 1) sudo add-apt-repository ppa:mruffell/
> 2) sudo apt update
> 3) sudo apt install libvirt-
> 4) sudo reboot
> 5) sudo apt-cache policy libvirt-
> Installed: 6.0.0-0ubuntu8.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> libvirtd crashes when creating network interface pools in
> 6.0.0-0ubuntu8.13
>
> Status in libvirt package in Ubuntu:
> New
> Status in libvirt source package in Focal:
> In Progress
>
> Bug description:
> The latest libvirtd (6.0.0-0ubuntu8.13) crashes when trying to bring
> up network pools with the stacktrace below. I tracked down the
> problem to the newly added patch (lp-1892132-
> support-
> firstEntryName; ends up in memory corruption. Looking at the
> mainline, I changed it to the following:
>
> *netname = g_steal_
>
> or you can just do
>
> firstEntryName = NULL;
>
> Both will solve the problem.
>
>
> #0 __GI_raise (sig=sig@entry=6) at
> ../sysdeps/
> #1 0x00007f40e5d1c859 in __GI_abort () at abort.c:79
> #2 0x00007f40e5d873ee in __libc_message (action=
> fmt=fmt@
> #3 0x00007f40e5d8f47c in malloc_printerr (str=str@
> "free(): double free detected in tcache 2") at malloc.c:5347
> #4 0x00007f40e5d910ed in _int_free (av=0x7f40c8000020,
> p=0x7f40c80079e0, have_lock=0) at malloc.c:4201
> #5 0x00007f40e61a9a4f in virFree (ptrptr=
> ../../.
> #6 0x00007f40dd0cf8b1 in networkCreateIn
> (netdef=
> #7 0x00007f40dd0d799c in networkStartNet
> (obj=0x7f408400
> #8 networkStartNetwork (driver=
> obj=0x7f408400f720) at ../../.
> #9 0x00007f40dd0d854d in networkCreate (net=0x7f40c800
> ../../.
> #10 0x00007f40e63fac3f in virNetworkCreate (network=
> at ../../.
> #11 0x0000560240e255d1 in remoteDispatchN
> (server=
> rerr=0x7f40e00e
> ./remote/
> #12 remoteDispatchN
> client=<optimized out>, msg=0x560240ee8200, rerr=0x7f40e00e
> args=0x7f40c800
> ./remote/
> #13 0x00007f40e630c970 in virNetServerPro
> (msg=0x560240ee
> prog=0x560240ee
> #14 virNetServerPro
> client=
> ../../.
> #15 0x00007f40e6311c2c in virNetServerPro
> prog=<optimized out>, client=<optimized out>, srv=0x560240ea4280) at
> ../../.
> #16 virNetServerHan
> opaque=
> #17 0x00007f40e62301af in virThreadPoolWorker (opaque=
> at ../../.
> #18 0x00007f40e622f51c in virThreadHelper (data=<optimized out>) at
> ../../.
> #19 0x00007f40e5ef2609 in start_thread (arg=<optimized out>) at
> pthread_
> #20 0x00007f40e5e19293 in clone () at
> ../sysdeps/
>
> To manage notifications about this bug go to:
>
> https:/
>
>