radareorg / radare2

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

SystemZ (S390) assert warnings and endianess bugs #16168

Open XVilka opened 4 years ago

XVilka commented 4 years ago

See full log here: https://travis-ci.com/github/radareorg/radare2/jobs/351993035

[XX] db/tools/r2 seek undo/redo  34

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298ZWgnqRVKol1d -

wx 01; s 1; s-; s+; pb 8

-00000000

+00000000

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="00000000

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/r2 r2 -  51

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298BkqSsdRdyS8p -

e file.lastpath

+

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/r2 seek undo/redo  27

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298AwNMVdgwptYW -

wx 01

s 1

s-

s+

pb 8

-00000000

+00000000

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="00000000

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/r2 r2 -  31

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298fwuU1UediLxS -

e file.path

+

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/r2 no-nl-at-eof script  70

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192988aYKLvHncXrm -

!radare2 -i scripts/no-nl-at-eof.r2 -NQ -

--> stdout

-1

+1

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

--> stderr

+r_config_get: variable 'asm.arch' not found

+anal.arch: cannot find 'unknown'

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+r_config_get: variable 'asm.arch' not found

+anal.arch: cannot find 'unknown'

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

EXPECT="1

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

EXPECT_ERR="r_config_get: variable 'asm.arch' not found

anal.arch: cannot find 'unknown'

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

r_config_get: variable 'asm.arch' not found

anal.arch: cannot find 'unknown'

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet"

[XX] db/tools/r2 radare2 -i -Q with missing script  73

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298D4EB3bSyVcW3 -

# Should not hang

!radare2 -i script/missing.r2 -NQ -

--> stdout

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

--> stderr

+r_config_get: variable 'asm.arch' not found

+anal.arch: cannot find 'unknown'

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+r_config_get: variable 'asm.arch' not found

+anal.arch: cannot find 'unknown'

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

 Script 'script/missing.r2' not found.

EXPECT="WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

EXPECT_ERR="r_config_get: variable 'asm.arch' not found

anal.arch: cannot find 'unknown'

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

r_config_get: variable 'asm.arch' not found

anal.arch: cannot find 'unknown'

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

Script 'script/missing.r2' not found."

[**]                    db/tools/r2   OK    1 BR    5 XX    6 FX    0

[XX] db/tools/r2agent r2agent -v  33

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298Ycg6JX3ey2ey -

!r2agent -v | grep -c build

-1

+1

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="1

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[**]               db/tools/r2agent   OK    1 BR    5 XX    7 FX    0

[XX] db/tools/r2r Only EXPECT_ERR<<EOF  24

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298slRlTivjeu0G -

pf?cat_sat_on_keyboard

pf?CAT_SAT_ON_KEYBOARD

--> stderr

+r_config_get: variable 'asm.arch' not found

+anal.arch: cannot find 'unknown'

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

 Struct cat_sat_on_keyboard is not defined

 Struct CAT_SAT_ON_KEYBOARD is not defined

EXPECT_ERR="r_config_get: variable 'asm.arch' not found

anal.arch: cannot find 'unknown'

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

Struct cat_sat_on_keyboard is not defined

Struct CAT_SAT_ON_KEYBOARD is not defined"

[XX] db/tools/r2r EXPECT<<EOF empty and EXPECT_ERR<<EOF non-empty  23

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298bfH7U08cVG8u -

pf?cat_sat_on_keyboard

pf?CAT_SAT_ON_KEYBOARD

--> stdout

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

--> stderr

+r_config_get: variable 'asm.arch' not found

+anal.arch: cannot find 'unknown'

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

 Struct cat_sat_on_keyboard is not defined

 Struct CAT_SAT_ON_KEYBOARD is not defined

EXPECT="WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

EXPECT_ERR="r_config_get: variable 'asm.arch' not found

anal.arch: cannot find 'unknown'

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

Struct cat_sat_on_keyboard is not defined

Struct CAT_SAT_ON_KEYBOARD is not defined"

[**]                   db/tools/r2r   OK    1 BR    6 XX    9 FX    0

[XX] db/tools/rabin2 rabin2 -K md5 -S file  79

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192982TMGqD0JVoW4 ../bins/pe/a.exe

!rabin2 -K md5 -S ${R2_FILE}

-[Sections]

-

-nth paddr        size vaddr        vsize perm md5                              name

------------------------------------------------------------------------------------

-0   0x00000400  0xa00 0x00401000  0x1000 -r-x 3d6a5b8dc5e41b09659638ad5735e5b5 .text

-1   0x00000e00  0x200 0x00402000  0x1000 -rw- b3c542ba67f2d1a949fa1a25ce22f7e3 .data

-2   0x00001000  0x200 0x00403000  0x1000 -r-- c9a877a4e945b087b8323830442c88d6 .rdata

-3   0x00000000    0x0 0x00404000  0x1000 -rw- d41d8cd98f00b204e9800998ecf8427e .bss

-4   0x00001200  0x400 0x00405000  0x1000 -rw- 963212dc58a74f32e0f6ffce84dcf7ea .idata

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rabin2 rabin2 -s file pe  83

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298i5SMXIdERikf ../bins/pe/a.exe

!rabin2 -s ${R2_FILE}|wc -l|awk "{print \$1}"

-24

+1

EXPECT='1'

[XX] db/tools/rabin2 rabin -k file  122

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298QEPrph41Llq6 ../bins/elf/analysis/hello-linux-x86_64

!rabin2 -k ${R2_FILE}

--> stderr

+r_config_get: variable 'asm.arch' not found

+anal.arch: cannot find 'unknown'

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+asm.arch: cannot find (unknown)

+r_config_get: variable 'asm.arch' not found

+anal.arch: cannot find 'unknown'

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+asm.arch: cannot find (unknown)

 Missing file.

EXPECT_ERR="r_config_get: variable 'asm.arch' not found

anal.arch: cannot find 'unknown'

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

