The code you have posted is not particularly easy to read (formatting has been lost) but I cannot see anything that looks wrong.
The PIC18 is not an ideal target for running a real time kernel, and it might just be that it is running too slowly, resulting in overrun errors in the UART. You could try adding the following to the ISR:
/* Clear any overrun errors. */
if( RCSTAbits.OERR )
{
RCSTAbits.CREN = serCLEAR_OVERRUN;
RCSTAbits.CREN = serCONTINUOUS_RX;
}
Also you could try looking at the usual suspects of stack overflow, etc.
Regards.