Skip to content
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

Group IO causes crashes when run #49

Open
supuflounder opened this issue Aug 2, 2018 · 0 comments
Open

Group IO causes crashes when run #49

supuflounder opened this issue Aug 2, 2018 · 0 comments

Comments

@supuflounder
Copy link

supuflounder commented Aug 2, 2018

  • Arduino board: Feather HUZZAH32

  • Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.5

  • List the steps to reproduce the problem below (if possible attach a sketch or
    copy the sketch code in too):

Build Adafruit_11_group_pub and watch it crash and burn when executed (not to mention the huge number of warnings caused by unused local variables, etc. and syntactic and semantic nonsense producing fatal build errors in a couple places)

Note: I thought it might be caused by an uninitialized AdafruitIO::_groupCallback member, which is not set to a meaningful value in the method for AdafruitIO_Group::_init, but when I set it to NULL in the _init, the error did not go away.

[update a couple hours later]

For some reason, the libraries are found in a directory arduino_283704/libraries instead of arduino/libraries. Silly me for assuming the libraries were in the place the documentation claimed they would be.

I set _groupCallback to NULL in _init in the correct source, and it now runs! Apparently the previous code depended on the (unknown) state of the allocation, which, by the greatest of luck, just happened to be 0. When the runtime was changed to "'erase" all of the allocated block to 0xFEFEFEFE, the source code was not prepared for a change to the (very carefully) unspecified behavior of the allocator, and now failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant