[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen-devel] Problem with dom0cut.py



Hi all,

    I am a newbie with Xen. I was working on Xen and hit an assertion. I was trying to dump the hypervisor image from the /proc/vmcore file I obtained after kdump rebooted. However, I had trouble getting the python script dom0cut.py to work. 

    I followed the instruction on Xen wiki to install the latest libelf.0.8.9 from [1] and the libelf wrapper from [2]. I also had to create a softlink /usr/lib/libelf.so.1 to get the script to run. Here is the command I used: "dom0cut.py -o xenImage -d ~/dumpcore1 --target=x -x ~/stuff/xen/xen-3.1-testing.hg/xen/xen-syms -telf". However, the script seemed to require eu-readelf to work. Therefore, I had to install elfutils (0.123-3). Then, I get the following errors:

Traceback (most recent call la! st):
  File "/usr/bin/dom0cut.py", line 8, in ?
    import xendump.XenCore
  File "/usr/lib/python2.4/site-packages/xendump/XenCore.py", line 7, in ?
    import xendump.CoreDump as CoreDump
  File "/usr/lib/python2.4/site-packages/xendump/CoreDump.py", line 1, in ?
    import xendump.Arch as Arch
  File "/usr/lib/python2.4/site-packages/xendump/Arch.py", line 1, in ?
    import libelf
  File "/usr/lib/python2.4/site-packages/libelf/__init__.py", line 10, in ?
    from libelf import *
  File "/usr/lib/python2.4/site-packages/libelf/libelf.py", line 5, in ?
    import _libelf
ImportError: /usr/lib/python2.4/site-packages/libelf/_libelf.so: undefined symbol: elfx_remscn

   Apparently, elfutils installed another libelf and overwrote the symlink I created. So, I made the symlink point back to the original ! libelf that I installed but then I get a different error message:
< br>eu-readelf: /usr/lib/libelf.so.1: no version information available (required by eu-readelf)
eu-readelf: /usr/lib/libelf.so.1: no version information available (required by eu-readelf)
eu-readelf: /usr/lib/libelf.so.1: no version information available (required by eu-readelf)
eu-readelf: cannot generate Elf descriptor: Request error: invalid ELF_C_* argument

Traceback (most recent call last):
  File "/usr/bin/dom0cut.py", line 179, in ?
    main()
  File "/usr/bin/dom0cut.py", line 137, in main
    dump = xendump.ElfCore.ElfCoreReader(options.dumpname, options.arch)
  File "/usr/lib/python2.4/site-packages/xendump/ElfCore.py", line 214, in __init__
    raise ValueError, 'section isn\'t found'
ValueError: section isn't found

   It looks to me that there are 2 different releases of libelf out there: [1] and the one with elfutils [3] (and maintained by Redhat !?).

   Any clues on how to deal with this issues ? Does re-compiling eu-readelf from source work ? Thanks.

[1]: http://www.mr511.de/software/
[2]: http://people.valinux.co.jp/~moriwaka/dumpread/
[3]: http://packages.debian.org/unstable/libs/libelf1

Regards,

Levin




Want to change your life? Find the perfect job with Lycos Jobs.
Career Advice. Job Resources & Recommendations.
Post your resume & find a job match!
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.