asm.arch: cannot find (unknown)

r_config_get: variable 'asm.arch' not found

anal.arch: cannot find 'unknown'

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

asm.arch: cannot find (unknown)

Missing file."

[XX] db/tools/rabin2 rabin2 -zzz pe  72

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298F56OqYhiZ29g ../bins/pe/ioli/w32/crackme0x00.exe

!rabin2 -zzz ${R2_FILE} | grep "Password:"

-086 0x00002619 0x00404019  10  11 (.rdata) ascii Password: 

EXPECT=''

[XX] db/tools/rabin2 rabin2 -z pe  110

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298vvEqHHmZ3Er7 ../bins/pe/a.exe

!rabin2 -z ${R2_FILE}|wc -l|awk "{print \$1}"

-7

+1

EXPECT='1'

[XX] db/tools/rabin2 rabin2 -zzq pe  77

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298XmtBQSLntiJo ../bins/pe/ioli/w32/crackme0x00.exe

!rabin2 -zzq ${R2_FILE} | grep "Password:"

-0x404019 11 10 Password: 

EXPECT=''

[XX] db/tools/rabin2 rabin2 -zz pe  120

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-1929842zzo3NdgBMx ../bins/pe/ioli/w32/crackme0x00.exe

!rabin2 -zz ${R2_FILE} | grep "Password:"

-86  0x00002619 0x00404019 10  11   .rdata  ascii   Password: 

EXPECT=''

[XX] db/tools/rabin2 rabin2 -zzzq pe  97

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298e75RXP4IIIDo ../bins/pe/ioli/w32/crackme0x00.exe

!rabin2 -zzzq ${R2_FILE} | grep "Password:"

-0x00404019 Password: 

EXPECT=''

[XX] db/tools/rabin2 rabin2 -zzqq pe  79

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298rHELhV3P2jk5 ../bins/pe/ioli/w32/crackme0x00.exe

!rabin2 -zzqq ${R2_FILE} | grep "Password:"

-Password: 

EXPECT=''

[XX] db/tools/rabin2 rabin2 -zzzqq pe  114

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192980PduzGnV87jU ../bins/pe/ioli/w32/crackme0x00.exe

!rabin2 -zzzqq ${R2_FILE} | grep "Password:"

-Password: 

EXPECT=''

[XX] db/tools/rabin2 rabin2 -G 0x1000 -e fatmach0  94

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298p4Mzz60oDe5s ../bins/mach0/fatmach0-3true

!rabin2 -G 0x1000 -e ${R2_FILE}

 [Entrypoints]

 vaddr=0x100000ef8 paddr=0x00001ef8 haddr=0x00000570 type=program

-1 entrypoints

+1 entrypoints

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="[Entrypoints]

vaddr=0x100000ef8 paddr=0x00001ef8 haddr=0x00000570 type=program

1 entrypoints

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rabin2 rabin2 -G 0x1300 -rs fatmach0  117

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298EpIdqlhPgPnw ../bins/mach0/fatmach0-3true

!rabin2 -G 0x1300 -rs ${R2_FILE}|wc -l|awk "{print \$1}"

-1

+2

EXPECT='2'

[XX] db/tools/rabin2 rabin2 -G 0x5000 -e fatmach0  95

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192989qtohS3nYSSn ../bins/mach0/fatmach0-3true

!rabin2 -G 0x5000 -e ${R2_FILE}

 [Entrypoints]

 vaddr=0x00001f44 paddr=0x00005f44 haddr=0x00000420 type=program

-1 entrypoints

+1 entrypoints

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="[Entrypoints]

vaddr=0x00001f44 paddr=0x00005f44 haddr=0x00000420 type=program

1 entrypoints

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rabin2 rabin2 -B 0x2000000 -G 0x1000 -e fatmach0  94

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298gLvOC43cOyKw ../bins/mach0/fatmach0-3true

!rabin2 -B 0x2000000 -G 0x1000 -e ${R2_FILE}

 [Entrypoints]

 vaddr=0x02000ef8 paddr=0x00001ef8 haddr=0x00000570 type=program

-1 entrypoints

+1 entrypoints

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="[Entrypoints]

vaddr=0x02000ef8 paddr=0x00001ef8 haddr=0x00000570 type=program

1 entrypoints

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rabin2 rabin2 -a x86 -b 32 -i fatmach0  102

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298hnZM3P8Qq3g1 ../bins/mach0/fatmach0-3true

!rabin2 -a x86 -b 32 -i ${R2_FILE}

 [Imports]

 nth vaddr      bind type lib name

 ---------------------------------

 0   0x00001f94 NONE FUNC     exit

 1   0x00000000 NONE FUNC     dyld_stub_binder

+

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="[Imports]

nth vaddr      bind type lib name

---------------------------------

0   0x00001f94 NONE FUNC     exit

1   0x00000000 NONE FUNC     dyld_stub_binder

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rabin2 rabin2 -G 0x5000 -i fatmach0  134

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298X5fE46NrB3b5 ../bins/mach0/fatmach0-3true

!rabin2 -G 0x5000 -i ${R2_FILE}

 [Imports]

 nth vaddr      bind type lib name

 ---------------------------------

 0   0x00001f94 NONE FUNC     exit

 1   0x00000000 NONE FUNC     dyld_stub_binder

+

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="[Imports]

nth vaddr      bind type lib name

---------------------------------

0   0x00001f94 NONE FUNC     exit

1   0x00000000 NONE FUNC     dyld_stub_binder

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rabin2 rabin2 -qOp//8 on PE32+  130

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298nlJCdioGoLVy ../bins/pe/normal64.exe

mkdir .tmp

rm .tmp/rabin2testpe2.exe

!rabin2 -qOp//8 -o.tmp/rabin2testpe2.exe ${R2_FILE}

!rabin2 -S .tmp/rabin2testpe2.exe

rm .tmp/rabin2testpe2.exe

