Skip to ContentSkip to Footer
Start of content
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- *** glibc detected *** malloc()
General
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
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
- Email to a Friend
- Report Inappropriate Content
06-25-2007 07:47 PM
06-25-2007 07:47 PM
*** glibc detected *** malloc()
Hi,
When I'm porting my C++ application from HP-UX 11i ( aCC: HP ANSI C++ B3910B A.03.65 ) to linux ( Red Hat Enterprise Linux AS release 4 (Nahant Update 4, gcc (GCC) 3.4.4), during the runtime I'm getting the following error :
*** glibc detected *** malloc(): memory corruption: 0x082051f8 ***
I tired searching a lot on the net and changed the program accordingly but no success. The same code is working fine on HP.
Any help pls.
Regards,
sumanth
When I'm porting my C++ application from HP-UX 11i ( aCC: HP ANSI C++ B3910B A.03.65 ) to linux ( Red Hat Enterprise Linux AS release 4 (Nahant Update 4, gcc (GCC) 3.4.4), during the runtime I'm getting the following error :
*** glibc detected *** malloc(): memory corruption: 0x082051f8 ***
I tired searching a lot on the net and changed the program accordingly but no success. The same code is working fine on HP.
Any help pls.
Regards,
sumanth
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-26-2007 08:32 PM
06-26-2007 08:32 PM
Re: *** glibc detected *** malloc()
yes, the glibc from the last few versions of RH tries to capture as many problems with memory allocations without causing to much overhead.
libc on hpux does not do this, it will allow you to do these kind of things, but the results are unpredictable in this case and in fact this 'bug' in your code could be used by hackers.
luckily there are OSS tools available to help you in your quest to find your mistake.
the best in this case is valgrind:
http://valgrind.org/
from their site:
Valgrind is an award-winning suite of tools for debugging and profiling Linux programs. With the tools that come with Valgrind, you can automatically detect many memory management and threading bugs, avoiding hours of frustrating bug-hunting, making your programs more stable.
libc on hpux does not do this, it will allow you to do these kind of things, but the results are unpredictable in this case and in fact this 'bug' in your code could be used by hackers.
luckily there are OSS tools available to help you in your quest to find your mistake.
the best in this case is valgrind:
http://valgrind.org/
from their site:
Valgrind is an award-winning suite of tools for debugging and profiling Linux programs. With the tools that come with Valgrind, you can automatically detect many memory management and threading bugs, avoiding hours of frustrating bug-hunting, making your programs more stable.
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.
End of content
United States
Hewlett Packard Enterprise International
Communities
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP