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 

How do i read a crash report from psplink?

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



Joined: 09 May 2007
Posts: 28

PostPosted: Sun Feb 22, 2009 6:48 am    Post subject: How do i read a crash report from psplink? Reply with quote

Hey guys,

each time my homebrew crashes i get errors from psplink bu they mean nothing to me because i cant tell what when wrong.

for instance can someone tell me what this means and how you figured that out?
Code:
host1:/> Exception - Bus error (data)
Thread ID - 0x048E6D07
Th Name   - user_main
Module ID - 0x00CD497B
Mod Name  - "PSPWebCam"
EPC       - 0x08805518
Cause     - 0x1000001C
BadVAddr  - 0x0B089540
Status    - 0x20088613
zr:0x00000000 at:0xDEADBEEF v0:0x00000000 v1:0x000000FF
a0:0x00000000 a1:0x4400C754 a2:0x00000008 a3:0x4400BF54
t0:0x00000008 t1:0x00000080 t2:0x00000000 t3:0x00000001
t4:0x00000000 t5:0x4400BF54 t6:0x000000DB t7:0xDEADBEEF
s0:0x00000015 s1:0x0BBBFE34 s2:0x00000001 s3:0x0BBBFEE0
s4:0x00000015 s5:0x00000013 s6:0xDEADBEEF s7:0xDEADBEEF
t8:0xDEADBEEF t9:0xDEADBEEF k0:0x0BBBFF00 k1:0x00000000
gp:0x0882B2E0 sp:0x0BBBFDF0 fp:0x0BBBFDF0 ra:0x08804CC0
0x08805518: 0xA0400000 '..@.' - sb         $zr, 0($v0)


Cheers
Roman
Back to top
View user's profile Send private message
NoEffex



Joined: 27 Nov 2008
Posts: 108

PostPosted: Sun Feb 22, 2009 10:22 am    Post subject: Reply with quote

It tells you where the exception happened and dumps all the registers so you can read what is in what register. This is more useful to the projects developers in my opinion as they know more of what's going on, but, usually it'll give a hint as to what triggered what, just gotta somewhat understand mips.
_________________
Programming with:
Geany + Latest PSPSDK from svn
Back to top
View user's profile Send private message
smartie_on_computer



Joined: 09 May 2007
Posts: 28

PostPosted: Sun Feb 22, 2009 11:02 am    Post subject: Reply with quote

so how would i figure out what part of my code caused this error and waht the error was?
Back to top
View user's profile Send private message
jsharrad



Joined: 20 Oct 2005
Posts: 102

PostPosted: Sun Feb 22, 2009 12:34 pm    Post subject: Reply with quote

If you're building for fw 1.5 just use psp-addr2line on the elf with the EPC address.
Code:
psp-addr2line -fe whatever.elf 0x08805518

or if you're building a PRX for a higher firmware in psplink do
Code:
calc $epc-$mod

and use the resulting address in psp-addr2line to give you an idea of where in your source things are going south.
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Sun Feb 22, 2009 7:21 pm    Post subject: Reply with quote

"sb $zr, 0($v0)" ==> "*((char *)v0) = 0;"

but v0 = 0, so you're trying to writing zero through a null pointer somewhere in your code.
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Mon Feb 23, 2009 2:18 am    Post subject: Reply with quote

The alternative to working out where the problem is is to try and use psp-gdb, as long as your crash is repeatable it will be easy to track it down (as long as you build your app correctly :P)
Back to top
View user's profile Send private message
smartie_on_computer



Joined: 09 May 2007
Posts: 28

PostPosted: Mon Feb 23, 2009 2:25 pm    Post subject: Reply with quote

TyRaNiD wrote:
The alternative to working out where the problem is is to try and use psp-gdb, as long as your crash is repeatable it will be easy to track it down (as long as you build your app correctly :P)


wow thnx for ur guys replies, ill use them nxt time, but jsut to note TyRaNiD, i cant use psp gdb because im using the psp go!cam so i cant use psplink unless you release a wirelss version lol

Cheers
Roman
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Mon Feb 23, 2009 2:49 pm    Post subject: Reply with quote

smartie_on_computer wrote:
TyRaNiD wrote:
The alternative to working out where the problem is is to try and use psp-gdb, as long as your crash is repeatable it will be easy to track it down (as long as you build your app correctly :P)


wow thnx for ur guys replies, ill use them nxt time, but jsut to note TyRaNiD, i cant use psp gdb because im using the psp go!cam so i cant use psplink unless you release a wirelss version lol

Cheers
Roman


I'm still waiting for the wireless version too :@ Hurry up xD
Back to top
View user's profile Send private message AIM Address
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Mon Feb 23, 2009 4:07 pm    Post subject: Reply with quote

Not going to happen :) Well unless someone upissues the old psplink and tries to port it across to CFW, it might not be that hard to do.

And the old psplink did have a wifi GDB stub :)
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