Assertion "(char *) NextSlot(p) <= next" failed, file "/usr/src/lib/libc/ansi/malloc.c"

185 Views Asked by At

I'm currently working on Minix. I'm creating a game "Arkanoid" and so far it's been working fine. I've already added the keyboard and timer functionalities but now when I add the mouse my program just crashes.

I checked my log files and I'm getting this message:

Dec 15 16:16:30 172 kernel: Arkanoi(109705): panic: 
Dec 15 16:16:30 172 kernel: Assertion "(char *) NextSlot(p) <= next" failed, file "/usr/src/lib/libc/ansi/malloc.c", line 245
Dec 15 16:16:30 172 kernel: 
Dec 15 16:16:30 172 kernel: syslib:panic.c: stacktrace: 
Dec 15 16:16:30 172 kernel: 0x55c3 
Dec 15 16:16:30 172 kernel: 0x652c 
Dec 15 16:16:30 172 kernel: 0xb060 
Dec 15 16:16:30 172 kernel: 0x2cda 
Dec 15 16:16:30 172 kernel: 0x3b0f 
Dec 15 16:16:30 172 kernel: 0x20b3 
Dec 15 16:16:30 172 kernel: 0x100a 

I'm not sure what that is referring to.

Here are the following codes in use:

Mouse.c: http://pastebin.com/k4KYyWLD

Arkanoid.c: http://pastebin.com/C7HiBa8u

Thanks for the help. I really don't know what's causing this.

0

There are 0 best solutions below