[PyQt] 'pyqt@riverbankcomputing.com'

Dr Andrew Perella ajp at eutechnyx.com
Thu Nov 8 23:09:05 GMT 2007


I get exactly the same objmap.c crash as you in an application I have
written using SIP (but not PyQT).
The crash is timing related - depending on when the garbage collector is
called, the sip hashmap still has a reference sometimes to a freed python
wrapper.
I will investigate further.
 
Cheers,
Andrew
 
P.S. I made the same "fix" you did to objmap.c:
 
while (w != NULL)

{

/* We are removing it from the map here. */

sipSetNotInMap(w);

sip_api_common_dtor(w);

 w = w->next;

 

//extra code "fix" here

if (w==0xdbdbdbdb)

{

printf("WARNING: SIP would normally crash - would try to access freed
memory\n");

w=NULL;

}

}

 

This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. No communication sent by e-mail to or from Eutechnyx is intended to give rise to contractual or other legal liability, apart from liability which cannot be excluded under English law. 

This email has been scanned for all known viruses by the Email Protection Agency.


www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20071108/e75b49ad/attachment.html


More information about the PyQt mailing list