- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- C++ Exception Handling support on HP-UX PA RISC
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
тАО04-29-2005 05:55 PM
тАО04-29-2005 05:55 PM
C++ Exception Handling support on HP-UX PA RISC
OS INFO:- HP-UX PA RISC B.11.11
We are trying a 64bit compilation of a C++ project on it using gcc 3.4.2 found in
pa64 directory (Specific for 64bit compilation)
and a 64bit ld linker.
We found that C++ Exception Handling is not properly handled and has issues with stack unwinding. At runtime the code crashes (may/may not) when an exception is thrown....
Is there a patch available.... is there any
solution to overcome this problem without
removing exceptions from our code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2005 09:07 AM
тАО05-01-2005 09:07 AM
Re: C++ Exception Handling support on HP-UX PA RISC
a better place to ask those questions is HP's Dev Resource Center:
http://devresource.hp.com/drc/index.jsp
There you can get current releases of gcc/g++ and answers...
FWIW,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2005 03:35 AM
тАО05-02-2005 03:35 AM
Re: C++ Exception Handling support on HP-UX PA RISC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2005 12:39 AM
тАО05-03-2005 12:39 AM
Re: C++ Exception Handling support on HP-UX PA RISC
come in large dynamically linked excutables.
I tried to simulate the problem in a small
test program, but I didn't face any such
problems.
Any how the scenario is something similar to
this:
void x()
{
...
..
char arr[8096];//huge stack allocation
/* probs come also for huge dynamic alloc*/
..
..
try
{
...
}
catch(CMyExcep e)
{
fprintf(stderr, "%s", arr) ;
}
...
}
Here, whenever a exception is caught, it
was resulting in SIGSEGV.....
Solution / roundabout we found for this:-
void x()
{
....
try
{
...
}
catch(CMyExcep e)
{
char arr[8096] ;
fprintf(stderr, "%s", arr) ;
}
..
}
...... >>>> this worked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2005 01:04 AM
тАО05-03-2005 01:04 AM
Re: C++ Exception Handling support on HP-UX PA RISC
I would be tempted to do something like:
arr[8191]='\0' ;
just before the fprintf to be sure that fprintf doesn't work its way through the entire quadrant until it SEGVs.
Or does it SEGV somewhere else?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2005 01:05 AM
тАО05-03-2005 01:05 AM
Re: C++ Exception Handling support on HP-UX PA RISC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2005 01:17 AM
тАО05-03-2005 01:17 AM
Re: C++ Exception Handling support on HP-UX PA RISC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2005 09:23 PM
тАО05-03-2005 09:23 PM
Re: C++ Exception Handling support on HP-UX PA RISC
1) The array is 100% null terminated ('\0')
The very use of that array, either in
fprintf/memcpy or any other access to
the element of that array causes SIGSEGV.
2) I'm sure about the array access scope.
The scenario that is posted by me in
the form a simple example is correct.