Join GitHub today
SEG FAULT when returning from function after read() #46
Hi, sorry to bother again. I'm stucked on this issue/bug, would like to know if it is a known bug or I am doing something wrong.
Hardware: Raspberry B ver1 and Arduino Nano 328, both with NRF24l01+, filtered DC with capacitors.
How to reproduce:
Expected result: the application exit with 0 status.
Actual result: the application exit with segmentation fault.
It looks like, maybe, that
Weird.. and the weirdness continues...
So, I somewhat narrowed this error down to the read_payload() function in the RF24 driver, and managed to work around the error, but I'm still not quite sure as to the cause.
In any case, if you declare
In comparing the code in RF24 between the read_payload() function and say read_register() functions, the only difference is the
I also tried calling
added a commit
Dec 15, 2014
Thank you for submitting this issue, and doing it in such a detailed fashion. After a whole bunch of debugging, and now that I've spotted the issue, I'm surprised I didn't catch it sooner, but hindsight and all...
Please feel free to close the issue if you are able to confirm resolution.