Re: [DynInst_API:] Dyninst abort on new platform?


Date: Wed, 12 Nov 2014 11:00:39 -0600
From: Bill Williams <bill@xxxxxxxxxxx>
Subject: Re: [DynInst_API:] Dyninst abort on new platform?
On 11/11/2014 11:23 AM, Jim Galarowicz wrote:
Hi Dyninst team,

We have encountered an error on the NERSC babbage Intel MIC test bed.
The machine is down right now, but I can get more information when it
comes up, if you need it.
Looks like an unexpected type of elf construct was encountered. This
code was compiled with the Intel compilers for the MIC with the -mmic
compiler option.

That looks to me like a MIC binary has a different magic number from a vanilla x86_64 one; this should be a straightforward change assuming that the associated DWARF is otherwise comprehensible as if it were x86_64. I can poke at this and send a patch out soonish.

Thanks,
Jim G

*ossutil
/global/u2/j/jgalaro/babbage/shared/openss-rawdata-bc1107-mic0-5686*
Processing raw data for nbody.mic2 ...
Processing processes and threads ...
Processing performance data ...
Processing symbols ...
Resolving symbols for /global/u2/j/jgalaro/nbody/nbody.mic2
ossutil:
/global/homes/j/jgalaro/babbage/OpenSpeedShop_ROOT/BUILD/bint01/dyninst-8.2.0/dwarf/src/dwarfHandle.C:139:
bool Dyninst::Dwarf::DwarfHandle::init_dbg(): Assertion `0 &&
"Unsupported archiecture in ELF file."' failed.
Abort (core dumped)

bint01-406>env | grep DYNI
DYNINSTAPI_RT_LIB=/global/u2/j/jgalaro/babbage/krellroot_v2.1u5/lib64/libdyninstAPI_RT.so
bint01-407>

Core was generated by `ossutil
/global/u2/j/jgalaro/babbage/shared/openss-rawdata-bc1107-mic0-5686'.
Program terminated with signal 6, Aborted.
#0  0x00002af5f3183635 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install
glibc-2.12-1.132.el6_5.4.x86_64 libgcc-4.4.6-4.el6.x86_64
libstdc++-4.4.6-4.el6.x86_64
(gdb) where
#0  0x00002af5f3183635 in raise () from /lib64/libc.so.6
#1  0x00002af5f3184e15 in abort () from /lib64/libc.so.6
#2  0x00002af5f317c75e in __assert_fail_base () from /lib64/libc.so.6
#3  0x00002af5f317c820 in __assert_fail () from /lib64/libc.so.6
#4  0x00002af5f1d1bf9c in Dyninst::Dwarf::DwarfHandle::init_dbg
(this=0x152eb30) at
/global/homes/j/jgalaro/babbage/OpenSpeedShop_ROOT/BUILD/bint01/dyninst-8.2.0/dwarf/src/dwarfHandle.C:139
#5  0x00002af5f1d1c069 in Dyninst::Dwarf::DwarfHandle::type_dbg
(this=0x152eb30) at
/global/homes/j/jgalaro/babbage/OpenSpeedShop_ROOT/BUILD/bint01/dyninst-8.2.0/dwarf/src/dwarfHandle.C:196
#6  0x00002af5f09f1e80 in
Dyninst::SymtabAPI::Object::fix_global_symbol_modules_static_dwarf
(this=0x1531810) at
/global/homes/j/jgalaro/babbage/OpenSpeedShop_ROOT/BUILD/bint01/dyninst-8.2.0/symtabAPI/src/Object-elf.C:2884
#7  0x00002af5f09f4172 in Dyninst::SymtabAPI::Object::load_object
(this=0x1531810, alloc_syms=<value optimized out>) at
/global/homes/j/jgalaro/babbage/OpenSpeedShop_ROOT/BUILD/bint01/dyninst-8.2.0/symtabAPI/src/Object-elf.C:1619
#8  0x00002af5f09f4ed1 in Dyninst::SymtabAPI::Object::Object
(this=0x1531810, mf_=0x152e4e0, err_func=<value optimized out>,
alloc_syms=true)
     at
