Re: [PATCH RFC] hw/sh4/sh7750: Add STBCR/STBCR2 register support

2023-10-18 Thread John Paul Adrian Glaubitz
gt; > Fix this by adding support for the Standby Control Registers STBCR and > STBCR2. > > Signed-off-by: Geert Uytterhoeven Is this supposed to be applied on top of Yoshinori's DT conversion series? Thanks, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian

Re: [PULL 1/6] linux-user/sparc: Don't use 16-bit UIDs on SPARC V9

2023-05-12 Thread John Paul Adrian Glaubitz
now what LTP is. In any case, the patch should be correct as QEMU needs to differentiate between 32-bit and 64-bit SPARC. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Re: [PATCH v2 0/6] Deprecate support for 32-bit x86 and arm hosts

2023-03-03 Thread John Paul Adrian Glaubitz
s a bit easier to understand: > https://lore.kernel.org/lkml/87bm56vqg4@mid.deneb.enyo.de/ Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Re: [PATCH v2 0/6] Deprecate support for 32-bit x86 and arm hosts

2023-03-03 Thread John Paul Adrian Glaubitz
er as there are some cases where the emulation of 32-bit user code on 64-bit hosts does not work properly [1]. Adrian > [1] https://sourceware.org/bugzilla/show_bug.cgi?id=23960 -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62

Re: Byte-swapping issue on qemu-user for sparc64 guest

2023-02-10 Thread John Paul Adrian Glaubitz
Hi Thomas! On Fri, 2023-02-10 at 16:52 +0100, Thomas Huth wrote: > On 10/02/2023 16.23, John Paul Adrian Glaubitz wrote: > > Hi! > > > > There is an unaddressed issue in qemu-user [1] which results in getresuid() > > returning an incorrect UID due to a byte-swappin

Byte-swapping issue on qemu-user for sparc64 guest

2023-02-10 Thread John Paul Adrian Glaubitz
e USE_UID16 > [1] https://gitlab.com/qemu-project/qemu/-/issues/1394 > [2] > https://gitlab.com/qemu-project/qemu/-/blob/master/linux-user/syscall_defs.h#L64 -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Re: Linker failures trying to build static qemu-user binary

2023-02-09 Thread John Paul Adrian Glaubitz
he dlopen() that libdw is going to > try to do won't work anyway... FWIW, passing --extra-ldflags="-ldl" fixes the issue for me. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Re: Linker failures trying to build static qemu-user binary

2023-02-09 Thread John Paul Adrian Glaubitz
/libdw.a(debuginfod-client.o): > in function `__libdwfl_debuginfod_init': > (.text.startup+0x1b): warning: Using 'dlopen' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > > so whatever libd

Linker failures trying to build static qemu-user binary

2023-02-09 Thread John Paul Adrian Glaubitz
[847/934] Compiling C object tests/fp/fp-bench.p/.._.._fpu_softfloat.c.o [848/934] Compiling C object tests/fp/fp-test-log2.p/.._.._fpu_softfloat.c.o [849/934] Generating docs/QEMU manual with a custom command ninja: build stopped: subcommand failed. make[1]: *** [Makefile:165: run-ninja] Error 1 make

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2022-01-12 Thread John Paul Adrian Glaubitz
Hi Zoltan! On 10/26/21 00:40, BALATON Zoltan wrote: > On Tue, 26 Oct 2021, John Paul Adrian Glaubitz wrote: >> Hi Zoltan! >> >> On 10/23/21 15:22, BALATON Zoltan wrote: >>>> You either need to strip the kernel with "strip vmlinux" or use the

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-25 Thread John Paul Adrian Glaubitz
I get: > (...) > This seems to take a wrong turn at the delayed branch and somehow ends up at > 0x8c800964 instead of > 0x8c801528 but I'm not sure where to look firther why. I'm cc-ing Richard for > both the -d cpu and > this hoping he has some more insight. Shall

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-22 Thread John Paul Adrian Glaubitz
Kernel panic - not syncing: Attempted to kill init! >> exitcode=0x000b ]--- > > I don't know, you have to find the needed config options to have what's > needed to use this initrd. > You could either try to strip down the debian config or add more to the > defau

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-22 Thread John Paul Adrian Glaubitz
Hi Zoltan! On 10/22/21 23:49, John Paul Adrian Glaubitz wrote: >> How did you compile the kernel that does not boot? What config have you used? > > The config is constructed from the Debian kernel configuration tree. I have > uploaded > the resulting config file

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-22 Thread John Paul Adrian Glaubitz
be interesting to identify what's causing the problem. Indeed. Thanks for helping me with that. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-21 Thread John Paul Adrian Glaubitz
ve seen problems with compressed kernel images and QEMU before. I will switch to an uncompressed kernel and try again. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Re: Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-21 Thread John Paul Adrian Glaubitz
glaubitz/System.map-5.14.0-3-sh7751r.gz -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Looking for advise on debugging a non-boot kernel on qemu-system-sh4

2021-10-21 Thread John Paul Adrian Glaubitz
bed without getting messages. > [1] https://people.debian.org/~aurel32/qemu/sh4/ > [2] https://cdimage.debian.org/cdimage/ports/current-debian-installer/sh4/ -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berl

[Bug 1796520] Re: autogen crashes on qemu-sh4-user after 61dedf2af7

2021-08-18 Thread John Paul Adrian Glaubitz
Yes, it can be closed. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1796520 Title: autogen crashes on qemu-sh4-user after 61dedf2af7 Status in QEMU: Incomplete Bug description: Running "auto

[Bug 1796520] Re: autogen crashes on qemu-sh4-user after 61dedf2af7

2021-07-21 Thread John Paul Adrian Glaubitz
The patch suggested by Thorsten Glaser glibc Bugzilla #27543 fixes the issue for me: > https://sourceware.org/bugzilla/show_bug.cgi?id=27543#c2 ** Bug watch added: Sourceware.org Bugzilla #27543 https://sourceware.org/bugzilla/show_bug.cgi?id=27543 -- You received this bug notification becau

[Bug 1836763] Re: Firebird crashes on qemu-m68k-user with pthread_mutex_init error

2021-06-22 Thread John Paul Adrian Glaubitz
** Changed in: qemu Status: Expired => New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1836763 Title: Firebird crashes on qemu-m68k-user with pthread_mutex_init error Status in QEMU: Ne

[Bug 1796520] Re: autogen crashes on qemu-sh4-user after 61dedf2af7

2021-03-08 Thread John Paul Adrian Glaubitz
Reported as https://sourceware.org/bugzilla/show_bug.cgi?id=27543 ** Bug watch added: Sourceware.org Bugzilla #27543 https://sourceware.org/bugzilla/show_bug.cgi?id=27543 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bug

Re: [PATCH] linux-user: manage binfmt-misc preserve-arg[0] flag

2021-03-01 Thread John Paul Adrian Glaubitz
is basically the same. > I can only guess the wiki page you mentioned is wrong > here. There isn't really much in the wiki besides installing qemu-user-static. I was, however, able to fix it by recreating the chroot. Adrian -- .''`. John Paul Adrian Glaubitz : :' :

