By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,908 Members | 2,086 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,908 IT Pros & Developers. It's quick & easy.

memory overflow, overlap PyMarshal_ReadObjectFromString

P: n/a
Hi

We are using embedded python in a C++ application

We are seeing memory corruption with a number of OVL, OVF errors in mpatrol
with PyMarshal_ReadObjectFromString on the stack

Each stack trace has the following final 5 functions:

0xFDEA7008 __big_float_times_power+2268
0xFDEA8E34 __decimal_to_binary_fraction+156
0xFDEA9160 __decimal_to_unpacked+460
0xFDEAA5F0 decimal_to_double+572
0xFDEB4FC8 strtod+136

A sample full stack trace is given below.

Any suggestions as to how to fix appreciated.
We are using python 2.2.1
swig 1.1

Regards

MEMCOPY: memcpy (0xFB3EDAF2, 0xFB3EDAEE, 16 bytes, 0x00) [11|-|-|-]
116 0xFDEA7008 __big_float_times_power+2268
117 0xFDEA8E34 __decimal_to_binary_fraction+156
118 0xFDEA9160 __decimal_to_unpacked+460
119 0xFDEAA5F0 decimal_to_double+572
120 0xFDEB4FC8 strtod+136
121 0xFE8FBD30 r_object+772
122 0xFE8FC164 r_object+1848
123 0xFE8FC600 r_object+3028
124 0xFE8FC164 r_object+1848
125 0xFE8FC600 r_object+3028
126 0xFE8FC164 r_object+1848
127 0xFE8FC600 r_object+3028
128 0xFE8FD1C4 PyMarshal_ReadObjectFromString+64
129 0xFE8FCC80 PyMarshal_ReadLastObjectFromFile+276
130 0xFE8EA3D4 load_source_module+388
131 0xFE8EAE44 load_module+148
132 0xFE8EBF68 import_submodule+364
133 0xFE8EB9D4 load_next+236
134 0xFE8EB548 import_module_ex+92
135 0xFE8ED2AC PyImport_ImportModuleEx+44
136 0xFE8ACE90 builtin___import__+92
137 0xFE8FD4D4 PyCFunction_Call+372
138 0xFE8A7C5C PyObject_Call+52
139 0xFE8B4914 PyEval_CallObjectWithKeywords+284
140 0xFE8B1E88 eval_frame+12796
141 0xFE8B3C14 PyEval_EvalCodeEx+2472
142 0xFE8B6688 PyEval_EvalCode+48
143 0xFE8E9EE0 PyImport_ExecCodeModuleEx+332
144 0xFE8EA544 load_source_module+756
145 0xFE8EAE44 load_module+148
146 0xFE8EBF68 import_submodule+364
147 0xFE8EB9D4 load_next+236
148 0xFE8EB548 import_module_ex+92
149 0xFE8ED2AC PyImport_ImportModuleEx+44
150 0xFE8ACE90 builtin___import__+92
151 0xFE8FD4D4 PyCFunction_Call+372
152 0xFE8A7C5C PyObject_Call+52

