websocketd runtime crash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

websocketd runtime crash

447 次查看
tommy2402
Contributor I

Dear NXP Community,

we use i.MX7 processors in combination with Yocto Project (Release 5.2 (walnascar)).

Last years we used the community kernel [linux-fslc](https://github.com/Freescale/linux-fslc).

Since security requirements getting tighter, we decided to switch to official nxp kernel [linux-imx](https://github.com/nxp-imx/linux-imx) (lf-6.12.y).

Problem: Beside others, we use [websocketd](https://github.com/joewalnes/websocketd) with this example [yocto-recipe](https://layers.openembedded.org/layerindex/recipe/152495/) and it worked well with freescale linux-fslc (tested on different versions). Websocketd is mainly written in go.

When running linux-imx we observer sporadic crashes like:

runtime: s.allocCount= 991 s.nelems= 992
fatal error: s.allocCount != s.nelems && 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


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).

Is there anything we missed during the switch over from linux-fslc to linux-imx (MMU, DMA, thread-model ...)?

Thanks in advance and best regards,

Tommy

标签 (4)
标记 (2)
0 项奖励
回复
1 回复

424 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello, 

I think you should go with the yocto community sice websocket works with the latest NXP release.

https://www.yoctoproject.org/community/mailing-lists/

 

Regards

 

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2135760%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ewebsocketd%20%E8%BF%90%E8%A1%8C%E6%97%B6%E5%B4%A9%E6%BA%83%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2135760%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BA%B2%E7%88%B1%E7%9A%84%E6%81%A9%E6%99%BA%E6%B5%A6%E7%A4%BE%E5%8C%BA%3C%2FP%3E%3CP%3E%E6%88%91%E4%BB%AC%E5%B0%86%20i.MX7%20%E5%A4%84%E7%90%86%E5%99%A8%E4%B8%8E%20Yocto%20Project%EF%BC%88%E7%89%88%E6%9C%AC%205.2%20(walnascar)%EF%BC%89%E7%BB%93%E5%90%88%E4%BD%BF%E7%94%A8%E3%80%82%3C%2FP%3E%3CP%3E%E5%8E%BB%E5%B9%B4%EF%BC%8C%E6%88%91%E4%BB%AC%E4%BD%BF%E7%94%A8%E4%BA%86%E7%A4%BE%E5%8C%BA%E5%86%85%E6%A0%B8%20%5Blinux-fslc%5D%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FFreescale%2Flinux-fslc%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E(https%3A%2F%2Fgithub.com%2FFreescale%2Flinux-fslc)%3C%2FA%3E%E3%80%82%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%E7%94%B1%E4%BA%8E%E7%BD%91%E7%BB%9C%E5%AE%89%E5%85%A8%E8%A6%81%E6%B1%82%E8%B6%8A%E6%9D%A5%E8%B6%8A%E4%B8%A5%E6%A0%BC%EF%BC%8C%E6%88%91%E4%BB%AC%E5%86%B3%E5%AE%9A%E6%94%B9%E7%94%A8%E6%81%A9%E6%99%BA%E6%B5%A6%E5%AE%98%E6%96%B9%E5%86%85%E6%A0%B8%20%5Blinux-imx%5D%20(https%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx)%3C%2FA%3E(LF-6.12.Y).%3C%2FP%3E%3CP%3E%E9%97%AE%E9%A2%98%EF%BC%9A%E9%99%A4%E5%85%B6%E4%BB%96%E5%A4%96%EF%BC%8C%E6%88%91%E4%BB%AC%E5%9C%A8%E8%BF%99%E4%B8%AA%E4%BE%8B%E5%AD%90%E4%B8%AD%E4%BD%BF%E7%94%A8%20%5Bwebsocketd%5D%20(%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fjoewalnes%2Fwebsocketd%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fjoewalnes%2Fwebsocketd%3C%2FA%3E)%20%5Byocto%20%E9%85%8D%E6%96%B9%5D%20(%3CA%20href%3D%22https%3A%2F%2Flayers.openembedded.org%2Flayerindex%2Frecipe%2F152495%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Flayers.openembedded.org%2Flayerindex%2Frecipe%2F152495%2F%3C%2FA%3E)%EF%BC%8C%E5%AE%83%E5%9C%A8%E9%A3%9E%E6%80%9D%E5%8D%A1%E5%B0%94%20linux-fslc%EF%BC%88%E5%9C%A8%E4%B8%8D%E5%90%8C%E7%89%88%E6%9C%AC%E4%B8%8A%E8%BF%9B%E8%A1%8C%E4%BA%86%E6%B5%8B%E8%AF%95%EF%BC%89%E4%B8%8A%E8%BF%90%E8%A1%8C%E8%89%AF%E5%A5%BD%E3%80%82Websocketd%20%E4%B8%BB%E8%A6%81%E7%94%A8%20go%20%E8%AF%AD%E8%A8%80%E7%BC%96%E5%86%99%E3%80%82%3C%2FP%3E%3CP%3E%E5%9C%A8%E8%BF%90%E8%A1%8C%20linux-imx%20%E6%97%B6%EF%BC%8C%E6%88%91%E4%BB%AC%E8%A7%82%E5%AF%9F%E5%88%B0%E9%9B%B6%E6%98%9F%E7%9A%84%E5%B4%A9%E6%BA%83%E7%8E%B0%E8%B1%A1%EF%BC%8C%E5%A6%82%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%20translate%3D%22no%22%3Eruntime%3A%20s.allocCount%3D%20991%20s.nelems%3D%20992%0Afatal%20error%3A%20s.allocCount%20!%3D%20s.nelems%20%26amp%3B%26amp%3B%20freeIndex%20%3D%3D%20s.nelems%0A%0Agoroutine%20121%20gp%3D0x29465a8%20m%3D3%20mp%3D0x2839008%20%5Brunning%5D%3A%0Aruntime.throw(%7B0x836e6b%2C%200x31%7D)%0Aruntime%2Fpanic.go%3A1101%20%2B0x38%20fp%3D0x284995c%20sp%3D0x2849948%20pc%3D0x53c8a8%0A%0A......%0A%0A2025%2F07%2F17%2010%3A10%3A14%20http%3A%20panic%20serving%20127.0.0.1%3A41334%3A%20runtime%20error%3A%20invalid%20memory%20address%20or%20nil%20pointer%20dereference%0Agoroutine%2072%20%5Brunning%5D%3A%0Anet%2Fhttp.(*conn).serve.func1()%0Anet%2Fhttp%2Fserver.go%3A1947%20%2B0xf0%0Apanic(%7B0x876cd8%2C%200xa535f8%7D)%0Aruntime%2Fpanic.go%3A792%20%2B0x110%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3E%E6%88%91%E4%BB%AC%E4%B8%8D%E8%AE%A4%E4%B8%BA%E8%BF%99%E4%BA%9B%E6%98%AF%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E5%86%85%E9%83%A8%E7%9A%84%E9%94%99%E8%AF%AF%EF%BC%88%E5%9B%A0%E4%B8%BA%E5%AE%83%E5%9C%A8linux-fslc%E4%B8%8A%E8%BF%90%E8%A1%8C%E8%89%AF%E5%A5%BD-%E8%AE%BE%E5%A4%87%E6%A0%91%E5%92%8C%E5%86%85%E6%A0%B8%E9%85%8D%E7%BD%AE%E6%98%AF%E7%9B%B8%E5%90%8C%E7%9A%84%EF%BC%89%E3%80%82%3C%2FP%3E%3CP%3E%E5%9C%A8%E4%BB%8E%20linux-fslc%20%E5%88%B0%20linux-imx%20%E7%9A%84%E8%BD%AC%E6%8D%A2%E8%BF%87%E7%A8%8B%E4%B8%AD%EF%BC%8C%E6%88%91%E4%BB%AC%E6%98%AF%E5%90%A6%E9%81%97%E6%BC%8F%E4%BA%86%E4%BB%80%E4%B9%88%EF%BC%88MMU%E3%80%81DMA%E3%80%81%E7%BA%BF%E7%A8%8B%E6%A8%A1%E5%9E%8B......%EF%BC%89%EF%BC%9F%3C%2FP%3E%3CP%3E%E6%8F%90%E5%89%8D%E6%84%9F%E8%B0%A2%E4%BD%A0%E7%9A%84%E5%B8%AE%E5%8A%A9%EF%BC%8C%E9%A1%BA%E7%A5%9D%E5%95%86%E7%A5%BA%EF%BC%81%3C%2FP%3E%3CP%3E%E6%B1%A4%E7%B1%B3%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2135760%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX7%20%E5%8F%8C%E6%A0%B8%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ei.MX7%20%E5%8D%95%E6%A0%B8%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELinux%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYocto%20Project%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2135864%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20websocketd%20runtime%20crash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2135864%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%20%3C%2FP%3E%0A%3CP%3E%E6%88%91%E8%AE%A4%E4%B8%BA%E4%BD%A0%E5%BA%94%E8%AF%A5%E5%8A%A0%E5%85%A5yocto%E7%A4%BE%E5%8C%BA%EF%BC%8C%E5%9B%A0%E4%B8%BAwebsocket%E9%80%82%E7%94%A8%E4%BA%8E%E6%81%A9%E6%99%BA%E6%B5%A6%E7%9A%84%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.yoctoproject.org%2Fcommunity%2Fmailing-lists%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.yoctoproject.org%2Fcommunity%2Fmailing-lists%2F%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E6%AD%A4%E8%87%B4%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E