Re: [PATCH] linux-user: manage binfmt-misc preserve-arg[0] flag

2021-03-01 Thread John Paul Adrian Glaubitz
On 3/1/21 11:40 AM, Michael Tokarev wrote: > 01.03.2021 13:35, John Paul Adrian Glaubitz wrote: > .. >> I have been trying to get qemu-user working with sbuild as it is shipped in >> Debian >> unstable now but I didn't have any success. >> >> Do you ha

Re: [PATCH] linux-user: manage binfmt-misc preserve-arg[0] flag

2021-03-01 Thread John Paul Adrian Glaubitz
Hi Michael! On 2/22/21 3:58 PM, Michael Tokarev wrote: > 22.02.2021 17:54, John Paul Adrian Glaubitz wrote: > >> OK, gotcha. Is it supposed to work with systemd-binfmt? It looks like it >> depends >> on the old binfmt-support package. > > the qemu 4-line patch doe

Re: [PATCH] linux-user: manage binfmt-misc preserve-arg[0] flag

2021-02-22 Thread John Paul Adrian Glaubitz
On 2/22/21 3:58 PM, Michael Tokarev wrote: > 22.02.2021 17:54, John Paul Adrian Glaubitz wrote: > >> OK, gotcha. Is it supposed to work with systemd-binfmt? It looks like it >> depends >> on the old binfmt-support package. > > the qemu 4-line patch does not depen

Re: [PATCH] linux-user: manage binfmt-misc preserve-arg[0] flag

2021-02-22 Thread John Paul Adrian Glaubitz
On 2/22/21 3:46 PM, Michael Tokarev wrote: > 22.02.2021 17:43, John Paul Adrian Glaubitz wrote: >> On 2/22/21 3:38 PM, Michael Tokarev wrote: > >>> >>> It's been fixed a week or so ago. >> >> Doesn't the patch require a kernel fix which is

Re: [PATCH] linux-user: manage binfmt-misc preserve-arg[0] flag

2021-02-22 Thread John Paul Adrian Glaubitz
On 2/22/21 3:38 PM, Michael Tokarev wrote: > 22.02.2021 13:58, John Paul Adrian Glaubitz wrote: >> Hi Laurent! >> >> On 2/22/21 11:50 AM, Laurent Vivier wrote: >>> Add --preserve-argv0 in qemu-binfmt-conf.sh to configure the preserve-argv0 >>> flag. >&

Re: [PATCH] linux-user: manage binfmt-misc preserve-arg[0] flag

2021-02-22 Thread John Paul Adrian Glaubitz
port.cgi?bug=974004 -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

[Bug 1796520] Re: autogen crashes on qemu-sh4-user after 61dedf2af7

