Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Mar 2003 17:31:46 +0100
From:      Koop Mast <kwm@prisma.quccc.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: Mod_php4 install problem
Message-ID:  <20030319163146.GA32935@prisma.quccc.org>
In-Reply-To: <1048091210.585.81.camel@headcrash>
References:  <1048091210.585.81.camel@headcrash>

next in thread | previous in thread | raw e-mail | index | archive | help

--mYCpIKhGyMATD0i+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

> From: Jens Rehsack <rehsack@liwing.de>
> To: Dominic Bishop <dom@bishnet.net>
> Cc: freebsd-ports@freebsd.org
> Subject: Re: Mod_php4 install problem
> Date: 19 Mar 2003 10:21:23 +0100
> 
> Dominic Bishop wrote:
> > I am currently trying to install mod_php4-4.3.1 on a system running
> > FreeBSD 5.0-RELEASE-p4 with apache-2.0.44.
> > 
> > The port builds without any problems but on attempting a make install it
> > fails with the following error:
> > 
> > Installing shared extensions:
> > /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
> > Installing PEAR environment:      /usr/local/lib/php/
> > Segmentation fault (core dumped)
> > *** Error code 139
> > 
> > Stop in /u2/usr/ports/www/mod_php4/work/php-4.3.1.
> > *** Error code 1
> > 
> > 
> > Is there any known fix/workaround to this problem?
> > 
> 
> This is very new to me (cause I have many php installations running). 
> Can you please get a backtrace from the core using gdb and send this to 
> the list?
> 
> regards,
> Jens

Me too, I ran into this yesterday. Error and gdb trace attached.
This is a sparc64 machine but my i386 machines build mod_php4 without
any problem

-Koop

--mYCpIKhGyMATD0i+
Content-Type: text/plain; charset=unknown-8bit
Content-Disposition: attachment; filename=mod_php4
Content-Transfer-Encoding: 8bit

===>  Installing for mod_php4-4.3.1
===>   mod_php4-4.3.1 depends on file: /usr/local/sbin/apxs - found
===>   mod_php4-4.3.1 depends on shared library: mysqlclient.10 - found
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP SAPI module
[activating module `php4' in /usr/local/etc/apache/httpd.conf]
cp libs/libphp4.so /usr/local/libexec/apache/libphp4.so
chmod 755 /usr/local/libexec/apache/libphp4.so
cp /usr/local/etc/apache/httpd.conf /usr/local/etc/apache/httpd.conf.bak
cp /usr/local/etc/apache/httpd.conf.new /usr/local/etc/apache/httpd.conf
rm /usr/local/etc/apache/httpd.conf.new
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment:      /usr/local/lib/php/
Segmentation fault (core dumped)
*** Error code 139
 
Stop in /usr/ports/www/mod_php4/work/php-4.3.1.
*** Error code 1
 
Stop in /usr/ports/www/mod_php4/work/php-4.3.1.
*** Error code 1
 
Stop in /usr/ports/www/mod_php4.
*** Error code 1
 
Stop in /usr/ports/www/mod_php4.
root@sparkel:/usr/ports/www/mod_php4# cd work/php-4.3.1/
root@sparkel:/usr/ports/www/mod_php4/work/php-4.3.1# gdb sapi/cli/php php.core
GNU gdb 5.3 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc64-portbld-freebsd5.0"...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/mysql/libmysqlclient.so.10...done.
Loaded symbols for /usr/local/lib/mysql/libmysqlclient.so.10
Reading symbols from /usr/lib/libz.so.2...done.
Loaded symbols for /usr/lib/libz.so.2
Reading symbols from /usr/lib/libcrypt.so.2...done.
Loaded symbols for /usr/lib/libcrypt.so.2
Reading symbols from /usr/lib/libm.so.2...done.
Loaded symbols for /usr/lib/libm.so.2
Reading symbols from /usr/lib/libc.so.5...done.
Loaded symbols for /usr/lib/libc.so.5
Reading symbols from /usr/libexec/ld-elf.so.1...done.
Loaded symbols for /usr/libexec/ld-elf.so.1
#0  0x000000000017b510 in php_strspn (
    s1=0x675218 "This class provides handling of tar files in PHP.\nIt supports creating, listing, extract
ing and adding to tar files.\nGzip support is available if PHP has the zlib extension built-in or\nloaded.
\n", s2=0x6ac4d8 " \t", s1_end=0xc100675218 <Address 0xc100675218 out of bounds>,
    s2_end=0x2006ac599 <Address 0x2006ac599 out of bounds>)
    at /usr/ports/www/mod_php4/work/php-4.3.1/ext/standard/string.c:1306
1306                            goto cont;
(gdb) where
#0  0x000000000017b510 in php_strspn (
    s1=0x675218 "This class provides handling of tar files in PHP.\nIt supports creating, listing, extract
ing and adding to tar files.\nGzip support is available if PHP has the zlib extension built-in or\nloaded.
\n", s2=0x6ac4d8 " \t", s1_end=0xc100675218 <Address 0xc100675218 out of bounds>,
    s2_end=0x2006ac599 <Address 0x2006ac599 out of bounds>)
    at /usr/ports/www/mod_php4/work/php-4.3.1/ext/standard/string.c:1306
#1  0x00000000001787ac in php_spn_common_handler (ht=2, return_value=0x6014d8, this_ptr=0x0,
    return_value_used=1, behavior=0) at /usr/ports/www/mod_php4/work/php-4.3.1/ext/standard/string.c:244
#2  0x000000000017881c in zif_strspn (ht=2, return_value=0x6014d8, this_ptr=0x0, return_value_used=1)
    at /usr/ports/www/mod_php4/work/php-4.3.1/ext/standard/string.c:258
#3  0x00000000002011b4 in execute (op_array=0x5fe418)
    at /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_execute.c:1596
#4  0x00000000002013d4 in execute (op_array=0x5fe818)
    at /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_execute.c:1640
#5  0x00000000001e92ac in call_user_function_ex (function_table=0x0, object_pp=0x1ed540,
    function_name=0x1ef040, retval_ptr_ptr=0x7fdffff5d38, param_count=6286360, params=0x7fdffff8838,
    no_separation=1, symbol_table=0x0)
    at /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_execute_API.c:557
#6  0x00000000001e8c30 in call_user_function (function_table=0x358000, object_pp=0x6b8f88,
    function_name=0x601bd8, retval_ptr=0x601858, param_count=2, params=0x7fdffff5ee0)
    at /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_execute_API.c:399
#7  0x000000000019d3f8 in xml_call_handler (parser=0x6b8f18, handler=0x601bd8, argc=2,
    argv=0x7fdffff5ee0) at /usr/ports/www/mod_php4/work/php-4.3.1/ext/xml/xml.c:377
#8  0x000000000019dec4 in _xml_endElementHandler (userData=0x6b8f18, name=0x600a58 "description")
    at /usr/ports/www/mod_php4/work/php-4.3.1/ext/xml/xml.c:730
#9  0x00000000001a2660 in doContent (parser=0x6aa800, startTagLevel=0, enc=0x335ad8,
    s=0x6ab987 "</description>\n  <license>PHP License</license>\n  <maintainers>\n    <maintainer>\n
 <user>vblavet</user>\n      <role>lead</role>\n      <name>Vincent Blavet</name>\n      <email>vincent@bl
avet.net</e"..., end=0x6abeb7 'Ð' <repeats 200 times>..., nextPtr=0x0)
    at /usr/ports/www/mod_php4/work/php-4.3.1/ext/xml/expat/xmlparse.c:1739
#10 0x00000000001a1c40 in contentProcessor (parser=0x6aa800, start=0x6a7200 "",
---Type <return> to continue, or q <return> to quit---
    end=0x6abeb7 'Ð' <repeats 200 times>..., endPtr=0x0)
    at /usr/ports/www/mod_php4/work/php-4.3.1/ext/xml/expat/xmlparse.c:1349
#11 0x00000000001a3d80 in doProlog (parser=0x6aa800, enc=0x335ad8,
    s=0x6ab855 "<package version=\"1.0\">\n  <name>Archive_Tar</name>\n  <summary>Tar file management clas
s</summary>\n  <description>This class provides handling of tar files in PHP.\nIt supports creating, listi
ng, extrac"..., end=0x6abeb7 'Ð' <repeats 200 times>..., tok=29,
    next=0x6ab855 "<package version=\"1.0\">\n  <name>Archive_Tar</name>\n  <summary>Tar file management c
lass</summary>\n  <description>This class provides handling of tar files in PHP.\nIt supports creating, li
sting, extrac"..., nextPtr=0x0) at /usr/ports/www/mod_php4/work/php-4.3.1/ext/xml/expat/xmlparse.c:2687
#12 0x00000000001a3a5c in prologProcessor (parser=0x6aa800,
    s=0x6ab800 "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n<!DOCTYPE package SYSTEM \"package.dtd\"
>\n<package version=\"1.0\">\n  <name>Archive_Tar</name>\n  <summary>Tar file management class</summary>\n
  <description>Th"..., end=0x6abeb7 'Ð' <repeats 200 times>..., nextPtr=0x0)
    at /usr/ports/www/mod_php4/work/php-4.3.1/ext/xml/expat/xmlparse.c:2523
#13 0x00000000001a3a08 in prologInitProcessor (parser=0x6aa800,
    s=0x6ab800 "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n<!DOCTYPE package SYSTEM \"package.dtd\"
>\n<package version=\"1.0\">\n  <name>Archive_Tar</name>\n  <summary>Tar file management class</summary>\n
  <description>Th"..., end=0x6abeb7 'Ð' <repeats 200 times>..., nextPtr=0x0)
    at /usr/ports/www/mod_php4/work/php-4.3.1/ext/xml/expat/xmlparse.c:2512
#14 0x00000000001a174c in php_XML_ParseBuffer (parser=0x6aa800, len=1719, isFinal=1)
    at /usr/ports/www/mod_php4/work/php-4.3.1/ext/xml/expat/xmlparse.c:1150
#15 0x00000000001a16dc in php_XML_Parse (parser=0x6aa800,
    s=0x6aa018 "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n<!DOCTYPE package SYSTEM \"package.dtd\"
>\n<package version=\"1.0\">\n  <name>Archive_Tar</name>\n  <summary>Tar file management class</summary>\n
  <description>Th"..., len=1719, isFinal=1)
    at /usr/ports/www/mod_php4/work/php-4.3.1/ext/xml/expat/xmlparse.c:1140
#16 0x000000000019f6a4 in zif_xml_parse (ht=3, return_value=0x6017d8, this_ptr=0x0, return_value_used=1)
    at /usr/ports/www/mod_php4/work/php-4.3.1/ext/xml/xml.c:1340
#17 0x00000000002011b4 in execute (op_array=0x5fec18)
    at /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_execute.c:1596
#18 0x00000000002013d4 in execute (op_array=0x5feb18)
---Type <return> to continue, or q <return> to quit---
    at /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_execute.c:1640
#19 0x00000000002013d4 in execute (op_array=0x5fed18)
    at /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_execute.c:1640
#20 0x00000000002013d4 in execute (op_array=0x3c0a18)
    at /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend_execute.c:1640
#21 0x00000000001f237c in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /usr/ports/www/mod_php4/work/php-4.3.1/Zend/zend.c:864
#22 0x00000000001c4140 in php_execute_script (primary_file=0x7fdfffff560)
    at /usr/ports/www/mod_php4/work/php-4.3.1/main/main.c:1573
#23 0x0000000000206adc in main (argc=7, argv=0x7fdfffff728)
    at /usr/ports/www/mod_php4/work/php-4.3.1/sapi/cli/php_cli.c:746
#24 0x000000000011ee04 in _start ()
(gdb)

--mYCpIKhGyMATD0i+--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030319163146.GA32935>