edward0429 / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

String Library Memory Test Assignment Failure #411

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by rick.rickanderson on 22 Nov 2010 at 10:39

Attachments:

GoogleCodeExporter commented 8 years ago
Updates about how memory is checked, and new tests have been created. A patch 
is being made to represent the updates.

Original comment by rick.rickanderson on 11 Jun 2011 at 5:57

GoogleCodeExporter commented 8 years ago
Attached are the patches representing the changes to ArduinoTestSuite and 
Examples tests. These are created against the current master, 20110611.

Original comment by rick.rickanderson on 11 Jun 2011 at 6:33

GoogleCodeExporter commented 8 years ago
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.

Original comment by rick.rickanderson on 13 Jun 2011 at 5:40

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Rick,

the String class has been updated a lot of times in the meantime.
Are these bugs still valid?

Original comment by c.mag...@arduino.cc on 2 Jul 2015 at 9:33