2021-01-26 Thread John Paul Adrian Glaubitz
** Changed in: qemu Status: Expired => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1796520 Title: autogen crashes on qemu-sh4-user after 61dedf2af7 Status in QEMU: Incomplete

Re: [PATCH 1/8] build-system: clean up TCG/TCI configury

2021-01-14 Thread John Paul Adrian Glaubitz
be handy. I also agree here. > That said, if it doesn't hurt I think we should not disable something > which can be useful (this applies to all architectures). True. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `

Re: [PATCH 1/8] build-system: clean up TCG/TCI configury

2021-01-13 Thread John Paul Adrian Glaubitz
guest support rather than sh4 host support. Same applies to sh4: > https://cdimage.debian.org/cdimage/ports/debian-installer/2021-01-03/sh4/ Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glau

Re: Deprecation of the LM32 target

2020-12-26 Thread John Paul Adrian Glaubitz
d have to remove 90% of the targets in QEMU. I mean, the whole point of an emulator is being able to run existing code on modern hardware, usually because the old hardware is no longer available. And as long as the target is functional, I don't see a point in taking away the function

Deprecation of the LM32 target

2020-12-24 Thread John Paul Adrian Glaubitz
because they're old. Thanks, Adrian > [1] https://www.qemu-advent-calendar.org/2020/ -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

[Bug 1907427] Re: Build on sparc64 fails with "undefined reference to `fdt_check_full'"

2020-12-10 Thread John Paul Adrian Glaubitz
The issue has been fixed in the device-tree-compiler package here: > https://git.kernel.org/pub/scm/utils/dtc/dtc.git/commit/?id=b28464a550c536296439b5785ed8852d1e15b35b I have filed a Debian bug report asking to backport the patch: > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977031 Nev

[Bug 1907427] Re: Build on sparc64 fails with "undefined reference to `fdt_check_full'"

2020-12-10 Thread John Paul Adrian Glaubitz
Indeed, libfdt has been failing to build from source on sparc64 since version 1.4.7 due to the testsuite crashing with unaligned access: > https://buildd.debian.org/status/fetch.php?pkg=device-tree- compiler&arch=sparc64&ver=1.6.0-1&stamp=1605385435&raw=0 libfdt-dev probably contains some fancy p

[Bug 1907427] [NEW] Build on sparc64 fails with "undefined reference to `fdt_check_full'"

2020-12-09 Thread John Paul Adrian Glaubitz
Public bug reported: Trying to build QEMU on sparc64 fails with: [4648/8435] c++ -o qemu-system-ppc64 qemu-system-ppc64.p/softmmu_main.c.o libcommon.fa.p/ui_vnc-auth-sasl.c.o libcommon.fa.p/migration_colo-failover.c.o libcommon.fa.p/hw_input_vhost-user-input.c.o libcommon.fa.p/replay_replay-r

[Bug 1796520] Re: autogen crashes on qemu-sh4-user after 61dedf2af7

2020-11-26 Thread John Paul Adrian Glaubitz
Bug is still pending on git master. Have not pinged the SuperH crew yet. Will try to do that tomorrow, I'll also ping glibc upstream. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1796520 Title: au

[Bug 1815911] Re: aptitude crashes qemu-m68k with handle_cpu_signal received signal outside vCPU context

2020-08-11 Thread John Paul Adrian Glaubitz
Just verified it with a very recently compiled version of QEMU from git master and, indeed, the bug seems to be fixed as I can no longer reproduce the crash. The command executes correctly. I guess it's safe to mark this as fixed. -- You received this bug notification because you are a member of

[Bug 917645] Re: [Feature request] ia64-softmmu wanted

2020-07-28 Thread John Paul Adrian Glaubitz
Someone is working on it, see: https://github.com/XVilka/qemu-ia64 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/917645 Title: [Feature request] ia64-softmmu wanted Status in HelenOS branches: C

Re: [PATCH] linux-user: Ensure mmap_min_addr is non-zero

2020-07-27 Thread John Paul Adrian Glaubitz
o > make sure that mmap_min_addr is initialized with a non-zero value. > > Buglink: https://bugs.launchpad.net/qemu/+bug/1888728 > Reported-by: John Paul Adrian Glaubitz > Signed-off-by: Richard Henderson > --- > linux-user/main.c | 16 ++-- > 1 file changed, 14

[Bug 1888728] Re: Bare chroot in linux-user fails with pgb_reserved_va: Assertion `guest_base != 0' failed.

2020-07-24 Thread John Paul Adrian Glaubitz
Here you go: https://people.debian.org/~glaubitz/sid-m68k-sbuild.tgz Thanks for looking into it! -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1888728 Title: Bare chroot in linux-user fails with p

[Bug 1888728] [NEW] Bare chroot in linux-user fails with pgb_reserved_va: Assertion `guest_base != 0' failed.

