| View previous topic :: View next topic |
| Author |
Message |
smartie_on_computer
Joined: 09 May 2007 Posts: 28
|
Posted: Sun Feb 22, 2009 6:48 am Post subject: How do i read a crash report from psplink? |
|
|
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 |
|
 |
NoEffex
Joined: 27 Nov 2008 Posts: 108
|
Posted: Sun Feb 22, 2009 10:22 am Post subject: |
|
|
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 |
|
 |
smartie_on_computer
Joined: 09 May 2007 Posts: 28
|
Posted: Sun Feb 22, 2009 11:02 am Post subject: |
|
|
| so how would i figure out what part of my code caused this error and waht the error was? |
|
| Back to top |
|
 |
jsharrad
Joined: 20 Oct 2005 Posts: 102
|
Posted: Sun Feb 22, 2009 12:34 pm Post subject: |
|
|
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
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 |
|
 |
hlide
Joined: 10 Sep 2006 Posts: 750
|
Posted: Sun Feb 22, 2009 7:21 pm Post subject: |
|
|
"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 |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Mon Feb 23, 2009 2:18 am Post subject: |
|
|
| 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 |
|
 |
smartie_on_computer
Joined: 09 May 2007 Posts: 28
|
Posted: Mon Feb 23, 2009 2:25 pm Post subject: |
|
|
| 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 |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Mon Feb 23, 2009 2:49 pm Post subject: |
|
|
| 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 |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Mon Feb 23, 2009 4:07 pm Post subject: |
|
|
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 |
|
 |
|