473,320 Members | 2,122 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

memory overflow, overlap PyMarshal_ReadObjectFromString

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
0 1153

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Yvad | last post by:
When I encounter software crash, the software always pop-up something like " The instruction at "0x1000a1eb" referenced memory at "0x000000c0". The memory could not be "read"". Then Visual C++...
11
by: Sushil | last post by:
Hi Gurus I've tried to come up with a small logical example of my problem. The problem is platform specific (MIPS) which I understand should not be discussed here. So here goes my example: ...
1
by: BillyO | last post by:
In the attached code fragment I have a buffer overflow and a memory access violation. When I run the code .Net fails to verify the IL because of the buffer overflow and I get an exception as...
13
by: Mike S | last post by:
I came across the following paragraph in the "Semantics" section for simple assignment in N1124 (C99 draft) and I'm wondering if I'm interpreting it right: 6.5.16.1p3: If the value being...
49
by: vfunc | last post by:
If I have a large array 10,000+ elements then how do I reserve memory for this ? Currently I get a segmentation fault. Dynamic reservation is good, but allowing a chunk for the program is an...
5
by: nithya4u | last post by:
I am working on a c++ module, where large amount of data needs to be written to a stream and str() method is been used to assign the value of this to the char*. This produces the intended result....
0
by: Le Minh | last post by:
I used this class to dynamic memory allocation: using System; using System.Runtime.InteropServices; public unsafe class Memory { // Handle for the process heap. This handle is used in all calls...
171
by: Raman | last post by:
Hi All, Here is a small Code, int main(void) { char *p=(char *) malloc(100); strcpy(p,"Test1234567890"); p=p+10; free(p);
1
by: George2 | last post by:
Hello everyone, Such code segment is used to check whether function call or exception- handling mechanism runs out of memory first (written by Bjarne), void perverted() { try{
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.