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). P.S. I'm on Ubuntu 11.10, configure.php works fine: conf@laptop ~/phpdoc-ru $ LC_ALL=C aptitude show libxml2-dev | grep Version Version: 2.7.8.dfsg-4ubuntu0.2 > [yohgaki@dev phpdoc]$ /usr/local/bin/php -v > PHP 5.4.1RC1-dev (cli) (built: Mar 29 2012 16:52:50) (DEBUG) > Copyright (c) 1997-2012 The PHP Group > Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies > > [yohgaki@dev phpdoc]$ rpm -q libxml2 > libxml2-2.7.8-4m.mo7.x86_64 > libxml2-2.7.8-4m.mo7.i686 > > > I've tried 5.4.1RC1-dev with debug enabled and it caused at libxml2. > > (gdb) bt > #0 0x0000003159e82d61 in __strlen_sse2 () from /lib64/libc.so.6 > #1 0x0000003da30f3bbc in xmlDictLookup () from /usr/lib64/libxml2.so.2 > #2 0x0000003da3056d04 in ?? () from /usr/lib64/libxml2.so.2 > #3 0x0000003da304903b in xmlParseReference () from /usr/lib64/libxml2.so.2 > #4 0x0000003da3046bd8 in xmlParseContent () from /usr/lib64/libxml2.so.2 > #5 0x0000003da3046721 in xmlParseElement () from /usr/lib64/libxml2.so.2 > #6 0x0000003da3046bca in xmlParseContent () from /usr/lib64/libxml2.so.2 > #7 0x0000003da3046721 in xmlParseElement () from /usr/lib64/libxml2.so.2 > #8 0x0000003da3046bca in xmlParseContent () from /usr/lib64/libxml2.so.2 > #9 0x0000003da3046721 in xmlParseElement () from /usr/lib64/libxml2.so.2 > #10 0x0000003da3046bca in xmlParseContent () from /usr/lib64/libxml2.so.2 > #11 0x0000003da3046721 in xmlParseElement () from /usr/lib64/libxml2.so.2 > #12 0x0000003da3046bca in xmlParseContent () from /usr/lib64/libxml2.so.2 > #13 0x0000003da3047f87 in xmlParseCtxtExternalEntity () from > /usr/lib64/libxml2.so.2 > #14 0x0000003da30f7f37 in xmlSAX2GetEntity () from /usr/lib64/libxml2.so.2 > #15 0x0000003da303e74e in xmlParseEntityRef () from /usr/lib64/libxml2.so.2 > #16 0x0000003da3048b8f in xmlParseReference () from /usr/lib64/libxml2.so.2 > #17 0x0000003da3046bd8 in xmlParseContent () from /usr/lib64/libxml2.so.2 > #18 0x0000003da3046721 in xmlParseElement () from /usr/lib64/libxml2.so.2 > #19 0x0000003da3046bca in xmlParseContent () from /usr/lib64/libxml2.so.2 > #20 0x0000003da3046721 in xmlParseElement () from /usr/lib64/libxml2.so.2 > #21 0x0000003da304d702 in xmlParseDocument () from /usr/lib64/libxml2.so.2 > #22 0x000000000057ae9c in dom_document_parser (id=0x7ffff7e0ca98, > mode=1, source=0x7ffff7e070c8 > "/home/yohgaki/ext/svn/oss/php.net/phpdoc/doc-base/manual.xml", > source_len=60, options=65538) at > /home/yohgaki/ext/git/oss/php.net/php-5.4/ext/dom/document.c:1639 > #23 0x000000000057b07b in dom_parse_document (ht=2, > return_value=0x7ffff7e06fd8, return_value_ptr=0x0, > this_ptr=0x7ffff7e0ca98, return_value_used=1, mode=1) at > /home/yohgaki/ext/git/oss/php.net/php-5.4/ext/dom/document.c:1686 > > Regards, > > -- > Yasuo Ohgaki > yohg...@ohgaki.net