Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 200003

[PHP3] CGI Problem : CORE Dump From: Akira Tetsuo (archiver <email protected>)
Date: 03/01/00

This message was sent from Geocrawler.com by "Akira Tetsuo" <myb0dy <email protected>>
Be sure to reply to that address.

Hi ppl:
I m having problem with CGI version.
Apache Compiled with SuExec+PHP As module
and in the same time I compiled a CGI version

A call to a program testphp.phtml
#!/usr/local/bin/php
<?
print ("Testing");
?>

give me an Internal Error 500 and a core was
dumped
in the same dir of the cgi

Apache Version : pache/1.3.9 (Unix) PHP/4.0b3
(with php 4 b3 compiled as module)
PHP CGI Version: PHP/4.0b4pl1
On : Linux RedHat 6.1

Any idea what should i do next or should i try wih
php3 instead?

and below the GDB result:

[root <email protected> SysT00ls]# gdb /usr/local/bin/php
/home/httpd/htdocs/doubt/cgi
in/core
GNU gdb 4.18
Copyright 1998 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 "i386-redhat-linux"...

warning: core file may not match specified
executable file.
Core was generated by `php test2'.
Program terminated with signal 11, Segmentation
fault.
Reading symbols from /usr/lib/libgdbm.so.2...done.
Reading symbols from /lib/libpam.so.0...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /usr/lib/libgd.so.1...done.
Reading symbols from /lib/libresolv.so.2...done.
Reading symbols from /lib/libm.so.6...done.
ReadingReading symbols from
/lib/libnsl.so.1...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from
/lib/libnss_files.so.2...done.
#0 _mem_block_check (ptr=0x0, silent=1,
    __zend_filename=0x80cd880 "zend_hash.c",
__zend_lineno=535,
    __zend_orig_filename=0x0,
__zend_orig_lineno=0) at zend_alloc.c:483
---Type <return> to continue, or q <return> to
quit---
483 switch (p->magic) {
(gdb) bt
#0 _mem_block_check (ptr=0x0, silent=1,
    __zend_filename=0x80cd880 "zend_hash.c",
__zend_lineno=535,
    __zend_orig_filename=0x0,
__zend_orig_lineno=0) at zend_alloc.c:483
#1 0x8079410 in _efree (ptr=0x0,
__zend_filename=0x80cd880 "zend_hash.c",
    __zend_lineno=535, __zend_orig_filename=0x0,
__zend_orig_lineno=0)
    at zend_alloc.c:170
#2 0x80864f6 in zend_hash_destroy (ht=0x80ff544)
at zend_hash.c:535
#3 0x805a961 in php_rshutdown_basic (type=1,
module_number=18)
    at basic_functions.c:467
#4 0x8084060 in module_registry_cleanup
(module=0x81129c0) at zend_API.c:872
#5 0x808678f in zend_hash_apply (ht=0x8101ae0,
    apply_func=0x808403c
<module_registry_cleanup>) at zend_hash.c:655
#6 0x8083a96 in zend_deactivate () at zend.c:462
#7 0x8073550 in php_request_shutdown (dummy=0x0)
at main.c:670 symbols from
/lib/libcrypt.so.1...done.
#8 0x805a345 in main (argc=2, argv=0xbffffab4) at
cgi_main.c:568
(gdb)

Geocrawler.com - The Knowledge Archive

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>