-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Seg Fault when trying to initialize stringstream #6151
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
Looking at the trace you may be out of luck. Seems like it's trying to do RTTI checks and dynamic casts, which are not supported on the 8266 (RTTI is disabled). @devyte, can you take a look too? |
Why is RTTI disabled? I tried to compile with RTTI enabled but that didn't fix the problem. |
Memory issues and API compatibility w/the binary SDK blobs. RTTI isn't enabled for the precompiled libs, either, so your change didn't have any effect. |
That is what the trace hints at. I've been trying to find some source that confirms/denies the dependence of std::stringstream on rtti, but no luck. |
I guess I can't use stringstreams then. Anyhow, I wanted to compile the SDK my self, to test if the gdb TUI would work, for some reason is disabled in the provided build that one gest with get.py. I tried compiling https://github.com/pfalcon/esp-open-sdk
This also happens with the current master branch of Arduino ESP866. Only works for me when I use the 2.5.2 branch. I wonder how the SDK tools where built for that branch? I would like to rebuild them and test this issue too, what are your thoughts? |
For GDB you need to use the toolchain we supply (basically plain GNU sources). We don't use pfalcon's repo any more and are building from mostly unchanged GNU sources for everything. See esp-quick-toolchain. |
Actually, this was due to exception handlers accessing progmem, something that started failing when we moved SDKs back due to bugs in pre 3.0.0. I just tried the example with PR #6273 , and it runs fine. Try that PR, or wait for it to merge. You need to run tools/get.py to download the new toolchain either way. |
Basic Infos
Platform
Settings in IDE
Problem Description
Trying to instantiate a stringstream yields a segmentation fault. I've been trying to debug it with the GDBStub, but I'm stuck.
MCVE Sketch
Debug Messages
The seg fault:
The back trace:
The text was updated successfully, but these errors were encountered: