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

Serial.println("'\n'); causes stack overflow #2665

Closed
tjnomad opened this issue Feb 19, 2015 · 4 comments
Closed

Serial.println("'\n'); causes stack overflow #2665

tjnomad opened this issue Feb 19, 2015 · 4 comments
Labels
Component: Preprocessor The Arduino sketch preprocessor converts .ino files into C++ code before compilation
Milestone

Comments

@tjnomad
Copy link

tjnomad commented Feb 19, 2015

this statement: Serial.println("'\n');

causes a stack overflow. Obviously the missing " is not caught before the line ends!

Your welcome ...TJ

TJ Schmidt: entrepreneur, scientist, creator of wonderful stuff!

@ffissore ffissore added the Component: Preprocessor The Arduino sketch preprocessor converts .ino files into C++ code before compilation label Feb 19, 2015
@ffissore ffissore self-assigned this Feb 19, 2015
@ffissore
Copy link
Contributor

It looks like a preprocessor issue. Please give a spin to the version of the IDE linked at #2636 (near the bottom of the conversation)

@Chris--A
Copy link
Contributor

This has been resolved, the code makes it to the compiler and produces an error as expected.

IDE 1.5.7

sketch_may21a.ino: In function 'void setup()':
sketch_may21a.ino:6:3: error: 'Serial' was not declared in this scope
sketch_may21a.ino:7:1: error: expected primary-expression before '}' token
sketch_may21a.ino:7:1: error: expected ';' before '}' token

IDE 1.6.5 (source build)

sketch_may21a.ino:3:3: error: missing terminating " character
sketch_may21a.ino: In function 'void setup()':
sketch_may21a.ino:4:1: error: expected primary-expression before '}' token
sketch_may21a.ino:4:1: error: expected ';' before '}' token
missing terminating " character

@Chris--A
Copy link
Contributor

Does this still cause problems on operating systems other than windows?

@ffissore
Copy link
Contributor

Fixed by #3779

@ffissore ffissore added this to the Release 1.6.6 milestone Sep 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Preprocessor The Arduino sketch preprocessor converts .ino files into C++ code before compilation
Projects
None yet
Development

No branches or pull requests

3 participants