[PyKDE] QHostInfo crashing

Phil Thompson phil at riverbankcomputing.co.uk
Sun Dec 10 17:56:21 GMT 2006


On Sunday 10 December 2006 5:06 pm, Simon Edwards wrote:
> Hello all,
>
> The QHostInfo.lookupHost() static function is seg faulting on me. Can
> someone run my test program and confirm whether this crashes on later
> versions of PyQt4?
>
> Python: 2.4, 2.5
> Qt: 4.2.0
> Sip: 4.4.5
> PyQt4: 4.0.1
> Running on Kubuntu i386.

It's a bug - fixed in tonight's snapshot.

There might be an underlying Qt bug as well as the problem is that 
QObject::sender() is returning a 0 pointer. It only happens the first time 
the script is run for a particular IP address - so DNS caching is obviously 
having an effect on the Qt behaviour.

Phil




More information about the PyQt mailing list