Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 200004

[PHP4BETA] zend coredumps From: Paul Jongsma (paulj <email protected>)
Date: 04/30/00

what can be causing this?
it looks like it happens when addslashes() is used on binary data
but I have no prove of this yet....

the output generated is:

X-Powered-By: PHP/4.0RC2-dev
Content-type: text/html

[Sun Apr 30 12:49:08 2000] Script: 'picscan.php'
---------------------------------------
zend_execute_API.c(237) : Block 0x08178000 status:
zend_variables.c(62) : Actual location (location was relayed)
Beginning: OK (allocated on string.c:1658, 4443 bytes)
       End: Overflown (magic=0x5A5A5A5A instead of 0x2A8FCC84)
                 At least 4 bytes overflown
---------------------------------------
[Sun Apr 30 12:49:08 2000] Script: 'picscan.php'
---------------------------------------
zend_execute_API.c(237) : Block 0x0817B000 status:
zend_variables.c(62) : Actual location (location was relayed)
Beginning: Overrun (magic=0x5A5A5A5A, expected=0x7312F8DC)
       End: Unknown
---------------------------------------
[Sun Apr 30 12:49:11 2000] Script: 'picscan.php'
---------------------------------------
zend_execute_API.c(237) : Block 0x0BD7F000 status:
zend_variables.c(62) : Actual location (location was relayed)
Beginning: OK (allocated on string.c:1658, 65915 bytes)
       End: Overflown (magic=0x5A5A5A5A instead of 0x2A8FCC84)
                 At least 4 bytes overflown
---------------------------------------
[script continues....]

Segmentation fault (core dumped)

the backtrace of the coredump:

dev# gdb php4 -c php4.core
GDB is free software and you are welcome to 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.
GDB 4.16 (i386-unknown-freebsd),
Copyright 1996 Free Software Foundation, Inc...
Core was generated by `php4'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /web/server/mysql/lib/mysql/libmysqlclient.so.4.0...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/lib/libcrypt.so.2...done.
Reading symbols from /usr/lib/libc.so.3...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0 shutdown_memory_manager (silent=1, clean_cache=0) at zend_alloc.c:376
376 if (!iterator->cached
(gdb) bt
#0 shutdown_memory_manager (silent=1, clean_cache=0) at zend_alloc.c:376
#1 0x8083476 in php_request_shutdown (dummy=0x0) at main.c:681
#2 0x80592a2 in main (argc=2, argv=0xefbfdc18) at cgi_main.c:623
#3 0x8058915 in _start ()

--
Paul Jongsma
WEBtic Internet Consultancy @ http://www.webtic.nl/

-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>