-wx 10000000 @ 0x16c

-[Sections]

-

-nth paddr        size vaddr        vsize perm name

---------------------------------------------------

-0   0x00000200  0x200 0x00401000  0x1000 s--- sect_0

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rabin2 rabin2 -qOp/.data/rwx on PE32  179

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298msC6AFriEirt ../bins/pe/test.exe

mkdir .tmp

rm .tmp/rabin2testpe1.exe

!rabin2 -qOp/.data/rwx -o.tmp/rabin2testpe1.exe ${R2_FILE}

!rabin2 -S .tmp/rabin2testpe1.exe

rm .tmp/rabin2testpe1.exe

-wx e0000040 @ 0x244

-[Sections]

-

-nth paddr         size vaddr        vsize perm name

----------------------------------------------------

-0   0x00000400  0x8a00 0x00401000  0x9000 -r-x .text

-1   0x00008e00  0x2400 0x0040a000  0x3000 -r-- .rdata

-2   0x0000b200  0x1000 0x0040d000  0x3000 -rwx .data

-3   0x0000c200   0x200 0x00410000  0x1000 -r-- .rsrc

-4   0x0000c400   0xe00 0x00411000  0x1000 -r-- .reloc

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rabin2 rabin2 -V  93

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298qRb6nLyZXZIe ../bins/pe/version_cust.exe

!rabin2 -V ${R2_FILE}

-=== VS_VERSIONINFO ===

-

-# VS_FIXEDFILEINFO

-

-  Signature: 0xfeef04bd

-  StrucVersion: 0x0

-  FileVersion: 0.0.0.0

-  ProductVersion: 0.0.0.0

-  FileFlagsMask: 0x0

-  FileFlags: 0x0

-  FileOS: 0x0

-  FileType: 0x0

-  FileSubType: 0x0

-

-# StringTable

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rabin2 rabin2 -D Unsupported  217

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298I6ElCQFpMPTz ../bins/elf/libc.so.0

!rabin2 -D XXX LOLILOL

--> stderr

+r_config_get: variable 'asm.arch' not found

+anal.arch: cannot find 'unknown'

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+asm.arch: cannot find (unknown)

+r_config_get: variable 'asm.arch' not found

+anal.arch: cannot find 'unknown'

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+asm.arch: cannot find (unknown)

 Unsupported demangler

EXPECT_ERR="r_config_get: variable 'asm.arch' not found

anal.arch: cannot find 'unknown'

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

asm.arch: cannot find (unknown)

r_config_get: variable 'asm.arch' not found

anal.arch: cannot find 'unknown'

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

asm.arch: cannot find (unknown)

Unsupported demangler"

[XX] db/tools/rabin2 rabin2 -O bad op  92

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298Z0aE4imJmEQT -

!rabin2 -O bad_op -

--> stderr

+r_config_get: variable 'asm.arch' not found

+anal.arch: cannot find 'unknown'

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+r_config_get: variable 'asm.arch' not found

+anal.arch: cannot find 'unknown'

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+asm.arch: cannot find (unknown)

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

 Unknown operation. use -O help

EXPECT_ERR="r_config_get: variable 'asm.arch' not found

anal.arch: cannot find 'unknown'

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

r_config_get: variable 'asm.arch' not found

anal.arch: cannot find 'unknown'

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

asm.arch: cannot find (unknown)

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

Unknown operation. use -O help"

[XX] db/tools/rabin2 rabin2 -v  86

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298fORGWq6ExfgO -

!rabin2 -v | grep -c build

-1

+1

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="1

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rabin2 rabin2 -L  65

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298LVF9sNFOTgOa -

!rabin2 -L | grep -c any

-1

+1

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="1

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rabin2 rabin2 -Lq  85

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192989Tfka4LxTQ8x -

!rabin2 -Lq | grep -c any

-1

+1

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="1

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rabin2 rabin2 -E  66

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298O5obIOmQsB4b ../bins/pe/dll.dll

!rabin2 -E ${R2_FILE}

-[Exports]

-

-nth paddr       vaddr      bind   type size lib     name

---------------------------------------------------------

-0    0x00000224 0x01001024 GLOBAL FUNC 0    dll.dll export

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rabin2 rabin2 -Lj  84

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192985knXpxpkQqz1 -

!rabin2 -Lj | grep -c any

-1

+1

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="1

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rabin2 rabin2 -Lj any  92

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298P9QEhyNGTz1O -

!rabin2 -Lj Dummy | grep -c Dummy

-1

+1

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="1

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rabin2 rabin2 -U  87

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298j6Cx0jfgYlpt ../bins/pe/resource.exe

!rabin2 -U ${R2_FILE} | grep -c Resource

-1

+0

EXPECT='0'

[XX] db/tools/rabin2 rabin2 -R  79

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298ZQ9CnGG5Pioo ../bins/pe/base.exe

!rabin2 -R ${R2_FILE} | grep -c msvcrt.dll___set_app_type

-1

+0

EXPECT='0'

[XX] db/tools/rabin2 rabin2 -l  93

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298gTf8tUV089HM ../bins/pe/ioli/w32/crackme0x00.exe

!rabin2 -l ${R2_FILE} | grep -c kernel32.dll

-1

+0

EXPECT='0'

[XX] db/tools/rabin2 rabin2 -Z  84

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298h2Q1SaKvX8u3 ../bins/pe/base.exe

!rabin2 -Z ${R2_FILE}

-216569

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rabin2 rabin2 -H  66

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298HT5swBUL3y1e ../bins/pe/base.exe

!rabin2 -H ${R2_FILE} | grep -c "Machine : 0x14c"

-1

+0

EXPECT='0'

[XX] db/tools/rabin2 rabin2 -P  662

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298YMU0CWI3baN3 ../bins/pdb/Project1.pdb

!rabin2 -P ${R2_FILE} | grep -c R2_TEST_UNION

-1

+0

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="0

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[**]                db/tools/rabin2   OK   31 BR   10 XX   42 FX    0

[XX] db/tools/radiff2 radiff2 -v~commit?"  51

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298yf7qN3pl7DC6 -

!!radiff2 -v~commit?

-1

+1

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="1

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/radiff2 radiff2 -c  48

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298n8C9ZoQbB004 -

!radiff2 -c ../bins/other/radiff2/radiff2_c_1 ../bins/other/radiff2/radiff2_c_2

-1

+1

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="1

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/radiff2 radiff2 -h~Usage?"  82

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298UIV7TqQZCYeZ -

!!radiff2 -h~Usage?

-1

+1

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="1

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/radiff2 radiff2 unified string comparison  97

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298DSvXqBQbaPui -

!!radiff2 -quz ../bins/elf/elf_one_symbol_shdr ../bins/elf/elf_one_symbol_shdr1

+WARNING: r_config_node_desc: assertion 'node' failed (line 479)

+WARNING: r_config_node_desc: assertion 'node' failed (line 479)

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

 -0x00000000:48656c6c "Hello world!\n"

-+0x00000000:41414141

++0x00000000:41414141

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT=%WARNING: r_config_node_desc: assertion 'node' failed (line 479)

WARNING: r_config_node_desc: assertion 'node' failed (line 479)

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

-0x00000000:48656c6c "Hello world!\n"

+0x00000000:41414141

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)%

[XX] db/tools/radiff2 radiff2 -a -O x86  102

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192989wuSV5i3Js6V -

!radiff2 -a x86 -O ../bins/other/radiff2/radiff2_c_1 ../bins/other/radiff2/radiff2_c_2

-0x00000000 91 => 90 0x00000000

+0x00000000 91 => 90 0x00000000

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="0x00000000 91 => 90 0x00000000

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/radiff2 radiff2 string comparison  123

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-1929894fQVqnsXd7M -

!!radiff2 -z ../bins/elf/elf_one_symbol_shdr ../bins/elf/elf_one_symbol_shdr1

-0x00000000 48656c6c => 41414141 0x00000000

+WARNING: r_config_node_desc: assertion 'node' failed (line 479)

+WARNING: r_config_node_desc: assertion 'node' failed (line 479)

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

+0x00000000 48656c6c => 41414141 0x00000000

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="WARNING: r_config_node_desc: assertion 'node' failed (line 479)

WARNING: r_config_node_desc: assertion 'node' failed (line 479)

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

0x00000000 48656c6c => 41414141 0x00000000

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/radiff2 radiff2 -g  184

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298D9BVsNAMQWwi -

!!radiff2 -g main -m d ../bins/other/radiff2/false ../bins/other/radiff2/true~digrap

-digraph code {

+digraph code {

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="digraph code {

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/radiff2 radiff2 -B (GDIFF support) #1  75

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298ZrLmHwMkx3pX -

!!radiff2 -B ../bins/other/radiff2/radiff2_c_1 ../bins/other/radiff2/radiff2_c_2 | rax2 -S

-d1ffd1ff04019000

+d1ffd1ff04019000

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="d1ffd1ff04019000

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/radiff2 radiff2 -AC (mach0 fat files)  168

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298uID001R9L27p -

!!radiff2 -AC ../bins/other/radiff2/hellocxx-osx-fat-intel_1 ../bins/other/radiff2/hellocxx-osx-fat-intel_2~?(1.000000)

-17

+0

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="0

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/radiff2 radiff2 -AC (elf files)  849

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192981f4vBl98J30f -

!!radiff2 -AC ../bins/other/radiff2/true ../bins/other/radiff2/false~?(1.000000)

-54

+54

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="54

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[**]               db/tools/radiff2   OK   31 BR   11 XX   52 FX    0

[XX] db/tools/rafind2 rafind2 -r -X -s  63

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298CO9hcLVV5IOy -

!rafind2 -r -X -s 250382 ../bins/elf/ioli/crackme0x00

-f hit0_0 0x0000058f ; ../bins/elf/ioli/crackme0x00

+f hit0_0 0x0000058f ; ../bins/elf/ioli/crackme0x00

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="f hit0_0 0x0000058f ; ../bins/elf/ioli/crackme0x00

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 -X -s  66

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298tPbP0W7ZixuB -

!rafind2 -X -s 250382 ../bins/elf/ioli/crackme0x00

 0x58f

 - offset -   0 1  2 3  4 5  6 7  8 9  A B  C D  E F  0123456789ABCDEF

 0x0000058f  3235 3033 3832 0049 6e76 616c 6964 2050  250382.Invalid P

 0x0000059f  6173 7377 6f72 6421 0a00 5061 7373 776f  assword!..Passwo

 0x000005af  7264 204f 4b20 3a29 0a00 0000 0000 0000  rd OK :)........

 0x000005bf  0000 0000 0000 0000 0000 0000 0000 0000  ................

-0x000005cf  0000 0000 0000 0000 0000 0000 0000       ..............

+0x000005cf  0000 0000 0000 0000 0000 0000 0000       ..............

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="0x58f

- offset -   0 1  2 3  4 5  6 7  8 9  A B  C D  E F  0123456789ABCDEF

0x0000058f  3235 3033 3832 0049 6e76 616c 6964 2050  250382.Invalid P

0x0000059f  6173 7377 6f72 6421 0a00 5061 7373 776f  assword!..Passwo

0x000005af  7264 204f 4b20 3a29 0a00 0000 0000 0000  rd OK :)........

0x000005bf  0000 0000 0000 0000 0000 0000 0000 0000  ................

0x000005cf  0000 0000 0000 0000 0000 0000 0000       ..............

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 -r -X -x with bin mask  74

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298CCjUpTcLGXQY -

!rafind2 -r -X -x caf3bab3 -M fff0fff0 ../bins/java/Hello.class

