[lxml-dev] Segfault on OS X

Hi all. The following produces a segfault on OS X but not on Ubuntu:
I did both against the lxml trunk. On OS X it is Python2 .3.5, on Debian, 2.4.x. Is there some special voo-doo I should when closing a parsed document to re-open it? --Paul

Paul Everitt wrote:
This ought to just work. Special voo-doo is not the lxml way, if we can help it. What versions of libxml2 (and libxslt) are you using on the two platforms? I'll do some investigations on Linux with valgrind to see whether I can find any peculiarities going on with this scenario. If not, then we're going to have a debugging challenge on our hands.. Regards, Martijn

Paul Everitt wrote:
Hi all. The following produces a segfault on OS X but not on Ubuntu:
Another question: is the Ubuntu running on the same hardware or is this different hardware? I'm trying to figure out whether it's the powerpc that's somehow exposing a bug in the code, or whether there's something else going on, on the library level. If the ubuntu is indeed installed on PowerPC, then it's more likely it's a library issue somewhere. Regards, Martijn

Paul Everitt wrote:
This ought to just work. Special voo-doo is not the lxml way, if we can help it. What versions of libxml2 (and libxslt) are you using on the two platforms? I'll do some investigations on Linux with valgrind to see whether I can find any peculiarities going on with this scenario. If not, then we're going to have a debugging challenge on our hands.. Regards, Martijn

Paul Everitt wrote:
Hi all. The following produces a segfault on OS X but not on Ubuntu:
Another question: is the Ubuntu running on the same hardware or is this different hardware? I'm trying to figure out whether it's the powerpc that's somehow exposing a bug in the code, or whether there's something else going on, on the library level. If the ubuntu is indeed installed on PowerPC, then it's more likely it's a library issue somewhere. Regards, Martijn
participants (3)
-
Martijn Faassen
-
Paul Everitt
-
Philipp von Weitershausen