NetBSD Problem Report #54310

From gson@gson.org  Wed Jun 19 16:17:54 2019
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B9F807A17F
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 19 Jun 2019 16:17:54 +0000 (UTC)
Message-Id: <20190619161747.AD484989E14@guava.gson.org>
Date: Wed, 19 Jun 2019 19:17:47 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: glib2-2.60.4 breaks qemu
X-Send-Pr-Version: 3.95

>Number:         54310
>Category:       pkg
>Synopsis:       glib2-2.60.4 breaks qemu
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 19 16:20:01 +0000 2019
>Closed-Date:    Tue Dec 22 22:04:22 +0000 2020
>Last-Modified:  Tue Dec 22 22:04:22 +0000 2020
>Originator:     Andreas Gustafsson
>Release:        NetBSD 8.0
>Organization:

>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

Booting the NetBSD/sparc64 install ISO under qemu recently
stopped working for me; it hangs after printing the message

  [   7.1407883] wd0 at atabus0 drive 0

My log files showed that the same qemu version hosted on the
same NetBSD version had successfully booted the same NetBSD
version before, so it was not obvious what had changed.  On
a hunch, I tried downgrading the pkgsrc glib2 package, and
things started working.  Specifically:

 glib2-2.56.2nb4   works
 glib2-2.60.4      does not work

>How-To-Repeat:

Install emulators/qemu and its dependencies including glib2-2.60.4
from pkgsrc, and run the following commands:

  wget http://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/images/NetBSD-8.99.45-sparc64.iso
  dd if=/dev/zero of=wd0 bs=1024k count=2048
  qemu-system-sparc64 -drive file=wd0,format=raw,media=disk,snapshot=off -nographic -cdrom NetBSD-8.99.45-sparc64.iso -boot d

See that the guest system hangs after printing "wd0 at atabus0 drive 0".
Type ctrl-a c quit <enter> to exit qemu.

Downgrade glib2.  For example, if you have a saved binary package:

   sudo pkg_delete -f glib2
   sudo pkg_add /usr/pkgsrc/packages/All/glib2-2.56.2nb4.tgz

Rerun the qemu-system-sparc64 command and see that the guest system
now sucessfully boots into the installer.  Quit qemu as above.

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->prlw1
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Wed, 19 Jun 2019 16:38:10 +0000
Responsible-Changed-Why:
Patrick, can you please give it a look?
(over to MAINTAINER)


From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54310 (glib2-2.60.4 breaks qemu)
Date: Wed, 19 Jun 2019 22:14:46 +0300

 The hang also happens with a qemu built from pkgsrc on Linux with the
 pkgsrc glib2-2.60.4, so the issue is not NetBSD specific.  It may or
 may not be pkgsrc specific; I don't have any system with a non-pkgsrc
 glib2-2.60.4 to test on.
 -- 
 Andreas Gustafsson, gson@gson.org