-f hit0_0 0x00000000 ; ../bins/java/Hello.class

+f hit0_0 0x00000000 ; ../bins/java/Hello.class

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="f hit0_0 0x00000000 ; ../bins/java/Hello.class

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 -r -X -x  79

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192982p9mUSndIGZg -

!rafind2 -r -X -x 323530333832 ../bins/elf/ioli/crackme0x00

-f hit0_0 0x0000058f ; ../bins/elf/ioli/crackme0x00

+f hit0_0 0x0000058f ; ../bins/elf/ioli/crackme0x00

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="f hit0_0 0x0000058f ; ../bins/elf/ioli/crackme0x00

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 -f 0x00010000 -t 0x00020000 -X -s  61

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298g4QMEk2H6Ud0 -

!rafind2 -f 0x00010000 -t 0x00020000 -r -X -s 250382 ../bins/elf/ioli/crackme0x00

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 -h  99

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298qwNOpkptOw4e -

!rafind2 -h | grep -c Usage

-1

+1

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="1

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 -f 0x00000000 -t 0x00000590 -r -X -s  83

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298LXYLzum6bMM6 -

!rafind2 -f 0x00000000 -t 0x00001000 -r -X -s 250382 ../bins/elf/ioli/crackme0x00

-f hit0_0 0x0000058f ; ../bins/elf/ioli/crackme0x00

+f hit0_0 0x0000058f ; ../bins/elf/ioli/crackme0x00

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="f hit0_0 0x0000058f ; ../bins/elf/ioli/crackme0x00

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 -r -X -x with nibbles masked  95

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192980UUa716g2gUE -

!rafind2 -r -X -x caf.bab. ../bins/java/Hello.class

-f hit0_0 0x00000000 ; ../bins/java/Hello.class

+f hit0_0 0x00000000 ; ../bins/java/Hello.class

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="f hit0_0 0x00000000 ; ../bins/java/Hello.class

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 can't open  58

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192983foLo0Pgg9Ho -

!rafind2 -n  -f 0x00010000 -t 0x00020000 -r -X -s 250382 incorrect_file | grep incorrect_file

--> stderr

+r_config_get: variable 'asm.arch' not found

+anal.arch: cannot find 'unknown'

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

 Cannot open file 'incorrect_file'

EXPECT_ERR="r_config_get: variable 'asm.arch' not found

anal.arch: cannot find 'unknown'

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

Cannot open file 'incorrect_file'"

[XX] db/tools/rafind2 rafind2 -v  75

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298f2pjofmU5QBg -

!rafind2 -v | grep -c build

-1

+1

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="1

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 -a  90

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192987645dUzjnN1u -

!rafind2 -a -X -s 250382 ../bins/elf/ioli/crackme0x00

-0x58f

+0x58f

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="0x58f

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 -b 0xa  60

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298uy2Sn8b7YRNR -

!rafind2  -a -X -s  250382 -b 0xa ../bins/elf/ioli/crackme0x00

-0x58f

+0x58f

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="0x58f

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 -a -b 0x3  83

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298zCVRZWrDi3pg -

!rafind2 -X -s 250382 -b 0x3 ../bins/elf/ioli/crackme0x00

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 -q  63

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298UC2OAKxlv3YF -

!rafind2 -q -s 250382 ../bins/elf/ioli/crackme0x00

-0x58f

+0x58f

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="0x58f

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 -S utf8 >= U+10000  45

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298pv51UT08jbkD -

!rafind2 -S 𐍈 ../bins/elf/strenc

-0x22ac

+0x22ac

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="0x22ac

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 -S ascii  77

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298iomIOSvYZPGL -

!rafind2 -S wide ../bins/pe/testapp-msvc64.exe

 0x1481a

-0x14842

+0x14842

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="0x1481a

0x14842

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 -z 250382  90

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298cxNudF9iDOHz -

!rafind2 -z -s 250382 ../bins/elf/ioli/crackme0x00

-0x58f

+0x58f

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="0x58f

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 -S U+00ff < utf8 < U+10000  47

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298qNF0tYjKaqjj -

!rafind2 -S واسع ../bins/pe/testapp-msvc64.exe

-0x14864

+0x14864

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="0x14864

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rafind2 rafind2 -Z  42

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192985p0I1MYuiyWm -

!rafind2 -Z -s 250382 ../bins/elf/ioli/crackme0x00

-0x58f 250382

+0x58f 250382

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="0x58f 250382

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[**]               db/tools/rafind2   OK   31 BR   15 XX   71 FX    0

[XX] db/tools/ragg2 ragg2 -a x86 -b 64 -p A200 -d 50:0xccccccb  47

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298J7wZtYP0W41t -

!ragg2 -a x86 -b 64 -p A200 -d 50:0xccccccb

-4141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141cbcccc0c4141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141

+41414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141410ccccccb4141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="41414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141410ccccccb4141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/ragg2 ragg2 -a x86 -b 64 -p A10 -d 50:0xcb  67

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298ukSyxLWFljvL -

!ragg2 -a x86 -b 64 -p A10 -d 50:0xcb

--> stdout

-41414141414141414141

+41414141414141414141

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

--> stderr

+r_config_get: variable 'asm.arch' not found

+anal.arch: cannot find 'unknown'

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

+asm.arch: cannot find (unknown)

+e asm.bits: Cannot set value, no plugins defined yet

+e asm.bits: Cannot set value, no plugins defined yet

 Cannot patch outside

EXPECT="41414141414141414141

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

EXPECT_ERR="r_config_get: variable 'asm.arch' not found

anal.arch: cannot find 'unknown'

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

asm.arch: cannot find (unknown)

e asm.bits: Cannot set value, no plugins defined yet

e asm.bits: Cannot set value, no plugins defined yet

Cannot patch outside"

[XX] db/tools/ragg2 ragg2 -a x86 -b 64 -p A200 -d 50:0xcb  78

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298W0kME9MGBwc4 -

!ragg2 -a x86 -b 64 -p A200 -d 50:0xcb

-4141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141cb0000004141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141

+4141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141000000cb4141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="4141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141000000cb4141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/ragg2 ragg2 -a x86 -b 64 -p A20 -w 10:cb  86

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298cXKFuJ1aV4Vq -

!ragg2 -a x86 -b 64 -p A20 -w 10:cb

-41414141414141414141cb414141414141414141

+41414141414141414141cb414141414141414141

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="41414141414141414141cb414141414141414141

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/ragg2 ragg2 -a x86 -b 64 -p n2t2a2s2  63

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298q9zKfrrw1sn4 -

!ragg2 -a x86 -b 64 -p n2t2a2s2

-00004141cccc9090

+00004141cccc9090

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="00004141cccc9090

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/ragg2 ragg2 -a x86 -b 64 -p A20 -D 10:33  71

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298cikWdi9bIfiy -

!ragg2 -a x86 -b 64 -p A20 -D 10:33

-4141414141414141414121000000000000004141

+4141414141414141414100000000000000214141

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="4141414141414141414100000000000000214141

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/ragg2 ragg2 -k linux -i exec  -a x86 -b32 -p n3N3  62

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298VShsbfxx1NeD -

!ragg2 -k linux -i exec  -a x86 -b32 -p n3N3

-90909031c050682f2f7368682f62696e89e3505389e199b00bcd80909090

+90909031c050682f2f7368682f62696e89e3505389e199b00bcd80909090

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="90909031c050682f2f7368682f62696e89e3505389e199b00bcd80909090

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/ragg2 ragg2 -i exec -z -a x86 -b32  87

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298aa8MzX3WUtwj -

!ragg2 -i exec -z -k linux -a x86 -b32

-"\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\x99\xb0\x0b\xcd\x80"

+"\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\x99\xb0\x0b\xcd\x80"

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT=%"\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\x99\xb0\x0b\xcd\x80"

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)%

[XX] db/tools/ragg2 ragg2 -p n80 -w 79:c3 -x  80

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298FwQLFnJn6UsE -

!ragg2 -p n80 -w 79:c3 -x

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/ragg2 ragg2 -q 45414146  88

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298bgg3VaNEh638 -

!ragg2 -q 45414146

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/ragg2 ragg2 -h  56

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298WemGIKihhli2 -

!ragg2 -h | grep -c Usage

-1

+1

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="1

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/ragg2 ragg2 -v  69

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298FTwLgpuXqPnW -

!ragg2 -v | grep -c build

-1

+1

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="1

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/ragg2 ragg2 -L  75

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192981Yw1XpHLvO65 -

!ragg2 -L | grep -c encoders

-1

+1

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="1

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/ragg2 ragg2 bugg8.r  109

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298pvtkII46Aune -

!ragg2 ../bins/other/ragg2/bugg8.r > /dev/null

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/ragg2 ragg2 -q 0x45414146  212

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298PevWyp4X627m -

!ragg2 -q 0x45414146

 Little endian: -1

-Big endian: 12

+Big endian: 12

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="Little endian: -1

Big endian: 12

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[**]                 db/tools/ragg2   OK   31 BR   17 XX   86 FX    0

[XX] db/tools/rahash2 rahash2 -a sha1  44

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192985I1p3FIdTGKG -

!rahash2 -a sha1 ../bins/elf/analysis/hello-linux-x86_64

-../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 sha1: 687c82d13cb27f0600d8e57edc784282c1732f56

+../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 sha1: 687c82d13cb27f0600d8e57edc784282c1732f56

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 sha1: 687c82d13cb27f0600d8e57edc784282c1732f56

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rahash2 rahash2 -a sha384  38

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298fnhvvN5KhC0L -

!rahash2 -a sha384 ../bins/elf/analysis/hello-linux-x86_64

-../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 sha384: a6fed224b0b5892ab44839b5ae6a12e54fb3393b5f1e1ca174fb5a0032c994f1c492c5b3a090518d8a60875223977ba4

+../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 sha384: a6fed224b0b5892ab44839b5ae6a12e54fb3393b5f1e1ca174fb5a0032c994f1c492c5b3a090518d8a60875223977ba4

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 sha384: a6fed224b0b5892ab44839b5ae6a12e54fb3393b5f1e1ca174fb5a0032c994f1c492c5b3a090518d8a60875223977ba4

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rahash2 rahash2 -a entropy  67

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298v1A6HLM54LRz -

!rahash2 -a entropy ../bins/elf/analysis/hello-linux-x86_64

-../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 entropy: 3.27819072

+../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 entropy: 3.27819072

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 entropy: 3.27819072

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rahash2 rahash2 -a md5  69

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298df0IKU3fMQs7 -

!rahash2 -a md5 ../bins/elf/analysis/hello-linux-x86_64

-../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 md5: c957bd5bd6204470256bc15248ccafd4

+../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 md5: c957bd5bd6204470256bc15248ccafd4

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 md5: c957bd5bd6204470256bc15248ccafd4

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rahash2 rahash2 -a sha256  55

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298AAwgcPNntxzP -

!rahash2 -a sha256 ../bins/elf/analysis/hello-linux-x86_64

-../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 sha256: 7bdbf25324af1946ec0b16dbf928875a588a786f7c279cd115729c5a3a297a55

+../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 sha256: 7bdbf25324af1946ec0b16dbf928875a588a786f7c279cd115729c5a3a297a55

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 sha256: 7bdbf25324af1946ec0b16dbf928875a588a786f7c279cd115729c5a3a297a55

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rahash2 rahash2 -a md5,sha1,sha256 -r  48

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298rgKufSH0Lr1X -

