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 

Bus error loading a prx

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



Joined: 29 Oct 2009
Posts: 7

PostPosted: Tue Nov 03, 2009 7:18 am    Post subject: Bus error loading a prx Reply with quote

Hi.. I'm getting an "Bus error" when I try to load a prx using psplinkusb, but it looks like it's happening before anything is loaded.. Even running "debug binary.prx" on the shell gives me this, before the server can start

Code:
Exception - Bus error (data)
Thread ID - 0x0091911B
Th Name   - SceKernelModmgrWorker
Module ID - 0x0029D945
Mod Name  - sceLoaderCore
EPC       - 0x880173F8
Cause     - 0x1000001C
BadVAddr  - 0x58642408
Status    - 0x00088603
zr:0x00000000 at:0x88020000 v0:0x00000000 v1:0x00000001
a0:0x882003DC a1:0x0072FEB4 a2:0x0072FF68 a3:0x6F880FD0
t0:0x80020000 t1:0x00000001 t2:0x00000000 t3:0x00300000
t4:0x00000000 t5:0x00000001 t6:0x88300000 t7:0x00300000
s0:0x00000000 s1:0x00000000 s2:0x882FA660 s3:0xDEADBEEF
s4:0x882003DC s5:0xDEADBEEF s6:0x008E0D70 s7:0x00000000
t8:0x00000000 t9:0x88300000 k0:0x00000000 k1:0x00000000
gp:0x8806C120 sp:0x882FA330 fp:0x00000001 ra:0x880617AC
0x880173F8: 0x94A2000A '....' - lhu        $v0, 10($a1)


how do I debug it? the psplink manual lists a bunch of commands I can use, but the shell is completely dead after I get this, so I can't do anything.

thanks
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Tue Nov 03, 2009 7:34 am    Post subject: Reply with quote

Do you have some plugins running in the background.
Sometimes a plugin can interfere with psplink.
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
punto



Joined: 29 Oct 2009
Posts: 7

PostPosted: Tue Nov 03, 2009 8:13 am    Post subject: Reply with quote

I don't think so.. I'm just running psplink from the normal psp menu, there's nothing else running as far as I know..
Back to top
View user's profile Send private message
psPea



Joined: 01 Sep 2007
Posts: 64

PostPosted: Tue Nov 03, 2009 8:27 am    Post subject: Reply with quote

>but the shell is completely dead after I get this

yeah that happens when an exception occurs in your module_start

lhu $v0, 10($a1)
a1:0x0072FEB4-not a valid memory address
_________________
Click ME!
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
punto



Joined: 29 Oct 2009
Posts: 7

PostPosted: Tue Nov 03, 2009 9:06 am    Post subject: Reply with quote

psPea wrote:
your module_start


what does that mean? I only have a main(), I don't define module_start.. isn't that what calls my main()? how did I manage to crash that?
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Tue Nov 03, 2009 8:38 pm    Post subject: Reply with quote

It can happen when you do some weird allocation or something with ram. I got something similar when i completely messed up my pointers and ram.

You are new here. Are you a beginner or are you more experienced.

(I know how to solve some problems but not when it's about kernel mode or coding hacking tools. just user mode)
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
punto



Joined: 29 Oct 2009
Posts: 7

PostPosted: Thu Nov 05, 2009 11:37 pm    Post subject: Reply with quote

ok, I found out the problem, I was using psp-strip on my .elf before psp-fixup-imports and psp-prxgen, apparently it doesn't like that.
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