/global/homes/j/jgalaro/babbage/OpenSpeedShop_ROOT/BUILD/bint01/dyninst-8.2.0/symtabAPI/src/Object-elf.C:3396
#9  0x00002af5f09bc2d2 in Dyninst::SymtabAPI::Symtab::Symtab
(this=0x1531310, filename="", defensive_bin=false, err=@0x7fff7e533e7f)
at
/global/homes/j/jgalaro/babbage/OpenSpeedShop_ROOT/BUILD/bint01/dyninst-8.2.0/symtabAPI/src/Symtab.C:1283
#10 0x00002af5f09bc9dc in Dyninst::SymtabAPI::Symtab::openFile
(obj=@0x1531130, filename="/global/u2/j/jgalaro/nbody/nbody.mic2",
def_binary=Dyninst::SymtabAPI::Symtab::NotDefensive)
     at
/global/homes/j/jgalaro/babbage/OpenSpeedShop_ROOT/BUILD/bint01/dyninst-8.2.0/symtabAPI/src/Symtab.C:2149
#11 0x00002af5f035ab84 in image::image (this=0x1531070, desc=...,
err=@0x7fff7e53401f, mode=BPatch_normalMode, parseGaps=<value optimized
out>)
     at
/global/homes/j/jgalaro/babbage/OpenSpeedShop_ROOT/BUILD/bint01/dyninst-8.2.0/dyninstAPI/src/image.C:1263
#12 0x00002af5f035b762 in image::parseImage (desc=...,
mode=BPatch_normalMode, parseGaps=true) at
/global/homes/j/jgalaro/babbage/OpenSpeedShop_ROOT/BUILD/bint01/dyninst-8.2.0/dyninstAPI/src/image.C:1068
#13 0x00002af5f036d13a in mapped_object::createMappedObject (desc=...,
p=0x1530cb0, analysisMode=BPatch_normalMode, parseGaps=true)
     at
/global/homes/j/jgalaro/babbage/OpenSpeedShop_ROOT/BUILD/bint01/dyninst-8.2.0/dyninstAPI/src/mapped_object.C:149
#14 0x00002af5f034caf4 in BinaryEdit::openFile
(file="/global/u2/j/jgalaro/nbody/nbody.mic2", mgr=..., patch=0x0,
member=<value optimized out>)
     at
/global/homes/j/jgalaro/babbage/OpenSpeedShop_ROOT/BUILD/bint01/dyninst-8.2.0/dyninstAPI/src/binaryEdit.C:339
#15 0x00002af5f030e229 in BPatch_binaryEdit::BPatch_binaryEdit
(this=0x152f9e0, path=0x152ffd8 "/global/u2/j/jgalaro/nbody/nbody.mic2",
openDependencies=false)
     at
/global/homes/j/jgalaro/babbage/OpenSpeedShop_ROOT/BUILD/bint01/dyninst-8.2.0/dyninstAPI/src/BPatch_binaryEdit.C:90
#16 0x00002af5f02c673d in BPatch::openBinary (this=<value optimized
out>, path=0x152ffd8 "/global/u2/j/jgalaro/nbody/nbody.mic2",
openDependencies=false)
     at
/global/homes/j/jgalaro/babbage/OpenSpeedShop_ROOT/BUILD/bint01/dyninst-8.2.0/dyninstAPI/src/BPatch.C:1872
#17 0x00002af5efe54a09 in
OpenSpeedShop::Framework::DyninstSymbols::getLoops
(unique_addresses=std::set with 325 elements = {...}, linked_object=...,
symbol_tables=std::map with 5 elements = {...}) at DyninstSymbols.cxx:208
#18 0x00002af5efe4ccdb in
OpenSpeedShop::Framework::OfflineExperiment::createOfflineSymbolTable
(this=<value optimized out>) at OfflineExperiment.cxx:1145
#19 0x00002af5efe4eeff in
OpenSpeedShop::Framework::OfflineExperiment::getRawDataFiles
(this=0x7fff7e535200, dir=<value optimized out>) at
OfflineExperiment.cxx:436
#20 0x00000000004020b2 in main (argc=<value optimized out>,
argv=0x7fff7e535508) at ossutil.cxx:74
(gdb)




_______________________________________________
Dyninst-api mailing list
Dyninst-api@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api



--
--bw

Bill Williams
Paradyn Project
bill@xxxxxxxxxxx
[← Prev in Thread] Current Thread [Next in Thread→]