Operating System - HP-UX
1753663 Members
5636 Online
108798 Solutions
New Discussion юеВ

U_get_current_frame() dumps core

 
Thu Nguyen_2
Advisor

U_get_current_frame() dumps core

Received Bus Error.
Here is the trace back:
#0 0xc0000000001ba5f4 in U_get_current_frame+0x74 ()
from /usr/lib/pa20_64/libcl.2
(gdb) tb
Breakpoint 1 at 0xc0000000001ba5f4
(gdb) bt
#0 0xc0000000001ba5f4 in U_get_current_frame+0x74 ()
from /usr/lib/pa20_64/libcl.2
#1 0x40000000001239b8 in ABC(frameP=0x800003ffff7f0fe8 "\200")
at pkthread.c:2236
#2 0x4000000000f45ce4 in XYZ
(amount=72,
file=0x80000001002568a0 "outinit.c", line=203) at pkmemory.c:204
#3 0x4000000000eb6504 in outInit (
language=0x80000001000001e8 "en_US.iso88591", maxCached=3000)
at outinit.c:203
#4 0x4000000000115cd8 in main (argCount=1, argVector=0x800003ffff7f05c8)
at test.c:670
(gdb)

Here is my routine
long ABC(void *frameP)
{
int rc = 0;
curr_frame_info curr_frame;
prev_frame_info prev_frame;
U_get_current_frame(&curr_frame);
perror ("return from U_get_current_frame");
printf("curr_frame.size:%l\n", curr_frame.size);
printf("curr_frame.sp:%l\n", curr_frame.sp);
return (0);
}

My application is 64bit running on HP11.11.
Any help will be appreciated. Thanks
4 REPLIES 4
ranganath ramachandra
Esteemed Contributor

Re: U_get_current_frame() dumps core


which version of libcl are you using ?
could not see the problem with the version i have:

bash-2.01$ what /usr/lib/pa20_64/libcl.2
/usr/lib/pa20_64/libcl.2:
libcl.sl version B.11.01.08 - Jun 15, 2001
Trap Library version UX.11.01.03(GS IB4) - November 16, 1998
Unwind Library version UX.11.01.05 - 00/08/15
 
--
ranga
[i work for hpe]

Accept or Kudo

Steve Steel
Honored Contributor

Re: U_get_current_frame() dumps core

Hi

Check against

http://devrsrc1.external.hp.com/STK/partner/unwind.pdf


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Thu Nguyen_2
Advisor

Re: U_get_current_frame() dumps core

Hi, Thanks very much for you help...This is my libcl.2 information:
root@frau[/usr/lib/pa20_64]% what libcl.2
libcl.2:
libIO77 HP HPUX [ Release B.11.01.15 PA 64bit ]
(hp700:hp/ux) Jan 7 2003
Copyright (c) 2001 Hewlett Packard.
libcl.sl version B.11.01.18 - Jan 3 2003
Trap Library version UX.11.01.06 - 02/04/16
Unwind Library version UX.11.01.05 - 00/08/15
root@frau[/usr/lib/pa20_64]%

I have read "UNWIND PA64 FUNCTIONAL SPECIFICATION" but maybe I don't understand correctly. What routines I should use to setup the current frame before I can call U_get_previous_frame(). My main task is getting information in the previous frame.
Please help if you have used those routines.
Thanks
ranganath ramachandra
Esteemed Contributor

Re: U_get_current_frame() dumps core

i'm not sure if this will solve the problem, but the correct prototype seems to be like

curr_frame_info U_get_current_frame (void);

and using it this way gave me some nice-looking results too :

prev_frame_info prev_frame;
curr_frame_info curr_frame=
(U_get_current_frame());
U_get_previous_frame(&curr_frame,&prev_frame);
 
--
ranga
[i work for hpe]

Accept or Kudo