Page 1 of 1

mudflap dumps some errors on gesvd

PostPosted: Wed Jun 15, 2011 6:22 pm
by nuru
While I was debugging my program, oddly I found mudflap gives an error on gesvd example enclosed with cula distribution, tells it failed somewhere around gesvd, such as,

    #0 0x0000003605a328f5 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
    #1 0x0000003605a340d5 in abort () at abort.c:92
    #2 0x00007ffff0b5e218 in __mf_violation (ptr=0x7fffe3afb000, sz=4096, pc=<value optimized out>, location=<value optimized out>, type=<value optimized out>)
    at ../../../libmudflap/mf-runtime.c:2178
    #3 0x00007ffff0b5e518 in __mfu_unregister (ptr=0x7fffe3afb000, sz=4096, type=2) at ../../../libmudflap/mf-runtime.c:1338
    #4 0x00007ffff0b5e846 in __mf_unregister (ptr=0x7fffe3afb000, sz=4096, type=2) at ../../../libmudflap/mf-runtime.c:1278
    #5 0x00007ffff0b604f3 in munmap (start=<value optimized out>, length=1048576) at ../../../libmudflap/mf-hooks1.c:410
    #6 0x00007fffe11f49a3 in ?? () from /usr/lib64/libcuda.so
    #7 0x00007fffe11ad0db in ?? () from /usr/lib64/libcuda.so
    #8 0x00007fffe11ae500 in ?? () from /usr/lib64/libcuda.so
    #9 0x00007fffe1167e7f in ?? () from /usr/lib64/libcuda.so
    #10 0x00007fffe1168977 in ?? () from /usr/lib64/libcuda.so
    #11 0x00007fffe1168a80 in ?? () from /usr/lib64/libcuda.so
    #12 0x00007fffe11547f9 in ?? () from /usr/lib64/libcuda.so
    #13 0x00007fffe113ab21 in ?? () from /usr/lib64/libcuda.so
    #14 0x00007fffe1210220 in ?? () from /usr/lib64/libcuda.so
    #15 0x00007ffff0f4988d in ?? () from /home/nuru/culaR11/lib64/libcudart.so.3
    #16 0x00007ffff0f3d1c8 in ?? () from /home/nuru/culaR11/lib64/libcudart.so.3
    #17 0x00007ffff0f72278 in cudaFreeHost () from /home/nuru/culaR11/lib64/libcudart.so.3
    #18 0x00007ffff65c0bdd in ?? () from /home/nuru/culaR11/lib64/libcula.so
    #19 0x00007ffff6788043 in ?? () from /home/nuru/culaR11/lib64/libcula.so
    #20 0x00007ffff65f29a7 in ?? () from /home/nuru/culaR11/lib64/libcula.so
    #21 0x00007ffff65ecccc in ?? () from /home/nuru/culaR11/lib64/libcula.so
    #22 0x00007ffff65ef3cf in culaSgesvd () from /home/nuru/culaR11/lib64/libcula.so

CULA version is R11,running on Fedora 13.

Can I safely ignore this memory issue?
Thank you for helping.

Re: mudflap dumps some errors on gesvd

PostPosted: Thu Jun 16, 2011 1:35 pm
by kyle
That seems to be OK. Your debugger seems to raise an exception on cudaFreeHost() which is an NVIDIA call to free page locked memory. This isn't a standard memory operation and perhaps the debugger is suggesting abnormal behavior.