Advertisement
mfgnik

Untitled

Feb 19th, 2023
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. cppstring.cpp:57:18: runtime error: load of null pointer of type 'char'
  2. SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior cppstring.cpp:57:18 in
  3. AddressSanitizer:DEADLYSIGNAL
  4. =================================================================
  5. ==16860==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00010d1a9330 bp 0x7ff7b2d60360 sp 0x7ff7b2d601c0 T0)
  6. ==16860==The signal is caused by a READ memory access.
  7. ==16860==Hint: address points to the zero page.
  8. #0 0x10d1a9330 in String::Reserve(unsigned long)+0x550 (a.out:x86_64+0x10000a330)
  9. #1 0x10d1a8c71 in String::String(unsigned long, char)+0xf1 (a.out:x86_64+0x100009c71)
  10. #2 0x10d1a9609 in String::String(unsigned long, char)+0x59 (a.out:x86_64+0x10000a609)
  11. #3 0x10d1a3492 in TestConstructors()+0x1c2 (a.out:x86_64+0x100004492)
  12. #4 0x10d1a3c1f in main+0x2f (a.out:x86_64+0x100004c1f)
  13. #5 0x7ff80564c30f (<unknown module>)
  14.  
  15. ==16860==Register values:
  16. rax = 0x0000000000000000 rbx = 0x00007ff7b2d60200 rcx = 0x0000100000000000 rdx = 0x00007ff7b2d5f4e0
  17. rdi = 0x00007ff7b2d5f4a0 rsi = 0x00007ff7b2d5f4e0 rbp = 0x00007ff7b2d60360 rsp = 0x00007ff7b2d601c0
  18. r8 = 0x000000010d630380 r9 = 0x000000000000003f r10 = 0x0000000000000000 r11 = 0x0000000000000206
  19. r12 = 0x000000010d1d0c80 r13 = 0x00007ff7b2d609d0 r14 = 0x000000010d1d0c60 r15 = 0x000000010d1a3bf0
  20. AddressSanitizer can not provide additional info.
  21. SUMMARY: AddressSanitizer: SEGV (a.out:x86_64+0x10000a330) in String::Reserve(unsigned long)+0x550
  22. ==16860==ABORTING
  23. Abort trap: 6
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement