[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem of work space for i386ex



Hi :

1, some document tell me alignment of work space is 4 bytes, so I set CPU_HEAP_ALIGNMENT as 32, Is it mean 4 bytes?
It doesn't work better than CPU_HEAP_ALIGNMENT as 32 does(program invoke exception 13 inprocess of  work space initialization  ).
even as 16, 4 also do not better work.
2,  consider CPU_HEAP_ALIGNMENT as 2, the start address of work space is 0xd6800. size big enough.
The record of the work space allocation process just like this:
in Thread_Handler_Initialize
........
the_chain D67B6
the_chain D67C2
the_chain D67CE
the_chain D67DA
the_chain D67E6
the_chain D67F2
in T_H_I, after _C_I_e
the_chain 6138
the_chain 6038
 in T_H_i
maximum= 1
in _Objects_Initialize_information, before _w_a_o_f_e 1
in _Objects_Initialize_information, before _C_I_e
current esp:E734
in Chain_Initialize,next,D67FE
first D66FE
index 1
the_object->name D67EE
the_object->Node.next FFFFFFFFbefore _A_A_oin O_I_i
in _Objects_Initialize_information,after _C_I_e
maximum= 1
in _Objects_Initialize_information, before _w_a_o_f_e 1
in _Objects_Initialize_information, before _C_I_e
current esp:E754
----------------------------------------------------------
Exception 13 caught at PC 4000960 by thread -1912602608
----------------------------------------------------------
Processor execution context at time of the fault was  :
----------------------------------------------------------
 EAX = 10091    EBX = D67C6     ECX = 7F9B5A4   EDX = 2F8
 ESI = FFFFFFFF EDI = 1470B     EBP = 5F70      ESP = 3021
----------------------------------------------------------
Error code pushed by processor itself (if not 0) = 0
----------------------------------------------------------

 ************ FAULTY THREAD WILL BE DELETED **************

the question is why the first memory  location of allocation is below the starting address (0xd6800),
and why fault occur the process of alloction workspace get near the starting address of workspace?

Dan Luo


_____________________________________________
????????--???????????????????? http://www.263.net
???????? ???????? ???????? ???????? ??????????
???????? ???????? ???????? ???????? ????????
???????? ???????? ???????? ???????? ????????