Exception - Syscall: can't find what I'm doing wrong :(

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

Moderators: cheriff, TyRaNiD

Post Reply
paulotex
Posts: 19
Joined: Sun Jan 20, 2008 9:28 pm

Exception - Syscall: can't find what I'm doing wrong :(

Post by paulotex »

Hi.

I'm debugging a homebrew, and I'm getting this error when I run it with linkusb:

Code: Select all

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

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.
paulotex
Posts: 19
Joined: Sun Jan 20, 2008 9:28 pm

Check heap size

Post by paulotex »

I'm answering my own post: the problem that heap size was too small. With

Code: Select all

PSP_HEAP_SIZE_KB(2048);
everything is fine.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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