DLTcollab / dcurl

Hardware-accelerated Multi-threaded IOTA PoW, drop-in replacement for ccurl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Runtime error of dcurl running with the undefined behaviour Sanitizer

marktwtn opened this issue · comments

I found out there was a runtime error while I was reading the dcurl log of undefined behaviour Sanitizer in the buildkite CI.

Error message:

/usr/lib/gcc/x86_64-linux-gnu/7/include/emmintrin.h:703:10:
runtime error: load of address 0x560fe0847da4 with insufficient space for an object of type 'char'
0x560fe0847da4: note: pointer points here
  50 57 59 00 39 39 41 44  57 5a 00 4e 56 00 73 72  63 2f 74 72 69 6e 61 72  79 2e 63 00 73 72 63 2f
              ^ 

It is probably caused by the intrinsic function of trinary_sse42.h.

The default setting of undefined behaviour Sanitizer does not return error value,
hence the error is not detected at the first time.

It can be fixed with the compiler option -fno-sanitize-recover.