[oe-users] modphp SEGV problem

Harley Privitera JPrivitera at dciengineeringservices.com
Tue Jul 3 15:27:22 UTC 2007


Hi,

apache2-2.2.3-r5
modphp-5.1.6-r2

I'm trying to build an OE image for a device that uses apache2/modphp to
interact with an operator and I've run into a nasty problem trying to
get modphp to work; whenever I start apache2 with -D PHP5 and
subsequently try to access any files (.html, .php) on the OE system I
get the following SEGV in modphp:

root at i686-generic:~$ gdb /usr/sbin/httpd
GNU gdb 6.6
Copyright (C) 2006 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 "i686-linux"...
Using host libthread_db library "/usr/lib/libthread_db.so.1".
(gdb) run -X -D PHP5
Starting program: /usr/sbin/httpd -X -D PHP5
[Thread debugging using libthread_db enabled]
[New Thread -1212020144 (LWP 3428)]
Creating new config (0x81604f8) for (null)
httpd: apr_sockaddr_info_get() failed for i686-generic
httpd: Could not reliably determine the server's fully qualified domain
name, using 127.0.0.1 for ServerName

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1212020144 (LWP 3428)]
zend_hash_internal_pointer_reset_ex (ht=0x6d74682f, pos=0x0)

at /OE/org.openembedded.dev/tmp/work/i686-linux/modphp-5.1.6-r2/php-5.1.6/Zend/zend_hash.c:998
998                     ht->pInternalPointer = ht->pListHead;
(gdb) bt
#0  zend_hash_internal_pointer_reset_ex (ht=0x6d74682f, pos=0x0)

at /OE/org.openembedded.dev/tmp/work/i686-linux/modphp-5.1.6-r2/php-5.1.6/Zend/zend_hash.c:998
#1  0xb7b70a58 in apply_config (dummy=0x6d74682f)

at /OE/org.openembedded.dev/tmp/work/i686-linux/modphp-5.1.6-r2/php-5.1.6/sapi/apache2handler/apache_config.c:167
#2  0xb7b6f9ca in php_handler (r=0x822eb20)

at /OE/org.openembedded.dev/tmp/work/i686-linux/modphp-5.1.6-r2/php-5.1.6/sapi/apache2handler/sapi_apache2.c:490
#3  0x08078b15 in ap_run_handler ()
#4  0x0822eb20 in ?? ()
#5  0x08161268 in ?? ()
#6  0x0822eb20 in ?? ()
#7  0x00000000 in ?? ()

If I enable and subsequently access /server-info like this:

<Location /server-info>
SetHandler server-info
</Location>

all is well; no SEGV, just the expected response from apache. If I start
apache2 without -D PHP5, everything works, but (obviously) .php files
are not interpreted, just shipped out as-is.

I can provide more info if needed; has anyone else run into this
problem?

TIA,
Harley Privitera
DCI Engineering Services
This e-mail message is generated from The Coghlin Companies (Columbia Tech, DCI Engineering and CT Circuits) and may contain information that is CONFIDENTIAL, and may also possibly contain information that is being held as a Trade Secret.  The information is intended to be disclosed solely to the addressee(s).  If you are the intended recipient, any information herein is to be held as CONFIDENTIAL pursuant to any Non-Disclosure Agreement applicable between the parties, or as a Trade Secret as application.  If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this e-mail information is prohibited.  If you have received this e-mail in error, please notify the sender by return e-mail and delete it from your computer system.




More information about the Openembedded-users mailing list