| View previous topic :: View next topic |
| Author |
Message |
roby65
Joined: 01 Jun 2008 Posts: 55 Location: Mid Italy
|
Posted: Fri Feb 12, 2010 7:10 am Post subject: Libmsn porting: bus error exception |
|
|
Hi guys,
i have a problem i can't understand.
I ported the libmsn to pspsdk, compiled -> ok.
But when i execute it, at a certain points the psp shuts down with this exception:
| Code: |
Exception details:
Exception - Bus error (data)
EPC - 08907450 / tform_test".text + 00007414
Cause - 1000001C
Status - 00008613
BadVAddr - EF19757D
zr:00000000 at:DEADBEEF v0:1FFFFFFC v1:FFFFFFFF
a0:00000000 a1:29FBFC8C a2:09FBFCB8 a3:08DBD9F8
t0:00000003 t1:00000000 t2:00000003 t3:00000001
t4:09FBFC98 t5:00000001 t6:DEADBEEF t7:DEADBEEF
s0:08DBD9E8 s1:00000014 s2:08DC0000 s3:08DBD9EC
s4:FFFFFFFF s5:08DBDA84 s6:09FBFD08 s7:08A70E00
t8:DEADBEEF t9:DEADBEEF k0:09FBFF00 k1:00000000
gp:08AC5710 sp:09FBFC90 fp:08DBD9E4 ra:0890B8F0
|
Can someone explain me what can the problem be?
I have 2 "main", main() is the one that initializes the psp callbacks, then i call main2() that is the msn main.
But as soon as i call main2() i get this exception.
Strange.
Stack overflow? |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Fri Feb 12, 2010 7:31 am Post subject: |
|
|
| Looks like you tried to read or write from 0xEF19757D which is invalid. |
|
| Back to top |
|
 |
davidgf
Joined: 31 Aug 2009 Posts: 22
|
Posted: Fri Feb 12, 2010 9:39 am Post subject: |
|
|
Just decompile using
psp-objdump -d youbinary.elf > decompiled.txt
And search for 0890B8F0 in your listing. Will see something like:
XXXXXXXX: jal <label>
XXXXXXXX: something
0890B8F0: something
label is the function which is failing, so check it
Hope it helps |
|
| Back to top |
|
 |
|