- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Infinite recursion in C++ STL?
Operating System - OpenVMS
1753765
Members
5771
Online
108799
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
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
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
тАО12-06-2004 05:24 PM
тАО12-06-2004 05:24 PM
Infinite recursion in C++ STL?
We are seeing what might be an infinite recursion in the C++ Standard Template Library, or at least a deep recursion. It also might be in a Rogue Wave library. I can try to narrow that down further and add what I find later.
I wonder whether anybody has seen a recursion like this and/or knows of a patch. Here is a piece of the traceback (bear with me; I haven't used this forum system and wonder how the traceback will look). The top line was repeated until the stack overflowed.
. . .
CXXL$RWRSQ18RWRWSTD204RW11H6MJE _RWerase
133784
CXXL$RWRSQ18RWRWSTD204RW11H6MJE _RWerase
133784
CXXL$RWRSQ18RWRWSTD204RW11H6MJE _RWerase
133784
CXXL$ERSQ18RWRWSTD204RWR3QDF976 erase
133799 0000000000000368 000000000061CF18
INDEX1 Load 41018 0000000000037344 0000000000595264
REFRESHTHREAD ReloadIndex 131584
I wonder whether anybody has seen a recursion like this and/or knows of a patch. Here is a piece of the traceback (bear with me; I haven't used this forum system and wonder how the traceback will look). The top line was repeated until the stack overflowed.
. . .
CXXL$RWRSQ18RWRWSTD204RW11H6MJE _RWerase
133784
CXXL$RWRSQ18RWRWSTD204RW11H6MJE _RWerase
133784
CXXL$RWRSQ18RWRWSTD204RW11H6MJE _RWerase
133784
CXXL$ERSQ18RWRWSTD204RWR3QDF976 erase
133799 0000000000000368 000000000061CF18
INDEX1 Load 41018 0000000000037344 0000000000595264
REFRESHTHREAD ReloadIndex 131584
My head is cold.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2004 08:25 AM
тАО12-07-2004 08:25 AM
Re: Infinite recursion in C++ STL?
Travis,
What is the source code at the deepest point in your program?
What is the source code at the deepest point in your program?
A crucible of informative mistakes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2004 11:45 AM
тАО12-09-2004 11:45 AM
Re: Infinite recursion in C++ STL?
John,
Our function load() invokes the clear function on a multimap:
m_subscripts.clear();
where m_subscripts is of type Subscripts:
typedef std::multimap
struct CSubscript
{
int m_area;
int m_category;
int m_location;
Exceptions::iterator m_iter1;
Exceptions::iterator m_iter3;
};
I compiled INDEX1.CPP with a show-all listing to see line 41018 and it was this line from the multimap class declaration in header file map.:
void erase (iterator first, iterator last) { _RWt.erase(first, last); }
Oh, and this information indicates that we were using STL, not Rogue Wave.
--Travis
Our function load() invokes the clear function on a multimap:
m_subscripts.clear();
where m_subscripts is of type Subscripts:
typedef std::multimap
struct CSubscript
{
int m_area;
int m_category;
int m_location;
Exceptions::iterator m_iter1;
Exceptions::iterator m_iter3;
};
I compiled INDEX1.CPP with a show-all listing to see line 41018 and it was this line from the multimap class declaration in header file map.:
void erase (iterator first, iterator last) { _RWt.erase(first, last); }
Oh, and this information indicates that we were using STL, not Rogue Wave.
--Travis
My head is cold.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2005 02:54 AM
тАО03-07-2005 02:54 AM
Re: Infinite recursion in C++ STL?
Time to close this one, I guess. So far, it appears that either limiting processes to a single kernel thread (with SYSGEN parameter MULTITHREAD) or adding more thread safety to the code itself causes the problem to stop occurring. It either shrinks or closes a window that had been opened wider by going from uniprocessors to multiprocessors.
--Travis
--Travis
My head is cold.
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