amiga.org
     
iconAll times are GMT -6. The time now is 01:45 PM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » Amiga computer related discussion » Amiga Hardware Issues and discussion » Can library files not in use cause crashing?

Amiga Hardware Issues and discussion This forum is dedicated to the discussion and resolution of issues related to Classic and Next Generation Amiga hardware. Got a problem with a piece of hardware? Click to speak.

Reply
 
Thread Tools Display Modes
Old 04-01-2004, 02:53 PM   #1
redrumloa
Original Omega User
Points: 44,458, Level: 100 Points: 44,458, Level: 100 Points: 44,458, Level: 100
Activity: 99% Activity: 99% Activity: 99%
 
redrumloa's Avatar
 
Join Date: Feb 2002
Posts: 10,126
Blog Entries: 4
Send a message via AIM to redrumloa
Default Can library files not in use cause crashing?

Just like the title asks. Can a something.library file actually cause a crash even if it isn't in use?
__________________
Someone has to state the obvious and that someone is me!
redrumloa is offline   Reply With Quote
Old 04-01-2004, 02:58 PM   #2
Doobrey
Defender of the Faith
Points: 8,432, Level: 61 Points: 8,432, Level: 61 Points: 8,432, Level: 61
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2002
Posts: 1,876
Default Re: Can library files not in use cause crashing?

What do you mean by in use?
Opened by an app, but not actually using it?
or just sitting there on the HD,unopened?

