1828328 Members
3788 Online
109976 Solutions
New Discussion

dynamic linker error

 
SOLVED
Go to solution
Edmund Brown
Occasional Advisor

dynamic linker error

Hi All

Could anyone help in giving a little background to the following runtime error.

/usr/lib/pa20_64/dld.sl: Mmap failed due to errno: 13.

Seen when executing a 64-bit ELF executable.

Thanks
Ed
6 REPLIES 6
Dennis Handly
Acclaimed Contributor
Solution

Re: dynamic linker error

It seems errno 13 is Permission denied?
This could happen if your shlibs aren't executable.
A. Clay Stephenson
Acclaimed Contributor

Re: dynamic linker error

Errno 13 is EPERM meaning that the effective UID of the process lacks permission to access a file (probably a shared library). Execute "ldd your_executable" and check the permissions on each shared library listed.

If it ain't broke, I can fix that.
Dennis Handly
Acclaimed Contributor

Re: dynamic linker error

>Clay: Execute "ldd your_executable" and check the permissions on each shared library listed.

Since ldd uses dld, it probably won't tell you more than one bad shlib at a time. Using chatr(1) would list all shlibs but only at the first level.
Edmund Brown
Occasional Advisor

Re: dynamic linker error

Thanks for that, I am afraid to say I incorrectly set the permissions on a recently downloaded set of libs. Could you point me the right direction for future error code look-ups.
Steven Schweda
Honored Contributor

Re: dynamic linker error

"man errno"

If you have only the number (like 13), not
the name (like EACCES), you can look in
/usr/include/sys/errno.h to see what's what.

> Errno 13 is EPERM [...]

Close.
Dennis Handly
Acclaimed Contributor

Re: dynamic linker error

Minor point, dld is Dynamic LoaDer. See dld.sl(5) or dld.so(5).