From mint-bounce@lists.fishpool.fi  Tue Jun  9 18:06:39 2009
X-Virus-Scanned: amavisd-new at demon.co.uk
Subject: Re: [MiNT] Corruption of high TPA
From: Alan Hourihane <alanh@fairlite.co.uk>
To: Vincent =?ISO-8859-1?Q?Rivi=E8re?= <vincent.riviere@freesbee.fr>
Cc: mint <mint@fishpool.com>
In-Reply-To: <4A2ED03D.1090600@freesbee.fr>
References: <4A2ED03D.1090600@freesbee.fr>
Content-Type: text/plain; charset="ISO-8859-1"
Date: Tue, 09 Jun 2009 23:03:49 +0100
Message-Id: <1244585029.10932.11.camel@jetpack.demon.co.uk>
Mime-Version: 1.0
X-Mailer: Evolution 2.24.5 
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: alanh@fairlite.co.uk
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id n59M6caa017499

On Tue, 2009-06-09 at 23:12 +0200, Vincent Rivière wrote:
> Hello.
> 
> I have compiled some programs with the latest MiNTLib, everything works well 
> on my usual ARAnyM + EasyMiNT setup.
> 
> Bur I tried them on another more complicated MiNT setup, with several 
> resident programs, accessories, etc. and the new programs crashes in the 
> startup code !
> 
> I managed to reproduce the crash with the very simple assembler program 
> attached to this message. It is a stand-alone program, it does not use the 
> MiNTLib but it mimics its behaviour. Basically, it initializes the stack at 
> the top of the TPA, and displays a message.
> 
> On my problematic MiNT setup, it crashes even before displaying the message! 
> But if I subtract 36 bytes from my new stack, it works. So it looks like the 
> 36 highest bytes of the TPA are getting corrupted by something.
> 
> Could you please confirm that this small program is correct without any 
> subtract, so my MiNT setup is broken ?

Works fine here.

Alan.


