forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Libmsn porting: bus error exception

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
roby65



Joined: 01 Jun 2008
Posts: 55
Location: Mid Italy

PostPosted: Fri Feb 12, 2010 7:10 am    Post subject: Libmsn porting: bus error exception Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Fri Feb 12, 2010 7:31 am    Post subject: Reply with quote

Looks like you tried to read or write from 0xEF19757D which is invalid.
Back to top
View user's profile Send private message
davidgf



Joined: 31 Aug 2009
Posts: 22

PostPosted: Fri Feb 12, 2010 9:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group