atabac / python-on-a-chip

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

Fix memory corruption on 64-bit desktop #196

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make ipm
2. ipm> 2+2
Connection write error, type Ctrl+D to quit.
Traceback (most recent call first):
  File "main.py", line 18, in main
TypeError detected by frame.c:46

Original issue reported on code.google.com by dwhall...@gmail.com on 19 Mar 2011 at 2:05

GoogleCodeExporter commented 9 years ago
This issue might apply to 32-bit desktop as well.

Original comment by dwhall...@gmail.com on 19 Mar 2011 at 11:26

GoogleCodeExporter commented 9 years ago
- Created PM_PLAT_POINTER_SIZE to increase alignment to 8 for 64-bit platforms.
- Reordered the fields in the Seglist_t struct to reduce internal 
fragmentation.  Made corresponding change in pmHeapDump.py
- Set the co_codeaddr field to C_NULL in codeobj_new() to prevent following a 
stale pointer.
- Round size up to nearest 8 bytes in heap for 64-bit platforms.
- Added a temporary root in IMPORT_NAME bytecode to prevent allowing the module 
from being collected prematurely.

Original comment by dwhall...@gmail.com on 8 Apr 2011 at 2:19

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

Original comment by dwhall...@gmail.com on 8 Apr 2011 at 2:21

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 46b7a9e87643.

Original comment by dwhall...@gmail.com on 8 Apr 2011 at 3:24