<?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 I do not know whether that’s in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Core-dump-files-for-native-applications/m-p/930872#M14776</link>
    <description>&lt;P&gt;I do not know whether that’s possible with &lt;STRONG&gt;idbc_mic &lt;/STRONG&gt;yet. What I have tried has not worked so far and I’m awaiting advice from the debugger team.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	I was able to do so using &lt;STRONG&gt;gdb &lt;/STRONG&gt;fairly easily (w/MPSS 2.1.6720-13) following some advice from this &lt;A href="http://software.intel.com/en-us/articles/debugging-on-intel-xeon-phi-coprocessor-use-case-overview" target="_blank"&gt;Debugger overview &lt;/A&gt;under &lt;STRONG&gt;Native Debugging on the Intel® Xeon Phi™ Coprocessor with GDB*&lt;/STRONG&gt;.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	My system lacks local user accounts on the card so I have to operate under a sudo su shell. Here's what I had to do:&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&lt;STRONG&gt;1. Transfer the gdb/gdbserver from the host on the card&lt;/STRONG&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	root# scp /usr/linux-k1om-4.7/linux-k1om/usr/bin/gdbserver &lt;A href="mailto:root@mic0:/usr/bin"&gt;root@mic0:/usr/bin&lt;/A&gt;&lt;BR /&gt;
	gdbserver&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100%&amp;nbsp; 272KB 271.8KB/s&amp;nbsp;&amp;nbsp; 00:00&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	root# scp /usr/linux-k1om-4.7/linux-k1om/usr/bin/gdb &lt;A href="mailto:root@mic0:/usr/bin"&gt;root@mic0:/usr/bin&lt;/A&gt;&lt;BR /&gt;
	gdb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% 5019KB&amp;nbsp;&amp;nbsp; 4.9MB/s&amp;nbsp;&amp;nbsp; 00:00&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&lt;STRONG&gt;2.&amp;nbsp; Run the test case to create the core file&lt;/STRONG&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	I have a small test case (a.out) with a self-inflicted failure to dump core that was previously transferred into /tmp on the card.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	You probably already know the core file limit is set to zero by default on the card, so after ssh’ing to the card, increase the limit and run the executable to create the core file:&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	root# ssh mic0&lt;BR /&gt;
	[root@mic0 /tmp]# cd /tmp&lt;BR /&gt;
	[root@mic0 /tmp]# ulimit -c unlimited&lt;BR /&gt;
	[root@mic0 /tmp]# ./a.out&lt;BR /&gt;
	ind&lt;BR /&gt;
	2 4 6 8 10 12 14 8&lt;BR /&gt;
	A&lt;BR /&gt;
	1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16&lt;BR /&gt;
	C&lt;BR /&gt;
	0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0&lt;BR /&gt;
	Segmentation fault (core dumped)&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&lt;STRONG&gt;3. Start the debugger on the card via ssh and load the executable/core file&lt;/STRONG&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	root#&amp;nbsp; ssh -t mic0 /usr/bin/gdb&lt;BR /&gt;
	GNU gdb (GDB) 7.5-1.3.187&lt;BR /&gt;
	Copyright (C) 2012 Free Software Foundation, Inc.&lt;BR /&gt;
	License GPLv3+: GNU GPL version 3 or later &amp;lt;&lt;A href="http://gnu.org/licenses/gpl.html"&gt;http://gnu.org/licenses/gpl.html&lt;/A&gt;&amp;gt;&lt;BR /&gt;
	This is free software: you are free to change and redistribute it.&lt;BR /&gt;
	There is NO WARRANTY, to the extent permitted by law.&amp;nbsp; Type "show copying" and "show warranty" for details.&lt;BR /&gt;
	This GDB was configured as "x86_64-k1om-linux".&lt;BR /&gt;
	For bug reporting instructions, please see:&lt;BR /&gt;
	&amp;lt;&lt;A href="http://www.gnu.org/software/gdb/bugs/"&gt;http://www.gnu.org/software/gdb/bugs/&lt;/A&gt;&amp;gt;.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	(gdb) cd /tmp&lt;BR /&gt;
	Working directory /tmp.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	(gdb) !ls&lt;BR /&gt;
	a.out&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; coi_procs&amp;nbsp; core&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	(gdb) file a.out&lt;BR /&gt;
	Reading symbols from /tmp/a.out...done.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	(gdb) core-file core&lt;BR /&gt;
	[New LWP 192341]&lt;BR /&gt;
	warning: Can't read pathname for load map: Input/output error.&lt;BR /&gt;
	Core was generated by `./a.out'.&lt;BR /&gt;
	Program terminated with signal 11, Segmentation fault.&lt;BR /&gt;
	#0&amp;nbsp; 0x0000000000400657 in f (A=0x7fff89a01f40, index=0x7fff89a01ec4) at s.c:23&lt;BR /&gt;
	23&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.c: No such file or directory.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	(gdb) bt&lt;BR /&gt;
	#0&amp;nbsp; 0x0000000000400657 in f (A=0x7fff89a01f40, index=0x7fff89a01ec4) at s.c:23&lt;BR /&gt;
	#1&amp;nbsp; 0x00000000004008f1 in main (argc=1, argv=0x7fff89a02468) at s.c:57&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	(gdb) quit&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2013 12:54:00 GMT</pubDate>
    <dc:creator>Kevin_D_Intel</dc:creator>
    <dc:date>2013-12-06T12:54:00Z</dc:date>
    <item>
      <title>Core dump files for native applications</title>
      <link>https://community.intel.com/t5/Software-Archive/Core-dump-files-for-native-applications/m-p/930871#M14775</link>
      <description>&lt;P&gt;How do you attach the idbc_mic debugger to a core file that was produced by a Phi native application crashing?&lt;/P&gt;

&lt;P&gt;TIA.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 10:00:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Core-dump-files-for-native-applications/m-p/930871#M14775</guid>
      <dc:creator>Nick_W_</dc:creator>
      <dc:date>2013-12-06T10:00:14Z</dc:date>
    </item>
    <item>
      <title>I do not know whether that’s</title>
      <link>https://community.intel.com/t5/Software-Archive/Core-dump-files-for-native-applications/m-p/930872#M14776</link>
      <description>&lt;P&gt;I do not know whether that’s possible with &lt;STRONG&gt;idbc_mic &lt;/STRONG&gt;yet. What I have tried has not worked so far and I’m awaiting advice from the debugger team.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	I was able to do so using &lt;STRONG&gt;gdb &lt;/STRONG&gt;fairly easily (w/MPSS 2.1.6720-13) following some advice from this &lt;A href="http://software.intel.com/en-us/articles/debugging-on-intel-xeon-phi-coprocessor-use-case-overview" target="_blank"&gt;Debugger overview &lt;/A&gt;under &lt;STRONG&gt;Native Debugging on the Intel® Xeon Phi™ Coprocessor with GDB*&lt;/STRONG&gt;.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	My system lacks local user accounts on the card so I have to operate under a sudo su shell. Here's what I had to do:&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&lt;STRONG&gt;1. Transfer the gdb/gdbserver from the host on the card&lt;/STRONG&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	root# scp /usr/linux-k1om-4.7/linux-k1om/usr/bin/gdbserver &lt;A href="mailto:root@mic0:/usr/bin"&gt;root@mic0:/usr/bin&lt;/A&gt;&lt;BR /&gt;
	gdbserver&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100%&amp;nbsp; 272KB 271.8KB/s&amp;nbsp;&amp;nbsp; 00:00&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	root# scp /usr/linux-k1om-4.7/linux-k1om/usr/bin/gdb &lt;A href="mailto:root@mic0:/usr/bin"&gt;root@mic0:/usr/bin&lt;/A&gt;&lt;BR /&gt;
	gdb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100% 5019KB&amp;nbsp;&amp;nbsp; 4.9MB/s&amp;nbsp;&amp;nbsp; 00:00&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&lt;STRONG&gt;2.&amp;nbsp; Run the test case to create the core file&lt;/STRONG&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	I have a small test case (a.out) with a self-inflicted failure to dump core that was previously transferred into /tmp on the card.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	You probably already know the core file limit is set to zero by default on the card, so after ssh’ing to the card, increase the limit and run the executable to create the core file:&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	root# ssh mic0&lt;BR /&gt;
	[root@mic0 /tmp]# cd /tmp&lt;BR /&gt;
	[root@mic0 /tmp]# ulimit -c unlimited&lt;BR /&gt;
	[root@mic0 /tmp]# ./a.out&lt;BR /&gt;
	ind&lt;BR /&gt;
	2 4 6 8 10 12 14 8&lt;BR /&gt;
	A&lt;BR /&gt;
	1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16&lt;BR /&gt;
	C&lt;BR /&gt;
	0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0&lt;BR /&gt;
	Segmentation fault (core dumped)&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&lt;STRONG&gt;3. Start the debugger on the card via ssh and load the executable/core file&lt;/STRONG&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	root#&amp;nbsp; ssh -t mic0 /usr/bin/gdb&lt;BR /&gt;
	GNU gdb (GDB) 7.5-1.3.187&lt;BR /&gt;
	Copyright (C) 2012 Free Software Foundation, Inc.&lt;BR /&gt;
	License GPLv3+: GNU GPL version 3 or later &amp;lt;&lt;A href="http://gnu.org/licenses/gpl.html"&gt;http://gnu.org/licenses/gpl.html&lt;/A&gt;&amp;gt;&lt;BR /&gt;
	This is free software: you are free to change and redistribute it.&lt;BR /&gt;
	There is NO WARRANTY, to the extent permitted by law.&amp;nbsp; Type "show copying" and "show warranty" for details.&lt;BR /&gt;
	This GDB was configured as "x86_64-k1om-linux".&lt;BR /&gt;
	For bug reporting instructions, please see:&lt;BR /&gt;
	&amp;lt;&lt;A href="http://www.gnu.org/software/gdb/bugs/"&gt;http://www.gnu.org/software/gdb/bugs/&lt;/A&gt;&amp;gt;.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	(gdb) cd /tmp&lt;BR /&gt;
	Working directory /tmp.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	(gdb) !ls&lt;BR /&gt;
	a.out&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; coi_procs&amp;nbsp; core&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	(gdb) file a.out&lt;BR /&gt;
	Reading symbols from /tmp/a.out...done.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	(gdb) core-file core&lt;BR /&gt;
	[New LWP 192341]&lt;BR /&gt;
	warning: Can't read pathname for load map: Input/output error.&lt;BR /&gt;
	Core was generated by `./a.out'.&lt;BR /&gt;
	Program terminated with signal 11, Segmentation fault.&lt;BR /&gt;
	#0&amp;nbsp; 0x0000000000400657 in f (A=0x7fff89a01f40, index=0x7fff89a01ec4) at s.c:23&lt;BR /&gt;
	23&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.c: No such file or directory.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	(gdb) bt&lt;BR /&gt;
	#0&amp;nbsp; 0x0000000000400657 in f (A=0x7fff89a01f40, index=0x7fff89a01ec4) at s.c:23&lt;BR /&gt;
	#1&amp;nbsp; 0x00000000004008f1 in main (argc=1, argv=0x7fff89a02468) at s.c:57&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	(gdb) quit&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 12:54:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Core-dump-files-for-native-applications/m-p/930872#M14776</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2013-12-06T12:54:00Z</dc:date>
    </item>
    <item>
      <title>I do not have a method for</title>
      <link>https://community.intel.com/t5/Software-Archive/Core-dump-files-for-native-applications/m-p/930873#M14777</link>
      <description>&lt;P&gt;I do not have a method for using idbc_mic but the Debugger team advised on another alternative that is even easier.&lt;/P&gt;

