try to use gdb but opensuse crashes and cannot get debug info


I ported an openGL application from windows to Linux, it runs with no problem for a while but then whole system crashes and I have to reboot the system, I tried valgrind to find the problem but since it runs the application so slow it doesn't crash, when I use gdb it doesn't log any useful debug info and I cannot use "backtrace" since all the system crashes, do you have any idea what I can do about this problem?