Hi all, <br>sometimes i get exception killing apache process. It happens occasionally (acually it happened once on my production site), so I have no more logs up to the moment, I can only suspect that crash happens when I am trying to replace the node:<br>
<br> def replace(self,child,new_child):<br> root = self.getroottree().getroot()<br> index = self.index(child)<br> if root._should_notify():<br> old_child = deepcopy(child)<br> self.insert(index,new_child)<br>
etree.ElementBase.remove(self,child)<br> root._notify(NodeReplaced(old_child,new_child))<br> return self[index]<br> else:<br> self.insert(index,new_child)<br> etree.ElementBase.remove(self,child)<br>
return self[index]<br><br>crash log is below:<br><br>*** glibc detected *** /usr/sbin/apache2: free(): invalid pointer: 0x08cd6eca ***<br>======= Backtrace: =========<br>/lib/tls/i686/cmov/libc.so.6[0xb7e26a85]<br>
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7e2a4f0]<br>/usr/lib/libxml2.so.2(xmlFreeNodeList+0x126)[0xa984d1e6]<br>/usr/lib/libxml2.so.2(xmlFreeNode+0x76)[0xa984d656]<br>/usr/lib/python2.5/site-packages/lxml-2.2alpha1-py2.5-linux-i686.egg/lxml/etree.so[0xa9992bf2]<br>
/usr/lib/python2.5/site-packages/lxml-2.2alpha1-py2.5-linux-i686.egg/lxml/etree.so[0xa99b529f]<br><br clear="all">I will bring in more logs if crash repeats, but I will appreciate any ideas/thoughts/comments so I can quickly eliminate/workaround/prevent the issue from happening again.<br>
<br>-- <br>Regards,<br>Alex<br>