Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-15 Thread Aurelien Jarno
On 2017-07-06 16:20, Richard Henderson wrote: > We translate gUSA regions atomically in a parallel context. > But in a serial context a gUSA region may be interrupted. > In that case, restart the region as the kernel would. > > Signed-off-by: Richard Henderson > --- >

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-13 Thread John Paul Adrian Glaubitz
On 07/13/2017 11:37 PM, Richard Henderson wrote: > Unfortunately with something as complex as ghc this doesn't help much. > I hope you can find something smaller that produces a similar problem... GHC is truly a complex matter. It's in fact the package that causes most trouble on qemu-user, both

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-13 Thread Richard Henderson
On 07/13/2017 12:56 AM, John Paul Adrian Glaubitz wrote: It either hangs, so I had to use "Ctrl+C" or it segfaulted. Sometimes it would crash with: (sid-sh4-sbuild)root@nofan:/# ghc Main.hs /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) Unhandled trap: 0x180

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-13 Thread John Paul Adrian Glaubitz
On Thu, Jul 13, 2017 at 11:09:08AM +0200, John Paul Adrian Glaubitz wrote: > Just as a heads-up: The current set of patches as they are present in > the tgt-sh4 branch on git://github.com/rth7680/qemu.git are a HUGE > improvement for qemu-sh4 user mode. Several packages which previously > crashed

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-13 Thread John Paul Adrian Glaubitz
Just as a heads-up: The current set of patches as they are present in the tgt-sh4 branch on git://github.com/rth7680/qemu.git are a HUGE improvement for qemu-sh4 user mode. Several packages which previously crashed during build or use can now be used properly! So, I hope to see this series merged

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-07 Thread Richard Henderson
On 07/06/2017 10:35 PM, John Paul Adrian Glaubitz wrote: On 07/07/2017 10:30 AM, John Paul Adrian Glaubitz wrote: The scripts which are run here can be found as /var/lib/dpkg/info/tzdata.{config,postinst). I don't know yet which command in particular triggers the crash. Interesting. It

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-07 Thread John Paul Adrian Glaubitz
On 07/07/2017 11:05 AM, Laurent Vivier wrote:> I think unwind_gusa() should be moved after the get_sigfram() (in both> cases), because r15 can be updated and the sigframe base lost. Tried the change. "dpkg-reconfigure tzdata" now crashes differently: Current default time zone: 'Europe/Berlin'

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-07 Thread Laurent Vivier
Le 07/07/2017 à 11:05, Laurent Vivier a écrit : > Le 07/07/2017 à 04:20, Richard Henderson a écrit : >> We translate gUSA regions atomically in a parallel context. >> But in a serial context a gUSA region may be interrupted. >> In that case, restart the region as the kernel would. >> >>

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-07 Thread Laurent Vivier
Le 07/07/2017 à 04:20, Richard Henderson a écrit : > We translate gUSA regions atomically in a parallel context. > But in a serial context a gUSA region may be interrupted. > In that case, restart the region as the kernel would. > > Signed-off-by: Richard Henderson > --- >

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-07 Thread John Paul Adrian Glaubitz
On 07/07/2017 10:30 AM, John Paul Adrian Glaubitz wrote: > The scripts which are run here can be found as > /var/lib/dpkg/info/tzdata.{config,postinst). > I don't know yet which command in particular triggers the crash. Interesting. It crashes for me immediately after resizing the terminal window

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-07 Thread John Paul Adrian Glaubitz
On 07/07/2017 10:20 AM, Richard Henderson wrote: > How do I reproduce this from the filesystem image you linked earlier? So, the problem happens in the tzdata package when it's being configured: (sid-sh4-sbuild)root@nofan:/# dpkg-reconfigure tzdata perl: warning: Setting locale failed. perl:

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-07 Thread Richard Henderson
On 07/06/2017 09:25 PM, John Paul Adrian Glaubitz wrote: On 07/07/2017 04:20 AM, Richard Henderson wrote: We translate gUSA regions atomically in a parallel context. But in a serial context a gUSA region may be interrupted. In that case, restart the region as the kernel would. This patch is

Re: [Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-07 Thread John Paul Adrian Glaubitz
On 07/07/2017 04:20 AM, Richard Henderson wrote: > We translate gUSA regions atomically in a parallel context. > But in a serial context a gUSA region may be interrupted. > In that case, restart the region as the kernel would. This patch is still causing random segfaults, unfortunately: Setting

[Qemu-devel] [PATCH v2 08/27] linux-user/sh4: Notice gUSA regions during signal delivery

2017-07-06 Thread Richard Henderson
We translate gUSA regions atomically in a parallel context. But in a serial context a gUSA region may be interrupted. In that case, restart the region as the kernel would. Signed-off-by: Richard Henderson --- linux-user/signal.c | 23 +++ 1 file changed, 23