[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-16 Thread Launchpad Bug Tracker
This bug was fixed in the package qemu - 1:6.0+dfsg-2expubuntu1.1 --- qemu (1:6.0+dfsg-2expubuntu1.1) impish; urgency=medium * updated debian/patches/linux-user-binfmt-P.diff to work with in-kernel code (#993658) (LP: #1947860) -- Christian Ehrhardt Wed, 03 Nov 2021

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-09 Thread Steve Langasek
Verified on impish. Before upgrade of qemu-user-static: $ sudo chroot . echo 1 2 3 2 3 $ After upgrade: $ sudo chroot . echo 1 2 3 1 2 3 $ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1947860

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-08 Thread Christian Ehrhardt 
** Changed in: qemu (Ubuntu Impish) Assignee: (unassigned) => Christian Ehrhardt  (paelzer) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1947860 Title: qemu-arm-static swallows the program

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-08 Thread Launchpad Bug Tracker
This bug was fixed in the package qemu - 1:6.0+dfsg-2expubuntu2 --- qemu (1:6.0+dfsg-2expubuntu2) jammy; urgency=medium * updated debian/patches/linux-user-binfmt-P.diff to work with in-kernel code (#993658) (LP: #1947860) -- Christian Ehrhardt Wed, 03 Nov 2021 14:10:56

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-08 Thread Christian Ehrhardt 
FYI - there were two test issues in jammy-proposed, those are also resolved by now and I hope it migrates there soon. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1947860 Title: qemu-arm-static

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-08 Thread Christian Ehrhardt 
Before upgrade #1 as outlined in the test instructions ubuntu@i-qemu-static:~$ sudo chroot armTest-I echo 1 2 3 2 3 #2 as suggested by Seth with a chroot into an RPI image $ wget

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-07 Thread Christian Ehrhardt 
Thanks for the check Daniel! Hi Seth, if you consider getting an RPI (or any other) cross-arch image chrooted or to run debootstrap is probably equally complex - and preference lies in what you do more often or already have around. But thanks for the hint on test alternatives. BTW - I have

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-07 Thread Daniel Salzman
I have built 1:6.0+dfsg-2expubuntu1.1 on my own for Impish and this patch solves my problems when building ARM packages on x86 using pbuilder and docker-buildx. Thank you! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-05 Thread Seth Arnold
These test cases seem complicated to me. A reporter on IRC reported that doing things within an rpi image chroot like 'mv a b' would report an error message "missing destination file operand": Fri 05 23:26:13 < five623468263> root@ubuntu:/# mv etc/resolv.conf etc/resolv.conf.bak Fri 05 23:26:13

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-05 Thread Steve Langasek
Hello Kai, or anyone else affected, Accepted qemu into impish-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/qemu/1:6.0+dfsg-2expubuntu1.1 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-04 Thread Christian Ehrhardt 
This is already in jammy-proposed by now, but due to a long test backlog on ppc64 will be blocked there for a while. Nevertheless that is enough to kick off the SRU of this, therefore I uploaded it to Impish-unapproved already. -- You received this bug notification because you are a member of

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-04 Thread Christian Ehrhardt 
Given this really breaks cross-arch toolchains of all sorts I'm even bumping this to critical. ** Changed in: qemu (Ubuntu) Importance: High => Critical -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-04 Thread Launchpad Bug Tracker
** Merge proposal linked: https://code.launchpad.net/~paelzer/ubuntu/+source/qemu/+git/qemu/+merge/411320 ** Merge proposal linked: https://code.launchpad.net/~paelzer/ubuntu/+source/qemu/+git/qemu/+merge/411321 -- You received this bug notification because you are a member of Ubuntu

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-04 Thread Christian Ehrhardt 
** Description changed: + + [Impact] + + * The kernel changed handling of binfmt-P and that breaks qemu +using binfmt registering TCG based emulators to run foreign +architecture code. + + * This happened late 5.11.0-20 -> 5.13.0-20 and even as of today +cloud-images start with

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-04 Thread Christian Ehrhardt 
I have site down and eventually together with paride was able to create a bit of a timeline and a fix. I have - at first - wondered as I could reproduce it in Jammy, but not in Impish I had qemu 1:6.0+dfsg-2expubuntu1 in both, why would they behave different. And then I found that my Impish

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-03 Thread Christian Ehrhardt 
** Changed in: qemu (Ubuntu) Assignee: (unassigned) => Christian Ehrhardt  (paelzer) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1947860 Title: qemu-arm-static swallows the program name,

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-03 Thread Christian Ehrhardt 
** Description changed: Problem with qemu-arm-static version 1:6.0+dfsg-2expubuntu1, as of recent Impish When using qemu-arm-static for cross-debootstrap for an ARM machine argument 0 of the invoked ARM program does not contain the name of the executable but argument 1, argument 2 is

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-11-01 Thread George Yohng
Just a note: qemu-arm-static itself has nothing to do with it. I tried older versions from hirsute and focal, and they exhibit the same behaviour. I can however confirm that the problem lies in the binfmt-P logic handling - if I re-register qemu-arm-static manually without the binfmt-P flag, it

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-10-26 Thread Christian Ehrhardt 
And the assumption in https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1948684/comments/3 : Björn Töpel (bjorn-topel) wrote 16 minutes ago: #3 This might have been fixed in Debian. From the changelog: qemu (1:6.1+dfsg-5) unstable; urgency=medium * updated

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-10-26 Thread Christian Ehrhardt 
bug 1948684 reported almost the same (but for risc in qmeu user static). Carrying the great Info generated by Björn there over here to handle it in one place. Steps to reproduce (using golang for ease of cross-compiling): -- $ cat rv.go package main import ( "fmt" "os" ) func main() {

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-10-26 Thread Christian Ehrhardt 
Here as well I want to be honest - I'm almost totally unavailable this week so it will be a few more days before I can take a deeper look. Thanks Björn for this debugging already! Thanks for Paride for already confirming the reproducibility of this! And to Andrew for an equally great report! **

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-10-24 Thread Andrew L. Moore
Upgrading to Debian sid version 1:6.1 also appears to resolve the issue: Package: qemu-user-static/now 1:6.1+dfsg-6 amd64 $ sudo chroot armTest ./test.sh a bb ccc $0=./test.sh $1=a $1=bb $*=a bb ccc $ -- You received this bug notification because you are a member of Ubuntu Bugs, which

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-10-23 Thread Andrew L. Moore
I'm seeing a slight variation of this with Package: qemu-user-static/impish,now 1:6.0+dfsg-2expubuntu1 amd64 Uname: Linux 5.13.0-21-generic #21-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux $ sudo chroot armTest ./test.sh a bb ccc /bin/sh: 0: Can't open a $ sudo chroot armTest ./test.sh ./test.sh

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-10-21 Thread Paride Legovini
** Changed in: qemu (Ubuntu) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1947860 Title: qemu-arm-static swallows the program name, and shifts all arguments left

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-10-21 Thread Paride Legovini
Hello and thanks for this bug report. I can confirm this issue, reproduced by: # With qemu-user-static 1:5.2+dfsg-9ubuntu3.2 (Hirsute): $ sudo chroot armTest /usr/bin/echo 1 2 3 1 2 3 # With qemu-user-static 1:6.0+dfsg-2expubuntu1 (Impish/Jammy): $ sudo chroot armTest /usr/bin/echo 1 2 3 2 3

[Bug 1947860] Re: qemu-arm-static swallows the program name, and shifts all arguments left

2021-10-20 Thread Kai Horstmann
** Tags added: qemu-arm-static qemu-user-static -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1947860 Title: qemu-arm-static swallows the program name, and shifts all arguments left To manage