Solved

shared libs and bad magic number

Posted on 2000-04-10
5
494 Views
Last Modified: 2013-12-06
what can typically cause a bad magic number on a shared lib ?
0
Comment
Question by:migue
  • 3
  • 2
5 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2702931
In what context? Typically it would indicate something wrong with the shared lib, but it could also be a problem with how the lib is being examined.
0
 

Author Comment

by:migue
ID: 2709017
need more detailed answer, examples etc....
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2709268
Well, what are you doing when you get "bad magic number" reported?
0
 

Author Comment

by:migue
ID: 2710021
running a script thats loads some procs..to have other procs connect to oracle db on hp-ux.

I don't do anything. I just get the error and then crack open the DBA manuals.....
0
 
LVL 40

Accepted Solution

by:
jlevie earned 40 total points
ID: 2710334
Does it give you a clue as to what shared lib it doesn't like? My suspicion is that there's either a path or filename problem and something is being specified that's not a shared lib, or that one of the shared libs is in fact bogus.

The "magic number" is just that. There's a file somewhere (perhaps in /etc or /usr/share) on your system that defines certain special numbers that will in appear in files of a specific type at a certain location(s) in the file ("man magic" should tell you more). The magic number is always used by the file(1) command when it tells you what a give file type is. Other things might use the same process to determine the validity of a file they've been given for processing, like a dynamic loader.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now