ps2link crashing

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
radad
Posts: 246
Joined: Wed May 19, 2004 4:54 pm
Location: Melbourne, Australia

ps2link crashing

Post by radad »

I have compiled the latest ps2link and ps2client from cvs. I am getting it crashing exerytime a run a second elf. The first elf runs fine. I can even rerun this elf many times. When I try a different elf it crashes. I have to reboot the ps2 then I run the second elf and everything runs fine.

Anyone else experiencing this problem?
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Does it crash if you do a reset before running the second elf?

Is your first elf doing anything 'funny' to sifrpc? Is it loading into a memory location overlapping with ps2link? Did you forget to sacrifice a chicken?

There's many nasty things you can do to make it crash. :)

What do these programs do?
radad
Posts: 246
Joined: Wed May 19, 2004 4:54 pm
Location: Melbourne, Australia

Post by radad »

I haven't tried resetting, shall try that tonight.

The only sif function it calls is SifInitRpc.

It is a very simple program to get a directly listing output using printf.
urchin
Posts: 121
Joined: Thu Jun 02, 2005 5:41 pm

Post by urchin »

I do a ps2client reset before running each elf - should I need to do this, or should I be able to run one elf after another? (assuming they are not doing anything illegal)

I can run a simple elf several times, but then get a message like "EE needs reset" and the PS2 locks requiring a reboot.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

A well-behaved program shouldn't have to be reset between executions.
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post by pixel »

Yet, all the ps2 softwares you can find around are not well-behaved :P So, better reset between two execee. It doesn't take long anyway.
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
radad
Posts: 246
Joined: Wed May 19, 2004 4:54 pm
Location: Melbourne, Australia

Post by radad »

Resetting solved the problem.

I agree that a well-behaved program should not need resetting but obviously that is not possible now. The programs I was trying are not much more complex than the hello world sample.
dlanor
Posts: 258
Joined: Thu Oct 28, 2004 6:28 pm
Location: Stockholm, Sweden

Post by dlanor »

radad wrote:Resetting solved the problem.

I agree that a well-behaved program should not need resetting but obviously that is not possible now. The programs I was trying are not much more complex than the hello world sample.
There are some known reasons for these problems.

Our programming libraries rely on IOP modules, and usually expect them to have been loaded specifically for the EE program running the EE library code. That is often realistic for newly booted game disks, but less so for homebrew programs under test...

When an EE library and the IOP module it uses were not loaded by the same program, they may be in different operational 'states' causing their cooperation to malfunction in various ways. The same is also true if a program needs to perform an IOP reset while still continuing to use its own EE libraries, since the EE libs are not properly 'informed' of the state change in the IOP modules (usually reloaded from scratch on such occasions).

Solving these problems is not easy, as it needs to be done in ways that ensure maximum flexibility, reliability, as well as compatibility with all existing software. That's a pretty tall order, but I think it can be filled. At least it can be done better than just by ignoring the issue, which is what we have been doing for quite a while (more or less ;) )
(I'm not 'picking' on any person here, just on the situation as such.)

Best regards: dlanor
Post Reply