ID:               34953
 User updated by:  juraj dot nospam at bednar dot sk
 Reported By:      juraj dot nospam at bednar dot sk
-Status:           Feedback
+Status:           Open
 Bug Type:         MySQL related
 Operating System: Debian Sarge
 PHP Version:      5CVS-2005-10-22 (snap)
 New Comment:

related to Zend Optimizer, please close.


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

[2005-10-22 11:48:59] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.



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

[2005-10-22 03:01:30] juraj dot nospam at bednar dot sk

Description:
------------
When doing an SQL query (which had errors), I get segfault 
with apache 2.0.55 prefork, mysql 5.0.5 from debian testing 
(ldd shows it's linked with correct library) using legacy code 
(old version of drupal). While legacy code does not have to 
work, segfault when running it is not expected

Reproduce code:
---------------
INSERT INTO watchdog (uid, type, message, location, hostname,
timestamp) VALUES (\'\', \'error\', \'warning: array_merge() [<a
href=\\\'function.array-merge\\\'>function.array-merge</a>]: Argument
#1 is not an array in /home/juraj/www/includes/common.inc on line
710.\', \'?\', \'82.100.100.200\', \'1129942132\')

causes php child to segfault

Expected result:
----------------
i did not expect it to actually execute, but the segfault is 
wrong behaviour.


Actual result:
--------------
This is a part of strace, which shows the problem. 28 is 
mysql socket.

Another queries work well.

[pid  3442] time(NULL)                  = 1129942132
[pid  3442] fcntl64(28, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid  3442] read(28, 0x83b47c8, 8192)   = -1 EAGAIN 
(Resource temporarily unavailable)
[pid  3442] fcntl64(28, F_SETFL, O_RDWR) = 0
[pid  3442] write(28, ":\1\0\0\3INSERT INTO watchdog (uid, 
type, message, location, hostname, timestamp) VALUES (\'\', 
\'error\', \'warning: array_merge() [<a href=\\
\'function.array-merge\\\'>function.array-merge</a>]: 
Argument #1 is not an array in /home/juraj/www/includes/
common.inc on line 710.\', \'?\', \'82.100.100.200\', 
\'1129942132\')", 318) = 318
[pid  3442] read(28, "\7\0\0\1\0\1\33\2\0\1\0", 16384) = 11
[pid  3442] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
[pid  3442] chdir("/usr/local/apache2") = 0
[pid  3442] rt_sigaction(SIGSEGV, {SIG_DFL}, {SIG_DFL}, 8) = 
0
[pid  3442] getpid()                    = 3442
[pid  3442] getpid()                    = 3442
[pid  3442] kill(3442, SIGSEGV)         = 0
[pid  3442] sigreturn()                 = ? (mask now 
[RTMIN])
[pid  3442] --- SIGSEGV (Segmentation fault) @ 0 (0) ---


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


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

Reply via email to