[MacPorts] #14063: PHP 5.2.5_1 crashes on XSLTProcessor::importStylesheet

MacPorts trac at macosforge.org
Tue Feb 12 19:03:13 PST 2008


#14063: PHP 5.2.5_1 crashes on XSLTProcessor::importStylesheet
------------------------------------+---------------------------------------
  Reporter:  peter at no-nonsense.org  |       Owner:  ryandesign at macports.org
      Type:  defect                 |      Status:  new                    
  Priority:  Normal                 |   Milestone:  Port Bugs              
 Component:  ports                  |     Version:  1.6.0                  
Resolution:                         |    Keywords:                         
------------------------------------+---------------------------------------
Comment (by dp macports at oxidized.org):

 I suspect that I'm having a related problem. In my case, libxml2 from
 MacPorts defines the xmlURI struct with one more element than the libxml2
 from Mac OS X. For some reason, it uses the xmlCreateURI function from
 /usr/lib/libxml2.dylib instead of the xmlCreateURI function from
 /opt/local/lib/libxml2.dylib. This results in the last element of the
 xmlURI struct not getting initialized to NULL, so that when the struct is
 destroyed, the code attempts to free the wild pointer. Bang, dead.

 Seems like /opt/local/lib/libxml2.dylib (9.0.0) should have a higher
 compatibility version than /usr/lib/libxml2.dylib (9.0.0).

 This doesn't always fail because sometimes the correct version of the
 function is called.

 I downgraded to libxml2 2.6.28 and the problem seems to have gone away.
 Note that this is still newer than the version that Apple ships, so there
 is still a chance of an incompatibility.

 At least in my case, this is arguably a libxml2 bug, not a PHP bug.

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14063#comment:5>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list