Operating System - Linux
1748128 Members
3503 Online
108758 Solutions
New Discussion юеВ

exec(2) : text exceeds limits error

 
SOLVED
Go to solution
Kathiravan Velusamy
Occasional Contributor

exec(2) : text exceeds limits error

Hello All, When I try to run ldd command for a binary file which is more than 10MB, I received following error in my HP-UX 11.23 IPF machine.

$ ldd mysql/libexec/mysqld

exec(2): text exceeds limits
ldd: Cannot execute "/opt/iexpress/mysql/libexec/mysqld", Not enough space.

Original size of "mysql/libexec/mysqld" binary file is ~ 12 MB. ( 12752 KB).

I have attached a file which contains information about kernel values present in my machine with swapinfo and bdf information's.

Please help me to get rid of this error.

Thanks,
Kathir



Attack Every Problem with Enthusiasm, if your Survival Depending on it
2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: exec(2) : text exceeds limits error

df -H

The space reference may refer to not having enough disk space to expand the file for execution. Wondering if /usr is full.

I doubt that, but can find nothing in your kernel that jumps out at me as the casue.

Wondering what your shared memory area and message queues look like.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kathiravan Velusamy
Occasional Contributor

Re: exec(2) : text exceeds limits error

Hello All, Sorry to post this question in linux-general forum. This should go to HP-UX related forum.

Anyway problem was solved byincreasing maxtsiz/maxtsiz_64bit the maximum text size(s) for a process.

Thanks,
Kathir

Attack Every Problem with Enthusiasm, if your Survival Depending on it