| View previous topic :: View next topic |
| Author |
Message |
paulotex
Joined: 20 Jan 2008 Posts: 19
|
Posted: Thu Oct 02, 2008 6:19 pm Post subject: Exception - Syscall: can't find what I'm doing wrong :( |
|
|
Hi.
I'm debugging a homebrew, and I'm getting this error when I run it with linkusb:
| Code: | host0:/> ./bookr.prx
Load/Start host0:/bookr.prx UID: 0x04582D35 Name: "Bookr"
host0:/> Exception - Syscall
Thread ID - 0x0457A841
Th Name - user_main
Module ID - 0x04582D35
Mod Name - "Bookr"
EPC - 0x08A1D024
Cause - 0x90000020
BadVAddr - 0x85084004
Status - 0x00088613
zr:0x00000000 at:0x2008FF00 v0:0x00000000 v1:0x08B30000
a0:0xE2000000 a1:0x08B29838 a2:0x40000040 a3:0x00CA2071
t0:0xFFEFFFFF t1:0xFFEFFFFF t2:0xFFFFFFFF t3:0x00000030
t4:0x0BBBFCD8 t5:0x00088613 t6:0x0893DC54 t7:0x00088600
s0:0xDEADBEEF s1:0xDEADBEEF s2:0xDEADBEEF s3:0xDEADBEEF
s4:0xDEADBEEF s5:0xDEADBEEF s6:0xDEADBEEF s7:0xDEADBEEF
t8:0x880A0000 t9:0x880A1180 k0:0x0BBBFF00 k1:0x00000000
gp:0x08B225E0 sp:0x0BBBFCC8 fp:0x0BBBFCC8 ra:0x0893E980
0x08A1D024: 0x03E00008 '....' - jr $ra
|
Debugging with gdb gives:
| Code: | 153 sceGuInit();
(gdb)
154 sceGuStart(GU_DIRECT, list);
(gdb)
Program received signal SIGHUP, Hangup.
0x08a1d024 in ?? ()
|
(BTW, this is the bookr_djvu sources). I checked my sdk installation, and everything seems fine: it is the latest version and sdk/samples/gu work fine. Is this a known problem? Can someone point me to some actions to debug this?
Thanks. |
|
| Back to top |
|
 |
paulotex
Joined: 20 Jan 2008 Posts: 19
|
Posted: Fri Oct 03, 2008 12:15 am Post subject: Check heap size |
|
|
I'm answering my own post: the problem that heap size was too small. With | Code: | PSP_HEAP_SIZE_KB(2048);
| everything is fine. |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Fri Oct 03, 2008 6:11 am Post subject: |
|
|
Which is why many devs wait a day or two before answering. Many times, an answer isn't needed. Not if the person really is serious about being a developer themselves.
Good job on working it out on your own. You'll do fine here. 8) |
|
| Back to top |
|
 |
|