Libmsn porting: bus error exception

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
roby65
Posts: 52
Joined: Sun Jun 01, 2008 9:12 pm
Location: Mid Italy
Contact:

Libmsn porting: bus error exception

Post by roby65 »

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: Select all

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?
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Looks like you tried to read or write from 0xEF19757D which is invalid.
davidgf
Posts: 21
Joined: Mon Aug 31, 2009 10:05 pm

Post by davidgf »

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
Post Reply