- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- STL string is causing problem in destructor in 64 ...
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
Discussions
Discussions
Forums
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
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
тАО01-09-2009 07:51 AM
тАО01-09-2009 07:51 AM
STL string is causing problem in destructor in 64 bit itanium platform
We are migrating from 32 bit version of the code to 64 bit version. The platform we use for 64 bit is Itanium hp-ux. Getting a strange error in basic_string class.
string httpBuffer;
....
....
//a sample block inside main
{
string sHeaders;
sHeaders=httpBuffer.substr(....);
}
When the flow is coming out of the block we are getting segmentation fault in basic_string destructor. Please help on this also let me know if you require more information.
- Tags:
- basic_string
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2009 08:49 AM
тАО01-09-2009 08:49 AM
Re: STL string is causing problem in destructor in 64 bit itanium platform
"HP-UX" > "languages and scripting" forum.
My first suspicion when a simple destructor segfaults is that some other code has corrupted the malloc information. That could happen because of overwritting a buffer or accessing freed memory. You could try compiling with aCC's +check option to see if it catches a problem.
- Tags:
- +check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2009 09:22 AM
тАО01-09-2009 09:22 AM
Re: STL string is causing problem in destructor in 64 bit itanium platform
I couldn't find the +check option. Please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2009 08:22 PM
тАО01-09-2009 08:22 PM
Re: STL string is causing problem in destructor in 64 bit itanium platform
I need a stack trace. It might help if you recompile with +d first.
Is this application threaded?
What version of aCC6 are you using?
>I couldn't find the +check= option.
You need to use a later version of aC++:
http://docs.hp.com/en/14487/index.htm
>Mike: My first suspicion when a simple destructor segfaults is that some other code has corrupted the malloc information.
Right.
(I've asked the moderators to move this to the correct forum.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 08:34 AM
тАО01-13-2009 08:34 AM
Re: STL string is causing problem in destructor in 64 bit itanium platform
Using -mt option in aCC compiler is working. The problem happened because the string libraries were not used in thread safe mode !!
- Tags:
- -mt