radareorg / radare2

UNIX-like reverse engineering framework and command-line toolset
https://www.radare.org/
GNU Lesser General Public License v3.0
20.28k stars 2.97k forks source link

Travis CI debug build with ASAN asserts/errors #17325

Closed XVilka closed 3 years ago

XVilka commented 4 years ago

See https://travis-ci.com/github/radareorg/radare2/jobs/363149840 for full log

[XX] db/formats/pe/checksum PE: checksum 2
R2_NOPLUGINS=1 radare2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -A -Qc i~csum bins/pe/a2.exe
-- stdout
@@ -1,2 +1,3 @@
 cmp.csum 0x000079a3
 hdr.csum 0x000079a3
+WARNING: parse_line_header: assertion 'hdr && bf && buf' failed (line 545)
-- stderr
[x] Analyze all flags starting with sym. and entry0 (aa)
[x] Analyze function calls (aac)
[x] Analyze len bytes of instructions for references (aar)
[x] Check for objc references
Warning: aao experimental on 32bit binaries
[x] Check for vtables
[x] Type matching analysis for all functions (aaft)
[x] Propagate noreturn information
[x] Use -AA or aaaa to perform additional experimental analysis.

[XX] db/formats/pe/a2 PE: a2 - symbols
R2_NOPLUGINS=1 radare2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc isq bins/pe/a2.exe
-- stdout
@@ -78,3 +78,4 @@
 0x00406124 0 msvcrt.dll imp.printf
 0x00406128 0 msvcrt.dll imp.signal
 0x0040612c 0 msvcrt.dll imp.vfprintf
+WARNING: parse_line_header: assertion 'hdr && bf && buf' failed (line 545)

[XX] db/formats/pe/ioli PE: ioli pocketpc 1 automatic via aaa
R2_NOPLUGINS=1 radare2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc 'aaa
pd 1 @ 0x0001108c~?str.250382
axt str.250382~?
' bins/pe/ioli/pocketpc/crackme0x00.arm.exe
-- stdout
@@ -1,2 +1,4 @@
 1
 1
+WARNING: r_anal_op: assertion 'anal && op && len > 0' failed (line 91)
+WARNING: r_anal_op: assertion 'anal && op && len > 0' failed (line 91)
-- stderr
[x] Analyze all flags starting with sym. and entry0 (aa)
[x] Analyze function calls (aac)
[x] Analyze len bytes of instructions for references (aar)
[x] Check for objc references
Warning: aao experimental on 32bit binaries
[x] Check for vtables
[x] Finding xrefs in noncode section with anal.in=io.maps
[x] Analyze value pointers (aav)
[x] Value from 0x00011800 to 0x00012000 (aav)
[x] 0x00011800-0x00012000 in 0x11800-0x12000 (aav)
[x] 0x00011800-0x00012000 in 0x11000-0x11800 (aav)
[x] Value from 0x00011000 to 0x00011800 (aav)
[x] 0x00011000-0x00011800 in 0x11800-0x12000 (aav)
[x] 0x00011000-0x00011800 in 0x11000-0x11800 (aav)
[x] Emulate code to find computed references (aae)
[x] Type matching analysis for all functions (aaft)
[x] Propagate noreturn information
[x] Use -AA or aaaa to perform additional experimental analysis.

[XX] db/formats/elf/elf-riscv64 ELF: riscv64: full analysis
R2_NOPLUGINS=1 radare2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -A -Qc 'e asm.calls=false
s sym.main
pdf
' bins/elf/analysis/guess-number-riscv64
-- stdout
@@ -49,3 +49,4 @@
 |           0x000101e4      03340101       ld s0, 16(sp)
 |           0x000101e8      13010102       addi sp, sp, 32
 \           0x000101ec      67800000       ret
