On Sun, Apr 1, 2012 at 16:02, Alexey Shein <con...@gmail.com> wrote:
> 1 апреля 2012 г. 5:44 пользователь Yasuo Ohgaki <yohg...@ohgaki.net> написал:
>> Hi,
>>
>> I guess this is due to my system's libxml.
>>
>> If there is anyone has got this working, could you post your
>> system name and libxml2 version.
>>
>> I've setup doc system as the site described and I noticed segfault.
>> I think I didn't have this when I setup doc last year, but I'm not sure.
>>
>> Loading and parsing manual.xml... ./build.
>> --
>> Yasuo Ohgaki
>> yohg...@ohgaki.net
>>
>> sh: line 8: 14998
>> Segmentation fault      /usr/bin/php doc-base/configure.php
>> --enable-xml-details --with-lang=en --with-php=/usr/bin/php
>> [19:03:13 - Rendering Style       ] Running full build
>> [19:03:13 - Indexing              ] Skipping indexing
>> [19:03:14 - Rendering Style       ] Running full build
>> [19:03:14 - Rendering Format      ] Starting PHP-Chunked-XHTML rendering
>> ^C
>> [yohgaki@dev phpdoc]$ cat -n ./build.sh
>>    1  #!/bin/sh
>>    2
>>    3  # svn co http://svn.php.net/repository/phpdoc/modules/doc-en
>>    4  # pear install doc.php.net/phd
>>    5  # pear install doc.php.net/phd_php
>>    6  # cd doc-en
>>    7
>>    8  /usr/bin/php doc-base/configure.php  --enable-xml-details
>> --with-lang=en --with-php=/usr/bin/php
>>    9  phd --docbook doc-base/.manual.xml --package PHP --format xhtml
>>   10  google-chrome output/php-chunked-xhtml/index.html
>>
>>
>> It's crashing loading XML.
>>
>> 673 $didLoad = 
>> $dom->load(realpath("{$ac['srcdir']}/{$ac["INPUT_FILENAME"]}"),
>> $LIBXML_OPTS);
>>
>>
>> [yohgaki@dev phpdoc]$ /usr/bin/php -v
>> PHP 5.3.8 (cli) (built: Sep  8 2011 04:13:25)
>> Copyright (c) 1997-2011 The PHP Group
>> Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
>
> There was indeed a known segfault issue, like Hannes pointed out, but
> it should be fixed in 5.3.7, so it's strange that you experience it.
> BTW, try running configure.php with 5.4 binary without any options:
>
> $ /usr/local/bin/php doc-base/configure.php
>
> If that give you segfault too, then something is really wrong with
> your libxml version (at least that's what I can think of).


No, what we fixed in 5.3.7 was the "speed" segfault (i.e. removing the
dtd), but the otherone (loading broken entity chunks) is a known issue
in libxml2 and the most likely issue he is facing.

-Hannes

Reply via email to