Advertisement
Ilya_konstantinov

error

Oct 10th, 2024
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ❯ g++ -fsanitize=undefined main.cpp -o main
  2. ❯ ./main
  3. alignof T: 8
  4. alignof T: 8
  5. tmp.h:108:30: runtime error: member call on address 0x55fed14e8ed0 which does not point to an object of type 'ControlBlockBase'
  6. 0x55fed14e8ed0: note: object is of type 'SharedPtr<Data>::ControlBlockPtr'
  7.  00 00 00 00  70 bc f6 d0 fe 55 00 00  01 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  b0 8e 4e d1
  8.               ^~~~~~~~~~~~~~~~~~~~~~~
  9.               vptr for 'SharedPtr<Data>::ControlBlockPtr'
  10. tmp.h:28:15: runtime error: member access within address 0x55fed14e8ed0 which does not point to an object of type 'ControlBlockBase'
  11. 0x55fed14e8ed0: note: object is of type 'SharedPtr<Data>::ControlBlockPtr'
  12.  00 00 00 00  70 bc f6 d0 fe 55 00 00  01 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  b0 8e 4e d1
  13.               ^~~~~~~~~~~~~~~~~~~~~~~
  14.               vptr for 'SharedPtr<Data>::ControlBlockPtr'
  15. tmp.h:119:34: runtime error: member call on address 0x55fed14e8ed0 which does not point to an object of type 'ControlBlockBase'
  16. 0x55fed14e8ed0: note: object is of type 'SharedPtr<Data>::ControlBlockPtr'
  17.  00 00 00 00  70 bc f6 d0 fe 55 00 00  02 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  b0 8e 4e d1
  18.               ^~~~~~~~~~~~~~~~~~~~~~~
  19.               vptr for 'SharedPtr<Data>::ControlBlockPtr'
  20. tmp.h:128:34: runtime error: member call on address 0x55fed14e8ed0 which does not point to an object of type 'ControlBlockBase'
  21. 0x55fed14e8ed0: note: object is of type 'SharedPtr<Data>::ControlBlockPtr'
  22.  00 00 00 00  70 bc f6 d0 fe 55 00 00  03 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  b0 8e 4e d1
  23.               ^~~~~~~~~~~~~~~~~~~~~~~
  24.               vptr for 'SharedPtr<Data>::ControlBlockPtr'
  25.  
  26. that's all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement