Linux application crash issue?
I have a Linux Application, when I execute the Application as root, the program runs fine. When I execute the application as any ordinary users, the program gives the following error message:
Cannot open shared library ‘./libeeprom.so’, either file does not exist or format is not compatible(Sytem message = ./libeeprom.so: failed to map segment from shared object: Operation not permitted).
ERROR: processing command line option: -FM…
strace the application shows:
old_mmap(NULL, 6548, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = -1 EPERM (Operation not permitted)
So the true issue here is:
"failed to map segment from shared object: Operation not permitted"
But this operation is fine when I am login as root.
I appreciate if someone can help me solve this problem.
Regards,
Tagged with: command line option • error message • exec • Linux • linux application • segment • true issue
Filed under: Linux Applications
Like this post? Subscribe to my RSS feed and get loads more!
When are using the program you only have normal rights but as you know the root account has more access to the files the programs needs to use
so you need to login as root and change the normal account to a full access account type
Hi There
First of all i not here to 100% Answer your question but
Linux is not a good system i suggest you to go and bye Windows Xp Pro or Home Edition because Linux is more for
advance power users and windows xp pro is better than Linux it’s First Safer (Safer since windows 98 SE came out) and Easy er to use because it tells you what things are and helps you allot if you have a mac with Linux (I dont know if you have a PC or a Mac) Go and get MAC OS 10 does the same thing with windows vista . if you dis agree with me then System Recover the system but windows xp never has those problems as much as i know off but i remember Windows 95 had that problem once but that was 1995 when i had it so i hope i changed your mind!