From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54310 (glib2-2.60.4 breaks qemu)
Date: Thu, 20 Jun 2019 10:57:15 +0100

 qemu seems to be sitting in a tight loop checking cpus. How on earth
 glib comes in, I don't know - I'll look at gthread...

 no obvious gnome in here:


 (gdb) thread apply all bt

 Thread 5 (LWP 1 of process 14):
 #0  0x00007f7fee4429ba in poll () from /usr/lib/libc.so.12
 #1  0x00007f7feec07db2 in poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at /usr/src/lib/libpthread/pthread_cancelstub.c:412
 #2  0x00000000006d3aa4 in os_host_main_loop_wait (timeout=1000000000) at util/main-loop.c:231
 #3  main_loop_wait (nonblocking=nonblocking@entry=0) at util/main-loop.c:512
 #4  0x00000000004ce88c in main_loop () at vl.c:1970
 #5  0x0000000000776d03 in main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4604

 Thread 4 (LWP 2 of process 14):
 #0  0x00007f7fee4ade7a in ___lwp_park60 () from /usr/lib/libc.so.12
 #1  0x00007f7feec0a84e in pthread_cond_timedwait (cond=0xf20710 <rcu_call_ready_event+48>, mutex=0xf206e0 <rcu_call_ready_event>, abstime=0x0) at /usr/src/lib/libpthread/pthread_cond.c:169
 #2  0x00000000006d69da in qemu_futex_wait (val=4294967295, ev=0xf206e0 <rcu_call_ready_event>) at util/qemu-thread-posix.c:347
 #3  qemu_event_wait (ev=ev@entry=0xf206e0 <rcu_call_ready_event>) at util/qemu-thread-posix.c:442
 #4  0x00000000006e49f3 in call_rcu_thread (opaque=opaque@entry=0x0) at util/rcu.c:261
 #5  0x00000000006d60a7 in qemu_thread_start (args=0x7f7ff7e88600) at util/qemu-thread-posix.c:502
 #6  0x00007f7feec0c1d8 in pthread__create_tramp (cookie=0x7f7ff7e2f000) at /usr/src/lib/libpthread/pthread.c:593
 #7  0x00007f7fee48f340 in ?? () from /usr/lib/libc.so.12
 #8  0x0000000000400000 in ?? ()
 #9  0x00007f7fe1200000 in ?? ()
 #10 0x0000001003a0efff in ?? ()
 #11 0x00007f7fe10000c0 in ?? ()
 #12 0x00000000001fff40 in ?? ()
 #13 0x0000000000000000 in ?? ()

 Thread 3 (LWP 3 of process 14):
 #0  0x00007f7fee48f02a in ____sigtimedwait50 () from /usr/lib/libc.so.12
 #1  0x00007f7feec08194 in sigwait (set=set@entry=0x7f7ff7b836a0, sig=sig@entry=0x7f7fe09efedc) at /usr/src/lib/libpthread/pthread_cancelstub.c:609
 #2  0x00000000006d4c8c in sigwait_compat (opaque=opaque@entry=0x7f7ff7b836a0) at util/compatfd.c:36
 #3  0x00000000006d60a7 in qemu_thread_start (args=0x7f7ff7b836c0) at util/qemu-thread-posix.c:502
 #4  0x00007f7feec0c1d8 in pthread__create_tramp (cookie=0x7f7ff7e30c00) at /usr/src/lib/libpthread/pthread.c:593
 #5  0x00007f7fee48f340 in ?? () from /usr/lib/libc.so.12
 #6  0x0000000000000000 in ?? ()

 Thread 2 (LWP 5 of process 14):
 #0  qemu_tcg_rr_cpu_thread_fn (arg=arg@entry=0x7f7ff7a0bf40) at /tmp/pkgsrc/emulators/qemu/work.x86_64/qemu-4.0.0/cpus.c:1517
 #1  0x00000000006d60a7 in qemu_thread_start (args=0x7f7ff7b7c540) at util/qemu-thread-posix.c:502
 #2  0x00007f7feec0c1d8 in pthread__create_tramp (cookie=0x7f7ff7e34400) at /usr/src/lib/libpthread/pthread.c:593
 #3  0x00007f7fee48f340 in ?? () from /usr/lib/libc.so.12
 #4  0x5641554154415355 in ?? ()
 #5  0xc48148ef8b485741 in ?? ()
 #6  0xc033e6fffffffb78 in ?? ()
 #7  0x4100000488c48148 in ?? ()
 #8  0x5b5c415d415e415f in ?? ()
 #9  0x000000000000c35d in ?? ()
 #10 0x0000000000000000 in ?? ()

 Thread 1 (LWP 5 of process 14):
 #0  qemu_tcg_rr_cpu_thread_fn (arg=arg@entry=0x7f7ff7a0bf40) at /tmp/pkgsrc/emulators/qemu/work.x86_64/qemu-4.0.0/cpus.c:1517
 #1  0x00000000006d60a7 in qemu_thread_start (args=0x7f7ff7b7c540) at util/qemu-thread-posix.c:502
 #2  0x00007f7feec0c1d8 in pthread__create_tramp (cookie=0x7f7ff7e34400) at /usr/src/lib/libpthread/pthread.c:593
 #3  0x00007f7fee48f340 in ?? () from /usr/lib/libc.so.12
 #4  0x5641554154415355 in ?? ()
 #5  0xc48148ef8b485741 in ?? ()
 #6  0xc033e6fffffffb78 in ?? ()
 #7  0x4100000488c48148 in ?? ()
 #8  0x5b5c415d415e415f in ?? ()
 #9  0x000000000000c35d in ?? ()
 #10 0x0000000000000000 in ?? ()