2020-07-23 Thread John Paul Adrian Glaubitz
Public bug reported: Trying to run a bare chroot with no additional bind mounts fails on git master (8ffa52c20d5693d454f65f2024a1494edfea65d4) with: root@nofan:~/qemu> chroot /local_scratch/sid-m68k-sbuild/ qemu-m68k-static: /root/qemu/linux-user/elfload.c:2315: pgb_reserved_va: Assertion `guest

Re: [PATCH] target/m68k: implement fmove.l #,FPCR

2020-05-31 Thread John Paul Adrian Glaubitz
. Tested-by: John Paul Adrian Glaubitz Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Re: [PATCH] target/m68k: implement fmove.l #,FPCR

2020-05-31 Thread John Paul Adrian Glaubitz
k emulation and triggers a > kernel crash: > (...) > Reported-by: John Paul Adrian Glaubitz > Signed-off-by: Laurent Vivier > --- > target/m68k/translate.c | 14 ++ > 1 file changed, 14 insertions(+) Thanks for the fix. I applied the patch, but I'm getting a l

Re: Build for qemu-sh4 broken since 2445971604c

2020-02-15 Thread John Paul Adrian Glaubitz
On 2/15/20 2:53 PM, Philippe Mathieu-Daudé wrote: > On 2/15/20 11:53 AM, John Paul Adrian Glaubitz wrote: >> Hi! >> >> Currently trying to build qemu-sh4 in static configuration fails with: >> >> make[1]: Entering directory '/root/qemu/slirp' >>

Build for qemu-sh4 broken since 2445971604c

2020-02-15 Thread John Paul Adrian Glaubitz
Extend the vector generator infrastructure to handle 5 vector arguments. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Reviewed-by: Taylor Simpson Signed-off-by: Richard Henderson Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian

Re: Booting Debian in qemu-system-alpha

2020-01-27 Thread John Paul Adrian Glaubitz
#x27;t use qemu-system on m68k and sh4 since the system memory is limited there to 1 GiB and 64 MiB, although the latter is a limitation by qemu as far as I know. For riscv64, most buildds in Debian and build workers in openSUSE are based on qemu-system as cheap riscv64 hardware is still very har

Re: Booting Debian in qemu-system-alpha

2020-01-24 Thread John Paul Adrian Glaubitz
ood catch. That helped. Thanks. I'm considering setting up two qemu-based buildds for alpha in the cloud now. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-

Booting Debian in qemu-system-alpha

2020-01-24 Thread John Paul Adrian Glaubitz
9-01-25/debian-10.0-alpha-NETINST-1.iso -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Re: [Bug 1860553] Re: cmake crashes on qemu-alpha-user with Illegal Instruction

2020-01-23 Thread John Paul Adrian Glaubitz
e.debian.org/~glaubitz/logfile -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- You received this bug notif

[Bug 1860553] Re: cmake crashes on qemu-alpha-user with Illegal Instruction

2020-01-23 Thread John Paul Adrian Glaubitz
Can someone remind me how I can print the disassembly in this case? root@epyc:~> qemu-alpha-static -cpu help Available CPUs: ev4-alpha-cpu ev5-alpha-cpu ev56-alpha-cpu ev6-alpha-cpu ev67-alpha-cpu ev68-alpha-cpu pca56-alpha-cpu root@epyc:~> export QEMU_CPU=ev68-alpha-cpu root@epyc:~>

[Bug 1860553] [NEW] cmake crashes on qemu-alpha-user with Illegal Instruction

2020-01-22 Thread John Paul Adrian Glaubitz
Public bug reported: I tried building cmake on Debian unstable for Alpha today using qemu- user and the compiled cmake binary crashed with "Illegal Instruction": g++ -Wl,-z,relro -Wl,--as-needed -g -O2 -fdebug-prefix-map=/<>=. -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2

[Qemu-devel] [Bug 1796520] Re: autogen crashes on qemu-sh4-user after 61dedf2af7

2019-08-18 Thread John Paul Adrian Glaubitz
We can ask both glibc upstream and some SuperH experts. I'll ask. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1796520 Title: autogen crashes on qemu-sh4-user after 61dedf2af7 Status in QEMU: C

[Qemu-devel] [Bug 1839325] Re: Go programs crash on qemu-sh4 due to issues with atomics

2019-08-09 Thread John Paul Adrian Glaubitz
Thanks. I will report this to Go/gcc upstream. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1839325 Title: Go programs crash on qemu-sh4 due to issues with atomics Status in QEMU: New Bug desc

[Qemu-devel] [Bug 1796520] Re: autogen crashes on qemu-sh4-user after 61dedf2af7

2019-08-09 Thread John Paul Adrian Glaubitz
I can provide access to a machine connected to the internet so you can test it yourself. I'll send you an email. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1796520 Title: autogen crashes on qemu

[Qemu-devel] [Bug 1839325] [NEW] Go programs crash on qemu-sh4 due to issues with atomics

2019-08-07 Thread John Paul Adrian Glaubitz
Public bug reported: After #1738545 [1] was fixed, Go applications work fine on qemu-arm but still crash on qemu-sh4. From the backtrace, it looks like an issue with the atomics in qemu-sh4: (sid-sh4-sbuild)root@epyc:/# cat hello.go package main import "fmt" func main() { fmt.Println("hel

[Qemu-devel] [Bug 1738545] Re: Go binaries panic with "mmap errno 9" on qemu-user

2019-08-07 Thread John Paul Adrian Glaubitz
I can confirm that the issue has been resolved on arm. Unfortunately, on sh4, the Go binaries are still crashing, albeit differently now. I verified that they work fine on real sh4 hardware. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to Q

[Qemu-devel] [Bug 1738545] Re: Go binaries panic with "mmap errno 9" on qemu-user

2019-08-06 Thread John Paul Adrian Glaubitz
Oh, that's interesting. I will verify this and if it indeed works, I will enable Go binaries for sh4 in Debian. Thanks a lot for the update! -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1738545 Tit

Re: [Qemu-devel] [PATCH 2/2] linux-user: manage binfmt-misc preserve-arg[0] flag

2019-07-30 Thread John Paul Adrian Glaubitz
gt; allows to have per chroot basis binfmt configuration That would be cool, too. Has there been some discussion on this already? > 3- once 3 done, enable preserve-arg[0] by default You mean once "2 done"? Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Develo

[Qemu-devel] [Bug 1836763] [NEW] Firebird crashes on qemu-m68k-user with pthread_mutex_init error

2019-07-16 Thread John Paul Adrian Glaubitz
Public bug reported: Trying to use the Firebird database on qemu-m68k-user with a Debian chroot fails with the database crashing with "ConfigStorage: mutex pthread_mutex_init error, status = 95": (sid-m68k-sbuild)root@epyc:/# apt install firebird3.0-server Reading package lists... Done Building d

Re: [Qemu-devel] [PATCH 2/2] linux-user: manage binfmt-misc preserve-arg[0] flag

2019-07-14 Thread John Paul Adrian Glaubitz
Hi! > On Jul 14, 2019, at 3:40 PM, Laurent Vivier wrote: > > Add --preserve-arg0 in qemu-binfmt-conf.sh to configure the preserve-arg0 > flag. > > Now, if QEMU is started with -0 or QEMU_ARGV0 and an empty parameter > argv[0] (the full pathname provided by binfmt-misc) is removed and > replaced

Re: [Qemu-devel] [Bug 1835839] Re: qemu-user: $0 incorrectly always reports absolute path

2019-07-09 Thread John Paul Adrian Glaubitz
n't have a copy of qemu in the chroot. But I think I forgot to pass --persistent to the script while testing. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de

Re: [Qemu-devel] [Bug 1835839] Re: qemu-user: $0 incorrectly always reports absolute path

2019-07-09 Thread John Paul Adrian Glaubitz
sid-m68k-sbuild/ (sid-m68k-sbuild)root@nofan:/# sh -c 'echo $0' /bin/sh (sid-m68k-sbuild)root@nofan:/# -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF

Re: [Qemu-devel] [Bug 1835839] Re: qemu-user: $0 incorrectly always reports absolute path

2019-07-09 Thread John Paul Adrian Glaubitz
ell, I've tested that, and it should work... Oh, I'm not arguing that. I'm sure the error is on my side ;). I'm just trying to find out what I'm doing wrong. -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `'

