- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: memory problems on K580
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
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
09-06-2001 07:27 AM
09-06-2001 07:27 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2001 07:49 AM
09-06-2001 07:49 AM
Re: memory problems on K580
First, maxssiz has nothing to do with malloc the parameter you need to look at is maxdsiz. In your case, however, I don't think you are hitting that limit either. I assume that you are testing the result from malloc(). It should return a NULL value if memory is not available and set errno to ENOMEM. Make sure that those tests are in place. The most common cause of the failure you describe is that free has been called with a bogus value and thus the heap has become corrupted.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2001 08:57 AM
09-06-2001 08:57 AM
Re: memory problems on K580
You should be looking at maxdsiz or maxdsiz_64 for 64 bit systems.
maxdsiz and maxdsiz_64bit define the maximum size of the static data storage segment of an executing process for 32-bit and 64-bit processors, respectively. This segment contains fixed data storage such as globals, arrays, statics, locals to main(), strings, space allocated using sbrk() and malloc(), and such.
...BPK...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2001 10:10 AM
09-06-2001 10:10 AM
Re: memory problems on K580
You might try installing PHCO_23684 but I'm still betting that you have somehow clobbered your pointer by calling free with a bogus value or freeing the same block more than once.
You might try putting probes in to look at the few few bytes of the block pointed to.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2001 11:23 AM
09-06-2001 11:23 AM
Re: memory problems on K580
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2001 12:31 PM
09-06-2001 12:31 PM
SolutionThe architectures are very different. Next thing to look for is something like this:
char s1[8];
char *p = NULL;
char s2[8];
int i = -2;
p = (char *) malloc((size_t) 32 * 1024 * 1024);
(void) sprintf(s1,"This is too big for s1");
(void) sprintf(s2,"This is too big for s2");
p[i] = 'X';
Any of this stuff could cause problems and especially the p[-2] references since this can clobber critical housekeeping areas of the memory block itself. Later mallocs can then be clobbered.
This may be the time to learn about the symbolic debugger xdb.