On 26.11.2012 15:03, Jakub Jermar wrote:
> On 26.11.2012 9:19, Jakub Jermar wrote:
>> Hi Petr,
>>
>> On 11/26/2012 03:13 AM, Petr KoupĂ˝ wrote:
>>> Hello,
>>>
>>> there seems to be some peculiar memory corruption causing tetris to crash
>>> on ia32 build. When you launch the tetris and press 's' to start
>>> playing, it
>>> crashes either immediately or after drawing part of the playing board.
>>> Kernel
>>> console reveals that tetris tried to access some strange unmapped
>>> memory area
>>> when accessing statically allocated data structures through pointer in
>>> 'place'
>>> or 'fits_in' functions. It seems to affect all the recent mainline
>>> revisions,
>>> at least from 1710 and above.
>>>
>>> Are you able to reproduce it? Could it perhaps be somehow linked to
>>> recent
>>> improvements of memory management and guard pages?
>>
>> I can reproduce this. I am already back at revision 1699 and the problem
>> is still reproducible, so the recent memory management improvements are
>> most likely not guilty.
> 
> To be more precise, this crash started to be reproducible as of mainline
> revision 1666, which merged the cmos rtc-clock.

Fixed in mainline,1724.

Btw., the POSIX random() interface is kind of brain-damaged. It is
declared to return long int, but may only return non-negative numbers.
And is not reentrant. This is a good candidate for replacing with
something better.

Jakub


_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to