From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54310 (glib2-2.60.4 breaks qemu)
Date: Thu, 20 Jun 2019 13:54:08 +0000

 We're a bit on a timer due to the upcoming freeze. We should consider
 reverting the update for the branch and re-committing it right after, if
 we don't figure this out.

From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54310 (glib2-2.60.4 breaks qemu)
Date: Thu, 20 Jun 2019 15:40:36 +0100

 On Thu, Jun 20, 2019 at 01:55:01PM +0000, coypu@sdf.org wrote:
 >  We're a bit on a timer due to the upcoming freeze. We should consider
 >  reverting the update for the branch and re-committing it right after, if
 >  we don't figure this out.

 Feel free to revert...

 In the meantime, building glib _outside_ of pkgsrc gives
 FAIL glib head built with meson
 PASS glib 2.56.2 built with autotools (doesn't build with meson)

From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54310 (glib2-2.60.4 breaks qemu)
Date: Thu, 20 Jun 2019 16:09:05 +0100

 Bissection now looks possible:

  PASS glib 2.58.3 built with meson
  FAIL glib 2.59.3 built with meson

From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54310 (glib2-2.60.4 breaks qemu)
Date: Thu, 20 Jun 2019 16:51:27 +0100

 A new failure mode appeared at commit 96fafcfe92d4c6936c5f328864eea51cdeea1df7 

 [   7.1735423] wd0 at atabus0 drive 0
 [   7.1944699] panic: wdc_exec_command: polled command not done
 [   7.2138001] cpu0: Begin traceback...
 [   7.2138001] cpu0: End traceback...
 Stopped in pid 0.18 (system) at netbsd:cpu_Debugger+0x4:        nop
 db{0}> bt
 panic(19773a8, 1003e48c0, ff070000000001, 100202e88, 1003fd008, 1004340e0) at ne
 tbsd:panic+0x24
 wdc_exec_command(1003fd008, 1004340e0, fffffffffffffff8, 1, 0, 1003ee808) at net
 bsd:wdc_exec_command+0x104
 ata_get_params(1003fd008, 19, 12594daa8, 1003ee808, 2, 1004340e0) at netbsd:ata_
 get_params+0xc8
 wdc_drvprobe(1003ee808, 1c61ef0, 1003ee008, 1003e3718, 0, 0) at netbsd:wdc_drvpr
 obe+0x298
 atabusconfig(10022e2e8, 1003e48c0, ff070000000001, 197a000, 1003ee808, 0) at net
 bsd:atabusconfig+0x40
 atabus_thread(10022e2e8, a000, 100202e88, 1003e48c0, 0, 1003ee808) at netbsd:ata
 bus_thread+0x88
 lwp_trampoline(ffd0d904, 113f38, 117220, 1, ffe92fb8, 0) at netbsd:lwp_trampolin
 e+0x8

 rather than hanging or succeeding.

 I'll take it as a FAIL

From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54310 (glib2-2.60.4 breaks qemu)
Date: Thu, 20 Jun 2019 17:23:37 +0100

 On Thu, Jun 20, 2019 at 03:55:01PM +0000, Patrick Welche wrote:
 >  A new failure mode appeared at commit 96fafcfe92d4c6936c5f328864eea51cdeea1df7 

 Bisection appears to be a red herring:

 $ git bisect good
 96fafcfe92d4c6936c5f328864eea51cdeea1df7 is the first bad commit
 commit 96fafcfe92d4c6936c5f328864eea51cdeea1df7
 Author: Xavier Claessens <xavier.claessens@collabora.com>
 Date:   Wed Sep 19 11:53:07 2018 -0400

     Meson: Fix missing files when installing tests

     Closes #1527

  gio/tests/gdbus-object-manager-example/meson.build |  5 +--
  gio/tests/meson.build                              | 37 ++++++++++++++++++----
  gio/tests/modules/meson.build                      | 14 ++++----
  glib/tests/meson.build                             | 15 +++++++++
  4 files changed, 57 insertions(+), 14 deletions(-)

 I'll try again tomorrow, counting 96fafcfe92d4 as a success.

From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54310 (glib2-2.60.4 breaks qemu)
Date: Fri, 21 Jun 2019 09:43:52 +0100

 The culprit is:

 GHashTable improvements
 https://gitlab.gnome.org/GNOME/glib/merge_requests/208

 commit efda2be302910559fe29b7528488506b14285ea5 (HEAD)
 Merge: 0b45ddc55 0600dd322
 Author: Philip Withnall <philip@tecnocode.co.uk>
 Date:   Wed Oct 10 23:01:51 2018 +0000

     Merge branch 'ghash-hpj-2018' into 'master'

     GHashTable improvements

     See merge request GNOME/glib!208

From: "Patrick Welche" <prlw1@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54310 CVS commit: pkgsrc/devel/glib2
Date: Fri, 21 Jun 2019 20:21:00 +0000

 Module Name:	pkgsrc
 Committed By:	prlw1
 Date:		Fri Jun 21 20:21:00 UTC 2019

 Modified Files:
 	pkgsrc/devel/glib2: Makefile distinfo
 Added Files:
 	pkgsrc/devel/glib2/patches: patch-gio_tests_gdbus-export.c
 	    patch-glib_ghash.c patch-glib_tests_hash.c

 Log Message:
 Revert GHashTable improvements
 https://gitlab.gnome.org/GNOME/glib/merge_requests/208

 to fix PR pkg/54310

 For the record, the patch was created with:
 git checkout -f 2.60.4
 git revert --no-edit 86c6f7e2b..3bed8a13b
 git revert --no-edit 75f8ec1df9b48b0c3a13a9125f2c7d7c5adf5159
 git revert --no-edit 603fb5958..d3074a748
 git revert --no-edit 0b45ddc55..0600dd322
 git diff 2.60.4


 To generate a diff of this commit:
 cvs rdiff -u -r1.253 -r1.254 pkgsrc/devel/glib2/Makefile
 cvs rdiff -u -r1.247 -r1.248 pkgsrc/devel/glib2/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/devel/glib2/patches/patch-gio_tests_gdbus-export.c \
     pkgsrc/devel/glib2/patches/patch-glib_ghash.c \
     pkgsrc/devel/glib2/patches/patch-glib_tests_hash.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: PR/54310 CVS commit: pkgsrc/devel/glib2
Date: Mon, 24 Jun 2019 21:41:37 +0300

 Patrick Welche wrote:
 >  Revert GHashTable improvements
 >  https://gitlab.gnome.org/GNOME/glib/merge_requests/208
 >  
 >  to fix PR pkg/54310

 Thank you, this fixes the qemu/sparc64 problem for me.

 Has this been, or should it be, reported upstream?  Perhaps even to
 both of glib and qemu, because it's not entirely clear which one is at
 fault, and even if qemu is not at fault, they should be made aware
 that they are impacted.
 -- 
 Andreas Gustafsson, gson@gson.org

From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: PR/54310 CVS commit: pkgsrc/devel/glib2
Date: Tue, 25 Jun 2019 09:49:20 +0100

 On Mon, Jun 24, 2019 at 06:45:01PM +0000, Andreas Gustafsson wrote:
 >  Thank you, this fixes the qemu/sparc64 problem for me.

 Great!

 >  Has this been, or should it be, reported upstream?  Perhaps even to
 >  both of glib and qemu, because it's not entirely clear which one is at
 >  fault, and even if qemu is not at fault, they should be made aware
 >  that they are impacted.

 That is still on the todo list - worrying about size_t now...

State-Changed-From-To: open->closed
State-Changed-By: prlw1@NetBSD.org
State-Changed-When: Thu, 01 Aug 2019 15:47:15 +0000
State-Changed-Why:
Finally mentioned upstream:
https://bugs.launchpad.net/qemu/+bug/1838658


State-Changed-From-To: closed->open
State-Changed-By: martin@NetBSD.org
State-Changed-When: Sun, 22 Dec 2019 12:09:12 +0000
State-Changed-Why:
Problem seems to be back with latest glib


From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54310 (glib2-2.60.4 breaks qemu)
Date: Mon, 30 Dec 2019 11:38:18 +0200

 martin@NetBSD.org wrote:
 > Problem seems to be back with latest glib

 Confirmed using qemu-4.1.0nb2:

   qemu-4.1.0nb2 + glib2-2.60.6 works
   qemu-4.1.0nb2 + glib2-2.62.3 hangs

 With qemu 4.2.0, the situation is different - it hangs regardless of
 glib version:

   qemu-4.2.0 + glib2-2.60.6 hangs
   qemu-4.2.0 + glib2-2.62.3 hangs

 -- 
 Andreas Gustafsson, gson@gson.org

From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54310 (glib2-2.60.4 breaks qemu)
Date: Mon, 30 Dec 2019 10:58:55 +0000

 Just adding to the list:

 >  With qemu 4.2.0, the situation is different - it hangs regardless of
 >  glib version:

      qemu-4.2.0 + glib2-2.56.2nb4              hangs
 >    qemu-4.2.0 + glib2-2.60.6                 hangs
 >    qemu-4.2.0 + glib2-2.62.3                 hangs
      qemu-4.2.0 + glib2-2.62.4 + ghash.c patch hangs

 where ghash.c patch was generated with

   git checkout -f 2.62.4
   git revert --no-edit 86c6f7e2b..3bed8a13b 
   git revert --no-edit 75f8ec1df9b48b0c3a13a9125f2c7d7c5adf5159
   git revert --no-edit 603fb5958..d3074a748 
   git revert --no-edit 6cb6b418bf0935cdd40bbc283653440abae356b6
   git revert --no-edit e9f57495c6f614be2da92bad2d0b17f93ee80974
   git revert --no-edit 0b45ddc55..0600dd322  
   git diff 2.62.4                              

Responsible-Changed-From-To: prlw1->pkg-manager
Responsible-Changed-By: prlw1@NetBSD.org
Responsible-Changed-When: Mon, 04 May 2020 16:10:51 +0000
Responsible-Changed-Why:
Probably not a glib bug


From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54310 (glib2-2.60.4 breaks qemu)
Date: Mon, 4 May 2020 18:39:20 +0100

 Reproduced with qemu 5.0.0 NetBSD-9.99.56-sparc64.iso on NetBSD-9.99.59/amd64.

From: Harold Gutch <logix@foobar.franken.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/54310 (glib2-2.60.4 breaks qemu)
Date: Thu, 8 Oct 2020 08:59:09 +0200

 This might actually be a qemu bug that only started manifesting itself
 with more recent Qemu and/or glib versions.

 Can you try this change to Qemu?  I've only tested it with a FreeBSD
 host, but that hangs at the same place and I haven't had the issue
 anymore since applying this diff.  However, I haven't done extensive
 testing with different glib versions.


 --- qemu-5.0.0/hw/pci-host/sabre.c.orig 2020-04-28 18:49:24.000000000 +0200
 +++ qemu-5.0.0/hw/pci-host/sabre.c      2020-10-07 14:13:06.759614000 +0200
 @@ -396,7 +396,7 @@
                                       pci_sabre_set_irq, pci_sabre_map_irq, s,
                                       &s->pci_mmio,
                                       &s->pci_ioport,
 -                                     0, 32, TYPE_PCI_BUS);
 +                                     0, 64, TYPE_PCI_BUS);

      pci_create_simple(phb->bus, 0, TYPE_SABRE_PCI_DEVICE);


 cheers,
   Harold

