Advertisement
programjm

struct-ptr-test, with null check, null input enabled

Jul 8th, 2020
1,660
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 3.48 KB | None | 0 0
  1. (call (entry__struct_ptr_test))
  2. (lisp-message "p before test: 0")
  3. (lisp-message "i1 before test: 0")
  4. (lisp-message "i2 before test: 0")
  5. (pc-changed 0x4004D6:64u) /home/Jon/bt3/struct_ptr_test.c:7 void struct_ptr_test(struct two_ints *ptr) {
  6. (call (struct_ptr_test 0))
  7. (pc-changed 0x4004D7:64u) /home/Jon/bt3/struct_ptr_test.c:7 void struct_ptr_test(struct two_ints *ptr) {
  8. (pc-changed 0x4004DA:64u) /home/Jon/bt3/struct_ptr_test.c:7 void struct_ptr_test(struct two_ints *ptr) {
  9. (pc-changed 0x4004DE:64u) /home/Jon/bt3/struct_ptr_test.c:8   if (ptr == 0)
  10. (pc-changed 0x4004E3:64u) /home/Jon/bt3/struct_ptr_test.c:8   if (ptr == 0)
  11. (pc-changed 0x400507:64u) /home/Jon/bt3/struct_ptr_test.c:9     return;
  12. (pc-changed 0x400508:64u) /home/Jon/bt3/struct_ptr_test.c:12 }
  13. (pc-changed 0x400509:64u) /home/Jon/bt3/struct_ptr_test.c:12 }
  14. (call-return (struct_ptr_test 0))
  15. (lisp-message "p after invoke: 0")
  16. (lisp-message "i1 after invoke: 0")
  17. (lisp-message "i2 after invoke: 0")
  18. (call-return (entry__struct_ptr_test 0))
  19. (exception Halt)
  20. (exception Halt)
  21. (call (entry__struct_ptr_test))
  22. (lisp-message "p before test: 2")
  23. (lisp-message "i1 before test: 2")
  24. (lisp-message "i2 before test: 2")
  25. (call-return (entry__struct_ptr_test 0))
  26. (exception Halt)
  27. (exception Halt)
  28. (call (entry__struct_ptr_test))
  29. (lisp-message "p before test: 0xD002")
  30. (lisp-message "i1 before test: 0xD002")
  31. (lisp-message "i2 before test: 0xD002")
  32. (lisp-message "Writing i1 (0xD002) to 0xD002")
  33. (exception "Page fault at 0xD002")
  34. (lisp-message "Writing i2 (0xD002) to 0xD006")
  35. (pc-changed 0x4004D6:64u) /home/Jon/bt3/struct_ptr_test.c:7 void struct_ptr_test(struct two_ints *ptr) {
  36. (call (struct_ptr_test 0xD002))
  37. (pc-changed 0x4004D7:64u) /home/Jon/bt3/struct_ptr_test.c:7 void struct_ptr_test(struct two_ints *ptr) {
  38. (pc-changed 0x4004DA:64u) /home/Jon/bt3/struct_ptr_test.c:7 void struct_ptr_test(struct two_ints *ptr) {
  39. (pc-changed 0x4004DE:64u) /home/Jon/bt3/struct_ptr_test.c:8   if (ptr == 0)
  40. (pc-changed 0x4004E3:64u) /home/Jon/bt3/struct_ptr_test.c:8   if (ptr == 0)
  41. (pc-changed 0x4004E5:64u) /home/Jon/bt3/struct_ptr_test.c:10   (ptr->a)++;
  42. (pc-changed 0x4004E9:64u) /home/Jon/bt3/struct_ptr_test.c:10   (ptr->a)++;
  43. (pc-changed 0x4004EB:64u) /home/Jon/bt3/struct_ptr_test.c:10   (ptr->a)++;
  44. (pc-changed 0x4004EE:64u) /home/Jon/bt3/struct_ptr_test.c:10   (ptr->a)++;
  45. (pc-changed 0x4004F2:64u) /home/Jon/bt3/struct_ptr_test.c:10   (ptr->a)++;
  46. (pc-changed 0x4004F4:64u) /home/Jon/bt3/struct_ptr_test.c:11   (ptr->b)++;
  47. (pc-changed 0x4004F8:64u) /home/Jon/bt3/struct_ptr_test.c:11   (ptr->b)++;
  48. (pc-changed 0x4004FB:64u) /home/Jon/bt3/struct_ptr_test.c:11   (ptr->b)++;
  49. (pc-changed 0x4004FE:64u) /home/Jon/bt3/struct_ptr_test.c:11   (ptr->b)++;
  50. (pc-changed 0x400502:64u) /home/Jon/bt3/struct_ptr_test.c:11   (ptr->b)++;
  51. (pc-changed 0x400505:64u) /home/Jon/bt3/struct_ptr_test.c:11   (ptr->b)++;
  52. (pc-changed 0x400508:64u) /home/Jon/bt3/struct_ptr_test.c:12 }
  53. (pc-changed 0x400509:64u) /home/Jon/bt3/struct_ptr_test.c:12 }
  54. (call-return (struct_ptr_test 0xD002))
  55. (lisp-message "p after invoke: 0xD002")
  56. (lisp-message "i1 after invoke: 0xD002")
  57. (lisp-message "i2 after invoke: 0xD002")
  58. (call-return (entry__struct_ptr_test 0))
  59. (exception Halt)
  60. (exception Halt)
  61. (call (entry__struct_ptr_test))
  62. (lisp-message "p before test: 0x8000000000005002")
  63. (lisp-message "i1 before test: 0x8000000000005002")
  64. (lisp-message "i2 before test: 0x8000000000005002")
  65. (call-return (entry__struct_ptr_test 0))
  66. (exception Halt)
  67. (exception Halt)
  68. (exception Halt)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement