Operating System - HP-UX
1753868 Members
7386 Online
108809 Solutions
New Discussion юеВ

Problem read core on Itanium

 
marcom
New Member

Problem read core on Itanium

Hi all,
I've a problem, when I try to read a core file on Itanium server the gdb can't found debug information and give the following error:

warning:
ERROR: Use the "objectdir" command to specify the search
path for objectfile libdeamons30.a(deamons.o).
If NOT specified will behave as a non -g compiled binary.


I compile with aCC and the -g option

someone can help me?

Thanks in advance
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Problem read core on Itanium

Shalom,

strings core_file

See if the file has normal data.

This points to a problem with SHLIB_PATH at compile time. How it compiled I don't know.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
marcom
New Member

Re: Problem read core on Itanium

the SHLIB_PATH on the compiler machine seem correct:

SHLIB_PATH=/opt/oracle/app/oracle/product/9.2.0/lib:/usr/lib:/usr/lib/hpux32:/usr/ccs/lib:/usr/ccs/lib/hpux32:



the core file too:
the stack is ok, debug info miss in local code or statically linked lib, shared lib non compare in the stack.

I try to re-compile all with -g1 option but the problem persist


Dennis Handly
Acclaimed Contributor

Re: Problem read core on Itanium

The debug info is stored in the object files, unless you use +noobjdebug.
Have you moved your executable or archive libs to another system?

It said "objectfile libdeamons30.a(deamons.o)", so is the original libdeamons30.a present?

>I try to re-compile all with -g1 option

Why would that help? -g1 == -g. Perhaps you wanted -g0?

>SEP: This points to a problem with SHLIB_PATH at compile time.

Huh? This is related to finding object files with objectdir. This is a type of gdb "path" but has nothing to do with LD_LIBRARY_PATH, the industry standard
replacement for SHLIB_PATH.