- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Issue with uwx_step
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
тАО05-06-2010 04:05 AM
тАО05-06-2010 04:05 AM
My application in HP Itanium is throwing some exception.
I am trying to unwind the stack from the top till down and storing the values for each context. I am using uwx_step for this. When i reach frame 16, i can see a signal handler. After this frame i am unable to step to the next frame. uwx_step is returning UWX_ABI_FRAME and is not stepping further. I need to get the information for the remaining stacks also. How can i get this.
My code is something like this :
for (i=0;i < STAK_CNT ;i++)
{
get RP using uwx_get_reg;
if(curr frame is UWX_ABI_FRAME)
{
uwx_step ;
continue;
}
get SP,PSP using uwx_get_reg;
uwx_step ;
get SP,PSP using uwx_get_reg;
}
Eventhough i step when i get a UWX_ABI_FRAME, i am not getting the next frames.
Thanks,
Suchitra
Solved! Go to Solution.
- Tags:
- libunwind
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2010 11:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2010 01:56 AM
тАО05-07-2010 01:56 AM
Re: Issue with uwx_step
i am able to step to the remaining frames now. But from the signal frame when i try to get the Return Pointer i am getting some different value than the one i see in gdb Call stak. The value(RP) at the function which raised the signal is different. From there down i can see the correct values. Is there a different API to get the return pointer for a signal frame ?
Thanks,
Suchitra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2010 03:55 AM
тАО05-07-2010 03:55 AM
Re: Issue with uwx_step
The return pointer for a signal frame is a magic cookie that says it is a signal frame. There is no need to print it.
>Is there a different API to get the return pointer for a signal frame?
Do you have an example of your output and gdb's?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2010 05:31 AM
тАО05-07-2010 05:31 AM
Re: Issue with uwx_step
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2010 06:01 AM
тАО05-07-2010 06:01 AM
Re: Issue with uwx_step
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2010 03:27 PM
тАО05-07-2010 03:27 PM
Re: Issue with uwx_step
The fault address should be the PC/IP value.
>I basically want all the return pointers for all frames in the stack.
As in the gdb output, there is no return value for the signal context, it appears on the next line.
>I need the address as mentioned in the attached trace file.
(Please attach text files, not images which I can't cut&paste.)
>For frame 17 (which is RP of signal frame)
No, it is the PC in that signal context.
>I get a totally diff address from the stack
What address do you get? Something that points into the kernel?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2010 10:25 PM
тАО05-10-2010 10:25 PM
Re: Issue with uwx_step
Please find attached the stack dump with the return pointers. The signal handler is called at frame 11 and as you said there is no return pointer for it. But for the next frame ie frame 12, which actually threw the exception i am getting a different address in my aplication. The value i get is 0x1c0028e0(the actual value is 0x4022f30:1). Also i see a difference for this frame alone. For other frames the return adress has a :0 appended to it where as in this one a :1 is appended. What is the significance of this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 03:22 AM
тАО05-11-2010 03:22 AM
Re: Issue with uwx_step
More accurately, the signal occurs at #12 and the handler is invoked at #10. Frame #11 is a dummy frame to just hold the signal context.
>as you said there is no return pointer for it.
Have you called _UNW_getIP(3) for that frame?
>The value I get is 0x1c0028e0 (the actual value is 0x4022f30:1).
What did you call to get 0x1c0028e0?
>in this one a :1 is appended. What is the significance of this?
Return values are always bundled aligned, slot 0. But you can get signals on the other two slots.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 03:35 AM
тАО05-11-2010 03:35 AM
Re: Issue with uwx_step
Return values are always bundled aligned, slot 0. But you can get signals on the other two slots. Can you please eloborate this? I didn't get it clear