buffer overflow in computeprof 4.0rc

I just installed 4.0rc on Ubuntu 10.10. All tests work as expected, but when I try to profile my application I get a segfault on the computeprof. Computeprof starts as expected, I can setup a new project. I can run the tests and just before presenting the results I get the segfault below.

Any idea?
Thanks
Crep

[font=“Courier New”]*** buffer overflow detected ***: computeprof terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7fc01e941537]
/lib/libc.so.6(+0xfe3f0)[0x7fc01e9403f0]
computeprof[0x54028f]
computeprof[0x542e7b]
computeprof[0x5430cf]
computeprof[0x4331c6]
computeprof[0x43b7b0]
computeprof[0x43bdd2]
computeprof[0x43c7e8]
computeprof[0x556385]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2c7)[0x7fc02020cb27]
/usr/lib/libQtGui.so.4(_ZN7QAction9triggeredEb+0x32)[0x7fc021c60852]
/usr/lib/libQtGui.so.4(_ZN7QAction8activateENS_11ActionEventE+0x7b)[0x7fc021c61f5b]
/usr/lib/libQtGui.so.4(+0x59157a)[0x7fc02204157a]
/usr/lib/libQtGui.so.4(_ZN15QAbstractButton17mouseReleaseEventEP11QMouseEvent+0x8c)[0x7fc02204182c]
/usr/lib/libQtGui.so.4(_ZN11QToolButton17mouseReleaseEventEP11QMouseEvent+0xa)[0x7fc02211152a]
/usr/lib/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x9be)[0x7fc021cbe04e]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xac)[0x7fc021c67fdc]
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x96e)[0x7fc021c6e30e]
computeprof[0x553ca8]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8c)[0x7fc0201f4cdc]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb+0x19e)[0x7fc021c6cdbe]
/usr/lib/libQtGui.so.4(+0x240345)[0x7fc021cf0345]
/usr/lib/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x85c)[0x7fc021ceec5c]
/usr/lib/libQtGui.so.4(+0x26b0e2)[0x7fc021d1b0e2]
/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1f2)[0x7fc01f9cd342]
/lib/libglib-2.0.so.0(+0x442a8)[0x7fc01f9d12a8]
/lib/libglib-2.0.so.0(g_main_context_iteration+0x6c)[0x7fc01f9d145c]
/usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x73)[0x7fc020221193]
/usr/lib/libQtGui.so.4(+0x26aa4e)[0x7fc021d1aa4e]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x32)[0x7fc0201f3a02]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xdc)[0x7fc0201f3dec]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xbb)[0x7fc0201f7ebb]
computeprof[0x555c14]
/lib/libc.so.6(__libc_start_main+0xfe)[0x7fc01e860d8e]
computeprof[0x41d119]
======= Memory map: ========
00400000-005a8000 r-xp 00000000 08:21 1055010 /usr/local/cuda/computeprof/bin/computeprof
007a7000-007a8000 r–p 001a7000 08:21 1055010 /usr/local/cuda/computeprof/bin/computeprof
007a8000-007ae000 rw-p 001a8000 08:21 1055010 /usr/local/cuda/computeprof/bin/computeprof
007ae000-007b5000 rw-p 00000000 00:00 0
0270c000-02ebf000 rw-p 00000000 00:00 0 [heap]
200000000-a00000000 —p 00000000 00:00 0
7fc009a5b000-7fc009a5c000 —p 00000000 00:00 0
7fc009a5c000-7fc00a25c000 rwxp 00000000 00:00 0
7fc00a25c000-7fc00a292000 r-xp 00000000 08:21 265122 /usr/lib/libcroco-0.6.so.3.0.1
7fc00a292000-7fc00a491000 —p 00036000 08:21 265122 /usr/lib/libcroco-0.6.so.3.0.1
7fc00a491000-7fc00a492000 r–p 00035000 08:21 265122 /usr/lib/libcroco-0.6.so.3.0.1
7fc00a492000-7fc00a495000 rw-p 00036000 08:21 265122 /usr/lib/libcroco-0.6.so.3.0.1
7fc00a495000-7fc00a4c8000 r-xp 00000000 08:21 265754 /usr/lib/librsvg-2.so.2.32.0
7fc00a4c8000-7fc00a6c8000 —p 00033000 08:21 265754 /usr/lib/librsvg-2.so.2.32.0
7fc00a6c8000-7fc00a6c9000 r–p 00033000 08:21 265754 /usr/lib/librsvg-2.so.2.32.0
7fc00a6c9000-7fc00a6ca000 rw-p 00034000 08:21 265754 /usr/lib/librsvg-2.so.2.32.0
7fc00a6ca000-7fc00a6cc000 r-xp 00000000 08:21 268532 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
7fc00a6cc000-7fc00a8cb000 —p 00002000 08:21 268532 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
7fc00a8cb000-7fc00a8cc000 r–p 00001000 08:21 268532 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
7fc00a8cc000-7fc00a8cd000 rw-p 00002000 08:21 268532 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
7fc00a8cd000-7fc00ad8f000 r–p 00000000 08:21 2228332 /usr/share/icons/hicolor/icon-theme.cache
7fc00ad8f000-7fc00d039000 r–p 00000000 08:21 2239142 /usr/share/icons/gnome/icon-theme.cache
7fc00d039000-7fc00d10a000 r–p 00000000 08:21 2230984 /usr/share/icons/Humanity/icon-theme.cache
7fc00d10a000-7fc00d16a000 rw-s 00000000 00:04 2883601 /SYSV00000000 (deleted)
7fc00d16a000-7fc00d969000 r-xp 00000000 08:21 262418 /usr/lib/libcuda.so.270.27
7fc00d969000-7fc00db68000 —p 007ff000 08:21 262418 /usr/lib/libcuda.so.270.27
7fc00db68000-7fc00dc38000 rw-p 007fe000 08:21 262418 /usr/lib/libcuda.so.270.27
7fc00dc38000-7fc00dc5d000 rw-p 00000000 00:00 0
7fc00dc5d000-7fc00dcbc000 r-xp 00000000 08:21 265841 /usr/lib/libtiff.so.4.3.3
7fc00dcbc000-7fc00debc000 —p 0005f000 08:21 265841 /usr/lib/libtiff.so.4.3.3
7fc00debc000-7fc00debe000 r–p 0005f000 08:21 265841 /usr/lib/libtiff.so.4.3.3
7fc00debe000-7fc00debf000 rw-p 00061000 08:21 265841 /usr/lib/libtiff.so.4.3.3
7fc00debf000-7fc00dec6000 r-xp 00000000 08:21 266105 /usr/lib/qt4/plugins/imageformats/libqtiff.so
7fc00dec6000-7fc00e0c5000 —p 00007000 08:21 266105 /usr/lib/qt4/plugins/imageformats/libqtiff.so
7fc00e0c5000-7fc00e0c6000 r–p 00006000 08:21 266105 /usr/lib/qt4/plugins/imageformats/libqtiff.so
7fc00e0c6000-7fc00e0c7000 rw-p 00007000 08:21 266105 /usr/lib/qt4/plugins/imageformats/libqtiff.so
7fc00e0c7000-7fc00e0fa000 r-xp 00000000 08:21 264023 /usr/lib/liblcms.so.1.0.18
7fc00e0fa000-7fc00e2f9000 —p 00033000 08:21 264023 /usr/lib/liblcms.so.1.0.18
7fc00e2f9000-7fc00e2fa000 r–p 00032000 08:21 264023 /usr/lib/liblcms.so.1.0.18
7fc00e2fa000-7fc00e2fb000 rw-p 00033000 08:21 264023 /usr/lib/liblcms.so.1.0.18
7fc00e2fb000-7fc00e2fd000 rw-p 00000000 00:00 0
7fc00e2fd000-7fc00e381000 r-xp 00000000 08:21 266067 /usr/lib/libmng.so.1.1.0.10
7fc00e381000-7fc00e581000 —p 00084000 08:21 266067 /usr/lib/libmng.so.1.1.0.10
7fc00e581000-7fc00e585000 r–p 00084000 08:21 266067 /usr/lib/libmng.so.1.1.0.10Aborted
[/font]

