1834829 Members
2024 Online
110070 Solutions
New Discussion

mmap failed for dld

 
SOLVED
Go to solution
Van den Abeele
Occasional Contributor

mmap failed for dld

Hi,
One of our customer experiences a problem with one of our applications. The application is correctly running since a long time on a HP 10.20 9000/813 and is failing on a 11.11 9000/813.
This 11.11 is a very new system over there and honnestly speaking I do not know if they installed patches.

It creates a core file and stops continuing the application. Making a strings on the core file, we are able to collect the following information :

B.11.11
9000/800
159464661
oftphub
G)@@
oUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
UQ
$Revision: 92453-07 linker linker crt0.o B.10.19 960731 $
/usr/lib/dld.sl
ERROR: mmap failed for dld
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
030416
130357

Does someone can advise us ?

Regards
Luc Van den Abeele
vdaluc
11 REPLIES 11
James R. Ferguson
Acclaimed Contributor

Re: mmap failed for dld

Hi:

One possible reason for this error is insufficient swapspace. Use 'swapinfo -tam' to examine your space.

Regards!

...JRF...
Paddy_1
Valued Contributor
Solution

Re: mmap failed for dld

I did face the same problem sometime back.
I am attaching a small C source to make the core readable to give us further clues.

Is your application using any threads?
Also what signal is the application catching?

In my case it was the application code that was offending by improper syncing using thread mutexes.


The sufficiency of my merit is to know that my merit is NOT sufficient
Van den Abeele
Occasional Contributor

Re: mmap failed for dld

Hi,
Thanks for answer ... swapinfo is not found on the HP-UX 11.11 machine.
It exists on the 10.20 .....
Does this mean there is no swap .... ?
Thanks
Luc
vdaluc
Adam J Markiewicz
Trusted Contributor

Re: mmap failed for dld

Hi

If this is your application than doing only 'strings' on the core is the least usefull thing you could do. How about checking it with debugger?

How about 'file core' and 'what core'?

I guess you miss a shared library on that host.

Good luck
Adam
I do everything perfectly, except from my mistakes
Olav Baadsvik
Esteemed Contributor

Re: mmap failed for dld


Hello,

swapinfo is found in /usr/sbin/swapinfo
and must be run by user root.

Strings on the core file does not give
any valuable info.

Try this command instead:

file core

It may show you what caused the core-dump.
(SIGSEGV .....)

As you have a core file I advise you to run
the debugger on it.

To get the call-stack do the follwing:

gdb executable core
(gdb) info stack

If the binary you are running on 11.11 is
compiled/linked on 10.20 it may be that it
used some API that has been changed.

Olav

Van den Abeele
Occasional Contributor

Re: mmap failed for dld

Hi,
We'll try to recompile it on HP-UX 11.11 which seems to be the most easy solution.
We just have to find such an HP-UX 11.11 available. We are currently only running 10.20.
It is probably due to X25 or other stuffs which are differently "made" on 11.11.
At least our customer has such a system.

Hopefully, only a single module is concerned by this problem.

I'll let you know tomorrow as we just finished sending the pack to the customer which will download and let us compile.

Regards
Luc
vdaluc
Van den Abeele
Occasional Contributor

Re: mmap failed for dld

Hi all,

I tried this morning (Friday instead of Thursday because my customer was slow to provide access to the source code ...) and unfortunately it failed due to dld reasons again.

Please find the message ... Any Idea ?
Thanks
Luc Van den Abeele

/usr/lib/dld.sl: Can't open shared library: /usr/local/lib/libbfd-2.11.2.sl
/usr/lib/dld.sl: No such file or directory
gcc: Internal error: Aborted (program as)
Please submit a full bug report.
See <> for instructions.
*** Error exit code 1
vdaluc
Adam J Markiewicz
Trusted Contributor

Re: mmap failed for dld

Hi Luc

Just what it says:
You have no
/usr/local/lib/libbfd-2.11.2.sl
on the custommers host.
Install it and check again.
However this can be 'the first from the list', so after installing you can expect problems with missing another one.

Check where this library comes from? I guess its a part of a bigger package. Consult with the documentation baout the installation procedure.

Well, I was right. :)

Good luck
Adam
I do everything perfectly, except from my mistakes
Gary L. Paveza, Jr.
Trusted Contributor

Re: mmap failed for dld

Check to see if /usr/local/lib is in your SHLIB_PATH (echo $SHLIB_PATH).

If not, add it:

SHLIB_PATH=$SHIB_PATH:/usr/local/lib;export SHLIB_PATH
H.Merijn Brand (procura
Honored Contributor

Re: mmap failed for dld

libbfd is from the GNU tree (binutils/gcc). Make a clean install from the latest gcc available for 11i (http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.2/ or http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html) and try again

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Van den Abeele
Occasional Contributor

Re: mmap failed for dld

Thanks to all of you.
We tried to recompile on a HP-UX 11.* system without better results. Honnestly, the customer did it on its own and I had no guarantee it was correctly performed. I got a copy of the stderr/stdout out of the compilation but I had some fears.

We finally recompiled the code on our system a 10.* one, installed the latest exe and it works fine ! This is Software and IT !

Thanks
Luc Van den Abeele


PS: I'll try to quote all of your answers.
vdaluc