HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: malloc failed while growing stack (ksh script)
Operating System - HP-UX
1833247
Members
3027
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2002 09:26 AM
12-03-2002 09:26 AM
malloc failed while growing stack (ksh script)
Hi, while executing a chain of ksh scripts core is dumped
by the 1st script (guess on behalf of ksh?) - memory fault. Some neat strings in the core file: malloc failed while growing stack
eE;,TtFf%
ksh: sysconf error
ksh: no memory
ksh: no memory
Usually it stops in lines such
echo $1 | tr -A '[a-z]' '[A-Z]' or echo `echo $cmd cut -f 1 -d " "`
ksh version: Version M-11/16/88 on Tru64 5.1A.
These scripts ran with no problems on our previous OS -Tru64 4.0G. Don't know if the same ksh was used. Been told that kernel parameters were retained (so user's limits).
One batch uses as a test case: avg. failure ratio: ~1/20.
tried to: 1.increase avail. stack size for the proc - no effect. 2. use explicit path when calling the above commands (/usr/bin/*). No cores since (after ~185 runs of the test batch). Can it be something with the interaction between shell builtins to non-builtins ?
read about such a thing on HP-UX. Can it be due to command search elimination ?
Thanks
by the 1st script (guess on behalf of ksh?) - memory fault. Some neat strings in the core file: malloc failed while growing stack
eE;,TtFf%
ksh: sysconf error
ksh: no memory
ksh: no memory
Usually it stops in lines such
echo $1 | tr -A '[a-z]' '[A-Z]' or echo `echo $cmd cut -f 1 -d " "`
ksh version: Version M-11/16/88 on Tru64 5.1A.
These scripts ran with no problems on our previous OS -Tru64 4.0G. Don't know if the same ksh was used. Been told that kernel parameters were retained (so user's limits).
One batch uses as a test case: avg. failure ratio: ~1/20.
tried to: 1.increase avail. stack size for the proc - no effect. 2. use explicit path when calling the above commands (/usr/bin/*). No cores since (after ~185 runs of the test batch). Can it be something with the interaction between shell builtins to non-builtins ?
read about such a thing on HP-UX. Can it be due to command search elimination ?
Thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2002 09:35 AM
12-03-2002 09:35 AM
Re: malloc failed while growing stack (ksh script)
I haven't worked with Digital UNIX in about 4 years but you should look at the kernel parameter maxdsiz. It's a little misleading to talk about growing a stack which is limited by maxssiz but malloc is limited by maxdsiz.
You might also look for a tunable something like ncargmax or large_ncargs that limits the size of the argument list that the exec() system call will handle.
You might also look for a tunable something like ncargmax or large_ncargs that limits the size of the argument list that the exec() system call will handle.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2002 09:46 AM
12-03-2002 09:46 AM
Re: malloc failed while growing stack (ksh script)
Thanks.
The settings are:
per_proc_data_size = 8589924592
max_per_proc_data_size = 8589924592
The settings are:
per_proc_data_size = 8589924592
max_per_proc_data_size = 8589924592
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2002 10:56 AM
12-03-2002 10:56 AM
Re: malloc failed while growing stack (ksh script)
Debug attempts: as it's impossible to open the shell script & the core with debugger, i tried to do open the core & ksh. ksh is stripped, so there's nothing much to look at. using gdb -> bt -
#0 0x12001ebe0 in mac_here ()
#1 0x12001e32c in mac_expand ()
Couldn't find much about these functions - help with that would be appreciated.
#0 0x12001ebe0 in mac_here ()
#1 0x12001e32c in mac_expand ()
Couldn't find much about these functions - help with that would be appreciated.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP