<?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 websocketd runtime crash in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/websocketd-runtime-crash/m-p/2135760#M239368</link>
    <description>&lt;P&gt;Dear NXP Community,&lt;/P&gt;&lt;P&gt;we use i.MX7 processors in combination with Yocto Project (Release 5.2 (walnascar)).&lt;/P&gt;&lt;P&gt;Last years we used the community kernel [linux-fslc](&lt;A href="https://github.com/Freescale/linux-fslc" target="_blank" rel="noopener"&gt;https://github.com/Freescale/linux-fslc&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Since security requirements getting tighter, we decided to switch to official nxp kernel [linux-imx](&lt;A href="https://github.com/nxp-imx/linux-imx" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx/linux-imx&lt;/A&gt;) (lf-6.12.y).&lt;/P&gt;&lt;P&gt;Problem: Beside others, we use [websocketd](&lt;A href="https://github.com/joewalnes/websocketd" target="_blank" rel="noopener"&gt;https://github.com/joewalnes/websocketd&lt;/A&gt;) with this example [yocto-recipe](&lt;A href="https://layers.openembedded.org/layerindex/recipe/152495/" target="_blank" rel="noopener"&gt;https://layers.openembedded.org/layerindex/recipe/152495/&lt;/A&gt;) and it worked well with freescale linux-fslc (tested on different versions). Websocketd is mainly written in go.&lt;/P&gt;&lt;P&gt;When running linux-imx we observer sporadic crashes like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;runtime: s.allocCount= 991 s.nelems= 992
fatal error: s.allocCount != s.nelems &amp;amp;&amp;amp; freeIndex == s.nelems

goroutine 121 gp=0x29465a8 m=3 mp=0x2839008 [running]:
runtime.throw({0x836e6b, 0x31})
runtime/panic.go:1101 +0x38 fp=0x284995c sp=0x2849948 pc=0x53c8a8

......

2025/07/17 10:10:14 http: panic serving 127.0.0.1:41334: runtime error: invalid memory address or nil pointer dereference
goroutine 72 [running]:
net/http.(*conn).serve.func1()
net/http/server.go:1947 +0xf0
panic({0x876cd8, 0xa535f8})
runtime/panic.go:792 +0x110&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;We don´t think that these are bugs inside the application (since it works well on linux-fslc - device tree and kernel config are the same).&lt;/P&gt;&lt;P&gt;Is there anything we missed during the switch over from linux-fslc to linux-imx (MMU, DMA, thread-model ...)?&lt;/P&gt;&lt;P&gt;Thanks in advance and best regards,&lt;/P&gt;&lt;P&gt;Tommy&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jul 2025 11:30:29 GMT</pubDate>
    <dc:creator>tommy2402</dc:creator>
    <dc:date>2025-07-17T11:30:29Z</dc:date>
    <item>
      <title>websocketd runtime crash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/websocketd-runtime-crash/m-p/2135760#M239368</link>
      <description>&lt;P&gt;Dear NXP Community,&lt;/P&gt;&lt;P&gt;we use i.MX7 processors in combination with Yocto Project (Release 5.2 (walnascar)).&lt;/P&gt;&lt;P&gt;Last years we used the community kernel [linux-fslc](&lt;A href="https://github.com/Freescale/linux-fslc" target="_blank" rel="noopener"&gt;https://github.com/Freescale/linux-fslc&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Since security requirements getting tighter, we decided to switch to official nxp kernel [linux-imx](&lt;A href="https://github.com/nxp-imx/linux-imx" target="_blank" rel="noopener"&gt;https://github.com/nxp-imx/linux-imx&lt;/A&gt;) (lf-6.12.y).&lt;/P&gt;&lt;P&gt;Problem: Beside others, we use [websocketd](&lt;A href="https://github.com/joewalnes/websocketd" target="_blank" rel="noopener"&gt;https://github.com/joewalnes/websocketd&lt;/A&gt;) with this example [yocto-recipe](&lt;A href="https://layers.openembedded.org/layerindex/recipe/152495/" target="_blank" rel="noopener"&gt;https://layers.openembedded.org/layerindex/recipe/152495/&lt;/A&gt;) and it worked well with freescale linux-fslc (tested on different versions). Websocketd is mainly written in go.&lt;/P&gt;&lt;P&gt;When running linux-imx we observer sporadic crashes like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;runtime: s.allocCount= 991 s.nelems= 992
fatal error: s.allocCount != s.nelems &amp;amp;&amp;amp; freeIndex == s.nelems

goroutine 121 gp=0x29465a8 m=3 mp=0x2839008 [running]:
runtime.throw({0x836e6b, 0x31})
runtime/panic.go:1101 +0x38 fp=0x284995c sp=0x2849948 pc=0x53c8a8

......

2025/07/17 10:10:14 http: panic serving 127.0.0.1:41334: runtime error: invalid memory address or nil pointer dereference
goroutine 72 [running]:
net/http.(*conn).serve.func1()
net/http/server.go:1947 +0xf0
panic({0x876cd8, 0xa535f8})
runtime/panic.go:792 +0x110&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;We don´t think that these are bugs inside the application (since it works well on linux-fslc - device tree and kernel config are the same).&lt;/P&gt;&lt;P&gt;Is there anything we missed during the switch over from linux-fslc to linux-imx (MMU, DMA, thread-model ...)?&lt;/P&gt;&lt;P&gt;Thanks in advance and best regards,&lt;/P&gt;&lt;P&gt;Tommy&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 11:30:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/websocketd-runtime-crash/m-p/2135760#M239368</guid>
      <dc:creator>tommy2402</dc:creator>
      <dc:date>2025-07-17T11:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: websocketd runtime crash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/websocketd-runtime-crash/m-p/2135864#M239371</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you should go with the yocto community sice websocket works with the latest NXP release.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.yoctoproject.org/community/mailing-lists/" target="_blank"&gt;https://www.yoctoproject.org/community/mailing-lists/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 13:53:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/websocketd-runtime-crash/m-p/2135864#M239371</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-07-17T13:53:08Z</dc:date>
    </item>
  </channel>
</rss>

