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 

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

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



Joined: 20 Jan 2008
Posts: 19

PostPosted: Thu Oct 02, 2008 6:19 pm    Post subject: Exception - Syscall: can't find what I'm doing wrong :( Reply with quote

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
View user's profile Send private message
paulotex



Joined: 20 Jan 2008
Posts: 19

PostPosted: Fri Oct 03, 2008 12:15 am    Post subject: Check heap size Reply with quote

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
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Oct 03, 2008 6:11 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
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