-
Notifications
You must be signed in to change notification settings - Fork 908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.7 crash due to rtpengine module bencode, on aarch64 (raspberry pi) #3444
Comments
Probably unaligned memory access. Github isn't cooperating right now and it won't let me open a PR or branch, but you can apply this patch directly to the sources and see if that fixes it: sipwise/rtpengine@ade8100 |
hi, I see that commit is already included in latest sipwise rtpengine upstream master, from:
|
Yes, I'm saying to apply it to the Kamailio sources (rtpengine module) |
ok, will try |
Make sure the pointers we return from our continuous memory buffer is always 64-bit aligned as it's used not only for strings, but also for structs/objects, and such unaligned memory access is undefined on some archs and flagged as such by ASAN. From sipwise/rtpengine@ade8100 fixes #3444
created the PR with the code mentioned |
@rfuchs @linuxmaniac I confirm this fixes the crash. Thank you. |
is ok to backport this to 5.6 and 5.7? |
Yes, it can be backported. 5.5 is also a maintained branch at this time, so it can go there as well. |
Make sure the pointers we return from our continuous memory buffer is always 64-bit aligned as it's used not only for strings, but also for structs/objects, and such unaligned memory access is undefined on some archs and flagged as such by ASAN. From sipwise/rtpengine@ade8100 fixes #3444 (cherry-picked from commit 43ac6b2)
Make sure the pointers we return from our continuous memory buffer is always 64-bit aligned as it's used not only for strings, but also for structs/objects, and such unaligned memory access is undefined on some archs and flagged as such by ASAN. From sipwise/rtpengine@ade8100 fixes #3444 (cherry-picked from commit 43ac6b2)
Make sure the pointers we return from our continuous memory buffer is always 64-bit aligned as it's used not only for strings, but also for structs/objects, and such unaligned memory access is undefined on some archs and flagged as such by ASAN. From sipwise/rtpengine@ade8100 fixes #3444 (cherry-picked from commit 43ac6b2)
Hi, I've built today the 5.7 debs for kamailio together with latest rtpengine master branch debs (commit 13a7e1d), for raspberry pi and tried to give it a try:
Kamailio crashes on startup, only when rtpengine module is loaded and rtp proxies are queried:
Looks like some bencode issue I'm having but lib bencode version looks ok. So far couldn't figure it out. Note that I also had a kernel bump to 6.1.25-v8+ recently.
Any opinions on this?
Thank you,
Stefan
The text was updated successfully, but these errors were encountered: