- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: malloc failure during swremove operation
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
05-16-2002 10:02 AM
05-16-2002 10:02 AM
Please bear with me... I'm relatively new at HP-UX administration. :)
I'm trying to swremove a package that was built by my company, and getting a malloc error. Here is a portion of the swremove output (I've removed the package names because we're under NDA)...
==============================================
* Session started for user "root@fe1".
* Beginning Selection
* Target connection succeeded for "fe1:/".
* Software selections:
(...)
* Selection succeeded.
* Beginning Analysis
* Session selections have been saved in the file
"/.sw/sessions/swremove.last".
ERROR: "fe1:/": Could not allocate memory on this remote host during
task initialization, analysis or execution -- malloc()
failed.
==============================================
So I checked the agent logfile, as recommended in the error message, and it suggested that the memory management system might be corrupted.... This would make sense, as we have 2GB of memory on this system and basically nothing else is running...
==============================================
ERROR: Internal Error from SOL in function
"IA_CheckSparseDepsRemove". This could be due to a memory
allocation error.
ERROR: Cannot allocate memory. Either there is no memory available
or the memory management system is corrupted.
ERROR: Cannot continue the Analysis Phase until the previous errors
are corrected.
==============================================
So, my questions are two:
- Does this look like a corrupted memory manager problem to you guys?
- How does one go about replacing the corrupted memory manager?
Thanks a lot,
Jeff
Solved! Go to Solution.
- Tags:
- swremove
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2002 10:14 AM
05-16-2002 10:14 AM
Re: malloc failure during swremove operation
There may well be nothing wrong other than maxdsiz is set rather small on the system. That would give you exactly the kind of error that you are seeing regardless of the amount of free memory in the box.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2002 10:20 AM
05-16-2002 10:20 AM
Re: malloc failure during swremove operation
1) As Clay suggested, increasing 'maxdsiz' kernel parameter may solve your issue.
2) Another work around of malloc() error with SD-UX, is the file - /var/adm/sw/host_object. In this case, stop the swagentd daemon, move this file and start the swagentd again. It will re-create this file.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2002 10:36 AM
05-16-2002 10:36 AM
Re: malloc failure during swremove operation
I also tried shutting down swagentd and moving the host object file. No change. It surprised me that both the old and new versions are zero-length. Is this supposed to be the case?
Thanks again,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2002 10:54 AM
05-16-2002 10:54 AM
Re: malloc failure during swremove operation
Remember that 'maxdsiz' is only a "fence". It keeps processes from gobbling memory for data segments without constraint. 'maxsiz' (for the stack) and 'maxtsiz' (for text (code)) functional analogously.
The values suffixed with "_64bit" are for 64-bit processes. Those without suffixes are for 32-bit processes.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2002 11:49 AM
05-16-2002 11:49 AM
Re: malloc failure during swremove operation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2002 12:02 PM
05-16-2002 12:02 PM
Re: malloc failure during swremove operation
So back to the second part of my question... I'm guessing that swremove could not be asking for more than 512MB of memory... Is this a fair assumption? If so, could it be that my memory manager is corrupted? How might I go about fixing that?
Thanks,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2002 12:05 PM
05-16-2002 12:05 PM
Re: malloc failure during swremove operation
maxdsiz = 512MB
maxssiz = 8MB
maxtsiz = 64MB
maxusers = 128
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2002 12:51 PM
05-16-2002 12:51 PM
Solution"IA_CheckSparseDepsRemove"
is actually a check to make sure that the product you're installing or removing in your case matches the dependents filesets on thee system. If it doesn't hence the error. It may be checking for "sparse" filesets on your system. Do a ..
# man 4 swpackage
for explaination of "sparse" as I'm not 100% sure myself. If the kernel tweaks does not work out, you may want to call HP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2002 11:04 PM
05-16-2002 11:04 PM
Re: malloc failure during swremove operation
S.K. Chan is right. This problem does have to do with product dependencies. The function is checking for sparse product's dependencies for swremove process. The following two rules must not be broken:
1. no patch left on the system without its base
2. under a no-rollback situation, a patch cannot be removed without also removing its base.
Regards,
Mateja