153 0xFE8B4914 PyEval_CallObjectWithKeywords+284
154 0xFE8B1E88 eval_frame+12796
155 0xFE8B3C14 PyEval_EvalCodeEx+2472
156 0xFE8B6688 PyEval_EvalCode+48
157 0xFE8E9EE0 PyImport_ExecCodeModuleEx+332
158 0xFE8EA544 load_source_module+756
159 0xFE8EAE44 load_module+148
160 0xFE8EBF68 import_submodule+364
161 0xFE8EB9D4 load_next+236
162 0xFE8EB548 import_module_ex+92
163 0xFE8ED2AC PyImport_ImportModuleEx+44
164 0xFE8ACE90 builtin___import__+92
165 0xFE8FD4D4 PyCFunction_Call+372
166 0xFE8A7C5C PyObject_Call+52
167 0xFE8B4914 PyEval_CallObjectWithKeywords+284
168 0xFE8B1E88 eval_frame+12796
169 0xFE8B3C14 PyEval_EvalCodeEx+2472
170 0xFE8B6688 PyEval_EvalCode+48
171 0xFE8E9EE0 PyImport_ExecCodeModuleEx+332
172 0xFE8EA544 load_source_module+756
173 0xFE8EAE44 load_module+148
174 0xFE8EBF68 import_submodule+364
175 0xFE8EB9D4 load_next+236
176 0xFE8EB548 import_module_ex+92
177 0xFE8ED2AC PyImport_ImportModuleEx+44
178 0xFE8ACE90 builtin___import__+92
179 0xFE8FD4D4 PyCFunction_Call+372
180 0xFE8A7C5C PyObject_Call+52
181 0xFE8B4914 PyEval_CallObjectWithKeywords+284
182 0xFE8A6F80 PyObject_CallFunction+280
183 0xFE8EC4CC PyImport_Import+648
184 0xFEA85F24 run__13PythonContextPcPPcT1T1+2692
185 0xFEA84B64 run__13PythonContextRCQ42ie3iel6engine7MessageRQ42 ie3
iel6engine7MessagePcT3+372
186 0xFEA7F574 run__9IelPythonGQ42ie3iel6engine7MessageRQ42ie3iel 6en
gine7MessagePcT3+708
187 0xF9354D5C ???
188 0xFEA9735C sendMsg__Q42ie3iel6engine6RouterRQ42ie3iel6engine7 Mes
sageT1RCQ24_STLt12basic_string3ZwZQ24_STLt11char_t raits1ZwZQ24_STLt9allocator1Zw
N23GQ42ie3iel6engine24TransporterInterface_var+141 32
189 0xFEADA4AC send__21TransporterInterfaceIRCQ42ie3iel6engine15I elU
nicodeChars+12060
190 0xFEAD5DCC send_skel__Q46POA_ie3iel6engine20TransporterInterf ace
R17TAO_ServerRequestPvT2R17CORBA_Environment+328
191 0xFF230834 synchronous_upcall_dispatch__15TAO_ServantBaseR17T AO_
ServerRequestPvT2R17CORBA_Environment+336
192 0xFEAD7158 _dispatch__Q46POA_ie3iel6engine20TransporterInterf ace
R17TAO_ServerRequestPvR17CORBA_Environment+48
193 0xFF23DF10 dispatch__30TAO_Default_Servant_DispatcherRQ218TAO _Ob
ject_Adapter14Servant_UpcallR17TAO_ServerRequestR1 7CORBA_Environment+44

194 0xFF225C08 dispatch__18TAO_Object_AdapterR13TAO_ObjectKeyR17T AO_
ServerRequestG16CORBA_Object_outR17CORBA_Environme nt+316
195 0xFEE89384 dispatch__20TAO_Adapter_RegistryR13TAO_ObjectKeyR1 7TA
O_ServerRequestG16CORBA_Object_outR17CORBA_Environ ment+92
196 0xFEEBABC4 process_request__21TAO_GIOP_Message_BaseP13TAO_Tra nsp
ortR12TAO_InputCDRR13TAO_OutputCDR+304
197 0xFEEBA53C process_request_message__21TAO_GIOP_Message_BaseP1 3TA
O_TransportP15TAO_Queued_Data+428
198 0xFEDA4C38 process_parsed_messages__13TAO_TransportP15TAO_Que ued
_DataR17TAO_Resume_Handle+228
199 0xFEDA3E84 handle_input_i__13TAO_TransportR17TAO_Resume_Handl eP1
4ACE_Time_Valuei+1284
200 0xFEDB9D18 handle_input__27TAO_IIOP_Connection_Handleri+336
201 0xFE1E6E84 dispatch_socket_event__14ACE_TP_ReactorR20ACE_EH_D isp
atch_Info+132
202 0xFE1E6240 handle_socket_events__14ACE_TP_ReactorRiR18ACE_TP_ Tok
en_Guard+176
203 0xFE1E6D10 dispatch_i__14ACE_TP_ReactorP14ACE_Time_ValueR18AC E_T
P_Token_Guard+160
204 0xFE1E5A20 handle_events__14ACE_TP_ReactorP14ACE_Time_Value+5 72
205 0xFE265854 handle_events__11ACE_ReactorP14ACE_Time_Value+48
206 0xFEE50D5C run__12TAO_ORB_CoreP14ACE_Time_ValueiR17CORBA_Envi ron
ment+504
207 0xFEDFA4E4 run__9CORBA_ORBP14ACE_Time_ValueR17CORBA_Environme nt+
36
208 0xFEDFA49C run__9CORBA_ORBR17CORBA_Environment+20
209 0xFEAE9F60 svc__10ThreadPool+408
210 0xFE21A220 svc_run__13ACE_Task_BasePv+224
211 0xFE1D7A74 invoke_i__18ACE_Thread_Adapter+100
212 0xFE1D79D0 invoke__18ACE_Thread_Adapter+108
213 0xFE1A5F98 ace_thread_adapter+24
214 0xFEBE57BC _lwp_start+8
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.