+WARNING: r_anal_op: assertion 'anal && op && len > 0' failed (line 91)
-- stderr
[x] Analyze all flags starting with sym. and entry0 (aa)
[x] Analyze function calls (aac)
[x] Analyze len bytes of instructions for references (aar)
[x] Check for objc references
[x] Check for vtables
[x] Finding xrefs in noncode section with anal.in=io.maps
[x] Analyze value pointers (aav)
[x] Value from 0x00025164 to 0x00025208 (aav)
[x] 0x00025164-0x00025208 in 0x25164-0x25208 (aav)
[x] 0x00025164-0x00025208 in 0x10000-0x25164 (aav)
[x] Value from 0x00010000 to 0x00025164 (aav)
[x] 0x00010000-0x00025164 in 0x25164-0x25208 (aav)
[x] 0x00010000-0x00025164 in 0x10000-0x25164 (aav)
[Warning: No SN reg alias for current architecture.
Warning: No SN reg alias for current architecture.
[x] Emulate code to find computed references (aae)
[x] Type matching analysis for all functions (aaft)
[x] Propagate noreturn information
[x] Use -AA or aaaa to perform additional experimental analysis.

[XX] db/formats/vsf/rambo2-rom VSF: Rambo II- open
R2_NOPLUGINS=1 radare2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -A -Qc q! bins/vsf/c64-rambo2-rom.vsf
-- stdout
@@ -0,0 +1 @@
+WARNING: r_anal_op: assertion 'anal && op && len > 0' failed (line 91)
-- stderr
WARNING: No calling convention defined for this file, analysis may be inaccurate.
[x] Analyze all flags starting with sym. and entry0 (aa)
[Invalid address from 0x00003ab9
Invalid address from 0x00004cb7
Invalid address from 0x00004cba
Invalid address from 0x00004ce5
Invalid address from 0x00004ce8
Invalid address from 0x000054a6
Invalid address from 0x00007ab9
[x] Analyze function calls (aac)
[x] Analyze len bytes of instructions for references (aar)
[x] Check for objc references
Warning: aao experimental on 32bit binaries
[x] Check for vtables
[x] Finding xrefs in noncode section with anal.in=io.maps
[x] Analyze value pointers (aav)
[x] Value from 0x00000000 to 0x00010000 (aav)
[x] 0x00000000-0x00010000 in 0x0-0x10000 (aav)
[x] 0x00000000-0x00010000 in 0xe000-0x10000 (aav)
[x] 0x00000000-0x00010000 in 0xa000-0xc000 (aav)
[x] Value from 0x0000e000 to 0x00010000 (aav)
[x] 0x0000e000-0x00010000 in 0x0-0x10000 (aav)
[x] 0x0000e000-0x00010000 in 0xe000-0x10000 (aav)
[x] 0x0000e000-0x00010000 in 0xa000-0xc000 (aav)
[x] Value from 0x0000a000 to 0x0000c000 (aav)
[x] 0x0000a000-0x0000c000 in 0x0-0x10000 (aav)
[x] 0x0000a000-0x0000c000 in 0xe000-0x10000 (aav)
[x] 0x0000a000-0x0000c000 in 0xa000-0xc000 (aav)
[Warning: No SN reg alias for current architecture.
Warning: No SN reg alias for current architecture.
Warning: No SN reg alias for current architecture.
[x] Emulate code to find computed references (aae)
[x] Type matching analysis for all functions (aaft)
[x] Propagate noreturn information
[x] Use -AA or aaaa to perform additional experimental analysis.

[**]                          db/formats/vsf/rambo2-rom     1334 OK        55 BR        5 XX        6 FX
[XX] db/formats/vsf/rhps-rom VSF: Rocky Horror Picture Show- open
R2_NOPLUGINS=1 radare2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -A -Qc q! bins/vsf/c128-rhps-rom.vsf
-- stdout
@@ -0,0 +1,3 @@
+WARNING: r_anal_op: assertion 'anal && op && len > 0' failed (line 91)
+WARNING: r_anal_op: assertion 'anal && op && len > 0' failed (line 91)
+WARNING: r_anal_op: assertion 'anal && op && len > 0' failed (line 91)
-- stderr
WARNING: No calling convention defined for this file, analysis may be inaccurate.
[Cannot find function at 0x0000580a
[x] Analyze all flags starting with sym. and entry0 (aa)
[Invalid address from 0x00000003
Invalid address from 0x00000066
Invalid address from 0x00001101
Invalid address from 0x00001144
Invalid address from 0x00001147
Invalid address from 0x0000114a
Invalid address from 0x0000114d
Invalid address from 0x00001181
Invalid address from 0x00001243
Invalid address from 0x00001246
Invalid address from 0x00001249
Invalid address from 0x0000124c
Invalid address from 0x00001144
Invalid address from 0x00001147
Invalid address from 0x0000114a
Invalid address from 0x0000114d
Invalid address from 0x00001181
Invalid address from 0x0000d3ed
Invalid address from 0x0000d519
Invalid address from 0x0000d52e
Invalid address from 0x0000dd3b
Invalid address from 0x0000df3b
Invalid address from 0x00000003
Invalid address from 0x00000003
Invalid address from 0x00000066
Invalid address from 0x00001101
Invalid address from 0x00001144
Invalid address from 0x00001147
Invalid address from 0x0000114a
Invalid address from 0x0000114d
Invalid address from 0x00001181
Invalid address from 0x00001243
Invalid address from 0x00001246
Invalid address from 0x00001249
Invalid address from 0x0000124c
Invalid address from 0x0000d3ed
Invalid address from 0x0000d519
Invalid address from 0x0000d52e
Invalid address from 0x0000dd3b
Invalid address from 0x0000df3b
[x] Analyze function calls (aac)
[x] Analyze len bytes of instructions for references (aar)
[x] Check for objc references
Warning: aao experimental on 32bit binaries
[x] Check for vtables
[x] Finding xrefs in noncode section with anal.in=io.maps
[x] Analyze value pointers (aav)
[x] Value from 0x00000000 to 0x00010000 (aav)
[x] 0x00000000-0x00010000 in 0x0-0x10000 (aav)
[x] 0x00000000-0x00010000 in 0x0-0x10000 (aav)
[x] 0x00000000-0x00010000 in 0xe000-0x10000 (aav)
[x] 0x00000000-0x00010000 in 0xc000-0xd000 (aav)
[x] 0x00000000-0x00010000 in 0xb000-0xc000 (aav)
[x] 0x00000000-0x00010000 in 0x4000-0xb000 (aav)
[x] Value from 0x00000000 to 0x00010000 (aav)
[x] 0x00000000-0x00010000 in 0x0-0x10000 (aav)
[x] 0x00000000-0x00010000 in 0x0-0x10000 (aav)
[x] 0x00000000-0x00010000 in 0xe000-0x10000 (aav)
[x] 0x00000000-0x00010000 in 0xc000-0xd000 (aav)
[x] 0x00000000-0x00010000 in 0xb000-0xc000 (aav)
[x] 0x00000000-0x00010000 in 0x4000-0xb000 (aav)
[x] Value from 0x0000e000 to 0x00010000 (aav)
[x] 0x0000e000-0x00010000 in 0x0-0x10000 (aav)
[x] 0x0000e000-0x00010000 in 0x0-0x10000 (aav)
[x] 0x0000e000-0x00010000 in 0xe000-0x10000 (aav)
[x] 0x0000e000-0x00010000 in 0xc000-0xd000 (aav)
[x] 0x0000e000-0x00010000 in 0xb000-0xc000 (aav)
[x] 0x0000e000-0x00010000 in 0x4000-0xb000 (aav)
[x] Value from 0x0000c000 to 0x0000d000 (aav)
[x] 0x0000c000-0x0000d000 in 0x0-0x10000 (aav)
[x] 0x0000c000-0x0000d000 in 0x0-0x10000 (aav)
[x] 0x0000c000-0x0000d000 in 0xe000-0x10000 (aav)
[x] 0x0000c000-0x0000d000 in 0xc000-0xd000 (aav)
[x] 0x0000c000-0x0000d000 in 0xb000-0xc000 (aav)
[x] 0x0000c000-0x0000d000 in 0x4000-0xb000 (aav)
[x] Value from 0x0000b000 to 0x0000c000 (aav)
[x] 0x0000b000-0x0000c000 in 0x0-0x10000 (aav)
[x] 0x0000b000-0x0000c000 in 0x0-0x10000 (aav)
[x] 0x0000b000-0x0000c000 in 0xe000-0x10000 (aav)
[x] 0x0000b000-0x0000c000 in 0xc000-0xd000 (aav)
[x] 0x0000b000-0x0000c000 in 0xb000-0xc000 (aav)
[x] 0x0000b000-0x0000c000 in 0x4000-0xb000 (aav)
[x] Value from 0x00004000 to 0x0000b000 (aav)
[x] 0x00004000-0x0000b000 in 0x0-0x10000 (aav)
[x] 0x00004000-0x0000b000 in 0x0-0x10000 (aav)
[x] 0x00004000-0x0000b000 in 0xe000-0x10000 (aav)
[x] 0x00004000-0x0000b000 in 0xc000-0xd000 (aav)
[x] 0x00004000-0x0000b000 in 0xb000-0xc000 (aav)
[x] 0x00004000-0x0000b000 in 0x4000-0xb000 (aav)
[Warning: No SN reg alias for current architecture.
Warning: No SN reg alias for current architecture.
Warning: No SN reg alias for current architecture.
Warning: No SN reg alias for current architecture.
Warning: No SN reg alias for current architecture.
Warning: No SN reg alias for current architecture.
[x] Emulate code to find computed references (aae)
[x] Type matching analysis for all functions (aaft)
[x] Propagate noreturn information
[x] Use -AA or aaaa to perform additional experimental analysis.

[XX] db/anal/arm arm aae with bit switch
R2_NOPLUGINS=1 radare2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc 'aei
e asm.bits=32
aae 20 @ main
pd 9 @ main
' bins/arm/elf/hello_world
-- stdout
@@ -8,3 +8,4 @@
             0x0000051a      0023           movs r3, 0
             0x0000051c      1846           mov r0, r3
             0x0000051e      80bd           pop {r7, pc}
+WARNING: r_anal_op: assertion 'anal && op && len > 0' failed (line 91)

[XX] TIMEOUT db/formats/pe/65535sects PE: corkami 65535sects.exe - section list, entrypoint, open and analyze
R2_NOPLUGINS=1 radare2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc 'aa
om~?
s
pi 1
q!
' bins/pe/65535sects.exe
-- stdout
@@ -1,3 +0,0 @@
-65536
-0x291120
-mov edi, 0x7027aff9
-- stderr
[x] Analyze all flags starting with sym. and entry0 (aa)
-- exit status: -1

[XX] db/cmd/cmd_pipe r2pipe.py
R2_NOPLUGINS=1 radare2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '#!pipe python3 scripts/get-funcs.py' 'bins/elf/_Exit (42)'
-- stdout
@@ -1,17 +0,0 @@
-
-Function names:
-entry0
-sym.imp._Exit
-
-Disassembly of entry0:
-            ;-- section..text:
-            ;-- .text:
-            ;-- _start():
-/ 16: entry0 ();
-|           0x08049020      55             push ebp                    ; [10] -r-x section size 16 named .text
-|           0x08049021      89e5           mov ebp, esp
-|           0x08049023      83ec08         sub esp, 8
-|           0x08049026      83ec0c         sub esp, 0xc
-|           0x08049029      6a2a           push 0x2a                   ; '*' ; 42
-\           0x0804902b      e8e0ffffff     call sym.imp._Exit          ; void _Exit(int status)
-
-- stderr
==24402==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
Cannot open ttyname(0) (null)
ret2libc commented 3 years ago

Not relevant anymore... We don't even run ASAN on travis now.