ID:               25146
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mmusone at shatterit dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Reproducible crash
 Operating System: Linux (Redhat 9)
 PHP Version:      4.3.2
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Use the bundled library it is tested and known to work. As for why the
external library crashes, that already something up to the GD library
developers to determine.


Previous Comments:
------------------------------------------------------------------------

[2003-08-19 08:55:57] mmusone at shatterit dot com

I think i fixed it...using the built-in GD library does not seme to
crash.

compiling in the external Gd library, 2.0.15 seems to be causing it to
crash.

I also tried the latest PHP CVs snapshot, and it also crashed with
using the external GD library.

------------------------------------------------------------------------

[2003-08-19 08:21:41] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



------------------------------------------------------------------------

[2003-08-19 08:17:45] mmusone at shatterit dot com

I just downgraded to apache 1.3.28, and the crashes are still
occuring.

Below is a backtrace:

(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X
[Tue Aug 19 09:10:57 2003] [alert] httpd: Could not determine the
server's fully qualified domain name, using 127.0.0.1 for ServerName

Program received signal SIGSEGV, Segmentation fault.
fontTest (element=0x20, key=0x20) at gdft.c:337
337       return (strcmp (a->fontlist, b->fontlist) == 0);
(gdb) where
#0  fontTest (element=0x20, key=0x20) at gdft.c:337
#1  0x401fbb13 in gdCacheGet (head=0x8104940, keydata=0xbfffbac8) at
gdcache.c:108
#2  0x401fc84d in gdImageStringFTEx (im=0x0, brect=0xbfffbbb0, fg=-1,
    fontlist=0x20 <Address 0x20 out of bounds>, ptsize=10, angle=0,
x=-1, y=-1, string=0x80fc2e4 "50",
    strex=0xbfffbba0) at gdft.c:856
#3  0x400df4d2 in php_imagettftext_common (ht=135285056,
return_value=0x80fcda4, this_ptr=0x0,
    return_value_used=1, mode=1, extended=1) at
/usr/local/src/php-4.3.2/ext/gd/gd.c:3052
#4  0x400df07b in zif_imageftbbox (ht=5, return_value=0x80fcda4,
this_ptr=0x0, return_value_used=1)
    at /usr/local/src/php-4.3.2/ext/gd/gd.c:2921
#5  0x4019fc6a in execute (op_array=0x80fcaac) at
/usr/local/src/php-4.3.2/Zend/zend_execute.c:1606
#6  0x40193505 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
    at /usr/local/src/php-4.3.2/Zend/zend.c:869
#7  0x4016e1f3 in php_execute_script (primary_file=0xbfffe190)
    at /usr/local/src/php-4.3.2/main/main.c:1671
#8  0x401a38c2 in apache_php_module_main (r=0x80f9fdc,
display_source_mode=0)
    at /usr/local/src/php-4.3.2/sapi/apache/sapi_apache.c:54
#9  0x401a42d5 in send_php (r=0x80f9fdc, display_source_mode=0,
filename=0x0)
    at /usr/local/src/php-4.3.2/sapi/apache/mod_php4.c:617
#10 0x401a446a in send_parsed_php (r=0x80f9fdc) at
/usr/local/src/php-4.3.2/sapi/apache/mod_php4.c:632
#11 0x08069e8b in ap_invoke_handler ()
#12 0x0807e78e in process_request_internal ()
#13 0x0807e7ed in ap_process_request ()
#14 0x08075a5e in child_main ()
#15 0x08075bfe in make_child ()
#16 0x08075d64 in startup_children ()
#17 0x08076401 in standalone_main ()
#18 0x08076c1f in main ()
#19 0x420156a4 in __libc_start_main () from /lib/tls/libc.so.6

------------------------------------------------------------------------

[2003-08-19 07:38:40] mmusone at shatterit dot com

Prefork ?? Is this what you are looking for:


[EMAIL PROTECTED] php-4.3.2]# /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.47
Server built:   Aug 17 2003 11:17:41
Server's Module Magic Number: 20020903:4
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_PROC_PTHREAD_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

------------------------------------------------------------------------

[2003-08-19 07:31:50] [EMAIL PROTECTED]

Which Apache 2 MPM are you using?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/25146

-- 
Edit this bug report at http://bugs.php.net/?id=25146&edit=1

Reply via email to