HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unwind library.
Operating System - HP-UX
1833759
Members
2134
Online
110063
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
08-23-2006 11:12 PM
08-23-2006 11:12 PM
Unwind library.
I am getting a problem with the unwind library. We are porting a new memory allocator with our own "new" operator. But while testing, the test executable's stack trace is showing the "operator new" in libunwind get referred rather than the new in custom code. This is happening in the IA-64 11.23. I am using the aCC compiler.
There is no explicit reference on the libunwind anywhere.
Stack Trace:-
#0 getMainHoardHeap () at libhoard.cpp:139
#1 0x2000000067867810:0 in initializeCustomHeap () at userealtls.cpp:46
#2 0x2000000067867ab0:0 in getCustomHeap () at userealtls.cpp:55
#3 0x2000000067868680:0 in malloc () at ../../heaplayers/wrapper.cpp:93
#4 0x200000006736a9a0:0 in _Unwind_MemPool::operator new(unsigned long)
+0x40 () from /usr/lib/hpux32/libunwind.so.1
#5 0x2000000067357170:0 in __sinit_com_util_C_+0x30 ()
from /usr/lib/hpux32/libunwind.so.1
#6 0x20000000678b95a0:0 in EM_mark_BOS+0x50 () from /usr/lib/hpux32/dld.so
Because of this the newly defined new operator is not getting invoked and the executable is crashing.
while on PA-RISC this unwind library is not coming in the stack trace. But it is happening in IA-64.
Please let me know, How to resolve this.
Thanks Amrith
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2007 02:18 AM
08-26-2007 02:18 AM
Re: Unwind library.
>I am getting a problem with the unwind library.
It looks like your bug. You must be prepared to honor malloc requests before you are initialized.
Both libCsup and libunwind must allocate an emergency pool for Exception Handling. (Throwing bad_alloc.) It is libunwind's shared lib init function that is calling your malloc to allocate that space.
>stack trace is showing the "operator new" in libunwind get referred rather than the new in custom code.
Yes, the class operator new is calling malloc directly. It won't call the global operator new.
>while on PA-RISC this unwind library is not coming in the stack trace.
On PA, the exception object is allocated in the stack so an emergency pool isn't needed.
It looks like your bug. You must be prepared to honor malloc requests before you are initialized.
Both libCsup and libunwind must allocate an emergency pool for Exception Handling. (Throwing bad_alloc.) It is libunwind's shared lib init function that is calling your malloc to allocate that space.
>stack trace is showing the "operator new" in libunwind get referred rather than the new in custom code.
Yes, the class operator new is calling malloc directly. It won't call the global operator new.
>while on PA-RISC this unwind library is not coming in the stack trace.
On PA, the exception object is allocated in the stack so an emergency pool isn't needed.
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