- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Crash seen from c++ runtime exception handling...
Operating System - HP-UX
1752412
Members
5716
Online
108788
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
тАО02-09-2011 06:50 PM
тАО02-09-2011 06:50 PM
Re: Crash seen from c++ runtime exception handling code
The latest libcl patch for 11.31:
http://www.itrc.hp.com/service/patch/patchDetail.do?patchid=PHSS_40804
>ME: You can reopen stderr just before those calls to U_STACK_TRACE and throw so you can get that output.
Here is an example function that you can reuse parts.
#include
#include
extern void U_STACK_TRACE(void);
void redirect_stack_trace(FILE *filest) {
int fd, fd2, err;
fd = fileno(filest);
fflush(filest);
fflush(stderr);
fd2 = dup(STDERR_FILENO);
err = dup2(fd, STDERR_FILENO);
U_STACK_TRACE();
// Restore; not needed here
fflush(stderr);
fd = dup2(fd2, STDERR_FILENO);
close(fd2);
}
You only need to do this the first time. And you wouldn't want to restore it since you want those throw errors on stderr.
http://www.itrc.hp.com/service/patch/patchDetail.do?patchid=PHSS_40804
>ME: You can reopen stderr just before those calls to U_STACK_TRACE and throw so you can get that output.
Here is an example function that you can reuse parts.
#include
#include
extern void U_STACK_TRACE(void);
void redirect_stack_trace(FILE *filest) {
int fd, fd2, err;
fd = fileno(filest);
fflush(filest);
fflush(stderr);
fd2 = dup(STDERR_FILENO);
err = dup2(fd, STDERR_FILENO);
U_STACK_TRACE();
// Restore; not needed here
fflush(stderr);
fd = dup2(fd2, STDERR_FILENO);
close(fd2);
}
You only need to do this the first time. And you wouldn't want to restore it since you want those throw errors on stderr.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2011 02:25 AM
тАО02-10-2011 02:25 AM
Re: Crash seen from c++ runtime exception handling code
If you are optimizing and using EH you can NOT use +Oentrysched.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2011 02:06 AM
тАО02-15-2011 02:06 AM
Re: Crash seen from c++ runtime exception handling code
We don't have a terminate handler set , so it uses the default provider in the C++ runtime which aborts the message .
The gdb command 'catch throw' won't work on this platform , and yes I have recompiled debug the relevant files and also changed the attributes on the executable for setting a breakpoint on a shared library :
chatr +dbg enable
__throw__FPvT1 ( __throw(void *,void *) ) is just the runtime throw function and not the one . I want the glue exception handler that sets up the stuff for the catch exception and the unwind.
From the below stack :
TxsOqRenameConflictChecker::throwException TxsOqRenameConflictChecker::checkForConflicts
TxsOqIDRegenerator::regenerateIDs
TxsOqMetadataContext::getModifiedObjects
TxsOqPersistentMetadataContext::commitChild
TxsOqMetadataContext::commit
TxsOqDefinitionManager::commitRootTransaction
Yes this is the one and only throw which aborts . I did a continue and it just crashed after that without hitting it again.
The patches might not be latest , but I don't think thats an option . And yes this is the right stack , I had not listed the function earlier .
Also yes , we are optimizing and using EH , but we still use the flag '+Oentrysched' during compilation . EH works for most of the cases , just that its failing in this particular case .
Thanks for your time and patience .
The gdb command 'catch throw' won't work on this platform , and yes I have recompiled debug the relevant files and also changed the attributes on the executable for setting a breakpoint on a shared library :
chatr +dbg enable
__throw__FPvT1 ( __throw(void *,void *) ) is just the runtime throw function and not the one . I want the glue exception handler that sets up the stuff for the catch exception and the unwind.
From the below stack :
TxsOqRenameConflictChecker::throwException TxsOqRenameConflictChecker::checkForConflicts
TxsOqIDRegenerator::regenerateIDs
TxsOqMetadataContext::getModifiedObjects
TxsOqPersistentMetadataContext::commitChild
TxsOqMetadataContext::commit
TxsOqDefinitionManager::commitRootTransaction
Yes this is the one and only throw which aborts . I did a continue and it just crashed after that without hitting it again.
The patches might not be latest , but I don't think thats an option . And yes this is the right stack , I had not listed the function earlier .
Also yes , we are optimizing and using EH , but we still use the flag '+Oentrysched' during compilation . EH works for most of the cases , just that its failing in this particular case .
Thanks for your time and patience .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2011 02:28 AM
тАО02-15-2011 02:28 AM
Re: Crash seen from c++ runtime exception handling code
>I want the glue exception handler that sets up the stuff for the catch exception and the unwind.
The first thing ThrowException does is try to unwind to find the handler. This is failing.
I don't know what you think a glue exception handler will do?
>we are optimizing and using EH, but we still use the flag '+Oentrysched' during compilation. EH works for most of the cases, just that it's failing in this particular case.
As documented, if you want EH to work correctly in all cases, you must NOT use +Oentrysched.
The first thing ThrowException does is try to unwind to find the handler. This is failing.
I don't know what you think a glue exception handler will do?
>we are optimizing and using EH, but we still use the flag '+Oentrysched' during compilation. EH works for most of the cases, just that it's failing in this particular case.
As documented, if you want EH to work correctly in all cases, you must NOT use +Oentrysched.
- « Previous
-
- 1
- 2
- Next »
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