BigEd / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
1 stars 3 forks source link

Fix GC error where parameter type is lost #174

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Insert contents of attached file into src/platform/desktop/main.py:19
2.  Run ipm like so:
ipm> dir(__bi)
ipm> i = 0
ipm> while 1:
....  gc_test(i)
....  i += 1
.... 
0 [2]
1 [3]
...
71 [73]
72 [74]
-- type check -- [actual type: 0]
Traceback (most recent call first):
  File "main.py", line 50, in gc_test
  File "<ipm>", line 2, in <ipm>
  File "../lib/ipm.py", line 99, in ipm
  File "main.py", line 53, in main
TypeError detected by pmstdlib_nat.c:51

What is the expected output? What do you see instead?
Expect to see numbers forever.  Instead, see TypeError (above).

Please use labels and text to provide additional information.

Original issue reported on code.google.com by dwhall...@gmail.com on 4 Dec 2010 at 5:30

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was reported by Michael (xinx) on 2010/12/03 via direct email.

Original comment by dwhall...@gmail.com on 4 Dec 2010 at 6:04

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 77728db905.

Original comment by dwhall...@gmail.com on 4 Dec 2010 at 6:37

GoogleCodeExporter commented 9 years ago
r77728db905d7
Updated GC to mark one more item on the argument stack.
Added system test t374.

Original comment by dwhall...@gmail.com on 4 Dec 2010 at 6:42