Page 1 of 1

Reserved Instruction exception

Posted: Sun Jun 11, 2006 3:24 am
by evilo
while trying to make lua 5.1 running on the ps2, i got this exception
EE Exception handler: Reserved instruction exception

Cause 70008028 BadVaddr 0000000c Status 70030c13 EPC 00100764
I dumped the elf and have at the following instructions at the specified EPC :
100750: 24c5004c addiu a1,a2,76
100754: 00a0382d move a3,a1
100758: 8c820004 lw v0,4(a0)
10075c: 8c430000 lw v1,0(v0)
100760: 24020005 li v0,5
100764: 8c64000c lw a0,12(v1)
100768: aca20004 sw v0,4(a1)
10076c: 1000ffd0 b 1006b0 <index2adr+0x30>
100770: acc4004c sw a0,76(a2)
100774: 00000000 nop
can anyone help me with this ? I'm bit confused and lost with the exception type...

[EDIT] Solved ! in my interpreter I was loading 2 times the io library.. (bad cut/paste), seems the the EE doesn't like it anyway !

Posted: Sun Jun 11, 2006 1:20 pm
by cheriff
Also (mainly for anyone else who finds this and is looking for a solution), on IRC recently there was a dicussion about a Reserved instruction exception was thrown. This was later found to really be a NULL pointer dereference...

Just FYI, something to look out for future reference.

Posted: Sun Jun 11, 2006 7:40 pm
by evilo
thanks for the info :)