Hi,
I am running cuda on ubuntu 10.10 64 bit.
When I debug my program, Whenever it reaches the first cudaMalloc call cuda-gdb crashes (stack trace is attached at the end of this message).
Since the debugger crashes inside host code I also tried to compile it with gcc, and compile only my cuda code with nvcc as a static library. Then I used gdb to debug it and it didn’t crash.
I tried writing a simple test to reproduce it but the simple test case doesn’t crash the debugger.
I am using CUDA toolkit version 3.2,
The compiler for host CPU code is gcc, or nvcc. Both versions crashes when using cuda-gdb.
CPU type - core I7 920
CPU speed - 2.66 GHz
installed system RAM - 4GB
video cards installed in the system - GTX 470
chipset type - intel X58
BACKTRACE (40 frames):
cuda-gdb[0x46379e]
/lib/libc.so.6(+0x33c20)[0x7ff7c6804c20]
cuda-gdb[0x534146]
cuda-gdb[0x53418d]
cuda-gdb[0x53427e]
cuda-gdb[0x538962]
cuda-gdb[0x538f20]
cuda-gdb[0x53914b]
cuda-gdb[0x53954b]
cuda-gdb[0x53a513]
cuda-gdb[0x53a17d]
cuda-gdb(dwarf2_psymtab_to_symtab+0x4b)[0x53a67b]
cuda-gdb(psymtab_to_symtab+0x52)[0x4e3032]
cuda-gdb[0x4e50a8]
cuda-gdb(symbol_file_add_from_bfd+0x15)[0x4e5a05]
cuda-gdb[0x465947]
cuda-gdb[0x465ac3]
cuda-gdb(cuda_process_events+0x87b)[0x467e8b]
cuda-gdb[0x4753f7]
cuda-gdb[0x47f596]
cuda-gdb(wait_for_inferior+0x104)[0x4f55e4]
cuda-gdb(proceed+0x1ad)[0x4f580d]
cuda-gdb[0x4efdb8]
cuda-gdb(execute_command+0x308)[0x454e38]
cuda-gdb[0x500f1e]
cuda-gdb[0x501d52]
cuda-gdb(rl_callback_read_char+0x1c7)[0x5b11f7]
cuda-gdb[0x501229]
cuda-gdb[0x4ffb8d]
cuda-gdb(gdb_do_one_event+0x1f7)[0x500557]
cuda-gdb(catch_errors+0x5b)[0x4fd08b]
cuda-gdb[0x4a6348]
cuda-gdb[0x44e309]
cuda-gdb(catch_errors+0x5b)[0x4fd08b]
cuda-gdb[0x44eec6]
cuda-gdb(catch_errors+0x5b)[0x4fd08b]
cuda-gdb(gdb_main+0x24)[0x44e2f4]
cuda-gdb(main+0x2e)[0x44e2be]
/lib/libc.so.6(__libc_start_main+0xfe)[0x7ff7c67efd8e]
cuda-gdb[0x44e1c9]