&lt;P&gt;You can use GDB on the host as follows:&amp;nbsp; &lt;STRONG&gt;gdb-mic –c&amp;nbsp;&amp;lt;path to core&amp;nbsp;file&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Where the corefile can be copied to the host or the card filesystem mounted somehow to the host.&lt;/P&gt;

&lt;P&gt;For the case I provided earlier, this was as easy as pulling the core file back to the host into the same location as a.out and running: &lt;STRONG&gt;gdb-mic -c core&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;$ gdb-mic -c core&lt;BR /&gt;
	No symbol table is loaded.&amp;nbsp; Use the "file" command.&lt;BR /&gt;
	GNU gdb (GDB) 7.5-1.0.160&lt;BR /&gt;
	Copyright (C) 2012 Free Software Foundation, Inc; (C) 2013 Intel Corp.&lt;BR /&gt;
	License GPLv3+: GNU GPL version 3 or later &amp;lt;&lt;A href="http://gnu.org/licenses/gpl.html"&gt;http://gnu.org/licenses/gpl.html&lt;/A&gt;&amp;gt;&lt;BR /&gt;
	This is free software: you are free to change and redistribute it.&lt;BR /&gt;
	There is NO WARRANTY, to the extent permitted by law.&amp;nbsp; Type "show copying" and "show warranty" for details.&lt;BR /&gt;
	This GDB was configured as "x86_64-unknown-linux-gnu".&lt;BR /&gt;
	For information about how to find Technical Support, Product Updates,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	User Forums, FAQs, tips and tricks, and other support information, please visit:&lt;BR /&gt;
	&amp;lt;&lt;A href="http://www.intel.com/software/products/support/"&gt;http://www.intel.com/software/products/support/&lt;/A&gt;&amp;gt;.&lt;BR /&gt;
	[New LWP 212673]&lt;BR /&gt;
	Core was generated by `./a.out'.&lt;BR /&gt;
	Program terminated with signal 11, Segmentation fault.&lt;BR /&gt;
	#0&amp;nbsp; 0x0000000000400657 in ?? ()&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	(gdb) file a.out&lt;BR /&gt;
	Reading symbols from /tmp/a.out...done.&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	(gdb) bt&lt;BR /&gt;
	#0&amp;nbsp; 0x0000000000400657 in f (A=0x7fff3ad48b40, index=0x7fff3ad48ac4) at s.c:23&lt;BR /&gt;
	#1&amp;nbsp; 0x00000000004008f1 in main (argc=1, argv=0x7fff3ad49068) at s.c:57&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	(gdb) quit&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2013 19:28:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Core-dump-files-for-native-applications/m-p/930873#M14777</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2013-12-11T19:28:43Z</dc:date>
    </item>
  </channel>
</rss>