!rahash2 -a md5,sha1,sha256 -r ../bins/elf/analysis/hello-linux-x86_64

 ../bins/elf/analysis/hello-linux-x86_64: e file.md5=c957bd5bd6204470256bc15248ccafd4

 ../bins/elf/analysis/hello-linux-x86_64: e file.sha1=687c82d13cb27f0600d8e57edc784282c1732f56

-../bins/elf/analysis/hello-linux-x86_64: e file.sha256=7bdbf25324af1946ec0b16dbf928875a588a786f7c279cd115729c5a3a297a55

+../bins/elf/analysis/hello-linux-x86_64: e file.sha256=7bdbf25324af1946ec0b16dbf928875a588a786f7c279cd115729c5a3a297a55

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="../bins/elf/analysis/hello-linux-x86_64: e file.md5=c957bd5bd6204470256bc15248ccafd4

../bins/elf/analysis/hello-linux-x86_64: e file.sha1=687c82d13cb27f0600d8e57edc784282c1732f56

../bins/elf/analysis/hello-linux-x86_64: e file.sha256=7bdbf25324af1946ec0b16dbf928875a588a786f7c279cd115729c5a3a297a55

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rahash2 rahash2 -a sha512  58

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192981g5aUznfXmYI -

!rahash2 -a sha512 ../bins/elf/analysis/hello-linux-x86_64

-../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 sha512: 2640b1ff96870fb78a3d8ae6b51595ca86c37e25443b2e8c5441e77d11cdb3830ece8d791561c22788d37d7f22c99cdabf8f798826c0ff441901e6157890fee6

+../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 sha512: 2640b1ff96870fb78a3d8ae6b51595ca86c37e25443b2e8c5441e77d11cdb3830ece8d791561c22788d37d7f22c99cdabf8f798826c0ff441901e6157890fee6

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="../bins/elf/analysis/hello-linux-x86_64: 0x00000000-0x00001a35 sha512: 2640b1ff96870fb78a3d8ae6b51595ca86c37e25443b2e8c5441e77d11cdb3830ece8d791561c22788d37d7f22c99cdabf8f798826c0ff441901e6157890fee6

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rahash2 rahash2 -b10 -a md5,sha1,sha256 -r  55

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192987ppcC3KeV4EM -

!rahash2 -b10 -a md5,sha1,sha256 -r ../bins/elf/analysis/hello-linux-x86_64

 ../bins/elf/analysis/hello-linux-x86_64: e file.md5=c957bd5bd6204470256bc15248ccafd4

 ../bins/elf/analysis/hello-linux-x86_64: e file.sha1=687c82d13cb27f0600d8e57edc784282c1732f56

-../bins/elf/analysis/hello-linux-x86_64: e file.sha256=7bdbf25324af1946ec0b16dbf928875a588a786f7c279cd115729c5a3a297a55

+../bins/elf/analysis/hello-linux-x86_64: e file.sha256=7bdbf25324af1946ec0b16dbf928875a588a786f7c279cd115729c5a3a297a55

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="../bins/elf/analysis/hello-linux-x86_64: e file.md5=c957bd5bd6204470256bc15248ccafd4

../bins/elf/analysis/hello-linux-x86_64: e file.sha1=687c82d13cb27f0600d8e57edc784282c1732f56

../bins/elf/analysis/hello-linux-x86_64: e file.sha256=7bdbf25324af1946ec0b16dbf928875a588a786f7c279cd115729c5a3a297a55

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rahash2 rahash2 -h  64

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298P4qvHWnqbIRJ -

!rahash2~Usage

-Usage: rahash2 [-rBhLkv] [-b S] [-a A] [-c H] [-E A] [-s S] [-f O] [-t O] [file] ...

+Usage: rahash2 [-rBhLkv] [-b S] [-a A] [-c H] [-E A] [-s S] [-f O] [-t O] [file] ...

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="Usage: rahash2 [-rBhLkv] [-b S] [-a A] [-c H] [-E A] [-s S] [-f O] [-t O] [file] ...

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rahash2 rahash2 -a md5 -s "admin"  50

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298djhKZbYAwgIu -

!rahash2 -a md5 -s "admin"

-0x00000000-0x00000004 md5: 21232f297a57a5a743894a0e4a801fc3

+0x00000000-0x00000004 md5: 21232f297a57a5a743894a0e4a801fc3

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="0x00000000-0x00000004 md5: 21232f297a57a5a743894a0e4a801fc3

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rahash2 rahash2 -a md5 -e -s "admin"  58

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192982hghATCq3kiO -

!rahash2 -a md5 -e -s "admin"

-0x00000000-0x00000004 md5: c31f804a0e4a8943a7a5577a292f2321

+0x00000000-0x00000004 md5: c31f804a0e4a8943a7a5577a292f2321

+WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="0x00000000-0x00000004 md5: c31f804a0e4a8943a7a5577a292f2321

WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rahash2 rahash2 -D base64 -s "YWRtaW4="  46

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-192989VTok315hlN6 -

!rahash2 -D base64 -s "YWRtaW4="

-admin

+adminWARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="adminWARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rahash2 rahash2 -E base64 -x "61646d696e"  59

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-19298JaaWVerqKAS1 -

!rahash2 -E base64 -x "61646d696e"

-YWRtaW4=

+YWRtaW4=WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="YWRtaW4=WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"

[XX] db/tools/rahash2 rahash2 -E base64 -s "admin"  60

$ r2 -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Q -i /tmp/tmp-1929888De73PsSiwL -

!rahash2 -E base64 -s "admin"

-YWRtaW4=

+YWRtaW4=WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)

EXPECT="YWRtaW4=WARNING: r_asm_set_big_endian: assertion 'a && a->cur' failed (line 372)"
radare commented 4 years ago

can you update?

radare commented 4 years ago

or just share a link to the last log

XVilka commented 4 years ago

Last build log: https://travis-ci.com/github/radareorg/radare2/jobs/351993035 Seems the amount of bugs increased

XVilka commented 4 years ago

https://travis-ci.com/github/radareorg/radare2/jobs/358672729

