[LLVMbugs] [Bug 15005] New: llvm-objdump crash with `-s`

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jan 19 21:23:00 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=15005

             Bug #: 15005
           Summary: llvm-objdump crash with `-s`
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-dwarfdump
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: silvas at purdue.edu
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9895
  --> http://llvm.org/bugs/attachment.cgi?id=9895
The object file that triggers the crash.

(NOTE: there is no `llvm-objdump` component in bugzilla currently, so I put
this under `llvm-dwarfdump`; an actual `llvm-objdump` component should probably
be created; also, some of the other components don't exist anymore and could
probably be purged)

This is triggered with the attached object file `csum.elf`. gdb backtrace on
the core file indicates the crash was in

#0  0x00000000004462bc in DumpObject(llvm::object::ObjectFile const*) ()

but due to the amount of inlining that could probably be almost any function in
llvm-objdump.cpp. Here is the console session with it crashing. This is running
on x86_64 Ubuntu 12.10. This triggers both with my installed llvm-objdump and
ToT Release+Asserts build:

sean:~/pg/arm-embedded % ~/pg/llvm/r+a/bin/llvm-objdump -s csum.elf

csum.elf:       file format ELF32-arm

Contents of section :
Contents of section .text:
 0000 060000ea feffffea feffffea feffffea  ................
 0010 feffffea 0000a0e1 feffffea feffffea  ................
 0020 4c009fe5 4c109fe5 4c209fe5 000052e3  L...L...L ....R.
 0030 0300000a 0140d0e4 0140c1e4 012052e2  ..... at ...@... R.
 0040 fbffff1a 34009fe5 34109fe5 34209fe5  ....4...4...4 ..
 0050 000052e3 0300000a 0040a0e3 0140c0e4  ..R...... at ...@..
 0060 012052e2 fcffff1a 29d3a0e3 060000eb  . R.....).......
 0070 feffffea d4000000 000000a0 00000000  ................
 0080 000000a0 040000a0 04000000           ............
Contents of section .text.startup:
 008c 20c09fe5 20309fe5 00209ce5 180083e2   ... 0... ......
 009c 0410b3e5 000053e1 012082e0 fbffff1a  ......S.. ......
 00ac 00208ce5 1eff2fe1 000000a0 b8000000  . ..../.........
Contents of section .rodata:
 00bc 01000000 0a000000 04000000 05000000  ................
 00cc 06000000 07000000                    ........
Contents of section .bss:
 a0000000 0  llvm-objdump    0x00000000005de675
llvm::sys::PrintStackTrace(_IO_FILE*) + 37
1  llvm-objdump    0x00000000005dea73
2  libpthread.so.0 0x00007f3034f6ecb0
3  llvm-objdump    0x000000000045081c
4  llvm-objdump    0x000000000044d822 main + 2002
5  libc.so.6       0x00007f30343f976d __libc_start_main + 237
6  llvm-objdump    0x000000000044cce1
Stack dump:
0.      Program arguments: /home/sean/pg/llvm/r+a/bin/llvm-objdump -s csum.elf 
zsh: segmentation fault (core dumped)  ~/pg/llvm/r+a/bin/llvm-objdump -s
csum.elf

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list