HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problems Attaching to C++ Image using "adb"
Operating System - HP-UX
1836538
Members
2214
Online
110102
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
Forums
Discussions
Discussions
Discussions
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
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
05-25-2005 05:47 AM
05-25-2005 05:47 AM
Problems Attaching to C++ Image using "adb"
Hi ...
Environment:
HP ZX200 Itanium
HP-UX 11.23
aCC: HP ANSI C++/C B3910B A.05.36 [May 20 2002]
When attempting to attach to a running C++ image using "adb" I get the following error from "adb" and "adb" bails.
jadgews2 scm:adb -P 1436 ./APL_SPAWN_SERVER_IMAGE
Attached to process 1436
Current Process is 1436
adb: warning: /usr/lib/hpux32/libcl.so.1: Cannot locate unwind table ...
adb: warning: /usr/lib/hpux32/libcl.so.1: Stack backtrace may fail.
ttrace: TT_PROC_RDDATA: Bad address
jadgews2 scm:
Attaching to a C image works, meaning I do not get a "ttrace" error, I remain in "adb" allowing me to debug.
Any ideas?
Compile options use:
CPP="/opt/aCC/bin/aCC -c -AA +O2 -g -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE -I$INCLUDE_DIR"
Link Options:
LINK_OPTS="-Wl,+noenvvar,+b,/usr/lib/hpux32,+nodefaultrpath,-B,immediate -lpthread -lcl -lrt -lCsup"
Thanks for any suggestions that may help.
Bill Brown
Environment:
HP ZX200 Itanium
HP-UX 11.23
aCC: HP ANSI C++/C B3910B A.05.36 [May 20 2002]
When attempting to attach to a running C++ image using "adb" I get the following error from "adb" and "adb" bails.
jadgews2 scm:adb -P 1436 ./APL_SPAWN_SERVER_IMAGE
Attached to process 1436
Current Process is 1436
adb: warning: /usr/lib/hpux32/libcl.so.1: Cannot locate unwind table ...
adb: warning: /usr/lib/hpux32/libcl.so.1: Stack backtrace may fail.
ttrace: TT_PROC_RDDATA: Bad address
jadgews2 scm:
Attaching to a C image works, meaning I do not get a "ttrace" error, I remain in "adb" allowing me to debug.
Any ideas?
Compile options use:
CPP="/opt/aCC/bin/aCC -c -AA +O2 -g -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE -I$INCLUDE_DIR"
Link Options:
LINK_OPTS="-Wl,+noenvvar,+b,/usr/lib/hpux32,+nodefaultrpath,-B,immediate -lpthread -lcl -lrt -lCsup"
Thanks for any suggestions that may help.
Bill Brown
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2005 01:46 AM
05-27-2005 01:46 AM
Re: Problems Attaching to C++ Image using "adb"
I had a similar issue with the unwind library, but with a different application, and I ended up creaking these links to satisfy the issue (I don't know if they will work for you):
ln -s /usr/lib/hpux32/libunwind.so.1 /usr/lib/hpux32/libunwind.so
ln -s /usr/lib/hpux64/libunwind.so.1 /usr/lib/hpux64/libunwind.so
lrwxr-xr-x 1 103 191 16 May 12 10:03 /usr/lib/hpux32/libunwind.so -> ./libunwind.so.1
lrwxr-xr-x 1 103 191 16 May 12 10:06 /usr/lib/hpux64/libunwind.so -> ./libunwind.so.1
live free or die
harry d brown jr
ln -s /usr/lib/hpux32/libunwind.so.1 /usr/lib/hpux32/libunwind.so
ln -s /usr/lib/hpux64/libunwind.so.1 /usr/lib/hpux64/libunwind.so
lrwxr-xr-x 1 103 191 16 May 12 10:03 /usr/lib/hpux32/libunwind.so -> ./libunwind.so.1
lrwxr-xr-x 1 103 191 16 May 12 10:06 /usr/lib/hpux64/libunwind.so -> ./libunwind.so.1
live free or die
harry d brown jr
Live Free or Die
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2005 05:49 AM
06-01-2005 05:49 AM
Re: Problems Attaching to C++ Image using "adb"
Hello Mr. Harry Brown ...
Thank you very much for your reply. But I'm sorry to say your suggestion had no effect. In fact, the link to the "unwind" library already existed on my development machine (the platform where compiles and links are done).
Iâ m working with what I call â near real-timeâ applications involving a development organization of 50+ SW engineers. At times we will have an application failure due to a process going into an infinite loop and â adbâ allowed us a â lite-weightâ available means to dump the call stack in order to get an idea where in the application the failure was occurring. On a PA-RISC target this technique worked reliably and was very useful to us. But on the IA64 weâ ve been less successful.
One option Iâ m considering now is to push â gdbâ to each of the target machines and change my debug utility to reference â gdbâ rather than â adbâ . â gdbâ does support what I want to do, Iâ ve tested this. Even though â gdbâ is a GNU product (ie. free), Iâ m not 100% sure Iâ m able to distribute it since itâ s bundled with HP â aCCâ development product. But I think Iâ m OK if I simply install only the â gdbâ image on each of my target machines and nothing else associated with the â aCCâ product. But Iâ ll check with our HP rep before I do anything.
Question: Are the â unwindâ warnings from â adbâ related to the â ttraceâ failure (BAD ADDRESS)? Or are these two separate i
Thank you very much for your reply. But I'm sorry to say your suggestion had no effect. In fact, the link to the "unwind" library already existed on my development machine (the platform where compiles and links are done).
Iâ m working with what I call â near real-timeâ applications involving a development organization of 50+ SW engineers. At times we will have an application failure due to a process going into an infinite loop and â adbâ allowed us a â lite-weightâ available means to dump the call stack in order to get an idea where in the application the failure was occurring. On a PA-RISC target this technique worked reliably and was very useful to us. But on the IA64 weâ ve been less successful.
One option Iâ m considering now is to push â gdbâ to each of the target machines and change my debug utility to reference â gdbâ rather than â adbâ . â gdbâ does support what I want to do, Iâ ve tested this. Even though â gdbâ is a GNU product (ie. free), Iâ m not 100% sure Iâ m able to distribute it since itâ s bundled with HP â aCCâ development product. But I think Iâ m OK if I simply install only the â gdbâ image on each of my target machines and nothing else associated with the â aCCâ product. But Iâ ll check with our HP rep before I do anything.
Question: Are the â unwindâ warnings from â adbâ related to the â ttraceâ failure (BAD ADDRESS)? Or are these two separate i
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP