Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken tests on Alpine linux #982

Closed
XVilka opened this issue Apr 9, 2021 · 3 comments
Closed

Fix broken tests on Alpine linux #982

XVilka opened this issue Apr 9, 2021 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed port Support for various OS and environments stale

Comments

@XVilka
Copy link
Member

XVilka commented Apr 9, 2021

Work environment

Questions Answers
OS/arch/bits (mandatory) Alpine Linux x86_64 (Docker)
File format of the file you reverse (mandatory) -
Architecture/bits of the file (mandatory) -
rizin -v full output, not truncated (mandatory) rizin 0.2.0 be6198f

Expected behavior

All tests pass (except maybe debug tests, see also #336)

Actual behavior

[XX] db/tools/rz_sign rz-sign spaces check
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-sign -s spacename -ar bins/elf/hello_world~spacename:sym.imp.puts n sym.imp.puts' -
-- stdout
@@ -1 +0,0 @@
-za spacename:sym.imp.puts n sym.imp.puts

[XX] db/tools/rz_sign rz-sign vars/args
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-sign -aarj bins/elf/hello_world~^za main v' -
-- stdout
@@ -1 +0,0 @@
-za main v b-32 b-24 b-40 b-36 b-16

[XX] db/tools/rz_sign rz-sign bbhash
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-sign -aarj bins/elf/hello_world~^za main h' -
-- stdout
@@ -1 +0,0 @@
-za main h 44004dffff87483150d4f315ea8426b4d0c471ce4c56176c874513b24d0266b4

[XX] db/tools/rz_sign rz-sign references
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-sign -aarj bins/elf/hello_world~^za main r' -
-- stdout
@@ -1 +0,0 @@
-za main r sym.imp.strlen sym.imp.strlen sym.imp.malloc sym.imp.strcpy sym.imp.strcat sym.imp.puts sym.imp.free

[XX] db/tools/rz_sign rz-sign original offset
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-sign -aarj bins/elf/hello_world~^za main o' -
-- stdout
@@ -1 +0,0 @@
-za main o 0x000007aa

[XX] db/tools/rz_sign rz-sign bytes
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-sign -r bins/elf/libverifyPass.so~za sym.imp.memcpy b' -
-- stdout
@@ -1 +0,0 @@
-za sym.imp.memcpy b 00c68fe202ca8ce2f4fbbce5

[XX] db/tools/rz_sign rz-sign -raa 
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-sign -raa bins/elf/hello_world~main?' -
-- stdout
@@ -1 +1 @@
-7
+0

[XX] db/tools/rz_sign rz-sign graph metrics
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-sign -aarj bins/elf/hello_world~za main g' -
-- stdout
@@ -1 +0,0 @@
-za main g cc=2 nbbs=3 edges=3 ebbs=1 bbsum=157

[XX] db/tools/rz_sign rz-sign -aarj
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-sign -aarj bins/elf/hello_world~main?' -
-- stdout
@@ -1 +1 @@
-8
+0

[XX] db/tools/rz_sign rz-sign help
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-sign -h~Usage' -
-- stdout
@@ -1 +0,0 @@
-Usage: rz-sign [options] [file]

[XX] db/tools/rz_sign rz-sign -rj
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-sign -rj bins/elf/hello_world~main?' -
-- stdout
@@ -1 +1 @@
-8
+0

[XX] db/tools/rz_sign rz-sign -r
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-sign -r bins/elf/hello_world~main?' -
-- stdout
@@ -1 +1 @@
-7
+0

[XX] db/tools/rz_sign rz-sign version
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-sign -v~?' -
-- stdout
@@ -1 +1 @@
-2
+0

[XX] db/tools/rz_ax rz-ax -h~Usage?"
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-ax -h~Usage?' -
-- stdout
@@ -1 +1 @@
-1
+0

[XX] db/tools/rz_ax rz-ax -t "1234567890 GMT-1"
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!rz-ax -t "1234567890 GMT-1" | cut -d " " -f 1,2' -
-- stdout
@@ -1 +1 @@
-Fri Feb
+Sat Aug

[XX] db/tools/rz_bin rz-bin -Pj
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-bin -Pj ${RZ_FILE}~{}' bins/pdb/minimal.pdb
-- stdout
@@ -1,138 +0,0 @@
-{
-  "pdb": {
-    "types": [
-      {
-        "type": "structure",
-        "name": "struct_typedef",
-        "size": 7,
-        "members": [
-          {
-            "member_type": "char",
-            "member_name": "a",
-            "offset": 0
-          },
-          {
-            "member_type": "uint16_t",
-            "member_name": "b",
-            "offset": 1
-          },
-          {
-            "member_type": "int32_t",
-            "member_name": "c",
-            "offset": 3
-          }
-        ]
-      },
-      {
-        "type": "structure",
-        "name": "<unnamed-tag>",
-        "size": 4,
-        "members": [
-          {
-            "member_type": "char[4]",
-            "member_name": "a",
-            "offset": 0
-          },
-          {
-            "member_type": "int32_t",
-            "member_name": "b",
-            "offset": 0
-          }
-        ]
-      },
-      {
-        "type": "structure",
-        "name": "unnamed_member_types_typedef",
-        "size": 8,
-        "members": [
-          {
-            "member_type": "union <unnamed-tag>",
-            "member_name": "a",
-            "offset": 0
-          },
-          {
-            "member_type": "int32_t",
-            "member_name": "b",
-            "offset": 4
-          }
-        ]
-      },
-      {
-        "type": "structure",
-        "name": "bitfield_typedef",
-        "size": 1,
-        "members": [
-          {
-            "member_type": "bitfield uint8_t : 1",
-            "member_name": "a",
-            "offset": 0
-          },
-          {
-            "member_type": "bitfield uint8_t : 2",
-            "member_name": "b",
-            "offset": 0
-          },
-          {
-            "member_type": "bitfield uint8_t : 3",
-            "member_name": "c",
-            "offset": 0
-          }
-        ]
-      },
-      {
-        "type": "structure",
-        "name": "union_typedef",
-        "size": 4,
-        "members": [
-          {
-            "member_type": "char",
-            "member_name": "a",
-            "offset": 0
-          },
-          {
-            "member_type": "uint16_t",
-            "member_name": "b",
-            "offset": 0
-          },
-          {
-            "member_type": "int32_t",
-            "member_name": "c",
-            "offset": 0
-          }
-        ]
-      }
-    ],
-    "gvars": [
-      {
-        "address": 12292,
-        "symtype": 0,
-        "section_name": ".data",
-        "gdata_name": "_uninitialized_global"
-      },
-      {
-        "address": 12288,
-        "symtype": 0,
-        "section_name": ".data",
-        "gdata_name": "_initialized_global"
-      },
-      {
-        "address": 4096,
-        "symtype": 2,
-        "section_name": ".text",
-        "gdata_name": "_function"
-      },
-      {
-        "address": 4182,
-        "symtype": 2,
-        "section_name": ".text",
-        "gdata_name": "_mainCRTStartup"
-      },
-      {
-        "address": 4120,
-        "symtype": 2,
-        "section_name": ".text",
-        "gdata_name": "_main"
-      }
-    ]
-  }
-}

[XX] db/tools/rz_bin rz-bin -ee -j
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-bin -ee -j ${RZ_FILE}~{}' bins/elf/analysis/x86-helloworld-gcc
-- stdout
@@ -1,22 +0,0 @@
-{
-  "initfini": [
-    {
-      "vaddr": 134513616,
-      "paddr": 976,
-      "baddr": 134512640,
-      "laddr": 0,
-      "hvaddr": 134518172,
-      "hpaddr": 1436,
-      "type": "init"
-    },
-    {
-      "vaddr": 134513584,
-      "paddr": 944,
-      "baddr": 134512640,
-      "laddr": 0,
-      "hvaddr": 134518176,
-      "hpaddr": 1440,
-      "type": "fini"
-    }
-  ]
-}

[XX] db/tools/rz_bin rz-bin -qqzzz
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-bin -qqzzz ${RZ_FILE}~do_global_dtors_aux_fini_array_entry
!!rz-bin -qqzzz ${RZ_FILE}~?
' bins/elf/analysis/hello-linux-x86_64
-- stdout
@@ -1,2 +1 @@
-__do_global_dtors_aux_fini_array_entry
-82
+0

[XX] db/tools/rz_bin rz-bin -qqzz
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-bin -qqzz ${RZ_FILE}~do_global_dtors_aux_fini_array_entry
!!rz-bin -qqzz ${RZ_FILE}~?
' bins/elf/analysis/hello-linux-x86_64
-- stdout
@@ -1,2 +1 @@
-__do_global_dtors_aux_fini_array_entry
-82
+0

[XX] db/tools/rz_hash rz-hash -v~commit?"
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-hash -v~commit?' -
-- stdout
@@ -1 +1 @@
-1
+0

[XX] db/tools/rz_asm rz-asm -v~commit?"
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-asm -v~commit?' -
-- stdout
@@ -1 +1 @@
-1
+0

[XX] db/tools/rz_asm rz-asm -h~Usage?"
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-asm -h~Usage?' -
-- stdout
@@ -1 +1 @@
-1
+0

[XX] db/tools/rz_asm rz-asm i4004
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-asm -L~4004
' -
-- stdout
@@ -1 +0,0 @@
-_dAe  4          i4004       LGPL3   Intel 4004 microprocessor

[XX] db/tools/rz_diff rz-diff -B (GDIFF support) #1
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-diff -B bins/other/rz-diff/rz-diff_c_1 bins/other/rz-diff/rz-diff_c_2 | rz-ax -S' -
-- stdout
@@ -1 +0,0 @@
-d1ffd1ff04019000

[XX] db/tools/rz_diff rz-diff string comparison
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-diff -z bins/elf/elf_one_symbol_shdr bins/elf/elf_one_symbol_shdr1' -
-- stdout
@@ -1 +0,0 @@
-0x00000000 48656c6c => 41414141 0x00000000

[XX] db/tools/rz_diff rz-diff -AC (mach0 fat files)
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-diff -AC bins/other/rz-diff/hellocxx-osx-fat-intel_1 bins/other/rz-diff/hellocxx-osx-fat-intel_2~?\(1.000000\)' -
-- stdout
@@ -1 +1 @@
-17
+0

[XX] db/tools/rz_diff rz-diff unified string comparison
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-diff -quz bins/elf/elf_one_symbol_shdr bins/elf/elf_one_symbol_shdr1' -
-- stdout
@@ -1,2 +0,0 @@
--0x00000000:48 65 6c 6c 
-+0x00000000:41 41 41 41 

[XX] db/tools/rz_diff rz-diff -AC (elf files)
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-diff -AC bins/other/rz-diff/true bins/other/rz-diff/false~?\(1.000000\)' -
-- stdout
@@ -1 +1 @@
-54
+0

[XX] db/tools/rz_diff rz-diff -h~Usage?"
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-diff -h~Usage?' -
-- stdout
@@ -1 +1 @@
-1
+0

[XX] db/tools/rz_diff rz-diff -v~commit?"
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-diff -v~commit?' -
-- stdout
@@ -1 +1 @@
-1
+0
+0

[XX] db/tools/rz rizin -h
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rizin -h~Usage?' -
-- stdout
@@ -1 +1 @@
-1
+0

[XX] db/tools/rz rizin -V
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rizin -V~rz_analysis?' -
-- stdout
@@ -1 +1 @@
-1
+0

[XX] db/formats/elf/elf-relro ELF: arm64 relocs crashing
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!!rz-bin -qzz bins/elf/librsjni_androix.so~?' -
-- stdout
@@ -1 +1 @@
-548
+0

[XX] db/formats/elf/main main - arm - buildroot-201402
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '?v main
aaa
afo @ main
!!rz-bin -M ${RZ_FILE}
' bins/arm/elf/hello_world-buildroot-201402
-- stdout
@@ -1,4 +1,2 @@
 0x8370
 0x00008370
-[Main]
-vaddr=0x00008370 paddr=0x00000370


-- stderr
[ ] Analyze all flags starting with sym. and entry0 (aa)
[
[x] Analyze all flags starting with sym. and entry0 (aa)

[ ] Analyze function calls (aac)
[
[x] Analyze function calls (aac)
[ ] Analyze len bytes of instructions for references (aar)
[
[x] Analyze len bytes of instructions for references (aar)
[ ] Check for classes
[
[x] Check for classes
[ ] Finding xrefs in noncode section with analysis.in=io.maps
[
[x] Finding xrefs in noncode section with analysis.in=io.maps
[ ] Analyze value pointers (aav)
[
[x] Analyze value pointers (aav)
[ ] Value from 0x00008000 to 0x0000841c (aav)
[
[x] Value from 0x00008000 to 0x0000841c (aav)
[ ] 0x00008000-0x0000841c in 0x8000-0x841c (aav)
[
[x] 0x00008000-0x0000841c in 0x8000-0x841c (aav)
[ ] Emulate functions to find computed references (aaef)
[
[x] Emulate functions to find computed references (aaef)
[ ] Type matching analysis for all functions (aaft)
[
[x] Type matching analysis for all functions (aaft)
[ ] Propagate noreturn information
[
[x] Propagate noreturn information
[ ] Use -AA or aaaa to perform additional experimental analysis.
[
[x] Use -AA or aaaa to perform additional experimental analysis.

[XX] db/formats/elf/main main - arm - linaro-201902
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '?v main
aaa
afo @ main
!!rz-bin -M ${RZ_FILE}
' bins/arm/elf/hello_world-linaro-201902
-- stdout
@@ -1,4 +1,2 @@
 0x10310
 0x00010310
-[Main]
-vaddr=0x00010310 paddr=0x00000310

-- stderr
[ ] Analyze all flags starting with sym. and entry0 (aa)
[
[x] Analyze all flags starting with sym. and entry0 (aa)

[ ] Analyze function calls (aac)
[
[x] Analyze function calls (aac)
[ ] Analyze len bytes of instructions for references (aar)
[
[x] Analyze len bytes of instructions for references (aar)
[ ] Check for classes
[
[x] Check for classes
[ ] Finding xrefs in noncode section with analysis.in=io.maps
[
[x] Finding xrefs in noncode section with analysis.in=io.maps
[ ] Analyze value pointers (aav)
[
[x] Analyze value pointers (aav)
[ ] Value from 0x00010000 to 0x00010448 (aav)
[
[x] Value from 0x00010000 to 0x00010448 (aav)
[ ] 0x00010000-0x00010448 in 0x10000-0x10448 (aav)
[
[x] 0x00010000-0x00010448 in 0x10000-0x10448 (aav)
[ ] Emulate functions to find computed references (aaef)
[
[x] Emulate functions to find computed references (aaef)
[ ] Type matching analysis for all functions (aaft)
[
[x] Type matching analysis for all functions (aaft)
[ ] Propagate noreturn information
[
[x] Propagate noreturn information
[ ] Use -AA or aaaa to perform additional experimental analysis.
[
[x] Use -AA or aaaa to perform additional experimental analysis.

[XX] db/formats/elf/main main - arm - linaro-201201
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '?v main
aaa
afo @ main
!!rz-bin -M ${RZ_FILE}
' bins/arm/elf/hello_world-linaro-201201
-- stdout
@@ -1,4 +1,2 @@
 0x82ec
 0x000082ec
-[Main]
-vaddr=0x000082ec paddr=0x000002ec


-- stderr
[ ] Analyze all flags starting with sym. and entry0 (aa)
[
[x] Analyze all flags starting with sym. and entry0 (aa)

[ ] Analyze function calls (aac)
[
[x] Analyze function calls (aac)
[ ] Analyze len bytes of instructions for references (aar)
[
[x] Analyze len bytes of instructions for references (aar)
[ ] Check for classes
[
[x] Check for classes
[ ] Finding xrefs in noncode section with analysis.in=io.maps
[
[x] Finding xrefs in noncode section with analysis.in=io.maps
[ ] Analyze value pointers (aav)
[
[x] Analyze value pointers (aav)
[ ] Value from 0x00008000 to 0x000083e4 (aav)
[
[x] Value from 0x00008000 to 0x000083e4 (aav)
[ ] 0x00008000-0x000083e4 in 0x8000-0x83e4 (aav)
[
[x] 0x00008000-0x000083e4 in 0x8000-0x83e4 (aav)
[ ] Emulate functions to find computed references (aaef)
[
[x] Emulate functions to find computed references (aaef)
[ ] Type matching analysis for all functions (aaft)
[
[x] Type matching analysis for all functions (aaft)
[ ] Propagate noreturn information
[
[x] Propagate noreturn information
[ ] Use -AA or aaaa to perform additional experimental analysis.
[
[x] Use -AA or aaaa to perform additional experimental analysis.

[XX] db/formats/elf/pie ELF: simple.elf - code
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -n -b32 -Qc '.!rz-bin -rps bins/elf/analysis/pie
e asm.arch=x86
e asm.bits=32
pi 5 @ sym.main
' bins/elf/analysis/pie
-- stdout
@@ -1,5 +0,0 @@
-push ebp
-mov ebp, esp
-int3
-pop ebp
-ret

-- stderr
Invalid address (sym.main)
Error while executing command: pi 5 @ sym.main

[XX] db/formats/elf/pie ELF: simple.elf - code
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -n -Qc '.!rz-bin -rps bins/elf/analysis/pie
?v sym.main
e asm.arch=x86
e asm.bits=32
pi 5 @ sym.main
' bins/elf/analysis/pie
-- stdout
@@ -1,6 +1 @@
-0x5c5
-push ebp
-mov ebp, esp
-int3
-pop ebp
-ret
+0x0

-- stderr
Invalid address (sym.main)
Error while executing command: pi 5 @ sym.main

See full log here:
https://github.com/rizinorg/rizin/runs/2298399402#step:8:42

Also note, that same failures happen also on a completely different distribution too - Debian Wheezy, for example: https://github.com/rizinorg/rizin/runs/2298399193#step:14:36
Thus, likely the cause is the same.

@XVilka XVilka added the bug Something isn't working label Apr 9, 2021
@XVilka XVilka added this to the 0.3.0 milestone Apr 9, 2021
@XVilka
Copy link
Member Author

XVilka commented Apr 9, 2021

I particularly like this broken one (on Alpine):

[XX] db/archos/linux-x64/dbg_bps dbg.dcC+ds.swstep3
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -d -Qc 'e scr.color=0
e dbg.swstep=true
e cmd.hitinfo=0
(trace_rax;dr rax;f reg_rax=`dr rax`;f test=`?vi reg_rax-0x0440`;?= test)
db 0x4000ce
dbC 0x4000ce .(trace_rax)
dc
dk 9
' bins/elf/analysis/tiny-crackme-vm-x86_64
-- stdout
@@ -1,6 +1 @@
-0x00000000
-0x00000220
-0x000031c0
-0x000033c2
-0x00000249
-0x00000440
+PlPealseea seen teenrt ear  paa spsawsosrwdo:r d
\ No newline at end of file


-- stderr
Process with PID 22183 started...
ptrace_attach: Operation not permitted
Process with PID 22194 started...
ptrace_attach: Operation not permitted
[w] Cannot open 'dbg://bins/elf/analysis/tiny-crackme-vm-x86_64' for writing.

-- exit status: 1

cc @yossizap

@XVilka XVilka added port Support for various OS and environments help wanted Extra attention is needed labels Apr 9, 2021
@ret2libc ret2libc removed this from the 0.3.0 milestone Apr 23, 2021
@XVilka
Copy link
Member Author

XVilka commented Aug 2, 2021

Apart from debug tests some new got broken recently:


[XX] db/formats/elf/pie ELF: simple.elf - code
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -n -b32 -Qc '.!rz-bin -rps bins/elf/analysis/pie
e asm.arch=x86
e asm.bits=32
pi 5 @ sym.main
' bins/elf/analysis/pie
-- stdout
--- expected
+++ actual
@@ -1,5 +1,0 @@
-push ebp
-mov ebp, esp
-int3
-pop ebp
-ret

-- stderr
Invalid address (sym.main)
Error while executing command: pi 5 @ sym.main



[XX] db/formats/elf/pie ELF: simple.elf - code
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -n -Qc '.!rz-bin -rps bins/elf/analysis/pie
?v sym.main
e asm.arch=x86
e asm.bits=32
pi 5 @ sym.main
' bins/elf/analysis/pie
-- stdout
--- expected
+++ actual
@@ -1,6 +1,1 @@
-0x5c5
-push ebp
-mov ebp, esp
-int3
-pop ebp
-ret
+0x0

-- stderr
Invalid address (sym.main)
Error while executing command: pi 5 @ sym.main



[XX] db/tools/rz_ax rz-ax -t "1234567890 GMT-1"
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc '!rz-ax -t "1234567890 GMT-1" | cut -d " " -f 1,2' =
-- stdout
--- expected
+++ actual
@@ -1,1 +1,1 @@
-Fri Feb
+Wed Feb



[XX] db/cmd/cmd_pt pth print mac hfs time
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc ' b 0x100 ; pth' bins/elf/ls
-- stdout
--- expected
+++ actual
@@ -1,64 +1,64 @@
-Mon Nov 15 17:14:27 2032
-Tue Nov 21 13:35:45 1972
-Mon Nov 20 09:16:01 1972
-Sat May 22 12:30:26 2021
-Fri Jul 31 16:36:00 2076
-Tue Aug  5 13:18:05 2042
-Sun Jan  5 19:52:33 1975
-Wed Jul 23 05:35:09 2036
-Sat Sep 22 04:33:04 2068
-Tue Jan  1 22:06:32 2036
-Tue Aug  5 15:00:15 2003
-Sat Dec 18 20:03:13 1976
-Sun Mar 12 07:52:40 2079
-Fri Apr 13 00:26:47 2074
-Mon Nov  7 20:16:13 2005
-Tue Jun 15 21:58:25 2066
-Sun Apr 29 06:55:52 2074
-Sun Oct 27 09:46:51 2002
-Mon Oct  5 09:10:25 1970
-Thu Jun 28 23:48:16 2035
-Wed Feb 13 16:42:08 2104
-Wed Jan  2 00:00:00 2036
-Wed Feb 13 16:41:39 2104
-Wed Jan  2 00:00:00 2036
-Wed Sep  3 15:39:52 2053
-Fri Apr 13 00:26:47 2074
-Sun Oct  2 13:52:13 2005
-Thu Dec 13 00:34:09 2057
-Sat May  5 05:58:22 2035
-Wed Oct 13 05:43:31 2027
-Mon Dec 23 22:27:20 2069
-Mon Sep 10 04:53:28 2074
-Sat Nov 17 08:35:29 2046
-Mon Jun 11 05:31:52 2068
-Fri Apr 13 00:26:44 2074
-Sun Jul  1 00:06:29 2040
-Thu Mar 10 17:55:11 2044
-Wed Jan  2 04:50:39 2036
-Wed Feb 13 16:41:39 2104
-Wed Jan  2 00:00:00 2036
-Mon Nov 15 17:14:27 2032
-Sat Oct 29 03:35:28 2005
-Sun Mar 16 03:31:13 2098
-Mon Oct 19 13:01:39 2105
-Tue Dec  9 23:58:53 2036
-Mon Nov 20 02:31:28 1972
-Mon Apr 23 05:17:25 2074
-Sun Apr 25 16:57:47 2004
-Thu Sep 12 05:13:37 2047
-Thu Jan  3 08:09:04 2036
-Tue Jan  1 12:54:00 2036
-Fri Aug 24 23:55:43 2046
-Mon Jul 14 04:27:51 2036
-Thu Sep  2 06:17:01 2060
-Fri Apr 11 05:11:43 2036
-Wed Jan  2 00:00:00 2036
-Wed Sep  1 23:41:55 2060
-Fri Apr 11 05:11:43 2036
-Wed Jan  2 00:00:00 2036
-Tue Feb 19 15:17:35 2036
-Mon Nov 15 17:14:27 2032
-Tue Jan  1 13:11:05 2036
-Wed Feb 13 16:42:39 2104
-Wed Jan  2 00:00:00 2036
+Sat Oct  8 06:07:47 1966
+Sun Oct 14 02:29:05 1906
+Fri Oct 12 22:09:21 1906
+Thu Apr 14 01:23:46 1955
+Wed Jun 23 05:29:20 2010
+Sun Jun 27 02:11:25 1976
+Fri Nov 27 08:45:53 1908
+Sun Jun 14 18:28:29 1970
+Wed Aug 14 17:26:24 2002
+Sun Nov 23 10:59:52 1969
+Sun Jun 27 03:53:35 1937
+Thu Nov 10 08:56:33 1910
+Thu Jan 31 20:46:00 2013
+Tue Mar  4 13:20:07 2008
+Sat Sep 30 09:09:33 1939
+Sun May  7 10:51:45 2000
+Thu Mar 20 19:49:12 2008
+Thu Sep 17 22:40:11 1936
+Fri Aug 26 22:03:45 1904
+Tue May 20 12:41:36 1969
+Mon Jan  4 05:35:28 2038
+Sun Nov 23 12:53:20 1969
+Mon Jan  4 05:34:59 2038
+Sun Nov 23 12:53:20 1969
+Mon Jul 27 04:33:12 1987
+Tue Mar  4 13:20:07 2008
+Fri Aug 25 02:45:33 1939
+Mon Nov  4 13:27:29 1991
+Wed Mar 26 18:51:42 1969
+Sun Sep  3 18:36:51 1961
+Sat Nov 15 11:20:40 2003
+Fri Aug  1 17:46:48 2008
+Wed Oct  8 21:28:49 1980
+Fri May  3 18:25:12 2002
+Tue Mar  4 13:20:04 2008
+Thu May 23 12:59:49 1974
+Tue Jan 31 06:48:31 1978
+Sun Nov 23 17:43:59 1969
+Mon Jan  4 05:34:59 2038
+Sun Nov 23 12:53:20 1969
+Sat Oct  8 06:07:47 1966
+Wed Sep 20 16:28:48 1939
+Thu Feb  5 16:24:33 2032
+Sat Sep 10 01:54:59 2039
+Sun Nov  1 12:52:13 1970
+Fri Oct 12 15:24:48 1906
+Fri Mar 14 18:10:45 2008
+Fri Mar 18 05:51:07 1938
+Mon Aug  3 18:06:57 1981
+Mon Nov 24 21:02:24 1969
+Sun Nov 23 01:47:20 1969
+Wed Jul 16 12:49:03 1980
+Fri Jun  5 17:21:11 1970
+Mon Jul 25 19:10:21 1994
+Tue Mar  3 18:05:03 1970
+Sun Nov 23 12:53:20 1969
+Mon Jul 25 12:35:15 1994
+Tue Mar  3 18:05:03 1970
+Sun Nov 23 12:53:20 1969
+Sun Jan 11 04:10:55 1970
+Sat Oct  8 06:07:47 1966
+Sun Nov 23 02:04:25 1969
+Mon Jan  4 05:35:59 2038
+Sun Nov 23 12:53:20 1969



[XX] db/cmd/cmd_pt ptd print ms-dos time
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc ' b 0x100 ; ptd' bins/elf/ls
-- stdout
--- expected
+++ actual
@@ -1,64 +1,64 @@
-Fri Jan 30 02:03:38 2105
-Sat Oct 10 05:41:34 2048
-Thu Oct  8 11:54:34 2048
-Sat Apr  3 09:07:04 2094
-Tue Feb 20 10:07:32 2018
-Thu Mar  6 00:44:26 1986
-Sat Oct  8 00:00:02 2050
-Tue Aug 12 05:56:26 1980
-Mon Dec 13 09:00:00 2010
+Fri Jan 30 02:08:38 2105
+Sat Oct 10 05:47:34 2048
+Thu Oct  8 11:58:34 2048
+Sat Apr  3 09:13:04 2094
+Tue Feb 20 10:09:32 2018
+Thu Mar  6 00:48:26 1986
+Sat Oct  8 00:06:02 2050
+Tue Aug 12 05:58:26 1980
+Mon Dec 13 09:01:00 2010
 Wed Feb 23 22:15:00 1972
-Tue Aug 10 02:48:02 2077
-Sat Jul 20 00:00:02 2052
-Tue Sep 29 17:42:16 2020
-Fri Jan  1 00:14:14 2016
-Tue Oct 10 00:44:26 2079
-Wed Oct  8 00:00:02 2008
-Thu Jan 21 14:39:48 2016
-Tue Dec 22 00:44:22 2076
-Mon Oct  8 00:00:02 2046
-Sat Jul  3 08:09:44 1971
+Tue Aug 10 02:50:02 2077
+Sat Jul 20 00:06:02 2052
+Tue Sep 29 17:44:16 2020
+Fri Jan  1 00:19:14 2016
+Tue Oct 10 00:46:26 2079
+Wed Oct  8 00:03:02 2008
+Thu Jan 21 14:43:48 2016
+Tue Dec 22 00:46:22 2076
+Mon Oct  8 00:01:02 2046
+Sat Jul  3 08:11:44 1971
 Sun Jan 31 02:03:00 2044
-Tue Jan  1 00:00:00 1980
+Tue Jan  1 00:02:00 1980
 Sun Jan 31 02:02:06 2044
-Tue Jan  1 00:00:00 1980
+Tue Jan  1 00:02:00 1980
 Sun Sep 29 17:42:16 1996
-Fri Jan  1 00:14:14 2016
-Sat Aug 26 06:44:26 2079
+Fri Jan  1 00:19:14 2016
+Sat Aug 26 06:50:26 2079
 Sun Oct  8 00:00:02 2000
-Sun Apr 25 02:39:44 1971
-Fri Apr  9 09:00:06 2100
-Fri Mar  9 00:10:16 2012
-Mon Jun  6 00:10:16 2016
-Wed Mar 21 07:54:34 1990
-Thu Aug  5 17:26:16 2010
-Fri Jan  1 00:14:08 2016
-Wed Mar 21 00:04:10 1984
-Sat Nov  7 04:08:02 1987
-Tue Jan  1 08:33:02 1980
+Sun Apr 25 02:42:44 1971
+Fri Apr  9 09:05:06 2100
+Fri Mar  9 00:15:16 2012
+Mon Jun  6 00:11:16 2016
+Wed Mar 21 07:57:34 1990
+Thu Aug  5 17:30:16 2010
+Fri Jan  1 00:19:08 2016
+Wed Mar 21 00:07:10 1984
+Sat Nov  7 04:14:02 1987
+Tue Jan  1 08:35:02 1980
 Sun Jan 31 02:02:06 2044
-Tue Jan  1 00:00:00 1980
-Fri Jan 30 02:03:38 2105
-Fri Sep 29 07:44:00 2079
+Tue Jan  1 00:02:00 1980
+Fri Jan 30 02:08:38 2105
+Fri Sep 29 07:49:00 2079
 Sun Aug  1 00:00:02 2038
 Sun Oct  8 10:41:38 2045
-Wed Feb  4 06:17:58 1981
-Thu Oct  8 00:00:00 2048
-Wed Jan 13 14:39:10 2016
+Wed Feb  4 06:20:58 1981
+Thu Oct  8 00:04:00 2048
+Wed Jan 13 14:42:10 2016
 Sun Mar  6 07:44:22 2078
 Sun Mar 31 00:00:02 1991
-Wed Jan  2 00:33:00 1980
-Wed Feb 23 06:03:00 1972
-Sat Jan  6 00:56:02 1990
-Fri Aug  1 00:14:14 1980
-Fri Mar  7 00:26:58 2003
-Fri Apr  4 03:56:30 1980
-Tue Jan  1 00:00:00 1980
-Thu Mar  6 12:54:06 2003
-Fri Apr  4 03:56:30 1980
-Tue Jan  1 00:00:00 1980
-Fri Feb  1 03:56:30 1980
-Fri Jan 30 02:03:38 2105
-Wed Feb 23 06:35:02 1972
+Wed Jan  2 00:36:00 1980
+Wed Feb 23 06:09:00 1972
+Sat Jan  6 01:02:02 1990
+Fri Aug  1 00:19:14 1980
+Fri Mar  7 00:31:58 2003
+Fri Apr  4 04:01:30 1980
+Tue Jan  1 00:02:00 1980
+Thu Mar  6 12:58:06 2003
+Fri Apr  4 04:01:30 1980
+Tue Jan  1 00:02:00 1980
+Fri Feb  1 04:01:30 1980
+Fri Jan 30 02:08:38 2105
+Wed Feb 23 06:41:02 1972
 Sun Jan 31 02:04:02 2044
-Tue Jan  1 00:00:00 1980
+Tue Jan  1 00:02:00 1980



[XX] db/cmd/cmd_pt ptn print ntfs time
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc ' b 0x100 ; ptn' bins/elf/ls
-- stdout
--- expected
+++ actual
@@ -1,32 +1,32 @@
-Thu Jul 16 17:29:08 2054
-Thu Feb 24 01:25:59 2061
-Mon Apr  5 19:32:02 1982
-Thu Jan  1 00:00:00 1970
-Mon Oct 26 12:42:44 2076
-Fri Apr 20 22:08:14 2035
-Fri Jul 17 22:48:22 1981
-Fri Mar 10 18:54:44 2023
-Fri Nov  2 02:04:07 1979
-Tue Feb  9 06:07:48 1993
-Thu Jan  1 00:00:00 1970
-Thu Jan  1 00:00:00 1970
-Fri Jul 17 22:47:01 1981
-Sat Jun 25 04:16:55 2044
-Fri Jul 21 03:58:10 2084
-Mon Jan 17 17:32:50 2022
-Tue Aug 31 00:56:25 2060
-Sat Sep 30 14:22:51 2034
-Thu Jan  1 00:00:00 1970
-Thu Jan  1 00:00:00 1970
-Tue Oct 10 07:15:52 2045
-Wed Feb  3 06:14:06 2044
-Sun Oct 27 02:19:22 2052
-Sat Oct 30 18:04:11 2077
-Thu Jan  1 00:00:00 1970
-Thu Dec  1 22:09:25 2089
-Fri Sep 16 18:15:58 1988
-Thu Jan  1 00:00:00 1970
-Thu Jan  1 00:00:00 1970
-Thu Jan  1 00:00:00 1970
-Tue May 19 19:53:59 2076
-Thu Jan  1 00:00:00 1970
+Sat Sep 22 11:36:04 2114
+Fri May  2 19:32:55 2121
+Wed Jun 11 13:38:58 2042
+Fri Mar  8 18:06:56 2030
+Wed Jan  2 06:49:40 2137
+Sun Jun 26 16:15:10 2095
+Sun Sep 22 16:55:18 2041
+Sun May 16 13:01:40 2083
+Sat Jan  7 20:11:03 2040
+Thu Apr 17 00:14:44 2053
+Fri Mar  8 18:06:56 2030
+Fri Mar  8 18:06:56 2030
+Sun Sep 22 16:53:57 2041
+Sun Aug 31 22:23:51 2104
+Sat Sep 26 22:05:06 2144
+Wed Mar 25 11:39:46 2082
+Wed Nov  6 19:03:21 2120
+Mon Dec  6 08:29:47 2094
+Fri Mar  8 18:06:56 2030
+Fri Mar  8 18:06:56 2030
+Thu Dec 17 01:22:48 2105
+Fri Apr 11 00:21:02 2104
+Mon Jan  2 20:26:18 2113
+Mon Jan  6 12:11:07 2138
+Fri Mar  8 18:06:56 2030
+Sat Feb  7 16:16:21 2150
+Sun Nov 22 12:22:54 2048
+Fri Mar  8 18:06:56 2030
+Fri Mar  8 18:06:56 2030
+Fri Mar  8 18:06:56 2030
+Thu Jul 26 14:00:55 2136
+Fri Mar  8 18:06:56 2030



[XX] db/cmd/cmd_pt pt print unix epoch time
RZ_NOPLUGINS=1 rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -N -Qc ' b 0x100 ; pt' bins/elf/ls
-- stdout
--- expected
+++ actual
@@ -1,64 +1,64 @@
-Fri Dec 22 23:42:43 2102
-Sat Dec 27 20:04:01 2042
-Fri Dec 26 15:44:17 2042
-Wed Jun 27 18:58:42 2091
-Sat Jul 31 16:36:00 2010
-Wed Aug  4 13:18:05 1976
-Fri Feb 10 02:20:49 2045
-Thu Jul 23 05:35:09 1970
-Sun Sep 22 04:33:04 2002
-Sun Feb  7 04:34:48 2106
-Sat Sep  9 21:28:31 2073
-Thu Jan 24 02:31:29 2047
-Mon Mar 11 07:52:40 2013
-Sat Apr 12 00:26:47 2008
-Sat Dec 14 02:44:29 2075
-Wed Jun 14 21:58:25 2000
-Mon Apr 28 06:55:52 2008
-Thu Dec  1 16:15:07 2072
-Fri Nov  9 15:38:41 2040
-Tue Aug  4 06:16:32 2105
-Thu Feb 11 16:42:08 2038
-Thu Jan  1 00:00:00 1970
-Thu Feb 11 16:41:39 2038
-Thu Jan  1 00:00:00 1970
-Thu Sep  3 15:39:52 1987
-Sat Apr 12 00:26:47 2008
-Thu Nov  7 20:20:29 2075
-Fri Dec 13 00:34:09 1991
-Wed Jun 10 12:26:38 2105
-Sun Nov 17 12:11:47 2097
-Tue Dec 23 22:27:20 2003
-Tue Sep  9 04:53:28 2008
-Sun Nov 16 08:35:29 1980
-Tue Jun 11 05:31:52 2002
-Sat Apr 12 00:26:44 2008
-Mon Jul  1 00:06:29 1974
-Fri Mar 10 17:55:11 1978
-Thu Jan  1 04:50:39 1970
-Thu Feb 11 16:41:39 2038
-Thu Jan  1 00:00:00 1970
-Fri Dec 22 23:42:43 2102
-Wed Dec  4 10:03:44 2075
-Mon Mar 15 03:31:13 2032
-Tue Oct 18 13:01:39 2039
-Wed Dec  9 23:58:53 1970
-Fri Dec 26 08:59:44 2042
-Tue Apr 22 05:17:25 2008
-Thu May 31 23:26:03 2074
-Fri Sep 11 05:13:37 1981
-Fri Jan  2 08:09:04 1970
-Sat Feb  6 19:22:16 2106
-Sat Aug 23 23:55:43 1980
-Tue Jul 14 04:27:51 1970
-Fri Sep  2 06:17:01 1994
-Sat Apr 11 05:11:43 1970
-Thu Jan  1 00:00:00 1970
-Thu Sep  1 23:41:55 1994
-Sat Apr 11 05:11:43 1970
-Thu Jan  1 00:00:00 1970
-Wed Feb 18 15:17:35 1970
-Fri Dec 22 23:42:43 2102
-Sat Feb  6 19:39:21 2106
-Thu Feb 11 16:42:39 2038
-Thu Jan  1 00:00:00 1970
+Sun Mar  2 02:31:43 2121
+Sat Mar 17 17:39:01 2063
+Fri Mar 16 13:19:17 2063
+Wed Sep 16 16:33:42 2111
+Sat Oct 19 14:11:00 2030
+Wed Oct 23 16:09:05 1996
+Thu Apr 30 23:55:49 2065
+Thu Oct 11 08:26:09 1990
+Sun Dec 11 07:24:04 2022
+Sun Apr 28 02:09:48 2126
+Sat Nov 28 19:03:31 2093
+Thu Apr 14 05:22:29 2067
+Mon May 30 05:27:40 2033
+Sat Jul  1 03:17:47 2028
+Sat Mar  3 05:35:29 2096
+Wed Sep  2 19:33:25 2020
+Mon Jul 17 04:30:52 2028
+Thu Feb 19 13:50:07 2093
+Fri Jan 28 13:13:41 2061
+Tue Oct 23 03:51:32 2125
+Thu May  2 14:17:08 2058
+Thu Mar 22 02:51:00 1990
+Thu May  2 14:16:39 2058
+Wed Mar 21 21:35:00 1990
+Thu Nov 22 13:14:52 2007
+Fri Jun 30 22:01:47 2028
+Thu Jan 26 23:11:29 2096
+Fri Mar  2 03:25:09 2012
+Wed Aug 29 15:17:38 2125
+Sun Feb  6 09:46:47 2118
+Tue Mar 12 20:02:20 2024
+Tue Nov 28 07:44:28 2028
+Sun Feb  4 11:26:29 2001
+Tue Aug 30 03:06:52 2022
+Sat Jul  1 03:17:44 2028
+Sun Sep 18 21:41:29 1994
+Fri May 29 20:46:11 1998
+Thu Mar 22 02:25:39 1990
+Thu May  2 14:16:39 2058
+Thu Mar 22 02:51:00 1990
+Fri Mar 12 21:17:43 2123
+Wed Feb 22 07:38:44 2096
+Mon Jun  3 01:06:13 2052
+Tue Jan  6 10:36:39 2060
+Thu Feb 28 02:49:53 1991
+Fri Mar 16 06:34:44 2063
+Tue Jul 11 02:52:25 2028
+Thu Aug 19 21:01:03 2094
+Fri Nov 30 02:48:37 2001
+Fri Mar 23 05:44:04 1990
+Sat Apr 27 22:13:16 2126
+Sun Nov 12 02:46:43 2000
+Tue Oct  2 02:02:51 1990
+Fri Nov 21 03:52:01 2014
+Sat Jun 30 02:46:43 1990
+Wed Mar 21 21:35:00 1990
+Fri Nov 21 02:32:55 2014
+Sat Jun 30 02:46:43 1990
+Wed Mar 21 21:35:00 1990
+Wed May  9 12:52:35 1990
+Fri Mar 12 21:17:43 2123
+Sat Apr 27 17:14:21 2126
+Thu May  2 19:33:39 2058
+Wed Mar 21 21:35:00 1990

@XVilka XVilka pinned this issue Sep 8, 2021
@XVilka XVilka unpinned this issue Nov 26, 2021
@stale stale bot added the stale label Feb 4, 2022
@rizinorg rizinorg deleted a comment from stale bot Feb 4, 2022
@stale stale bot removed the stale label Feb 4, 2022
@stale
Copy link

stale bot commented Aug 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. Considering a lot has probably changed since its creation, we kindly ask you to check again if the issue you reported is still relevant in the current version of rizin. If it is, update this issue with a comment, otherwise it will be automatically closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 9, 2022
@XVilka XVilka closed this as completed Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed port Support for various OS and environments stale
Projects
Status: Done
Development

No branches or pull requests

2 participants