-
Notifications
You must be signed in to change notification settings - Fork 288
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
sx1302_hal's packet forwarder facing Segmentation Fault with Raspberry Pi (OpenWRT OS) + Semtech LoRa Corecell interface board via USB interface #115
Comments
I'm getting a Segmentation fault that looks the same (same place in the log files). I'm trying to install on Void Linux (musl). libpthread.a (and presumably librt.a) is supposedly supposed to be empty, as it is built into musl (https://forum.openwrt.org/t/how-to-get-libpthread/116587). I'm going to try again with the non-musl version of Void... Edit: I can confirm the issue is resolved when using glibc instead of musl. |
My fix for musl was move uint8_t buff_up outside the thread function in global space. |
I got the same segmentation fault issue with musl, and it seems the issue was fixed after moving "uint8_t buff_up" outside the thread function in global space. Could you share more detail about the root cause? |
Hi @cb-xiong, the reason is that the thread function's ( |
Thank you @mukeshbharath for the comment, it helps a lot. |
Increase the thread stack size like this (rough code, needs cleanup):
|
I'm using a Raspberry Pi 3B+ board with OpenWRT OS (v23.05.2) and trying to use a Semtech SX1302 LoRa Corecell interface board via USB interface to use them as a LoRa Gateway setup (RPi + Semtech SX1302).
While using the sx1302_hal's Lora packet forwarder, it always ends up in segmentation fault when reaching the uplink thread
thread_up()
My Observations:
buff_up
of thethread_up ()
opkg install
as far as I have noticed. for e.g.,Please share if you have any insights about this. Any help is greatly appreciated!
The text was updated successfully, but these errors were encountered: