<?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 Re: Analyzing Segmentation fault Core Dump (gdb)  in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Analyzing-Segmentation-fault-Core-Dump-gdb/m-p/749664#M116681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please refer to description of GPU drivers in sect.13.1.1.3 Source Code Structure&lt;/P&gt;&lt;P&gt;attached Linux Manual. There are two parts: kernel module sources (as you found &lt;EM&gt;&lt;STRONG&gt;g&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;c_hal_kernel_hardware.c &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;and user mode library provided as binaries. In general you can try to get sources, as suggested on&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/thread/382621#600015" title="https://community.nxp.com/thread/382621#600015"&gt;https://community.nxp.com/thread/382621#600015&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other ways to use more latest kernels were many gpu bugs were fixed:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/i.mx-developer-resources/i.mx-software-and-development-tool:IMX_SW" title="https://www.nxp.com/support/developer-resources/software-development-tools/i.mx-developer-resources/i.mx-software-and-development-tool:IMX_SW"&gt;i.MX Software|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2018 09:23:59 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-06-04T09:23:59Z</dc:date>
    <item>
      <title>Analyzing Segmentation fault Core Dump (gdb)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Analyzing-Segmentation-fault-Core-Dump-gdb/m-p/749663#M116680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting following segmentation faults while running an Linux based application on imax6q custom hardware design. I back traced the core dump using Linux GDB and following you can see those core dumps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kernel I'm using - Linux-boundary 4.1.15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Seg fault Core dump 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program terminated with signal SIGSEGV, Segmentation fault.&lt;BR /&gt;#0 gcoTEXTURE_BindTextureEx (Texture=0x263c6c4, Target=Target@entry=0, Sampler=1, Sampler@entry=0, Info=Info@entry=0x23f0708, textureLayer=textureLayer@entry=0)&lt;BR /&gt; at gc_hal_user_texture.c:3804&lt;BR /&gt;3804 gc_hal_user_texture.c: No such file or directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Seg fault Core dump 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Program terminated with signal SIGSEGV, Segmentation fault.&lt;BR /&gt;#0 _SetFenceCtx (fence=0x5c30d6c, head=0x5c2ab74) at gc_hal_user_hardware.c:5752&lt;BR /&gt;5752 gc_hal_user_hardware.c: No such file or directory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1) Those core dumps are directed to following source files. But I couldn't find those file in the above Linux-boundary 4.1.15 kernel build. What are they referring&amp;nbsp;to ? To overcome with this problem what do you suggest ?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;gc_hal_user_texture.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;gc_hal_user_hardware.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;src/glcore/gc_es_draw.c:943&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;src/glcore/gc_es_api.c:399&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2) I could find a file called &lt;STRONG&gt;g&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;c_hal_kernel_hardware.c &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;in my kernel build. So is this the file the gdb back traced log is pointing out ? Do you have any idea of this kind of segmentation faults ?&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Peter.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2018 08:02:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Analyzing-Segmentation-fault-Core-Dump-gdb/m-p/749663#M116680</guid>
      <dc:creator>peteramond</dc:creator>
      <dc:date>2018-06-04T08:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing Segmentation fault Core Dump (gdb)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Analyzing-Segmentation-fault-Core-Dump-gdb/m-p/749664#M116681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please refer to description of GPU drivers in sect.13.1.1.3 Source Code Structure&lt;/P&gt;&lt;P&gt;attached Linux Manual. There are two parts: kernel module sources (as you found &lt;EM&gt;&lt;STRONG&gt;g&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;c_hal_kernel_hardware.c &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;and user mode library provided as binaries. In general you can try to get sources, as suggested on&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/thread/382621#600015" title="https://community.nxp.com/thread/382621#600015"&gt;https://community.nxp.com/thread/382621#600015&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other ways to use more latest kernels were many gpu bugs were fixed:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/i.mx-developer-resources/i.mx-software-and-development-tool:IMX_SW" title="https://www.nxp.com/support/developer-resources/software-development-tools/i.mx-developer-resources/i.mx-software-and-development-tool:IMX_SW"&gt;i.MX Software|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2018 09:23:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Analyzing-Segmentation-fault-Core-Dump-gdb/m-p/749664#M116681</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-06-04T09:23:59Z</dc:date>
    </item>
  </channel>
</rss>

