llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.4k stars 11.73k forks source link

a.out N_SO in symbol with UID 0 has invalid sibling in debug map #15316

Open llvmbot opened 11 years ago

llvmbot commented 11 years ago
Bugzilla Link 14944
Version 3.2
OS MacOS X
Attachments compiled executable with bad DWARF info.
Reporter LLVM Bugzilla Contributor

Extended Description

LLDB is telling me I should submit a bug about this error message:

(lldb) source list -n main error: a.out N_SO in symbol with UID 0 has invalid sibling in debug map, please file a bug and attach the binary listed in this error error: Could not find function named: "main".

This is the full LLVM assembly for the attached executable. It's compiled with the command: llc -O0 "Ides Module.ilib" && clang -c -O0 "Ides Module.ilib.s" && clang -O0 "Ides Module.ilib.o"

; ModuleID = 'Ides Module'

@​llvm.global_ctors = appending global [0 x { i32, void ()* }] zeroinitializer

define i32 @​main() { entry: br label %scope

scope: ; preds = %entry ret i32 0, !dbg !​8 }

!llvm.dbg.cu = !{#0}

!​0 = metadata !{i32 786449, i32 0, i32 2, metadata !"test.ides", metadata !".", metadata !"idesc", i1 true, i1 false, metadata !"", i32 0, metadata !​1, metadata !​1, metadata !​3, metadata !​1} ; [ DW_TAG_compile_unit ] [./test.ides] [DW_LANG_C] !​1 = metadata !{metadata !​2} !​2 = metadata !{i32 0} !​3 = metadata !{metadata !​4} !​4 = metadata !{metadata !​5} !​5 = metadata !{i32 786478, i32 0, metadata !​6, metadata !"main", metadata !"main", metadata !"main", null, i32 4, metadata !​7, i1 false, i1 true, i32 0, i32 0, null, i32 0, i1 false, null, null, null, metadata !​1, i32 4} ; [ DW_TAG_subprogram ] [line 4] [def] [main] !​6 = metadata !{i32 786473, metadata !"test.ides", metadata !".", null} ; [ DW_TAG_file_type ] !​7 = metadata !{i32 786453, i32 0, metadata !"", i32 0, i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !​2, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] !​8 = metadata !{i32 6, i32 2, metadata !​9, null} !​9 = metadata !{i32 786443, metadata !​5, i32 6, i32 2, null, i32 0} ; [ DW_TAG_lexical_block ] [/]

llvmbot commented 11 years ago

Patch supporting the comment on anonymous structs.

llvmbot commented 11 years ago

Ides Module.ilib.o Attached Ides Module.ilib.o

llvmbot commented 11 years ago

Sean, can you attach your "Ides Module.ilib.o" object file?

llvmbot commented 11 years ago

Also found this possibly related commit in a Google search: http://lists.cs.uiuc.edu/pipermail/lldb-commits/Week-of-Mon-20120716/006205.html