I can reproduce the problem with CUDA 4.0rc also on Ubuntu 10.10. The only differences between my trace and crepatas’ is in the QT library. Crepatas, have you opened a bug on the registered developers site?

[font=“Courier New”]
*** buffer overflow detected ***: computeprof terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7f1f6b755537]
/lib/libc.so.6(+0xfe3f0)[0x7f1f6b7543f0]
computeprof[0x54028f]
computeprof[0x542e7b]
computeprof[0x5430cf]
computeprof[0x4331c6]
computeprof[0x43b7b0]
computeprof[0x43bdd2]
computeprof[0x43c7e8]
computeprof[0x556385]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2c7)[0x7f1f6d020b27]
/usr/lib/libQtGui.so.4(_ZN7QAction9triggeredEb+0x32)[0x7f1f6ea74852]
/usr/lib/libQtGui.so.4(_ZN7QAction8activateENS_11ActionEventE+0x7b)[0x7f1f6ea75f5b]
/usr/lib/libQtGui.so.4(+0x618dc1)[0x7f1f6eedcdc1]
/usr/lib/libQtGui.so.4(+0x61e782)[0x7f1f6eee2782]
/usr/lib/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x9be)[0x7f1f6ead204e]
/usr/lib/libQtGui.so.4(_ZN5QMenu5eventEP6QEvent+0x6b)[0x7f1f6eee490b]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xac)[0x7f1f6ea7bfdc]
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x96e)[0x7f1f6ea8230e]
computeprof[0x553ca8]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8c)[0x7f1f6d008cdc]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb+0x19e)[0x7f1f6ea80dbe]
/usr/lib/libQtGui.so.4(+0x2407bd)[0x7f1f6eb047bd]
/usr/lib/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x85c)[0x7f1f6eb02c5c]
/usr/lib/libQtGui.so.4(+0x26b0e2)[0x7f1f6eb2f0e2]
/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1f2)[0x7f1f6c7e1342]
/lib/libglib-2.0.so.0(+0x442a8)[0x7f1f6c7e52a8]
/lib/libglib-2.0.so.0(g_main_context_iteration+0x6c)[0x7f1f6c7e545c]
/usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x73)[0x7f1f6d035193]
/usr/lib/libQtGui.so.4(+0x26aa4e)[0x7f1f6eb2ea4e]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x32)[0x7f1f6d007a02]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xdc)[0x7f1f6d007dec]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xbb)[0x7f1f6d00bebb]
computeprof[0x555c14]
/lib/libc.so.6(__libc_start_main+0xfe)[0x7f1f6b674d8e]
computeprof[0x41d119]
======= Memory map: ========
00400000-005a8000 r-xp 00000000 08:02 583876 /usr/local/cuda/computeprof/bin/computeprof
007a7000-007a8000 r–p 001a7000 08:02 583876 /usr/local/cuda/computeprof/bin/computeprof
007a8000-007ae000 rw-p 001a8000 08:02 583876 /usr/local/cuda/computeprof/bin/computeprof
007ae000-007b5000 rw-p 00000000 00:00 0
020af000-029fd000 rw-p 00000000 00:00 0 [heap]
200000000-500000000 —p 00000000 00:00 0
7f1f573da000-7f1f573db000 —p 00000000 00:00 0
7f1f573db000-7f1f57bdb000 rwxp 00000000 00:00 0
7f1f57bdb000-7f1f57be5000 r-xp 00000000 08:02 263050 /lib/libnss_nis-2.12.1.so
7f1f57be5000-7f1f57de4000 —p 0000a000 08:02 263050 /lib/libnss_nis-2.12.1.so
7f1f57de4000-7f1f57de5000 r–p 00009000 08:02 263050 /lib/libnss_nis-2.12.1.so
7f1f57de5000-7f1f57de6000 rw-p 0000a000 08:02 263050 /lib/libnss_nis-2.12.1.so
7f1f57de6000-7f1f57dfd000 r-xp 00000000 08:02 263056 /lib/libnsl-2.12.1.so
7f1f57dfd000-7f1f57ffc000 —p 00017000 08:02 263056 /lib/libnsl-2.12.1.so
7f1f57ffc000-7f1f57ffd000 r–p 00016000 08:02 263056 /lib/libnsl-2.12.1.so
7f1f57ffd000-7f1f57ffe000 rw-p 00017000 08:02 263056 /lib/libnsl-2.12.1.so
7f1f57ffe000-7f1f58000000 rw-p 00000000 00:00 0
7f1f58000000-7f1f58021000 rw-p 00000000 00:00 0
7f1f58021000-7f1f5c000000 —p 00000000 00:00 0
7f1f5c0ec000-7f1f5c13e000 r–p 00000000 08:02 921243 /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-B.ttf
7f1f5c13e000-7f1f5c146000 r-xp 00000000 08:02 263054 /lib/libnss_compat-2.12.1.so
7f1f5c146000-7f1f5c345000 —p 00008000 08:02 263054 /lib/libnss_compat-2.12.1.so
7f1f5c345000-7f1f5c346000 r–p 00007000 08:02 263054 /lib/libnss_compat-2.12.1.so
7f1f5c346000-7f1f5c347000 rw-p 00008000 08:02 263054 /lib/libnss_compat-2.12.1.so
7f1f5c361000-7f1f5c3b7000 r–p 00000000 08:02 921246 /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf
7f1f5c3b7000-7f1f5c45d000 r-xp 00000000 08:02 543979 /usr/lib/libkfile.so.4.5.0
7f1f5c45d000-7f1f5c65c000 —p 000a6000 08:02 543979 /usr/lib/libkfile.so.4.5.0
7f1f5c65c000-7f1f5c661000 r–p 000a5000 08:02 543979 /usr/lib/libkfile.so.4.5.0
7f1f5c661000-7f1f5c664000 rw-p 000aa000 08:02 543979 /usr/lib/libkfile.so.4.5.0
7f1f5c664000-7f1f5c667000 r-xp 00000000 08:02 623472 /usr/lib/kde4/kfilemodule.so
7f1f5c667000-7f1f5c866000 —p 00003000 08:02 623472 /usr/lib/kde4/kfilemodule.so
7f1f5c866000-7f1f5c867000 r–p 00002000 08:02 623472 /usr/lib/kde4/kfilemodule.so
7f1f5c867000-7f1f5c868000 rw-p 00003000 08:02 623472 /usr/lib/kde4/kfilemodule.so
7f1f5c868000-7f1f5ca15000 r–s 00000000 08:02 41069 /var/tmp/kdecache/ksycoca4
7f1f5ca15000-7f1f5d214000 r-xp 00000000 08:02 541076 /usr/lib/libcuda.so.270.27
7f1f5d214000-7f1f5d413000 —p 007ff000 08:02 541076 /usr/lib/libcuda.so.270.27
7f1f5d413000-7f1f5d4e3000 rw-p 007fe000 08:02 541076 /usr/lib/libcuda.so.270.27
7f1f5d4e3000-7f1f5d508000 rw-p 00000000 00:00 0
7f1f5d508000-7f1f5d509000 —p 00000000 00:00 0
7f1f5d509000-7f1f5dd09000 rwxp 00000000 00:00 0
7f1f5dd09000-7f1f5dd5b000 r-xp 00000000 08:02 542996 /usr/lib/libibus-qt.so.1.3.0
7f1f5dd5b000-7f1f5df5b000 —p 00052000 08:02 542996 /usr/lib/libibus-qt.so.1.3.0
7f1f5df5b000-7f1f5df5d000 r–p 00052000 08:02 542996 /usr/lib/libibus-qt.so.1.3.0
7f1f5df5d000-7f1f5df5e000 rw-p 00054000 08:02 542996 /usr/lib/libibus-qt.so.1.3.0
7f1f5df5e000-7f1f5eea3000 r–p 00000000 08:02 542778 /usr/lib/libicudata.so.42.1
7f1f5eea3000-7f1f5f0a2000 —p 00f45000 08:02 542778 /usr/lib/libicudata.so.42.1
7f1f5f0a2000-7f1f5f0a3000 r–p 00f44000 08:02 542778 /usr/lib/libicudata.so.42.1
7f1f5f0a3000-7f1f5f1eb000 r-xp 00000000 08:02 542790 /usr/lib/libicuuc.so.42.1
7f1f5f1eb000-7f1f5f3eb000 —p 00148000 08:02 542790 /usr/lib/libicuuc.so.42.1
7f1f5f3eb000-7f1f5f3f9000 r–p 00148000 08:02 542790 /usr/lib/libicuuc.so.42.1
7f1f5f3f9000-7f1f5f3fc000 rw-p 00156000 08:02 542790 /usr/lib/libicuuc.so.42.1
7f1f5f3fc000-7f1f5f3fe000 rw-p 00000000 00:00 0
7f1f5f3fe000-7f1f5f5a8000 r-xp 00000000 08:02 542780 /usr/lib/libicui18n.so.42.1
7f1f5f5a8000-7f1f5f7a8000 —p 001aa000 08:02 542780 /usr/lib/libicui18n.so.42.1
7f1f5f7a8000-7f1f5f7b2000 r–p 001aa000 08:02 542780 /usr/lib/libicui18n.so.42.1
7f1f5f7b2000-7f1f5f7b5000 rw-p 001b4000 08:02 542780 /usr/lib/libicui18n.so.42.1
7f1f5f7b5000-7f1f5f7b6000 rw-p 00000000 00:00 0
7f1f5f7b6000-7f1f5f7d1000 r-xp 00000000 08:02 819703 /usr/lib/qt4/plugins/inputmethods/libqtim-ibus.so
7f1f5f7d1000-7f1f5f9d1000 —p 0001b000 08:02 819703 /usr/lib/qt4/plugins/inputmethods/libqtim-ibus.so
7f1f5f9d1000-7f1f5f9d2000 r–p 0001b000 08:02 819703 /usr/lib/qt4/plugins/inputmethods/libqtim-ibus.so
7f1f5f9d2000-7f1f5f9d3000 rw-p 0001c000 08:02 819703 /usr/lib/qt4/plugins/inputmethods/libqtim-ibus.so
7f1f5f9d3000-7f1f5f9d9000 r-xp 00000000 08:02 819337 /usr/lib/qt4/plugins/inputmethods/libqimsw-multi.so
[2]+ Aborted computeprof
[/font]

Thanks. Just filed the bug. The error can be replicated by profiling nbody with any single profile counter.

Have the same error on Ubuntu 10.10 and CUDA 4.0 RC

$ *** buffer overflow detected ***: /usr/local/cuda/computeprof/bin/computeprof terminated

======= Backtrace: =========

/lib/libc.so.6(__fortify_fail+0x37)[0x7f79d3209537]

/lib/libc.so.6(+0xfe3f0)[0x7f79d32083f0]

/usr/local/cuda/computeprof/bin/computeprof[0x54028f]

/usr/local/cuda/computeprof/bin/computeprof[0x542e7b]

/usr/local/cuda/computeprof/bin/computeprof[0x5430cf]

/usr/local/cuda/computeprof/bin/computeprof[0x455dea]

/usr/local/cuda/computeprof/bin/computeprof[0x456c72]

/usr/local/cuda/computeprof/bin/computeprof[0x5395e0]

/usr/local/cuda/computeprof/bin/computeprof[0x557d2c]

/usr/local/cuda/computeprof/bin/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x33f)[0x7f79d4ae240f]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN15QAbstractButton7clickedEb+0x37)[0x7f79d6a607c7]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN22QAbstractButtonPrivate11emitClickedEv+0x3e)[0x7f79d679fdee]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN22QAbstractButtonPrivate5clickEv+0xaa)[0x7f79d67a05fa]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN15QAbstractButton17mouseReleaseEventEP11QMouseEvent+0x71)[0x7f79d67a0841]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x3ae)[0x7f79d64599de]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN15QAbstractButton5eventEP6QEvent+0x52)[0x7f79d679fd02]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN11QPushButton5eventEP6QEvent+0x36)[0x7f79d68449c6]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xc0)[0x7f79d6405b20]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xbd2)[0x7f79d64078d2]

