- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- *** glibc detected *** malloc()
Operating System - Linux
1748200
Members
3443
Online
108759
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
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
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
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
- 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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP