Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Hiprof problems
@ 1998-08-18  4:00 WANGNICK Sebastian
  1998-08-20  4:00 ` John P Williams
  0 siblings, 1 reply; 2+ messages in thread
From: WANGNICK Sebastian @ 1998-08-18  4:00 UTC (permalink / raw)


Hello experts,

I'm currently trying to instrument our application with hiprof.
I'm working on OSF1 V3.2 62 alpha. The application uses pthreads.

I call atom as following: atom Workpackage6 -v -tool hiprof -env threads
-all -shlibdir hiprof.shlib -gp -toolargs="-calltime -dirname hiout
-textout -systime -sigdump USR1".

First issue: odump -D tells me SO_SUFFIX: .Workpackage6.hiprof.threads.
However, the 3.2G loader doesn't take this setting into account!
However, I can work around this by creating links to the original shared
library names and setting LD_LIBRARY_PATH accordingly (I watch the
proper libraries being used by setting _RLD_ARGS to -v).

Main issue: Somewhen during thread establishment (no detailed point in
time known yet) I get the message:
	Hiprof Panic: hacked stack back to nothing
What is this supposed to tell me? Also, it seems that after this message
sending USR1 doesn't generate the output files anymore? Finally, my
application SEGV's (and ladebug is totally confused with the core file).

If instrumented without -env threads the application runs fine (though
the figures are totally confusing due to the threads instructions being
attibuted wrongly).

Is anybody able to help me?

Regards,
Sebastian

PS: Maybe it's interesting to know that atom keeps claiming the
following (both with and without -env threads):
atom: Warning: Object 'Workpackage6' has old relocations, relink if
possible.  Continuing.
atom: Warning: Shared library '/usr/shlib/libutc.so' has very old
relocations, ignored.
atom: Warning: Shared library '/usr/lib/cmplrs/cxx/libcxx.so' has very
old relocations, ignored.
--
Dipl.-Inform. Sebastian <dot> Wangnick <at eurocontrol in be>
Office: Eurocontrol Maastricht UAC, Horsterweg 11, NL-6191RX Beek,
	Tel: +31-433661370, Fax: ~300
Spam email is reported to service providers. Report charge is $100.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Hiprof problems
  1998-08-18  4:00 Hiprof problems WANGNICK Sebastian
@ 1998-08-20  4:00 ` John P Williams
  0 siblings, 0 replies; 2+ messages in thread
From: John P Williams @ 1998-08-20  4:00 UTC (permalink / raw)
  To: WANGNICK Sebastian

> I'm currently trying to instrument our application with hiprof.
> I'm working on OSF1 V3.2 62 alpha. The application uses pthreads.
> 
> I call atom as following: atom Workpackage6 -v -tool hiprof -env threads
> -all -shlibdir hiprof.shlib -gp -toolargs="-calltime -dirname hiout
> -textout -systime -sigdump USR1".
> 
> First issue: odump -D tells me SO_SUFFIX: .Workpackage6.hiprof.threads.
> However, the 3.2G loader doesn't take this setting into account!

This first issue seems to be the result of you using Hiprof without
first installing the complete Atom Advance Development Kit (ADK).
Past ADKs for V3.2* provided a new version of the loader, which knows
how to load shared libraries that have been instrumented by Atom.

We no longer offer an ADK for V3.2*, because the great majority of
our customers now run V4.0 or later, but it looks as if you have access
to an older ADK, so I think you need to install it on the machine where
you want to use Hiprof.

> Main issue: Somewhen during thread establishment (no detailed point in
> time known yet) I get the message:
>         Hiprof Panic: hacked stack back to nothing

This occurs because our Atom tools do not support the V3.2* implementation
of pthreads. They only support the rather different implementation that was
introduced in V4.0. We have just not disabled the "-env threads" option in
the version of the ADK for V3.2* because it is not an actual product.

Atom and Hiprof first became products in V4.0, so no guarantees are offered
on earlier versions of the operating system. I suggest that you upgrade to
V4.0 or later (eg V4.0D, or V4.0E when it is released). Alternatively, try
the gprof command after compiling your application with the -pg option,
or use the uprofile or pixie command with prof.

Please send me email if you would like to discuss this further.

	Thanks
		John P Williams, Digital UNIX Development Environment Group



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-08-20  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-18  4:00 Hiprof problems WANGNICK Sebastian
1998-08-20  4:00 ` John P Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox