Vector35 / Vector35/binaryninja-api

Crash in DWARF import with CustomDebugInfoParser::parse_info

Open
#6,523 0 comments 0 reactions 1 assignee View on GitHub

@emesare is already working on this.

Since Mar 25, 2025.

DebugInfo: DWARF Effort: Trivial Impact: Low State: Awaiting Triage
Dominant language
C++
Stars
1.3k
Forks
298
Avg merge
5d 5h
Merged PRs (30d)
19

Description

File ID: eager robot reads gracefully

This binaries arch is unsupported however the user has added the architecture and still gets the crash. In the mean time the user has disabled the debug info import.

Relevant logs

[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 0
		section.name      00000000 ()
		section.type      00000000
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000000000
		section.size      0000000000000000
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 1
		section.name      00000001 (__TI_DW.debug_info.$base_types.543536f9efaf1c6e0f78586222ebe592)
		section.type      00000011
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000000034
		section.size      0000000000000018
		section.link      0000001b
		section.info      000000000000001e
		section.align     0000000000000000
		section.entrySize 0000000000000004
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 2
		section.name      00000041 (.text)
		section.type      00000001
		section.flags     0000000000000006
		section.address   0000000000000000
		section.offset    000000000000004c
		section.size      0000000000000000
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000001
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 3
		section.name      00000047 (.text:main)
		section.type      00000001
		section.flags     0000000000000006
		section.address   0000000000000000
		section.offset    000000000000004c
		section.size      0000000000000018
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000004
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 4
		section.name      00000052 (.text:test)
		section.type      00000001
		section.flags     0000000000000006
		section.address   0000000000000000
		section.offset    0000000000000064
		section.size      0000000000000028
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000004
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 5
		section.name      0000005d (.debug_info)
		section.type      00000001
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    000000000000008c
		section.size      000000000000061f
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 6
		section.name      0000005d (.debug_info)
		section.type      00000001
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    00000000000006ab
		section.size      00000000000000fd
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 7
		section.name      0000005d (.debug_info)
		section.type      00000001
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    00000000000007a8
		section.size      000000000000012d
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 8
		section.name      0000005d (.debug_info)
		section.type      00000001
		section.flags     0000000000000200
		section.address   0000000000000000
		section.offset    00000000000008d5
		section.size      0000000000000084
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 9
		section.name      00000069 (.debug_line)
		section.type      00000001
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000000959
		section.size      000000000000002a
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 10
		section.name      00000069 (.debug_line)
		section.type      00000001
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000000983
		section.size      000000000000003d
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 11
		section.name      00000069 (.debug_line)
		section.type      00000001
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    00000000000009c0
		section.size      000000000000003e
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 12
		section.name      00000069 (.debug_line)
		section.type      00000001
		section.flags     0000000000000200
		section.address   0000000000000000
		section.offset    00000000000009fe
		section.size      0000000000000020
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 13
		section.name      00000075 (.debug_frame)
		section.type      00000001
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000000a1e
		section.size      0000000000000080
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000004
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 14
		section.name      00000075 (.debug_frame)
		section.type      00000001
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000000a9e
		section.size      0000000000000088
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000004
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 15
		section.name      00000082 (.debug_abbrev)
		section.type      00000001
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000000b26
		section.size      000000000000003b
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 16
		section.name      00000082 (.debug_abbrev)
		section.type      00000001
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000000b61
		section.size      0000000000000052
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 17
		section.name      00000082 (.debug_abbrev)
		section.type      00000001
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000000bb3
		section.size      000000000000006e
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 18
		section.name      00000082 (.debug_abbrev)
		section.type      00000001
		section.flags     0000000000000200
		section.address   0000000000000000
		section.offset    0000000000000c21
		section.size      000000000000001f
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 19
		section.name      00000090 (.debug_str)
		section.type      00000001
		section.flags     0000000000000200
		section.address   0000000000000000
		section.offset    0000000000000c40
		section.size      00000000000000f4
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 20
		section.name      0000009b (.debug_aranges)
		section.type      00000001
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000000d34
		section.size      0000000000000020
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 21
		section.name      0000009b (.debug_aranges)
		section.type      00000001
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000000d54
		section.size      0000000000000020
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 22
		section.name      000000aa (.debug_pubnames)
		section.type      00000001
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000000d74
		section.size      000000000000001e
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 23
		section.name      000000aa (.debug_pubnames)
		section.type      00000001
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000000d92
		section.size      000000000000001b
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 24
		section.name      000000aa (.debug_pubnames)
		section.type      00000001
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000000dad
		section.size      000000000000001b
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 25
		section.name      000000ba (.debug_pubtypes)
		section.type      00000001
		section.flags     0000000000000200
		section.address   0000000000000000
		section.offset    0000000000000dc8
		section.size      00000000000000ed
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 26
		section.name      000000ca (__TI_build_attributes)
		section.type      70000003
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000000eb5
		section.size      0000000000000030
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 27
		section.name      000000e0 (.symtab)
		section.type      00000002
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000000ee8
		section.size      00000000000001f0
		section.link      0000002f
		section.info      000000000000001a
		section.align     0000000000000000
		section.entrySize 0000000000000010
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 28
		section.name      000000e8 (.rel.text:main)
		section.type      00000009
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    00000000000010d8
		section.size      0000000000000008
		section.link      0000001b
		section.info      0000000000000003
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 29
		section.name      000000f7 (.rel.text:test)
		section.type      00000009
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    00000000000010e0
		section.size      0000000000000008
		section.link      0000001b
		section.info      0000000000000004
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 30
		section.name      00000106 (.TI.symbol.alias)
		section.type      7f000006
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    00000000000010e8
		section.size      0000000000000009
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 31
		section.name      00000117 (.rel.debug_line)
		section.type      00000009
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    00000000000010f4
		section.size      0000000000000008
		section.link      0000001b
		section.info      000000000000000a
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 32
		section.name      00000117 (.rel.debug_line)
		section.type      00000009
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    00000000000010fc
		section.size      0000000000000008
		section.link      0000001b
		section.info      000000000000000b
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 33
		section.name      00000127 (.rel.debug_info)
		section.type      00000009
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000001104
		section.size      0000000000000028
		section.link      0000001b
		section.info      0000000000000005
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 34
		section.name      00000127 (.rel.debug_info)
		section.type      00000009
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    000000000000112c
		section.size      0000000000000040
		section.link      0000001b
		section.info      0000000000000006
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 35
		section.name      00000127 (.rel.debug_info)
		section.type      00000009
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    000000000000116c
		section.size      0000000000000060
		section.link      0000001b
		section.info      0000000000000007
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 36
		section.name      00000127 (.rel.debug_info)
		section.type      00000009
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    00000000000011cc
		section.size      0000000000000098
		section.link      0000001b
		section.info      0000000000000008
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 37
		section.name      00000137 (.rel.debug_frame)
		section.type      00000009
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000001264
		section.size      0000000000000010
		section.link      0000001b
		section.info      000000000000000d
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 38
		section.name      00000137 (.rel.debug_frame)
		section.type      00000009
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000001274
		section.size      0000000000000010
		section.link      0000001b
		section.info      000000000000000e
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 39
		section.name      00000148 (.rel.debug_aranges)
		section.type      00000009
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000001284
		section.size      0000000000000010
		section.link      0000001b
		section.info      0000000000000014
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 40
		section.name      00000148 (.rel.debug_aranges)
		section.type      00000009
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    0000000000001294
		section.size      0000000000000010
		section.link      0000001b
		section.info      0000000000000015
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 41
		section.name      0000015b (.rel.debug_pubnames)
		section.type      00000009
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    00000000000012a4
		section.size      0000000000000008
		section.link      0000001b
		section.info      0000000000000016
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 42
		section.name      0000015b (.rel.debug_pubnames)
		section.type      00000009
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    00000000000012ac
		section.size      0000000000000008
		section.link      0000001b
		section.info      0000000000000017
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 43
		section.name      0000015b (.rel.debug_pubnames)
		section.type      00000009
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    00000000000012b4
		section.size      0000000000000008
		section.link      0000001b
		section.info      0000000000000018
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 44
		section.name      0000016f (.rel.debug_pubtypes)
		section.type      00000009
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    00000000000012bc
		section.size      0000000000000008
		section.link      0000001b
		section.info      0000000000000019
		section.align     0000000000000000
		section.entrySize 0000000000000008
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 45
		section.name      00000183 (.TI.section.flags)
		section.type      7f000005
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    00000000000012c4
		section.size      000000000000001a
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 46
		section.name      00000195 (.TI.section.page)
		section.type      7f000007
		section.flags     0000000000000000
		section.address   0000000000000000
		section.offset    00000000000012de
		section.size      000000000000001a
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000000
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 47
		section.name      000001a6 (.strtab)
		section.type      00000003
		section.flags     0000000000000020
		section.address   0000000000000000
		section.offset    00000000000012f8
		section.size      00000000000000e4
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000001
[17635619728223703939:10932581209686268723 BinaryView.ElfView debug] 	Section: 48
		section.name      000001ae (.shstrtab)
		section.type      00000003
		section.flags     0000000000000020
		section.address   0000000000000000
		section.offset    00000000000013dc
		section.size      00000000000001b8
		section.link      00000000
		section.info      0000000000000000
		section.align     0000000000000000
		section.entrySize 0000000000000001
[0:0 Default debug] Beginning bulk segment add operation.
[0:0 Default debug] Finished bulk segment add operation.
[17635619728223703939:10932581209686268723 BinaryView.ElfView error] ELF architecture 144 is not supported
[0:0 Default error] BinaryView of type 'ELF' failed to initialize!
[0:0 WARP debug] Removed WARP caches for BinaryView (type: `ELF`): '/home/sebdie/Documents/projects/ait/testcat/abb/pru-icss/ti-cgt-pru_2.3.3/test.obj', len 0x48
[0:0 DWARF debug] Invalid FDE table row addresses: 0x18..0x18
[0:0 DWARF error] ffi callback caught panic: CustomDebugInfoParser::parse_info

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.