Re: [Qemu-devel] [Bug 1835839] Re: qemu-user: $0 incorrectly always reports absolute path

2019-07-09 Thread John Paul Adrian Glaubitz
# sh -c 'echo $0' /bin/sh (sid-m68k-sbuild)root@nofan:/# Do I need to do anything else? -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 29

[Qemu-devel] [Bug 1835839] [NEW] qemu-user: $0 incorrectly always reports absolute path

2019-07-08 Thread John Paul Adrian Glaubitz
Public bug reported: We just ran into an issue with the Perl package on Debian/m68k when being built with qemu-user [1]. The problem can be boiled down to qemu-user always reporting absolute paths for the shell variable $0 no matter on how the command was invoked. A simple reproducer is this: O

Re: [Qemu-devel] [Bug 1815911] Re: aptitude crashes qemu-m68k with handle_cpu_signal received signal outside vCPU context

2019-02-16 Thread John Paul Adrian Glaubitz
On 2/15/19 1:47 PM, Laurent Vivier wrote: > It seems it crashes during futex syscall: > > ... > [pid 4] getpid()= 4 > [pid 4] tgkill(4, 24, SIGRT_1) = 0 > [pid24] <... futex resumed> ) = ? ERESTARTSYS (To be restarted if > SA_RESTART is set) > [pid24

[Qemu-devel] [Bug 1815911] [NEW] aptitude crashes qemu-m68k with handle_cpu_signal received signal outside vCPU context

2019-02-14 Thread John Paul Adrian Glaubitz
Public bug reported: When building a package with sbuild on Debian, sbuild can use aptitude to resolve dependencies. Recently, some changes introduced to aptitude or related packages cause qemu to crash: (sid-m68k-sbuild)root@nofan:/# aptitude -y --without-recommends -o Dpkg::Options::=--force-

[Qemu-devel] [Bug 1737444] Re: gccgo setcontext conftest crashes qemu-sh4

2018-12-14 Thread John Paul Adrian Glaubitz
This still reproduces on git master: (sid-sh4-sbuild)root@nofan:/# gcc setcontext.c -o setcontext -lpthread (sid-sh4-sbuild)root@nofan:/# ./setcontext Unhandled trap: 0x180 pc=0x7f68e99e sr=0x pr=0x00400750 fpscr=0x0008 spc=0x ssr=0x gbr=0x7f7a2de8 vbr=0x sgr=0

[Qemu-devel] [Bug 1735384] Re: OpenJDK JVM segfaults on qemu-sh4 (regression)

2018-12-14 Thread John Paul Adrian Glaubitz
This has been fixed now and Java works fine again on qemu-sh4 on git master: (sid-sh4-sbuild)root@nofan:/# java --version openjdk 10 2018-03-20 OpenJDK Runtime Environment (build 10+46-Debian-5) OpenJDK Zero VM (build 10+46-Debian-5, interpreted mode) (sid-sh4-sbuild)root@nofan:/# ** Changed in:

[Qemu-devel] [Bug 1796520] Re: autogen crashes on qemu-sh4-user after 61dedf2af7

2018-12-14 Thread John Paul Adrian Glaubitz
This is still reproducible on git master: (sid-sh4-sbuild)root@nofan:/# autogen Unhandled trap: 0x180 pc=0x7f4da99e sr=0x pr=0x7f3bfc74 fpscr=0x0008 spc=0x ssr=0x gbr=0x7f114320 vbr=0x sgr=0x dbr=0x delayed_pc=0x7f4da960 fpul=0x0003 r0=0x7ffc

[Qemu-devel] bochs-display and the future of VGA support

2018-10-28 Thread John Paul Adrian Glaubitz
e in your reply. Thanks, Adrian > [1] https://www.kraxel.org/blog/2018/10/qemu-vga-emulation-and-bochs-display/ > [2] > https://www.phoronix.com/scan.php?page=news_item&px=QEMU-Legacy-Free-Display -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - gla

[Qemu-devel] [Bug 1796520] [NEW] autogen crashes on qemu-sh4-user after 61dedf2af7

2018-10-06 Thread John Paul Adrian Glaubitz
Public bug reported: Running "autogen --help" crashes on qemu-sh4-user with: (sid-sh4-sbuild)root@nofan:/# autogen --help Unhandled trap: 0x180 pc=0xf64dd2de sr=0x pr=0xf63b9c74 fpscr=0x0008 spc=0x ssr=0x gbr=0xf61102a8 vbr=0x sgr=0x dbr=0x dela

Re: [Qemu-devel] [PATCH v2] sh4: fix use_icount with linux-user

2018-08-11 Thread John Paul Adrian Glaubitz
es: 4834871bc95b67343248100e2a75ae0d287bc08b >("target/sh4: Convert to DisasJumpType") > Reported-by: John Paul Adrian Glaubitz > Signed-off-by: Laurent Vivier Thanks, testing this revision now as well. Both patches finally allow me to use much newer QEMU versions for SH4,

Re: [Qemu-devel] [PATCH] sh4: fix use_icount with linux-user

2018-08-10 Thread John Paul Adrian Glaubitz
ayed_conditional_jump() after the > gen_jump(). Fantastic, this fixes it! Can we get this into 3.0.0 before release? Tested-by: John Paul Adrian Glaubitz -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin -

[Qemu-devel] [Bug 1768246] Re: cpu-exec.c:648: cpu_loop_exec_tb: Assertion `use_icount' failed.

2018-08-10 Thread John Paul Adrian Glaubitz
Still present on git master: /usr/bin/make -f src/server/CMakeFiles/KF5WaylandServer_autogen.dir/build.make src/server/CMakeFiles/KF5WaylandServer_autogen.dir/build make[3]: Entering directory '/<>/obj-sh4-linux-gnu' make[3]: Entering directory '/<>/obj-sh4-linux-gnu' [ 0%] Automatic MOC for tar

[Qemu-devel] [Bug 1777226] [NEW] qemu-user warnings confuse userland applications

2018-06-16 Thread John Paul Adrian Glaubitz
Public bug reported: I recently observed that warning messages emitted by qemu-user can confuse applications when reading from stdout/stderr. This was observed with the configure script of OpenJDK-11 on qemu-sh4: configure: Found potential Boot JDK using configure arguments configure: Potential B

Re: [Qemu-devel] [Bug 1768246] [NEW] cpu-exec.c:648: cpu_loop_exec_tb: Assertion `use_icount' failed.

2018-05-26 Thread John Paul Adrian Glaubitz
n fault) - core dumped Just tested with qemu 5a5c383b1373aeb6c87a0d6060f6c3dc7c53082b. -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- Yo

