[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FOUND: Code causing crash with AES4.1 and colour



Matija Grabnar wrote:

> I have found what causes AES 4.1 to crash when running MinT 1.12 (including
> h2, h3 and freemint) in 16 or more colour mode. The culprit is in proc.c
> starting at line 636: 
> 
> #ifndef MULTITOS
> #ifdef FASTTEXT
> 		if (!hardscroll)
> 			*((void **)0x44eL) = curproc->logbase;
> #endif
> #endif
> 
> This is in function sleep.
> 
> If I make a MiNT compiled with -DMULTITOS, it doesn't crash.
> If I make a MiNT compiled with -DMULTITOS but with this line and FASTTEXT
> enabled, it crashes. 
> If I make a MiNT compiled without -DMULTITOS it crashes.
> If I make a MiNT compiled without -DMULTITOS but with the whole of the if
> statement commented out, it doesn't crash. 
> 
> I don't use MiNT in textual mode, so I can't say how the absence of the above
> statement affects it's operation in that mode. Can somebody please check this,
> so we can decide what to do? 

I'd also like to hear more about this.  I don't know how to fix this
best.  Perhaps abandon the per-process _logbase altogether?

Michael
-- 
Email: hohmuth@inf.tu-dresden.de
WWW:   http://www.inf.tu-dresden.de/~mh1/