testing if error with lock or linker