Re: [Qemu-devel] [Bug 1768246] [NEW] cpu-exec.c:648: cpu_loop_exec_tb: Assertion `use_icount' failed.

2018-05-01 Thread John Paul Adrian Glaubitz
off-by: Richard Henderson Message-Id: <20170907185057.23421-3-richard.hender...@linaro.org> [aurel32: fix whitespace] Signed-off-by: Aurelien Jarno :04 04 6e0e67cc5d0eb5ef461510d314c6af43eecc08bb aa3399c893c49e6fafda157181cf10f8fbcd0a72 M target -- .''`. J

[Qemu-devel] [Bug 1768246] [NEW] cpu-exec.c:648: cpu_loop_exec_tb: Assertion `use_icount' failed.

2018-05-01 Thread John Paul Adrian Glaubitz
Public bug reported: OpenJDK no longer works on qemu-sh4, it previously did after #1735384 was fixed. Crash indicates an assertion failure: (sid-sh4-sbuild)root@nofan:/# java --version qemu-sh4-static: /root/qemu/accel/tcg/cpu-exec.c:648: cpu_loop_exec_tb: Assertion `use_icount' failed. qemu: u

[Qemu-devel] [Bug 1738545] [NEW] Go binaries panic with "mmap errno 9" on qemu-user

2017-12-16 Thread John Paul Adrian Glaubitz
Public bug reported: Go binaries panic with "mmap errno 9" on qemu-user. root@nofan:/# cat hello.go package main import "fmt" func main() { fmt.Println("hello world") } root@nofan:/# gccgo-7 hello.go -o hello root@nofan:/# ./hello mmap errno 9 fatal error: mmap runtime stack: mmap errno

