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

Long string constants trigger Java StackOverflowError #1401

Closed
PaulStoffregen opened this Issue May 5, 2013 · 6 comments

Comments

@PaulStoffregen
Collaborator

PaulStoffregen commented May 5, 2013

Very long string constants cause a Java exception. Tested on Linux 64 bit.

Here is a sample program which demonstrates the problem.

http://www.pjrc.com/teensy/beta/long_string_bug.ino

Exception in thread "Thread-2807" java.lang.StackOverflowError
at java.util.regex.Pattern$Branch.match(Pattern.java:4131)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4185)
at java.util.regex.Pattern$Loop.match(Pattern.java:4312)
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4244)
at java.util.regex.Pattern$BranchConn.match(Pattern.java:4095)
at java.util.regex.Pattern$CharProperty.match(Pattern.java:3362)
at java.util.regex.Pattern$Branch.match(Pattern.java:4131)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4185)
at java.util.regex.Pattern$Loop.match(Pattern.java:4312)
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4244)
at java.util.regex.Pattern$BranchConn.match(Pattern.java:4095)
[snip...]

@ffissore

This comment has been minimized.

@rrelmy

This comment has been minimized.

rrelmy commented Jun 7, 2013

Same problem exists in version 1.0.5 on Windows 7 64 Bit

@ffissore ffissore added the New label Feb 27, 2014

@cmaglie cmaglie removed the New label Feb 27, 2014

@ffissore ffissore self-assigned this Jan 28, 2015

@ffissore

This comment has been minimized.

Contributor

ffissore commented Jan 28, 2015

Please give a try to the IDEs linked at the bottom of this email on the dev list
https://groups.google.com/a/arduino.cc/forum/#!msg/developers/4X2T3rCxXWM/YNJl6PZuDucJ
We're testing a new preprocessor and it compiles your sketch just fine.

@ffissore

This comment has been minimized.

Contributor

ffissore commented Feb 13, 2015

New preprocessor tracked at #2636. Builds for testing it are available

@aumberg

This comment has been minimized.

aumberg commented Aug 10, 2015

Still problem in hourly build 1.6.6 (Linux x32 and Windows8 x64)

@ffissore

This comment has been minimized.

Contributor

ffissore commented Sep 11, 2015

Fixed by #3779

@ffissore ffissore closed this Sep 11, 2015

@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