-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Usage of __PRETTY_FUNCTION__ cause exception on version 2.5.1+ #6383
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
Comments
This is related to #6368 (comment) and #6384. A fix will come soon. |
Should be fixed, now, in git head. If not, please re-open. |
Hmm So, working with functions that are using standard string pointers (char*, char[]) could crash. |
You make some good points, but on this big they'll be overlooked. Can you open a new one with, so it will show up on the active list, please. |
@earlephilhower "Should be fixed in git head" - did it actually fix the problem? I'm asking because Let me know if I'm wrong else please reopen bug? |
Yeah, I was on my phone so couldn't get a good read on what was being discussed here. There was a release with an updated SDK blob which handled the HW exceptions caused by non-32b reads on progmem, which was when this change was done. It saves 100s of bytes of heap due to the very long names you get in template expansion and some assertions in the code. The pre3.0 SDK, however, busted everything else so it was backed out. Any of the
|
Adjust the ::write implementation in Print and its overridden copy in UART to allow it to silentely accept PROGMEM strings (since there is no write_P macro). Fixes esp8266#6383
@earlephilhower I found a mention about Can we please at least ensure this information and how to treat the change is more prominently present? Thank you. |
The current PR is not going to hit 100% of the cases, true, but we're shooting for as wide coverage as possible with the least code borkage. Unfortunately on an embedded system like this with such a weird address space we have to make tradeoffs like this. Better docs always sounds like a good idea! Would you like to do the doc PR? |
@earlephilhower Will try these days. PROGMEM.rst, git master branch, right? |
Yes. Just fork, |
Adjust the ::write implementation in Print and its overridden copy in UART to allow it to silentely accept PROGMEM strings (since there is no write_P macro). Fixes #6383
Platform
Settings in IDE
Problem Description
Expected output of the sketch (version 2.5.0):
Sketch output on 2.5.1 and 2.5.2:
Sketch
Related PR?
Maybe: #5758
The text was updated successfully, but these errors were encountered: