Skip to content

dwarfdump is unable to handle Ubuntu vmlinux file #4

@GoogleCodeExporter

Description

@GoogleCodeExporter
Output:

root@newubuntu:~/debug/usr/lib/debug/boot# dwarfdump.py 
vmlinux-2.6.32-27-generic
Traceback (most recent call last):
  File "/usr/local/bin/dwarfdump.py", line 5, in <module>
    pkg_resources.run_script('DevTools==0.1.0', 'dwarfdump.py')
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 461, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1194, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.6/dist-packages/DevTools-0.1.0-py2.6.egg/EGG-INFO/scripts/dwarfdump.py", line 19, in <module>
    benchmark(dwarfdump, file_path)
  File "/usr/local/lib/python2.6/dist-packages/DevTools-0.1.0-py2.6.egg/devtools/utils/__init__.py", line 90, in benchmark
    func(*args, **kargs)
  File "/usr/local/lib/python2.6/dist-packages/DevTools-0.1.0-py2.6.egg/EGG-INFO/scripts/dwarfdump.py", line 9, in dwarfdump
    dwarf = DWARF(file_path)
  File "/usr/local/lib/python2.6/dist-packages/DevTools-0.1.0-py2.6.egg/devtools/dwarf/__init__.py", line 35, in __init__
    self.info = DebugInfoLoader(self)
  File "/usr/local/lib/python2.6/dist-packages/DevTools-0.1.0-py2.6.egg/devtools/dwarf/info.py", line 168, in __init__
    cu = CU(dwarf, overall_offset)
  File "/usr/local/lib/python2.6/dist-packages/DevTools-0.1.0-py2.6.egg/devtools/dwarf/info.py", line 110, in __init__
    die = DIE(dwarf, self, abbrevs, level)
  File "/usr/local/lib/python2.6/dist-packages/DevTools-0.1.0-py2.6.egg/devtools/dwarf/info.py", line 60, in __init__
    value = dwarf.read_expr_block(attrib_form.form)
  File "/usr/local/lib/python2.6/dist-packages/DevTools-0.1.0-py2.6.egg/devtools/dwarf/stream.py", line 130, in read_expr_block
    raise ParseError("Not an expression block: %s" % DW_FORM[type])
devtools.elf.exception.ParseError: Not an expression block: data4


When I run dwarfdump/objdump they are able to handle the file fine, but I was 
hoping to pydevtools to script some things out when I encountered this error. 
Unfortunately, the vmlinux file is 133MB so I can't upload it, but you can 
download the file if you want from:

http://ddebs.ubuntu.com/pool/main/l/linux/linux-image-2.6.32-27-generic-dbgsym_2
.6.32-27.49_i386.ddeb

you can extract the vmlinux from the ddeb and test from there or if there is 
more information I can provide then please just respond to this bug filing.

Original issue reported on code.google.com by atc...@gmail.com on 29 Dec 2010 at 7:39

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions