[Bug 1922010] Re: [Ubuntu 21.04] IBM Z go binary crashes under Qemu
Hi Andreas, yes, that is what we believe, too - thx for confirming. I'll change the focal entry to Invalid and overall close this bug as Fix Released. ** Changed in: qemu (Ubuntu Focal) Status: Incomplete => Invalid ** Changed in: ubuntu-z-systems Status: Triaged => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1922010 Title: [Ubuntu 21.04] IBM Z go binary crashes under Qemu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1922010/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1922010] Re: [Ubuntu 21.04] IBM Z go binary crashes under Qemu
This bug was fixed in the package qemu - 1:5.2+dfsg-9ubuntu2 --- qemu (1:5.2+dfsg-9ubuntu2) hirsute; urgency=medium * d/p/u/lp-1922010-linux-user-s390x-Use-the-guest-pointer-for-the-sigre.patch: fix go in qemu-s390x-static (LP: #1922010) -- Christian Ehrhardt Wed, 31 Mar 2021 10:01:40 +0200 ** Changed in: qemu (Ubuntu Hirsute) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1922010 Title: [Ubuntu 21.04] IBM Z go binary crashes under Qemu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1922010/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1922010] Re: [Ubuntu 21.04] IBM Z go binary crashes under Qemu
Since it is upstream, can be reproduced (by you more easily than me) it makes sense. I got no issues with the PPA running other things and a review on the MP. So I uploaded this to Hirsute hoping that it will still slip in before release. But looking for an SRU I wonder how real the case is if it is so complex to trigger. It only affects groovy users (not happening on Focal as you said) - so the "can't upgrade from an LTS" argument does not apply here either. So for now I'd think the SRUs are a "Won't Fix", but I can be convinced if you think it really is important. If you then would have simpler or more use cases to make that argument that would be helpful to later also convince the SRU Team. ** Changed in: qemu (Ubuntu Groovy) Status: Triaged => Won't Fix ** Changed in: qemu (Ubuntu Hirsute) Status: Triaged => In Progress ** Changed in: qemu (Ubuntu Hirsute) Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1922010 Title: [Ubuntu 21.04] IBM Z go binary crashes under Qemu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1922010/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1922010] Re: [Ubuntu 21.04] IBM Z go binary crashes under Qemu
** Merge proposal linked: https://code.launchpad.net/~paelzer/ubuntu/+source/qemu/+git/qemu/+merge/400680 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1922010 Title: [Ubuntu 21.04] IBM Z go binary crashes under Qemu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1922010/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1922010] Re: [Ubuntu 21.04] IBM Z go binary crashes under Qemu
Thanks Andreas, not easy to use on a system not allowed to reach most of the outside (like registry.fedoraproject.org), but convincing and complete - thanks! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1922010 Title: [Ubuntu 21.04] IBM Z go binary crashes under Qemu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1922010/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1922010] Re: [Ubuntu 21.04] IBM Z go binary crashes under Qemu
I tried to use it the same way I'd do arm@x86 but that failed. Maybe you can share what environment you used bfore I start wasting time to reproduce this. And OTOH if this really only hits such a case it might be too edge-case for an SRU anyway. Then I'd even more appreciate a fast response to get it at least into Hirsute before it fully closes. # not working WIP repro state $ sudo su - $ apt install qemu-user-static debootstrap schroot $ sudo qemu-debootstrap --arch=s390x hirsute s390x-ubuntu $ cat > /etc/schroot/chroot.d/s390x-ubuntu << EOF [s390x-ubuntu] type=directory description=Ubuntu 21.04 Hirsute (s390x) directory=$(pwd)/s390x-ubuntu root-users=$(whoami) root-groups=$(whoami) users=$(whoami) groups=$(whoami) EOF $ schroot -c s390x-ubuntu Obviously, if you'd have any static executable we could throw at qemu- s390x-static that would simplify things a lot. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1922010 Title: [Ubuntu 21.04] IBM Z go binary crashes under Qemu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1922010/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1922010] Re: [Ubuntu 21.04] IBM Z go binary crashes under Qemu
Finally - how exactly would the bad case crash look like? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1922010 Title: [Ubuntu 21.04] IBM Z go binary crashes under Qemu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1922010/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1922010] Re: [Ubuntu 21.04] IBM Z go binary crashes under Qemu
Hmm, no I get the same output with the new qemu version. Direct /usr/bin/go works fine I did use qemu-s390x-static on s390x, it didn't have to do a lot of emulation. Is this only a problem to "real" emulation through qemu-user-static e.g. when using qemu-s390x-static on x86? If so which environment/debootstrap/... did you use to have the s390x go that you execute? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1922010 Title: [Ubuntu 21.04] IBM Z go binary crashes under Qemu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1922010/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1922010] Re: [Ubuntu 21.04] IBM Z go binary crashes under Qemu
Reproduced using go/qemu from the Archive in 21.04. (I hope that is the error you meant) $ apt install qemu-user-static $ apt install golang-go $ qemu-s390x-static /usr/bin/go fatal error: cas5 runtime: panic before malloc heap initialized runtime stack: runtime.throw(0x61427a, 0x4) /usr/lib/go-1.16/src/runtime/panic.go:1117 +0x70 fp=0x4000800690 sp=0x4000800668 pc=0x4a5d0 runtime.check() /usr/lib/go-1.16/src/runtime/runtime1.go:232 +0x3ec fp=0x40008006e0 sp=0x4000800690 pc=0x5d25c runtime.rt0_go(0x38, 0x5, 0xa, 0x6, 0x1000, 0x7, 0x4000801000, 0x8, 0x0, 0x9, ...) /usr/lib/go-1.16/src/runtime/asm_s390x.s:141 +0xb2 fp=0x40008007a0 sp=0x40008006e0 pc=0x7ef32 I have a PPA at https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/4514/+packages And with that I'll see if this behavior changed ... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1922010 Title: [Ubuntu 21.04] IBM Z go binary crashes under Qemu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1922010/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1922010] Re: [Ubuntu 21.04] IBM Z go binary crashes under Qemu
Thanks for the Report! That is: commit 23fff7a17f47420797ac6480147941612152a9ad Author: Andreas Krebbel Date: Wed Mar 24 19:51:28 2021 +0100 linux-user/s390x: Use the guest pointer for the sigreturn stub When setting up the pointer for the sigreturn stub in the return address register (r14) we currently use the host frame address instead of the guest frame address. Note: This only caused problems if Qemu has been built with --disable-pie (as it is in distros nowadays). Otherwise guest_base defaults to 0 hiding the actual problem. Signed-off-by: Andreas Krebbel Reviewed-by: Laurent Vivier Reviewed-by: Richard Henderson Message-Id: <20210324185128.63971-1-kreb...@linux.ibm.com> Signed-off-by: Laurent Vivier $ git tag --contains 23fff7a17f47420797ac6480147941612152a9ad v6.0.0-rc1 There are currently a bunch of qemu SRUs in flight which have to "clear the queue" first. If until then you found that it also affects Focal we can fix that as well - let us know in this case. ** Also affects: qemu (Ubuntu Groovy) Importance: Undecided Status: New ** Also affects: qemu (Ubuntu Hirsute) Importance: Undecided Assignee: Canonical Server Team (canonical-server) Status: New ** Also affects: qemu (Ubuntu Focal) Importance: Undecided Status: New ** Changed in: qemu (Ubuntu Hirsute) Status: New => Triaged ** Changed in: qemu (Ubuntu Groovy) Status: New => Triaged ** Changed in: qemu (Ubuntu Focal) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1922010 Title: [Ubuntu 21.04] IBM Z go binary crashes under Qemu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1922010/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1922010] Re: [Ubuntu 21.04] IBM Z go binary crashes under Qemu
** Also affects: ubuntu-z-systems Importance: Undecided Status: New ** Changed in: ubuntu-z-systems Assignee: (unassigned) => Skipper Bug Screeners (skipper-screen-team) ** Changed in: qemu (Ubuntu) Assignee: Skipper Bug Screeners (skipper-screen-team) => Canonical Server Team (canonical-server) ** Changed in: ubuntu-z-systems Importance: Undecided => High ** Changed in: ubuntu-z-systems Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1922010 Title: [Ubuntu 21.04] IBM Z go binary crashes under Qemu To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1922010/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs