<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to attach process for Hotspots analysis in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806459#M1668</link>
    <description>We use the tweaked ptmalloc exclusively. It is in a library which does export malloc and free. We do not LD_PRELOAD it but AFAIK everything in our process (except you) uses the tweaked version.&lt;BR /&gt;&lt;BR /&gt;I tried launching with the MALLOC_CHECK=0 but nothing significant seemed to happen. Our app apparently just went away without a whimper as before.</description>
    <pubDate>Fri, 24 Jun 2011 00:38:11 GMT</pubDate>
    <dc:creator>duanetiemann</dc:creator>
    <dc:date>2011-06-24T00:38:11Z</dc:date>
    <item>
      <title>Unable to attach process for Hotspots analysis</title>
      <link>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806455#M1664</link>
      <description>&lt;P&gt;I currently have an evaluation copy of VTune for Linux (build 139491) .&lt;/P&gt;&lt;P&gt;It looked like I should be able to attach a process for Hotspots analysis, but when I tried it in the GUI I got "This analysis type doesn't support system-wide profiling or attaching to a process. Please specify an application to launch." As I recall, this also happened from the command line, but I don't have that data close to hand.&lt;/P&gt;&lt;P&gt;In the initial Hotspots screen it says "This analysys type cannot be used to profile the system but must either launch an application/process or attach to one".&lt;/P&gt;&lt;P&gt;I did manage to set up all our env variables and tried to lauch our product as an application, but it somehow failed to launch that way. So far I haven't been able to figure that out. For now, I'd like to just attach to it if that is possible.&lt;/P&gt;&lt;P&gt;Thanks, Duane&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2011 16:05:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806455#M1664</guid>
      <dc:creator>duanetiemann</dc:creator>
      <dc:date>2011-06-13T16:05:54Z</dc:date>
    </item>
    <item>
      <title>Unable to attach process for Hotspots analysis</title>
      <link>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806456#M1665</link>
      <description>Hi Duane:&lt;BR /&gt;&lt;BR /&gt;Please download the latest release, Update 3 (build 150226), for support of attaching to a process. Update 3 was recently released and added support for attaching to a process for hotspots analysis on Linux. Support was already there for Windows (starting with Update 2, build 139491).&lt;BR /&gt;&lt;BR /&gt;You may also be interested in &lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=83460&amp;amp;o=a&amp;amp;s=lr"&gt;this post&lt;/A&gt; related to attaching on Linux.</description>
      <pubDate>Mon, 13 Jun 2011 23:04:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806456#M1665</guid>
      <dc:creator>David_A_Intel1</dc:creator>
      <dc:date>2011-06-13T23:04:06Z</dc:date>
    </item>
    <item>
      <title>Unable to attach process for Hotspots analysis</title>
      <link>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806457#M1666</link>
      <description>Thanks. That got me past the error message.&lt;BR /&gt;Now my problem is thatour app crashes when I start Hotspot analysis on it.&lt;BR /&gt;I tried it twice.&lt;BR /&gt;Looks like we're in clib ptmalloc. Our app uses a tweaked version of ptmalloc instead. Is that the problem?Do you insert a thread in our process to do the stack traces andsomehow get some malloc crosstalk?&lt;BR /&gt;&lt;BR /&gt;Thanks, Duane&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;Program terminated with signal 8, Arithmetic exception.&lt;BR /&gt;#0 0x0000003effa6f0bc in sYSTRIm () from /lib64/libc.so.6&lt;BR /&gt;(gdb) where&lt;BR /&gt;#0 0x0000003effa6f0bc in sYSTRIm () from /lib64/libc.so.6&lt;BR /&gt;#1 0x0000003effa71453 in _int_free () from /lib64/libc.so.6&lt;BR /&gt;#2 0x0000003effa74c5c in free () from /lib64/libc.so.6&lt;BR /&gt;#3 0x00002aaacd514591 in ?? ()&lt;BR /&gt;#4 0x0000000000000060 in ?? ()&lt;BR /&gt;#5 0x00002aaacd4e4e8b in ?? ()&lt;BR /&gt;#6 0x00002aaaf02d1df0 in ?? ()&lt;BR /&gt;#7 0x00002aaaec202be0 in ?? ()&lt;BR /&gt;#8 0x00002aaaec202c20 in ?? ()&lt;BR /&gt;#9 0x00002aaaec202bc0 in ?? ()&lt;BR /&gt;#10 0x00002aaaec202c00 in ?? ()&lt;BR /&gt;#11 0x0000003effd4e9a0 in __after_morecore_hook () from /lib64/libc.so.6&lt;BR /&gt;#12 0x00002aaaf06d5ff0 in ?? ()&lt;BR /&gt;#13 0x00002aaaf06d8010 in ?? ()&lt;BR /&gt;#14 0x00002aaacd4e2800 in ?? ()&lt;BR /&gt;#15 0x0000000000000021 in ?? ()&lt;BR /&gt;#16 0x00002aaacd9bc800 in ?? ()&lt;BR /&gt;#17 0x0000003effa74c5c in free () from /lib64/libc.so.6&lt;BR /&gt;#18 0x00002aaacd4e2782 in ?? ()&lt;BR /&gt;#19 0x0000000000000000 in ?? ()&lt;BR /&gt;(gdb) thread&lt;BR /&gt;[Current thread is 1 (process 24725)]&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2011 16:14:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806457#M1666</guid>
      <dc:creator>duanetiemann</dc:creator>
      <dc:date>2011-06-14T16:14:18Z</dc:date>
    </item>
    <item>
      <title>Unable to attach process for Hotspots analysis</title>
      <link>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806458#M1667</link>
      <description>Hi Duane:&lt;BR /&gt;&lt;BR /&gt;Does your library export malloc() and free()? Or, does the app call malloc and free, as well as the "tweaked" ptmalloc?&lt;BR /&gt;&lt;BR /&gt;Currently, since our collector runs within your process, and we use malloc/free, if your process loads a non-standard malloc and free, it could cause problems. You can test this theory out by defining the following environment variable:&lt;BR /&gt;&lt;BR /&gt;$ export MALLOC_CHEK_=0&lt;BR /&gt;&lt;BR /&gt;and running amplxe from that shell, which would then launch your app.</description>
      <pubDate>Fri, 17 Jun 2011 00:45:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806458#M1667</guid>
      <dc:creator>David_A_Intel1</dc:creator>
      <dc:date>2011-06-17T00:45:29Z</dc:date>
    </item>
    <item>
      <title>Unable to attach process for Hotspots analysis</title>
      <link>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806459#M1668</link>
      <description>We use the tweaked ptmalloc exclusively. It is in a library which does export malloc and free. We do not LD_PRELOAD it but AFAIK everything in our process (except you) uses the tweaked version.&lt;BR /&gt;&lt;BR /&gt;I tried launching with the MALLOC_CHECK=0 but nothing significant seemed to happen. Our app apparently just went away without a whimper as before.</description>
      <pubDate>Fri, 24 Jun 2011 00:38:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806459#M1668</guid>
      <dc:creator>duanetiemann</dc:creator>
      <dc:date>2011-06-24T00:38:11Z</dc:date>
    </item>
    <item>
      <title>Unable to attach process for Hotspots analysis</title>
      <link>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806460#M1669</link>
      <description>&lt;P&gt;I tried LD_PRELOADing our ptmalloc, but got the same result.&lt;BR /&gt;I then tried LD_PRELOADing /lib64/libc.so.6 (which contains the stock ptmalloc). That worked.&lt;BR /&gt;&lt;BR /&gt;I'll continue doing that for now. It looks like we cannot use VTune and our tweaked ptmalloc together without taking extreme measures (e.g. mess with libc.so.6).&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2011 15:15:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806460#M1669</guid>
      <dc:creator>duanetiemann</dc:creator>
      <dc:date>2011-06-24T15:15:57Z</dc:date>
    </item>
    <item>
      <title>Unable to attach process for Hotspots analysis</title>
      <link>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806461#M1670</link>
      <description>&lt;P&gt;I tried LD_PRELOADing our ptmalloc, but got the same result.&lt;BR /&gt;I then tried LD_PRELOADing /lib64/libc.so.6 (which contains the stock ptmalloc). That worked.&lt;BR /&gt;&lt;BR /&gt;I'll continue doing that for now. It looks like we cannot use VTune and our tweaked ptmalloc together without taking extreme measures (e.g. mess with libc.so.6).&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2011 15:35:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806461#M1670</guid>
      <dc:creator>duanetiemann</dc:creator>
      <dc:date>2011-06-24T15:35:49Z</dc:date>
    </item>
    <item>
      <title>Unable to attach process for Hotspots analysis</title>
      <link>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806462#M1671</link>
      <description>It looks like we both made a typo wrt the environment variable. I dropped a C and you dropped the trailing underscore. The correct variable is MALLOC_CHECK&lt;B&gt;_&lt;/B&gt;=0.
Please notice the trailing underscore. So, you can either do what you are doing with LD_PRELOAD or try this variable, again.&lt;BR /&gt;&lt;BR /&gt;Yes, we are looking at a general solution to this problem. I'll try to remember to update this thread when/if it is available.</description>
      <pubDate>Fri, 24 Jun 2011 18:13:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806462#M1671</guid>
      <dc:creator>David_A_Intel1</dc:creator>
      <dc:date>2011-06-24T18:13:08Z</dc:date>
    </item>
    <item>
      <title>Unable to attach process for Hotspots analysis</title>
      <link>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806463#M1672</link>
      <description>Thanks. The MALLOC_CHECK_ does work. But then I notice that we spend all our time in malloc_check, realloc_check, etc.&lt;BR /&gt;&lt;BR /&gt;When I run with the LD_PRELOAD to the stock ptmalloc, I notice that I get stack fragments in the report. pthread_cond_signal and _int_free, etc. will be alone at the top of the Top-down Tree. That doesn't seem right. And, of course, we see characteristics of the stock malloc that we tweaked to get out of e.g. replicated spikes in the arenas.&lt;BR /&gt;&lt;BR /&gt;BTW, This is from update 4.</description>
      <pubDate>Fri, 01 Jul 2011 21:20:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Unable-to-attach-process-for-Hotspots-analysis/m-p/806463#M1672</guid>
      <dc:creator>duanetiemann</dc:creator>
      <dc:date>2011-07-01T21:20:28Z</dc:date>
    </item>
  </channel>
</rss>