/usr/local/cuda/computeprof/bin/computeprof[0x553ca8]

/usr/local/cuda/computeprof/bin/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x9b)[0x7f79d4acfb1b]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_E+0x2bc)[0x7f79d640698c]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN9QETWidget19translateMouseEventEPK7_XEvent+0xa5a)[0x7f79d64777da]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x131f)[0x7f79d6475fef]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(+0x3298a2)[0x7f79d649b8a2]

/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1f2)[0x7f79d4295342]

/lib/libglib-2.0.so.0(+0x442a8)[0x7f79d42992a8]

/lib/libglib-2.0.so.0(g_main_context_iteration+0x6c)[0x7f79d429945c]

/usr/local/cuda/computeprof/bin/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x70)[0x7f79d4afa3a0]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN23QGuiEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x29)[0x7f79d649b299]

/usr/local/cuda/computeprof/bin/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x43)[0x7f79d4acf153]

/usr/local/cuda/computeprof/bin/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xcb)[0x7f79d4acf31b]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN7QDialog4execEv+0xe7)[0x7f79d68c44e7]

/usr/local/cuda/computeprof/bin/computeprof[0x428cac]

/usr/local/cuda/computeprof/bin/computeprof[0x555c0f]

/lib/libc.so.6(__libc_start_main+0xfe)[0x7f79d3128d8e]

/usr/local/cuda/computeprof/bin/computeprof[0x41d119]

======= Memory map: ========

00400000-005a8000 r-xp 00000000 08:07 3540282                            /usr/local/cuda/computeprof/bin/computeprof

007a7000-007a8000 r--p 001a7000 08:07 3540282                            /usr/local/cuda/computeprof/bin/computeprof

007a8000-007ae000 rw-p 001a8000 08:07 3540282                            /usr/local/cuda/computeprof/bin/computeprof

007ae000-007b5000 rw-p 00000000 00:00 0 

01af1000-01ef1000 rw-p 00000000 00:00 0                                  [heap]

200000000-600000000 ---p 00000000 00:00 0 

7f79c4000000-7f79c4021000 rw-p 00000000 00:00 0 

7f79c4021000-7f79c8000000 ---p 00000000 00:00 0 

7f79cb7ff000-7f79cb800000 ---p 00000000 00:00 0 

7f79cb800000-7f79cc000000 rwxp 00000000 00:00 0 

7f79cc000000-7f79cc021000 rw-p 00000000 00:00 0 

7f79cc021000-7f79d0000000 ---p 00000000 00:00 0 

7f79d0015000-7f79d0016000 ---p 00000000 00:00 0 

7f79d0016000-7f79d0816000 rwxp 00000000 00:00 0 

7f79d0816000-7f79d1015000 r-xp 00000000 08:07 133141                     /usr/lib/libcuda.so.270.27

7f79d1015000-7f79d1214000 ---p 007ff000 08:07 133141                     /usr/lib/libcuda.so.270.27

7f79d1214000-7f79d12e4000 rw-p 007fe000 08:07 133141                     /usr/lib/libcuda.so.270.27

7f79d12e4000-7f79d1309000 rw-p 00000000 00:00 0 

7f79d1309000-7f79d13a4000 r--p 00000000 08:07 1050184                    /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf

7f79d13a4000-7f79d13b2000 r-xp 00000000 08:07 133906                     /usr/lib/libXi.so.6.1.0

7f79d13b2000-7f79d15b2000 ---p 0000e000 08:07 133906                     /usr/lib/libXi.so.6.1.0

7f79d15b2000-7f79d15b3000 r--p 0000e000 08:07 133906                     /usr/lib/libXi.so.6.1.0

7f79d15b3000-7f79d15b4000 rw-p 0000f000 08:07 133906                     /usr/lib/libXi.so.6.1.0

7f79d15b4000-7f79d15b6000 r-xp 00000000 08:07 133908                     /usr/lib/libXinerama.so.1.0.0

7f79d15b6000-7f79d17b5000 ---p 00002000 08:07 133908                     /usr/lib/libXinerama.so.1.0.0

7f79d17b5000-7f79d17b6000 r--p 00001000 08:07 133908                     /usr/lib/libXinerama.so.1.0.0

7f79d17b6000-7f79d17b7000 rw-p 00002000 08:07 133908                     /usr/lib/libXinerama.so.1.0.0

7f79d17b7000-7f79d17c0000 r-xp 00000000 08:07 133892                     /usr/lib/libXcursor.so.1.0.2

7f79d17c0000-7f79d19bf000 ---p 00009000 08:07 133892                     /usr/lib/libXcursor.so.1.0.2

7f79d19bf000-7f79d19c0000 r--p 00008000 08:07 133892                     /usr/lib/libXcursor.so.1.0.2

7f79d19c0000-7f79d19c1000 rw-p 00009000 08:07 133892                     /usr/lib/libXcursor.so.1.0.2

7f79d19c1000-7f79d19c6000 r-xp 00000000 08:07 133900                     /usr/lib/libXfixes.so.3.1.0

7f79d19c6000-7f79d1bc5000 ---p 00005000 08:07 133900                     /usr/lib/libXfixes.so.3.1.0

7f79d1bc5000-7f79d1bc6000 r--p 00004000 08:07 133900                     /usr/lib/libXfixes.so.3.1.0

7f79d1bc6000-7f79d1bc7000 rw-p 00005000 08:07 133900                     /usr/lib/libXfixes.so.3.1.0

7f79d1bc7000-7f79d1bcf000 r-xp 00000000 08:07 133918                     /usr/lib/libXrandr.so.2.2.0

7f79d1bcf000-7f79d1dce000 ---p 00008000 08:07 133918                     /usr/lib/libXrandr.so.2.2.0

7f79d1dce000-7f79d1dcf000 r--p 00007000 08:07 133918                     /usr/lib/libXrandr.so.2.2.0

7f79d1dcf000-7f79d1dd0000 rw-p 00008000 08:07 133918                     /usr/lib/libXrandr.so.2.2.0

[1]+  Aborted                 /usr/local/cuda/computeprof/bin/computeprof

I am also not able to profile anything. Does anyone see the same behavior??

Exactly the same back trace here, no success on Ubuntu 10.10 64bit with 4.0RC, driver version = 270.30

Visual profiler crashing here too (after it makes a couple of runs) - Ubuntu 10.10 32bit, driver 270.35, CUDA 4.0.11, Visual profiler 4.0.10.

