GNOME Bugzilla – Bug 631189
Server appears to hang when parsing XSLT (let's port to lxml)
Last modified: 2010-10-09 09:27:10 UTC
I don't know when this started happening or why, but with complete consistency edge.tomboy-online.org fails when trying to show note pages. It appears to hang when parsing the XSL file. I couldn't figure this out in 5 minutes, and since we've been wanting to use lxml in Snowy anyway, I went ahead and ported this code to use lxml. Attachment on the way.
Not attaching the patch yet. Further testing on edge shows that there are sporadic errors when extension functions are called. Researching now.
Let me explain this new error. 0) Apply my patch 1) Sync some note that link to other notes 2) In Snowy, try to view a note that links to other notes Result: ~3/4 times, I would get the following server error: "cannot unmarshal code objects in restricted execution mode" This problem is explained here: http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Multiple_Python_Sub_Interpreters It has to do with how lxml calls back extension functions. There is a whole thread about it (where the solution they talk about is modpython-specific): http://codespeak.net/pipermail/lxml-dev/2007-September/002954.html For WSGI, he fix was to add this line in the Apache config file (see first link for details): WSGIApplicationGroup %{GLOBAL} I'd like confirmation from Jeff that this is okay. Otherwise, I'll have to modify our approach to not use any extension functions, which is less than ideal from my point of view.
Created attachment 171587 [details] [review] Patch to port us to lxml
Your patch is a motd for Debian i686 fyi. See my convo in IRC.
Created attachment 171711 [details] [review] Update for 0.3
Review of attachment 171711 [details] [review]: I fail at git bz
Review of attachment 171587 [details] [review]: Works fine for me. Tested-by: Jeff Schroeder <jeffschroeder@computer.org>
Oh, right, we fixed this in 0.4.