Re: [hatari-devel] MEMWATCH freezes Hatari |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] MEMWATCH freezes Hatari
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Thu, 11 Oct 2018 15:25:19 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1539264319; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=fcaM07F1NtDAuJnq1LN9yHNDBUVA9jglU6GkGts4eWM=; b=n3eg2J66iZoRy443BvC7yPsD0SSvlXN+4MYyDOcTzeT23r5HZ2U/aYtPT+zyS/51dv aOkUhS4FGrRo0bm/VBR1ordhSfpEpiakCCAI7g4dKCWa/ztFGGYfvrOoDx5fW43sD4gZ D8CalNyE76KIJy7WTneEy+ov7JMCdz+tut6Y8qygmpkh5rqFVyHA3tbSM03yuPG0Xm/o SAzrC4lPcOSY6WrqhEqIc4mSrG+tWycEbtvVgMNRjbifwb2qeSfhdB3V6IImCzgr6T78 sa9vK3sjTMpH53vUYeqsaik6ayFUxKkcc37cJP1WEaeydKiVqu6MgBexXlmlD4CgXSau QB5g==
Hi,
First of all, I sometimes get messages like this:
/home/us/hatari/hatari/src/cpu/cpuemu_0.c:15856:53: runtime error: left shift of 65535 by 16 places cannot be represented in type 'int'
/home/us/hatari/hatari/src/cpu/newcpu_common.c:402:7: runtime error: left shift of negative value -60
/home/us/hatari/hatari/src/cpu/cpuemu_0.c:32322:22: runtime error: signed integer overflow: 1658716160 + 1658716160 cannot be represented in type 'int'
/home/us/hatari/hatari/src/cpu/cpuemu_0.c:26895:22: runtime error: signed integer overflow: 1911522030 - -913332782 cannot be represented in type 'int'
/home/us/hatari/hatari/src/cycles.c:80:21: runtime error: signed integer overflow: 2147483180 + 752 cannot be represented in type 'int'
When starting ROMSPEED I get this before the double bus fault:
/home/us/hatari/hatari/src/cpu/newcpu.c:3460:14: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
With MEMWATCH there is no change, the screen is cleared when starting
any program after it, and then the systems hangs.
With FIX24 I get:
/home/us/hatari/hatari/src/cpu/maccess.h:59:16: runtime error: store to misaligned address 0x5563b5929f8a for type 'uae_u32', which requires 4 byte alignment
0x5563b5929f8a: note: pointer points here
13 2e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
/home/us/hatari/hatari/src/cpu/maccess.h:43:9: runtime error: load of misaligned address 0x5563b5929f8a for type 'uae_u32', which requires 4 byte alignment
0x5563b5929f8a: note: pointer points here
13 2e 00 00 12 98 34 76 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Best regards
Uwe
> Le 11/10/2018 à 12:34, Uwe Seimet a écrit :
> > Now there are error messages when starting Hatari, and then it aborts,
> > see attached logs.
>
> Indeed, there's a read outside of an array that must be fixed (I will
> commit it later to main sources)
>
> Please, change line 596 in video.c to this :
>
> SHIFTER_LINE ShifterLines[ MAX_SCANLINES_PER_FRAME+1 ];
>
> From there, hatari should run with only some errors about negative
> values being left shifted : this is harmless and works as intended, I
> think sanitize is too strict here.
>
> When compiling with -fsanitize, I can for example run memwatch.prg or
> fix24.prg and I don't get any abort from sanitizer.
>
> Does it reports anything when you get bombs on screen ?
>
> Nicolas
>
>