Any fix found?

*** buffer overflow detected ***: computeprof terminated

======= Backtrace: =========

/lib/libc.so.6(__fortify_fail+0x50)[0xb6479970]

/lib/libc.so.6(+0xe486a)[0xb647886a]

/lib/libc.so.6(__strcpy_chk+0x44)[0xb6477be4]

computeprof[0x8189304]

computeprof[0x818c1b1]

computeprof[0x818c3c5]

computeprof[0x8076155]

computeprof[0x807faf8]

computeprof[0x807ffeb]

computeprof[0x81a00ba]

/usr/local/cuda/computeprof/bin/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x16a)[0xb68b60f2]

/usr/local/cuda/computeprof/bin/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iiPPv+0x49)[0xb68b6611]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN7QAction9triggeredEb+0x3c)[0xb6ea8868]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN7QAction8activateENS_11ActionEventE+0x70)[0xb6ea8c18]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN11QToolButton14nextCheckStateEv+0x3f)[0xb735c2a7]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN22QAbstractButtonPrivate5clickEv+0x66)[0xb7277e6a]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN15QAbstractButton17mouseReleaseEventEP11QMouseEvent+0x6e)[0xb72780f6]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN11QToolButton17mouseReleaseEventEP11QMouseEvent+0x23)[0xb735bfe7]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x3a7)[0xb6f03ca7]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN15QAbstractButton5eventEP6QEvent+0x70)[0xb7277638]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN11QToolButton5eventEP6QEvent+0x4a)[0xb735de12]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xae)[0xb6eaf3a2]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xb6c)[0xb6eb10fc]

computeprof[0x819d358]

/usr/local/cuda/computeprof/bin/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x73)[0xb68a3fcf]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_E+0x278)[0xb6eb01e4]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN9QETWidget19translateMouseEventEPK7_XEvent+0xa46)[0xb6f222ae]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x1463)[0xb6f20a77]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(+0x272c15)[0xb6f45c15]

/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1d5)[0xb6683855]

/lib/libglib-2.0.so.0(+0x41668)[0xb6687668]

/lib/libglib-2.0.so.0(g_main_context_iteration+0x68)[0xb6687848]

/usr/local/cuda/computeprof/bin/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x5d)[0xb68ce689]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN23QGuiEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x3b)[0xb6f4564b]

/usr/local/cuda/computeprof/bin/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x50)[0xb68a35c8]

/usr/local/cuda/computeprof/bin/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xbd)[0xb68a3781]

/usr/local/cuda/computeprof/bin/libQtCore.so.4(_ZN16QCoreApplication4execEv+0x99)[0xb68a7ca9]

/usr/local/cuda/computeprof/bin/libQtGui.so.4(_ZN12QApplication4execEv+0x28)[0xb6eae638]

computeprof[0x819f77a]

/lib/libc.so.6(__libc_start_main+0xe7)[0xb63aace7]

computeprof[0x805e7f1]

======= Memory map: ========

08048000-081ec000 r-xp 00000000 08:01 3679565    /usr/local/cuda/computeprof/bin/computeprof

081ec000-081ed000 r--p 001a3000 08:01 3679565    /usr/local/cuda/computeprof/bin/computeprof

081ed000-081f1000 rw-p 001a4000 08:01 3679565    /usr/local/cuda/computeprof/bin/computeprof

081f1000-081f8000 rw-p 00000000 00:00 0 

0a02f000-0a3a8000 rw-p 00000000 00:00 0          [heap]

b3800000-b3822000 rw-p 00000000 00:00 0 

b3822000-b3900000 ---p 00000000 00:00 0 

b39b3000-b39b4000 ---p 00000000 00:00 0 

b39b4000-b41b4000 rwxp 00000000 00:00 0 

b41b4000-b41b5000 ---p 00000000 00:00 0 

b41b5000-b49b5000 rwxp 00000000 00:00 0 

b49b5000-b5394000 r-xp 00000000 08:01 3670483    /usr/lib/libcuda.so.270.35

b5394000-b53b4000 rw-p 009de000 08:01 3670483    /usr/lib/libcuda.so.270.35

b53b4000-b53d6000 rw-p 00000000 00:00 0 

b53d6000-b5465000 r--p 00000000 08:01 4720766    /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf

b5465000-b5500000 r--p 00000000 08:01 4720762    /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf

b5500000-b555a000 rw-p 00000000 00:00 0 

b555a000-b5600000 ---p 00000000 00:00 0 

b5677000-b5681000 r-xp 00000000 08:01 14680482   /lib/libnss_files-2.12.1.so

b5681000-b5682000 r--p 00009000 08:01 14680482   /lib/libnss_files-2.12.1.so

b5682000-b5683000 rw-p 0000a000 08:01 14680482   /lib/libnss_files-2.12.1.so

b5683000-b568c000 r-xp 00000000 08:01 14680484   /lib/libnss_nis-2.12.1.so

b568c000-b568d000 r--p 00008000 08:01 14680484   /lib/libnss_nis-2.12.1.so

b568d000-b568e000 rw-p 00009000 08:01 14680484   /lib/libnss_nis-2.12.1.so

b568e000-b56a1000 r-xp 00000000 08:01 14680479   /lib/libnsl-2.12.1.so

b56a1000-b56a2000 r--p 00012000 08:01 14680479   /lib/libnsl-2.12.1.so

b56a2000-b56a3000 rw-p 00013000 08:01 14680479   /lib/libnsl-2.12.1.so

b56a3000-b56a5000 rw-p 00000000 00:00 0 

b56a5000-b56ab000 r-xp 00000000 08:01 14680480   /lib/libnss_compat-2.12.1.so

b56ab000-b56ac000 r--p 00006000 08:01 14680480   /lib/libnss_compat-2.12.1.so

b56ac000-b56ad000 rw-p 00007000 08:01 14680480   /lib/libnss_compat-2.12.1.so

b56ad000-b56ae000 ---p 00000000 00:00 0 

b56ae000-b5eae000 rwxp 00000000 00:00 0 

b5eae000-b5ec8000 r-xp 00000000 08:01 14680195   /lib/libselinux.so.1

b5ec8000-b5ec9000 r--p 00019000 08:01 14680195   /lib/libselinux.so.1

b5ec9000-b5eca000 rw-p 0001a000 08:01 14680195   /lib/libselinux.so.1

b5eca000-b5eda000 r-xp 00000000 08:01 14680488   /lib/libresolv-2.12.1.so

b5eda000-b5edb000 r--p 00010000 08:01 14680488   /lib/libresolv-2.12.1.so

b5edb000-b5edc000 rw-p 00011000 08:01 14680488   /lib/libresolv-2.12.1.so

b5edc000-b5ede000 rw-p 00000000 00:00 0 

b5eef000-b5ef0000 r--s fc009000 00:05 8865       /dev/nvidia0

b5ef0000-b5f39000 r-xp 00000000 08:01 3672860    /usr/lib/libORBit-2.so.0.1.0

b5f39000-b5f41000 r--p 00049000 08:01 3672860    /usr/lib/libORBit-2.so.0.1.0

b5f41000-b5f43000 rw-p 00051000 08:01 3672860    /usr/lib/libORBit-2.so.0.1.0

b5f43000-b5f45000 r-xp 00000000 08:01 3672424    /usr/lib/libgmodule-2.0.so.0.2600.1

b5f45000-b5f46000 r--p 00002000 08:01 3672424    /usr/lib/libgmodule-2.0.so.0.2600.1

b5f46000-b5f47000 rw-p 00003000 08:01 3672424    /usr/lib/libgmodule-2.0.so.0.2600.1

b5f47000-b602f000 r-xp 00000000 08:01 3672428    /usr/lib/libgio-2.0.so.0.2600.1

b602f000-b6031000 r--p 000e7000 08:01 3672428    /usr/lib/libgio-2.0.so.0.2600.1

b6031000-b6032000 rw-p 000e9000 08:01 3672428    /usr/lib/libgio-2.0.so.0.2600.1

b6032000-b6033000 rw-p 00000000 00:00 0 

b6033000-b6060000 r-xp 00000000 08:01 3670418    /usr/lib/libgconf-2.so.4.1.5

b6060000-b6061000 ---p 0002d000 08:01 3670418    /usr/lib/libgconf-2.so.4.1.5

b6061000-b6062000 r--p 0002d000 08:01 3670418    /usr/lib/libgconf-2.so.4.1.5

b6062000-b6064000 rw-p 0002e000 08:01 3670418    /usr/lib/libgconf-2.so.4.1.5Aborted

btw, replacing the visual profiler 4 with the profiler from CUDA 3.2 works fine ;)

It almost works fine. On Fermi, the 4.0 driver level profiler will report data for the new third grid dimension. The 3.2 profiler doesn’t like that. If you turn off including kernel execution parameters, it seems to work ok.