From: Andreas Gustafsson <gson@gson.org>
To: Harold Gutch <logix@foobar.franken.de>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/54310 (glib2-2.60.4 breaks qemu)
Date: Thu, 8 Oct 2020 19:48:21 +0300

 Harold Gutch wrote:
 > This might actually be a qemu bug that only started manifesting itself
 > with more recent Qemu and/or glib versions.
 > 
 > Can you try this change to Qemu?  I've only tested it with a FreeBSD
 > host, but that hangs at the same place and I haven't had the issue
 > anymore since applying this diff.  However, I haven't done extensive
 > testing with different glib versions.

 Your patch works for me.  I first tested booting NetBSD-current/sparc64 of
 source date 2020.10.07.19.53.32 under an unmodified pkgsrc qemu-5.1.0nb6,
 and it failed to boot.  I then applied the patch and rebuilt qemu, and
 it booted successfully.  Installation still fails due to PR 54810, but
 that's to be expected.

 Can you submit the patch to the QEMU project?
 -- 
 Andreas Gustafsson, gson@gson.org

From: Harold Gutch <logix@foobar.franken.de>
To: Andreas Gustafsson <gson@gson.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/54310 (glib2-2.60.4 breaks qemu)
Date: Thu, 8 Oct 2020 23:04:52 +0200

 On Thu, Oct 08, 2020 at 07:48:21PM +0300, Andreas Gustafsson wrote:
 > Harold Gutch wrote:
 > > This might actually be a qemu bug that only started manifesting itself
 > > with more recent Qemu and/or glib versions.
 > > 
 > > Can you try this change to Qemu?  I've only tested it with a FreeBSD
 > > host, but that hangs at the same place and I haven't had the issue
 > > anymore since applying this diff.  However, I haven't done extensive
 > > testing with different glib versions.
 > 
 > Your patch works for me.  I first tested booting NetBSD-current/sparc64 of
 > source date 2020.10.07.19.53.32 under an unmodified pkgsrc qemu-5.1.0nb6,
 > and it failed to boot.  I then applied the patch and rebuilt qemu, and
 > it booted successfully.  Installation still fails due to PR 54810, but
 > that's to be expected.

 Very nice, I'm happy to hear that!


 > Can you submit the patch to the QEMU project?

 I reached out to Mark Cave-Ayland from QEMU yesterday but haven't
 heard back yet.  I'd like to wait a bit if he can offer some insight,
 but otherwise I can open a bug report with QEMU in a couple of days.


   Harold