[Qemu-devel] [Bug 1696353] Re: golang binaries fail to start under linux-user

2017-12-16 Thread John Paul Adrian Glaubitz
I just gave it a test with qemu-arm and Go binaries still crash for me, albeit differently: root@nofan:/# cat hello.go package main import "fmt" func main() { fmt.Println("hello world") } root@nofan:/# gccgo-7 hello.go -o hello root@nofan:/# ./hello mmap errno 9 fatal error: mmap runtime

[Qemu-devel] [Bug 1737444] [NEW] gccgo setcontext conftest crashes qemu-sh4

2017-12-10 Thread John Paul Adrian Glaubitz
Public bug reported: While testing gccgo on sh4 to add SH platform definitions to libgo, I discovered that the following conftest program which is part of the libgo configure script crashes on qemu-sh4: (sid-sh4-sbuild)root@z6:/# cat setcontext.c #include

Re: [Qemu-devel] [Bug 1735384] [RFC PATCH] target/sh4/translate.c: fix TCG leak during gusa sequence

2017-12-06 Thread John Paul Adrian Glaubitz
previous mail got lost: Tested-by: John Paul Adrian Glaubitz And, yes, I'm happy it works :-). Can now switch back to using the latest qemu snapshot for building packages for Debian sh4. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.or

Re: [Qemu-devel] [Bug 1735384] [RFC PATCH] target/sh4/translate.c: fix TCG leak during gusa sequence

2017-12-06 Thread John Paul Adrian Glaubitz
On 12/06/2017 10:30 AM, Alex Bennée wrote: > This fixes bug #1735384 while running java under qemu-sh4. When debug > was enabled it showed a problem with TCG temps. Once fixed I was able > to run java -version normally. > > Reported-by: John Paul Adrian Glaubitz > Suggested-by:

Re: [Qemu-devel] [Bug 1735384] [RFC PATCH] target/sh4/translate.c: fix TCG leak during gusa sequence

2017-12-06 Thread John Paul Adrian Glaubitz
s enabled it showed a problem with TCG temps. Once fixed I was able > to run java -version normally. > > Reported-by: John Paul Adrian Glaubitz > Suggested-by: Richard Henderson > Signed-off-by: Alex Bennée > --- > target/sh4/translate.c | 2 +- > 1 file changed, 1 insertion

Re: [Qemu-devel] [Bug 1735384] [NEW] OpenJDK JVM segfaults on qemu-sh4 (regression)

2017-12-05 Thread John Paul Adrian Glaubitz
ebug build? Will do. Thank you for giving me a heads-up! Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F9

Re: [Qemu-devel] [Bug 1735384] Re: OpenJDK JVM segfaults on qemu-sh4 (regression)

2017-12-04 Thread John Paul Adrian Glaubitz
ght target signal 11 (Segmentation fault) - core dumped Segmentation fault (sid-sh4-sbuild)root@nofan:/local_scratch/sid-sh4-sbuild# Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.d

[Qemu-devel] [Bug 1673976] Re: linux-user clone() can't handle glibc posix_spawn() (causes locale-gen to assert)

2017-12-01 Thread John Paul Adrian Glaubitz
I have verified that this patch [1] in glibc_2.25 and glibc_2.26 fixes the assert. > [1] https://sourceware.org/bugzilla/show_bug.cgi?id=22273 ** Bug watch added: Sourceware.org Bugzilla #22273 https://sourceware.org/bugzilla/show_bug.cgi?id=22273 -- You received this bug notification becaus

Re: [Qemu-devel] [Bug 1735384] Re: OpenJDK JVM segfaults on qemu-sh4 (regression)

2017-12-01 Thread John Paul Adrian Glaubitz
e5f11 cd6a0dcaa1d284fe5439f6f3b61547d4b0662768 M accel :04 04 c294a7c102d27295f8d81cc06b5d4d17357440ad 5a1268b7634f69f0806f22161ec7d6a1a26c8812 M include Reverting the commit resolves the issue. -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Un

Re: [Qemu-devel] /usr/bin/m4: internal error detected

2017-12-01 Thread John Paul Adrian Glaubitz
ervers yet. I'll ask Debian's glibc maintainers to push it. Adrian [1] https://anonscm.debian.org/cgit/pkg-glibc/glibc.git/commit/?id=0a94d5f3ce5785b07372a810f011c62679be910e -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `'

Re: [Qemu-devel] /usr/bin/m4: internal error detected

2017-12-01 Thread John Paul Adrian Glaubitz
ps://bugs.launchpad.net/qemu/+bug/1673976 -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Re: [Qemu-devel] /usr/bin/m4: internal error detected

2017-12-01 Thread John Paul Adrian Glaubitz
bug is resolved in QEMU. Adrian [1] https://bugs.launchpad.net/qemu/+bug/1673976 -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Re: [Qemu-devel] [Bug 1735384] Re: OpenJDK JVM segfaults on qemu-sh4 (regression)

2017-11-30 Thread John Paul Adrian Glaubitz
Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- You received this bug notification because you are a member o

[Qemu-devel] [Bug 1701973] Re: pread does not work right under qemu-sh4

2017-11-30 Thread John Paul Adrian Glaubitz
This might be related to this fix: > https://git.qemu.org/?p=qemu.git;a=commit;h=8bf8e9df4a7d82c7a47cc961c9cdee1615595de0 FWIW, if you're interested in sh4, please join #debian-ports on OFTC and subscribe to the debian-superh mailing list. We're doing lots of sh4 development and testing QEMU in D

[Qemu-devel] [Bug 1735384] [NEW] OpenJDK JVM segfaults on qemu-sh4 (regression)

2017-11-30 Thread John Paul Adrian Glaubitz
Public bug reported: Some of the recent changes introduced a regression which makes the OpenJDK JVM crash on qemu-sh4: (sid-sh4-sbuild)root@nofan:/# java -version qemu: uncaught target signal 11 (Segmentation fault) - core dumped Segmentation fault (sid-sh4-sbuild)root@nofan:/# An older version

[Qemu-devel] [Bug 1701974] Re: pwrite does not work right under qemu-sh4

2017-11-30 Thread John Paul Adrian Glaubitz
This might be related to this fix: > https://git.qemu.org/?p=qemu.git;a=commit;h=8bf8e9df4a7d82c7a47cc961c9cdee1615595de0 FWIW, if you're interested in sh4, please join #debian-ports on OFTC and subscribe to the debian-superh mailing list. We're doing lots of sh4 development and testing QEMU in D

Re: [Qemu-devel] glibc "linux: spawni.c: simplify error reporting to parent" breaks qemu-user/Windows Service For Linux

2017-11-27 Thread John Paul Adrian Glaubitz
and Microsoft Windows Services for Linux who - combined together - are certainly not a small number of users. Isn't there any workaround we can use for the time being? Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie

[Qemu-devel] [Bug 1673976] Re: linux-user clone() can't handle glibc posix_spawn() (causes locale-gen to assert)

2017-11-26 Thread John Paul Adrian Glaubitz
Interestingly, this also affects Microsoft Windows Services For Linux, i.e. Microsoft's Linux emulation layer. > https://github.com/Microsoft/WSL/issues/1878 ** Bug watch added: github.com/Microsoft/WSL/issues #1878 https://github.com/Microsoft/WSL/issues/1878 -- You received this bug notifi

Re: [Qemu-devel] glibc "linux: spawni.c: simplify error reporting to parent" breaks qemu-user/Windows Service For Linux

2017-11-26 Thread John Paul Adrian Glaubitz
On 11/26/2017 09:28 PM, John Paul Adrian Glaubitz wrote: > I'm not sure yet what the actual problem is but I thought it should be > necessary > to point you at the problem. Ok, there is already a QEMU bug report for this [1]. Adrian > [1] https://bugs.launchpad.net/

  1   2   >