If you mean the latter, then no. If no app has opened the library, then it can`t cause a crash.
Doobrey is offline   Reply With Quote
Old 04-01-2004, 03:03 PM   #3
CaptainHIT
Too much caffeine
Points: 4,641, Level: 43 Points: 4,641, Level: 43 Points: 4,641, Level: 43
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Posts: 146
Send a message via ICQ to CaptainHIT Send a message via MSN to CaptainHIT Send a message via Yahoo to CaptainHIT
Default Re: Can library files not in use cause crashing?

LOL :-D

Nice April joke! ;-)
I see only one guy believed that question :-P
CaptainHIT is offline   Reply With Quote
Old 04-01-2004, 03:14 PM   #4
cecilia
Amiga Snob
Points: 17,278, Level: 83 Points: 17,278, Level: 83 Points: 17,278, Level: 83
Activity: 4% Activity: 4% Activity: 4%
 
cecilia's Avatar
 
Join Date: Mar 2002
Location: Neeeew Yawk
Posts: 4,870
Blog Entries: 1
Default Re: Can library files not in use cause crashing?

i just figured Red had made a mistake and was actually using Windows
__________________
the no CARB diet- no Cheney, Ashcroft, Rumsfeld or Bush.
IFX CD Tutorial
cecilia is offline   Reply With Quote
Old 04-01-2004, 03:20 PM   #5
Ilwrath
Kindred of Babble-on
Points: 12,069, Level: 72 Points: 12,069, Level: 72 Points: 12,069, Level: 72
Activity: 1% Activity: 1% Activity: 1%
Zookeeper Champion
 
Ilwrath's Avatar
 
Join Date: Mar 2002
Posts: 2,184
Default Re: Can library files not in use cause crashing?

Quote:
Can a something.library file actually cause a crash even if it isn't in use?
Well, I hate to be like Bill Clinton... But that depends on your definition of "cause" and of "in use."

The presence of a library in LIBS: may be queried by a certain program, even if it doesn't plan on using it. IIRC, several CD32 games queried the existance of lowlevel.library, without actually using it. If it found a lowlevel.library, the game would assume it was on a CD32, and might crash an A1200. Thus, a library not in use COULD cause a crash of a badly written app. I suggest digging around with SnoopDOS to figure out what is really happening. :-)
Ilwrath is offline   Reply With Quote
Old 04-01-2004, 03:27 PM   #6
redrumloa
Original Omega User
Points: 44,458, Level: 100 Points: 44,458, Level: 100 Points: 44,458, Level: 100
Activity: 99% Activity: 99% Activity: 99%
 
redrumloa's Avatar
 
Join Date: Feb 2002
Posts: 10,126
Blog Entries: 4
Send a message via AIM to redrumloa
Default Re: Can library files not in use cause crashing?

Umm this was a real question and not an april fools!

@llwrath

I am trying to figure out a major instability. I am pretty sure it is
hardware related, but I want to eliminate everything else.

It's a A4k CSPPC w/OS3.9. The problem is it is even crashing on
startup before even launching any programs sometimes. Other times it
will wotk for a while.
__________________
Someone has to state the obvious and that someone is me!
redrumloa is offline   Reply With Quote
Old 04-01-2004, 04:00 PM   #7
Ilwrath
Kindred of Babble-on
Points: 12,069, Level: 72 Points: 12,069, Level: 72 Points: 12,069, Level: 72
Activity: 1% Activity: 1% Activity: 1%
Zookeeper Champion
 
Ilwrath's Avatar
 
Join Date: Mar 2002
Posts: 2,184
Default Re: Can library files not in use cause crashing?

Quote:
It's a A4k CSPPC w/OS3.9. The problem is it is even crashing on startup before even launching any programs sometimes. Other times it will wotk for a while.
Ick.... That does sound hardware-ish, doesn't it?

I might suggest cold-booting the system up into 3.1 from floppy/zip, or some other media, to make sure, though. The 040/060 libs are called by Setpatch, and an improper version (or corruption) of one of these libs can trash a system fairly early in startup. Also, the ROM update file could cause errors that look like hardware faults. I actually had a partially corrupted Boing Bag 2 install (OS3.9) cause Yellow-Screen boot faults on my A4000!
Ilwrath is offline   Reply With Quote
Old 04-02-2004, 12:54 AM   #8
NightShade737
Technoid
Points: 5,136, Level: 45 Points: 5,136, Level: 45 Points: 5,136, Level: 45
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Posts: 328
Send a message via ICQ to NightShade737 Send a message via AIM to NightShade737 Send a message via MSN to NightShade737
Default Re: Can library files not in use cause crashing?

I copied a load of Libraries onto my UAE setup (not overwriting anything) and suddenly a load of things stopped working and others crashed (things like Execute Command and Icon Info etc). So I think the answer is yes.
NightShade737 is offline   Reply With Quote
Old 04-02-2004, 01:26 AM   #9
Piru
' union select name,pwd--
Points: 30,457, Level: 100 Points: 30,457, Level: 100 Points: 30,457, Level: 100
Activity: 69% Activity: 69% Activity: 69%
 
Piru's Avatar
 
Join Date: Aug 2002
Location: Helsinki, Finland
Posts: 6,946
Default Re: Can library files not in use cause crashing?

@redrumloa
Quote:
Can a something.library file actually cause a crash even if it isn't in use?
No.

Probably you just don't notice the library is in fact used by something. If the library is not used at all, it can't cause any stability problems.

@NightShade737
Quote:
I copied a load of Libraries onto my UAE setup (not overwriting anything) and suddenly a load of things stopped working and others crashed (things like Execute Command and Icon Info etc). So I think the answer is yes.
Just because you don't overwrite a library when copying libs over doesn't mean the library would not be used on next boot.

So probably you copied some library that the system will open on next boot, and that will mess things up.
Piru is offline   Reply With Quote
Old 04-02-2004, 02:21 AM   #10
Damion
Desperately needs a life
Points: 15,105, Level: 79 Points: 15,105, Level: 79 Points: 15,105, Level: 79
Activity: 14% Activity: 14% Activity: 14%
 
Join Date: May 2002
Location: Nevada, USA
Posts: 3,448
Default Re: Can library files not in use cause crashing?

Quote:
Ick.... That does sound hardware-ish, doesn't it?
I agree with Ilwrath...sounds definately like a hardware fault.







....or...I 'could' just be April foolsin' ya...you decide.:-P


Damion is offline   Reply With Quote
Old 04-02-2004, 02:52 AM   #11
Framiga
Energizer Bunny of Babble
Points: 16,709, Level: 82 Points: 16,709, Level: 82 Points: 16,709, Level: 82
Activity: 5% Activity: 5% Activity: 5%
 
Framiga's Avatar
 
Join Date: May 2003
Posts: 4,082
Default Re: Can library files not in use cause crashing?

hi red,

crash or freeze?

I've had the same problem here with CSPPC233-060, and i've found that was a mechanical problem.

Pushing down (a little bit) on the 060 cpu, the system booted/worked perfectely.

So i've cleaned all the sockets (060CPU and the 200pins one) reseatted properly and now all works OK.

Now i'm start to think, to use the system used by Rigger Bolted down CSPPC

Ciao
Framiga is offline   Reply With Quote
Old 04-02-2004, 02:55 AM   #12
NightShade737
Technoid
Points: 5,136, Level: 45 Points: 5,136, Level: 45 Points: 5,136, Level: 45
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Posts: 328
Send a message via ICQ to NightShade737 Send a message via AIM to NightShade737 Send a message via MSN to NightShade737
Default Re: Can library files not in use cause crashing?

Also, do a search on AmiNet for CSPPC and you will find this:

Quote:
Short: Workaround for CSPPC/233 hardware bug
Author: lesueur@club-internet.fr, frank@phoenix.owl.de (Frank Wille & Emmanuel Lesueur)
Uploader: frank@phoenix.owl.de
Type: hard/misc
Requires: powerpc.library or ppc.library

Some CyberStormPPC 604e/233MHz boards seem to suffer from annoying
random crashes under WarpOS as well as under PowerUp. They might be
caused by some kind of hardware bug, which sets bit 0 or bit 2 of the
PowerPC's LR register in certain situations. This will result into an
instruction access fault, when a program returns from a sub routine.

If you ever got an instruction access exception where the first digit
of LR is not '0', then this program might solve most of your troubles.

Whether this problem comes from a defective board, or a bad power supply,
or from too much heat is unknown. But surprisingly it only affects
CSPPCs with a 233 MHz CPU. 200 MHz is fine, I have one for comparison!

This archive contains two exception handlers, one for PowerUp
(CSPPC233Fix_ppc) and one for WarpOS (CSPPC233Fix_wos), which reset
those trashed bits in case of an exception which is recognized as the
"LR-Bug problem". The PPC program is able to continue after LR was fixed.


USAGE:

CSPPC233Fix_ppc (PowerUp version):
----------------------------------
Can be started from CLI and from Workbench.
CLI Usage:
LRBug NOREQ/S,QUIET/S,NOWAIT/S

NOREQ: don't ask before attempting to restart a task.
QUIET: don't write messages with kprinf() when restarting a task.
NOWAIT: don't install a handler, just restart crashed tasks and quit.

WB Usage:
Tooltypes NOREQ, QUIET, and NOWAIT, with the same meaning.

To remove the handler, send a CTRL-C.

CSPPC233Fix_wos (WarpOS version):
---------------------------------
Just start from CLI. No options. To remove the handler, press CTRL-C.
Whenever an LR-Bug occurs, the hit will be printed to stdout. If
you don't want that, redirect output to NIL:. All other exceptions
will be invoke the WarpOS exception window, as usual.


REBUILD:

The full source text of both programs is included and a makefile is
provided to rebuild them with vbcc. The PowerUp version can also be
compiled with SAS/C and gcc. The WarpOS version with StormC (gcc-WarpOS
is not recommended for an exception handler, because of different ABIs).
NightShade737 is offline   Reply With Quote
Old 04-02-2004, 03:06 AM   #13
Framiga
Energizer Bunny of Babble
Points: 16,709, Level: 82 Points: 16,709, Level: 82 Points: 16,709, Level: 82
Activity: 5% Activity: 5% Activity: 5%
 
Framiga's Avatar
 
Join Date: May 2003
Posts: 4,082
Default Re: Can library files not in use cause crashing?

Hi NightShade737

yes i've already downloaded the LRBug fix but, my problem isn't software related.

It is a mere mechanical problem. (i'm quite sure that 70% of the PUP sent to DCE for repairs, had a similar problem)

BTW, do you suggest me to install it anyway?

Cheers

PS- should be useful, to start a thread or so, PUP related with all the tips-suggestions-fixes made by the users.
Framiga is offline   Reply With Quote
Old 04-02-2004, 05:33 AM   #14
redrumloa
Original Omega User
Points: 44,458, Level: 100 Points: 44,458, Level: 100 Points: 44,458, Level: 100
Activity: 99% Activity: 99% Activity: 99%
 
redrumloa's Avatar
 
Join Date: Feb 2002
Posts: 10,126
Blog Entries: 4
Send a message via AIM to redrumloa
Default Re: Can library files not in use cause crashing?

@all
Thanks for the responses, it helps me confirm it's a hardware problem which I pretty much knew already..

Out of curiosity, do lib files get loaded into RAM in startup or do the lay unused in LIBS until a program calls for it?

Quote:
crash or freeze?
Well I am getting all kinds of random weirdness, but part of that may be some unrealsed stuff I am testing. But to focus on boot up, the system locks up occasionally. The picture is still there, but the mouse won't move. The keyboard does respond to a 3 finger salute. I really have a pretty plain jane OS3.9 setup, so it's not software hacks.
__________________
Someone has to state the obvious and that someone is me!
redrumloa is offline   Reply With Quote
Old 04-02-2004, 07:25 AM   #15
PiR
Too much caffeine
Points: 4,885, Level: 44 Points: 4,885, Level: 44 Points: 4,885, Level: 44
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2003
Posts: 148
Default Re: Can library files not in use cause crashing?

Hi

Have you ever considered simple lack of power?
It can show like you describe - everything freezes, including mouse pointer.

Another tip (my own :-D): CapsLock test:

Keyboard has its own simple CPU with small buffer.
When your system freezes try hitting CapsLock several times and observe its diode.
If after several hits (lets say no more then twenty) you notice that led is not changing (after the last hit it stayed on or off ignoring you're still hitting it), this means that keyboard buffer is full - waiting the main CPU to fetch the data. This means that CPU stopped and this may happen because the voltage dropped so much that CPU refuses to work any more.

3fingers works anyway, as it is forced via the back-door, omitting this keyboard buffer.

Invended this on my A1200.

Quote:
Out of curiosity, do lib files get loaded into RAM in startup or do the lay unused in LIBS until a program calls for it?
Everything stays on disk and getts loaded only when needed and that means - at the first try to open it.
It is worth to mention that it is unloaded ... no, not, when the last one who used the lib is finished. It is unloaded only when the system is trying to organize any more memory and this lib not used at the moment, and this means, when system runs short of memory and somewhere someone tries to allocate some.


Good luck
PiR is offline   Reply With Quote
Reply

Bookmarks

Tags
library , files , crashing

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cybervision 64/3D crashing the ami Amiduffer Amiga Hardware Issues and discussion 8 10-16-2008 05:32 PM
prophet64 PSID Files and playsid3.0 library neuroflip Amiga OS -- Development 0 12-12-2007 02:19 PM
WHDLOAD KEEPS CRASHING ! nahoo7 Amiga Software Issues and Discussion 9 04-27-2005 01:42 PM
X-Arc crashing Jettah General chat about Amiga topics 3 12-14-2004 01:53 PM
Yam crashing after deleting base64-encoded files DanDude Amiga Software Issues and Discussion 3 11-08-2002 11:14 AM