Open Shadow322 opened 3 years ago
Could you do me a favor and compile VHBB without optimizations? For that, change https://github.com/devnoname120/vhbb/blob/master/CMakeLists.txt#L65 from
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -std=c++17")
to
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -std=c++17 -O0")
I found this helps greatly with stability. I dug really deep into this but could never find out why optimization breaks VHBB. According to core dumps, it seems the compiler produced invalid machine code sometimes. I have the suspicion that optimization is actually broken.
Please let me know whether this helps.
Could you do me a favor and compile VHBB without optimizations? For that, change https://github.com/devnoname120/vhbb/blob/master/CMakeLists.txt#L65 from
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -std=c++17")
to
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -std=c++17 -O0")
I found this helps greatly with stability. I dug really deep into this but could never find out why optimization breaks VHBB. According to core dumps, it seems the compiler produced invalid machine code sometimes. I have the suspicion that optimization is actually broken.
Please let me know whether this helps.
U sure downloading won't crash as I stated above?
I have latest compiled yes the search is fixed now that works but now downloading crashs LOL