strange bug with python24+darwin_8, py-wxpython and xml parsing

Derek Harland derek at chocolate-fish.com
Mon Aug 6 15:50:39 PDT 2007


> Date: Mon, 06 Aug 2007 22:36:25 +0200
> From: Mark Asbach <asbach at ient.rwth-aachen.de>
> when using py-xml together with py-wxpython, I get a reproductible
> bus error whenever I try to use sax or minidom (both relying on
> expat). Invoking the parsers crashes the application with a bus
> error. The workaround I found is to import xml.parsers.pyexpat before
> importing wx - but this is a workaround, not a bug fix.
>
<backtrace clipped>

> Can someone comment on this? What could I do to narrow the bug?

Hi Mark,

* This problem may be caused by wxPython being built/linking against  
older versions of libexpat than pyexpat is.
* A solution may be to do a clean build and install of both wxPython  
and pyexpat.  (libxml has been recently upgraded in version from  
2.6.28_0->2.6.28_1, perhaps causing your incompatible builds?)
* This bug is documented here:
	http://sourceforge.net/tracker/index.php? 
func=detail&aid=1295808&group_id=5470&atid=105470
	http://sourceforge.net/tracker/index.php? 
func=detail&aid=1075984&group_id=5470&atid=105470
* It notes that the problem is caused by version mismatches.  A  
solution that avoids the problem has been applied in 2.5, but not in 2,4
* Here are a couple of other references to the problem (without  
solutions)

	http://mail.python.org/pipermail/xml-sig/2005-March/011026.html
	http://archives.devshed.com/forums/development-94/sax-make-parser- 
segfaults-1610644.html

des.




More information about the macports-users mailing list