p/../arch/8051/8051_disas.c:64:14: warning: ‘r_8051_disas’ defined but not used [-Wunused-function]

 static char *r_8051_disas(ut64 pc, const ut8 *buf, int len, int *olen) {

              ^~~~~~~~~~~~

/home/travis/build/radareorg/radare2/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/hashvector.c:97:25: warning: ‘ins_hash’ defined but not used [-Wunused-variable]

 static HASHCODE_ENTRY_T ins_hash[] = {

                         ^~~~~~~~

p/debug_native.c: In function ‘r_debug_native_bp’:

p/debug_native.c:1450:10: warning: unused variable ‘dbg’ [-Wunused-variable]

  RDebug *dbg = bp->user;

          ^~~

p/debug_native.c: At top level:

p/debug_native.c:1649:2: warning: #warning Unsupported architecture [-Wcpp]

 #warning Unsupported architecture

  ^~~~~~~

p/debug_native.c:1260:13: warning: ‘set_drx_regs’ defined but not used [-Wunused-function]

 static void set_drx_regs (RDebug *dbg, drxt *regs, size_t num_regs) {

             ^~~~~~~~~~~~

p/debug_native.c:1234:13: warning: ‘sync_drx_regs’ defined but not used [-Wunused-function]

 static void sync_drx_regs (RDebug *dbg, drxt *regs, size_t num_regs) {

             ^~~~~~~~~~~~~

p/native/linux/linux_debug.c: In function ‘print_fpu’:

p/native/linux/linux_debug.c:971:2: warning: #warning print_fpu not implemented for this platform [-Wcpp]

 #warning print_fpu not implemented for this platform

  ^~~~~~~

p/native/linux/linux_debug.c: In function ‘linux_reg_read’:

p/native/linux/linux_debug.c:1065:3: warning: #warning getfpregs not implemented for this platform [-Wcpp]

  #warning getfpregs not implemented for this platform

   ^~~~~~~

p/native/linux/linux_debug.c:1080:54: warning: passing argument 4 of ‘r_debug_ptrace’ makes pointer from integer without a cast [-Wint-conversion]

    ret = r_debug_ptrace (dbg, PTRACE_GETREGSET, pid, 1, &io);

                                                      ^

In file included from p/native/linux/linux_debug.c:6:0:

/home/travis/build/radareorg/radare2/libr/include/r_debug.h:618:20: note: expected ‘void *’ but argument is of type ‘int’

 static inline long r_debug_ptrace(RDebug *dbg, r_ptrace_request_t request, pid_t pid, void *addr, r_ptrace_data_t data) {

                    ^~~~~~~~~~~~~~

p/native/linux/linux_debug.c:976:7: warning: variable ‘showfpu’ set but not used [-Wunused-but-set-variable]

  bool showfpu = false;

       ^~~~~~~

At top level:

p/native/linux/linux_debug.c:883:13: warning: ‘print_fpu’ defined but not used [-Wunused-function]

 static void print_fpu(void *f){

             ^~~~~~~~~

cmd.c: In function ‘r_core_cmd_subst’:

cmd.c:2583:8: warning: variable ‘cmt’ set but not used [-Wunused-but-set-variable]

  char *cmt, *colon = NULL, *icmd = NULL;

        ^~~

canal.c: In function ‘is_skippable_addr’:

canal.c:1943:45: warning: passing argument 3 of ‘r_list_find’ from incompatible pointer type [-Wincompatible-pointer-types]

  return !(flags && r_list_find (flags, fcn, find_sym_flag));

                                             ^~~~~~~~~~~~~

In file included from canal.c:4:0:

/home/travis/build/radareorg/radare2/libr/include/r_list.h:115:18: note: expected ‘RListComparator {aka int (*)(const void *, const void *)}’ but argument is of type ‘int (*)(void *, void *)’

 R_API RListIter *r_list_find(const RList *list, const void *p, RListComparator cmp);

                  ^~~~~~~~~~~
XVilka commented 4 years ago

It seems hugely broken now:

[**]                                        db/anal/arm    11076 OK       927 BR     1808 XX       20 FX

Looks like problem might be somewhere in IO layer:

test_dwarf4_cpp_multiple_modules ERR
[XX] Fail at line 176: Wrong attribute data: expected 1, got 72057594037927936.
test_graph_to_agraph ERR
[XX] Fail at line 34: Wrong node out-nodes: expected 2, got 4.
test_r_buf_sparse2 ERR
[XX] Fail at line 251: right 10 bytes: expected ff ff ff 61 61 61 61 ff ff ff, got ff ff ff 61 61 61 61 ff ff 00
Warning: File is not PE
test_parse_dwarf_types_version2 ERR
[XX] Fail at line 24: pe/vista-glass.exe binary could not be opened

and so on for various DWARF and PDB failures, @HoundThe please take a look - here are the logs: https://travis-ci.com/github/radareorg/radare2/jobs/370233920

HoundThe commented 4 years ago

Seems that some tests fail at r_bin_open() and from a first look it seems that some readings have endianess issues. I'll have a deeper look

HoundThe commented 4 years ago

I've just now noticed that DWARF has custom macros to read that looks like they care about endianness, but they assume little endian everywhere

#define READ32(x)                                                    \
    (((x) + sizeof (ut32) < buf_end) ? r_read_ble32 (x, 0) : 0); \
    (x) += sizeof (ut32)
trufae commented 4 years ago

thats bad

XVilka commented 4 years ago

These are gone now, but the amount of broken tests is still roughly the same

The most common reason of failure it seems this one:

+WARNING: No calling convention defined for this file, analysis may be inaccurate.
+WARNING: No calling convention defined for this file, analysis may be inaccurate.
 Cannot find file
 Cannot find file
 Cannot find file

https://travis-ci.com/github/radareorg/radare2/jobs/432758538#L43967

cc @eagleoflqj