From: Andreas Gustafsson <gson@gson.org>
To: Harold Gutch <logix@foobar.franken.de>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/54310 (glib2-2.60.4 breaks qemu)
Date: Fri, 9 Oct 2020 09:49:22 +0300

 Harold Gutch wrote:
 > > Can you submit the patch to the QEMU project?
 > 
 > I reached out to Mark Cave-Ayland from QEMU yesterday but haven't
 > heard back yet.  I'd like to wait a bit if he can offer some insight,
 > but otherwise I can open a bug report with QEMU in a couple of days.

 Thank you.  Please note that there already is a qemu bug report:

   https://bugs.launchpad.net/qemu/+bug/1838658

 -- 
 Andreas Gustafsson, gson@gson.org

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54310 CVS commit: pkgsrc/emulators/qemu
Date: Sat, 10 Oct 2020 16:29:21 +0000

 Module Name:	pkgsrc
 Committed By:	martin
 Date:		Sat Oct 10 16:29:21 UTC 2020

 Modified Files:
 	pkgsrc/emulators/qemu: Makefile distinfo
 Added Files:
 	pkgsrc/emulators/qemu/patches: patch-hw_pci-host_sabre.c

 Log Message:
 PR 54310: fix out of bounds memory write, analyzed and fix provided
 by Harold Gutch. Already reported upstream.
 Bump pkg revision.


 To generate a diff of this commit:
 cvs rdiff -u -r1.253 -r1.254 pkgsrc/emulators/qemu/Makefile
 cvs rdiff -u -r1.164 -r1.165 pkgsrc/emulators/qemu/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/emulators/qemu/patches/patch-hw_pci-host_sabre.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: prlw1@NetBSD.org
State-Changed-When: Tue, 22 Dec 2020 22:04:22 +0000
State-Changed-Why:
Fixed by Harold Gutch, committed upstream in
https://github.com/qemu/qemu/commit/ef905eff421c5a06a01
and released in QEMU v5.2.0


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.