My favorites | Sign in
Project Home Downloads Wiki Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 411: String Library Memory Test Assignment Failure
2 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  dmel...@gmail.com


Sign in to add a comment
 
Project Member Reported by rick.rickanderson, Nov 22, 2010
String Library Memory Test Assignment Failure

What steps will reproduce the problem?

The two attached tests show that there is a memory leak or memory corruption with the String Library.

What is the expected output? What do you see instead?
The idea is that you have an original string initialized to longest value in the String Library examples. Assign new values to the string. Then assign the original string value back. You should see no memory loss after assigning the values to the variables.

However, the attached two tests fail.

 Save the the Sketch make sure ArduinoTestStuite is in the libraries folder. Then upload the sketch to the Arduino connect to it's serial port and the test results will be reported to the console.



ATS_StringAssignmentTest.pde
1.3 KB   View   Download
ATS_StringMemoryTestPassByReference.pde
1.4 KB   View   Download
Jun 11, 2011
Project Member #1 rick.rickanderson
Updates about how memory is checked, and new tests have been created. A patch is being made to represent the updates.
Jun 11, 2011
Project Member #2 rick.rickanderson
Attached are the patches representing the changes to ArduinoTestSuite and Examples tests. These are created against the current master, 20110611.
issue411-patches.zip
10.9 KB   Download
Jun 13, 2011
Project Member #3 rick.rickanderson
This patch supersedes the patch above  free list is taken into account in ATS_GetFreeMemory(). The patch was created against git format-patch upstream/master where upstream master is Arduino master branch.
issue411-patches-update010203.zip
17.9 KB   Download
Sign in to add a comment

Powered by Google Project Hosting