- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Debugging Output of Dynamic Loader
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
тАО03-16-2009 03:53 AM
тАО03-16-2009 03:53 AM
is there a way in HP-UX to get debugging output of the dynamic loader about what he is doing (e.g. which undefined symbols are bound to which shared libraries)? I know that there is a possibility for the dl_open call to request verbose output, but I am looking for a more general debug output comparable to the one of Linux (LD_DEBUG/LD_DEBUG_OUTPUT).
Thanks for your answers,
Andre-Marcel
Solved! Go to Solution.
- Tags:
- dld
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 04:15 AM
тАО03-16-2009 04:15 AM
Re: Debugging Output of Dynamic Loader
Does the linker's '-B nonfatal -B verbose' help you?
http://docs.hp.com/en/B3921-60631/ld_ia.1.html
http://docs.hp.com/en/B3921-60631/ld_pa.1.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 04:30 AM
тАО03-16-2009 04:30 AM
Re: Debugging Output of Dynamic Loader
that might be the information I searched for :) I tried this linker option with a short test program but did not get any output. (verbose: Display verbose messages when binding symbols. This is the default ...)
Do I have to set an additional environment variable or is this output written to a log file instead of to stdout?
Thx,
Andre-Marcel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 08:07 PM
тАО03-16-2009 08:07 PM
Re: Debugging Output of Dynamic Loader
Is this PA32 or everything else?
For the startup, you can use "ldd -r -s executable". There is also -v.
If you are using dlopen, you can use dlerror.
Otherwise you should give up on dlopen and use the tried and true shl_load with BIND_VERBOSE.
There is _HP_DLDOPTS but all I see is -warnings.
>is this output written to a log file instead of to stdout?
It should be sent to stderr.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2009 12:47 AM
тАО03-17-2009 12:47 AM
Re: Debugging Output of Dynamic Loader
Primarily the application startup on IA64.
> For the startup, you can use "ldd -r -s executable". There is also -v.
The information given by "ldd -r -s -v ..." is quite good, but I was/am looking for a debug output based on symbols as in the case of Linux:
A simple test program with just printf and the LD_DEBUG set to "bindings,symbols" would yield:
symbol=printf; lookup in file=./main [0]
symbol=printf; lookup in file=/lib/tls/i686/nosegneg/libc.so.6 [0]
binding file ./main [0] to /lib/tls/i686/nosegneg/libc.so.6 [0]: normal symbol `printf' [GLIBC_2.0]
I would also be satisfied with a "No, it is not possible in that detail on HP-UX without a debugging dld.so"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2009 02:52 AM
тАО03-17-2009 02:52 AM
Re: Debugging Output of Dynamic Loader
That's probably true for dld.so.
But you can use my tool instead. See the attachment show_remaining_imports_elf.sh in this thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1261297
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2009 03:44 AM
тАО03-17-2009 03:44 AM
Re: Debugging Output of Dynamic Loader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2009 07:03 PM
тАО03-19-2009 07:03 PM
Solutionexample in attached file.
--
ranga
[i work for hpe]
- Tags:
- ldd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 01:25 AM
тАО03-23-2009 01:25 AM
Re: Debugging Output of Dynamic Loader
thanks! That's what I was looking for!