[CRASH, ENH] fix crash cublas and extra debug info for shared var.