Advertisement
programjm

BAP error

Nov 3rd, 2020
2,965
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 2.06 KB | None | 0 0
  1. /home/Jon/.opam/4.09.0/bin/bap --run --primus-lisp-add=... --primus-lisp-load=...,posix,symbolic-stdio --primus-print-obs=call,call-return,exception,segfault,assert-failure,pc-changed,lisp-message,lis
  2. p-type-error,system-stop .../bsdtar --run-entry-points=archive_read_format_lha_bid --api-path=... --run-system=bap:symbolic-executor --log-dir=... --primus-print-output=...
  3.  
  4. Type error: expected i32 got i8. Details follow, the expression:
  5. File "/home/Jon/.opam/4.09.0/share/primus/site-lisp/string.lisp", line 148, characters 25-41:
  6. |   (let ((res 0) (i 0))
  7. |     (while (and (< i n) (not res))
  8. |       (set res (compare
  9. >                 (tolower (memory-read p1))
  10. >                          ^^^^^^^^^^^^^^^^
  11. |                 (tolower (memory-read p2))))
  12. |       (incr p1 p2 i))
  13. |     res))
  14.  
  15. has type i32, but it is expected to have type i8 after its unification
  16. with the expression:
  17. File "/home/Jon/.opam/4.09.0/share/primus/site-lisp/string.lisp", line 148, characters 25-41:
  18. |   (let ((res 0) (i 0))
  19. |     (while (and (< i n) (not res))
  20. |       (set res (compare
  21. >                 (tolower (memory-read p1))
  22. >                          ^^^^^^^^^^^^^^^^
  23. |                 (tolower (memory-read p2))))
  24. |       (incr p1 p2 i))
  25. |     res))
  26.  
  27.  
  28.  
  29. Type error: expected i32 got i8. Details follow, the expression:
  30. File "/home/Jon/.opam/4.09.0/share/primus/site-lisp/string.lisp", line 149, characters 25-41:
  31. |     (while (and (< i n) (not res))
  32. |       (set res (compare
  33. |                 (tolower (memory-read p1))
  34. >                 (tolower (memory-read p2))))
  35. >                          ^^^^^^^^^^^^^^^^
  36. |       (incr p1 p2 i))
  37. |     res))
  38. |
  39.  
  40. has type i32, but it is expected to have type i8 after its unification
  41. with the expression:
  42. File "/home/Jon/.opam/4.09.0/share/primus/site-lisp/string.lisp", line 149, characters 25-41:
  43. |     (while (and (< i n) (not res))
  44. |       (set res (compare
  45. |                 (tolower (memory-read p1))
  46. >                 (tolower (memory-read p2))))
  47. >                          ^^^^^^^^^^^^^^^^
  48. |       (incr p1 p2 i))
  49. |     res))
  50. |
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement