php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38554 mysqli_slave_query and mysqli_master_query causes php to segfault
Submitted: 2006-08-23 01:22 UTC Modified: 2010-12-20 12:17 UTC
From: aderyn at c0la dot se Assigned:
Status: Not a bug Package: MySQLi related
PHP Version: 5.1.5 OS: Gentoo Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: aderyn at c0la dot se
New email:
PHP Version: OS:

 

 [2006-08-23 01:22 UTC] aderyn at c0la dot se
Description:
------------
When trying to use mysqli_master_query and mysqli_slave_query, using different versions of PHP 5.1 as well as different versions of MySQL 5.0, PHP segfaults. I've tried this on 5 different servers all running Gentoo, and it's the same thing on every single one.

Reproduce code:
---------------
emil@garion ~ $ php -r '
$link = mysqli_connect("lanfear", "emil", "xxx", "somename3");
mysqli_slave_query($link, "SELECT Version()");
'
Segmentation fault


Expected result:
----------------
I'd expect the query to be executed.

Actual result:
--------------
As noted above, it causes a segmentation fault. I used strace to see if I could locate the error myself, but my knowledge of C is quite modest.

execve("/usr/local/bin/php", ["php", "-r", "\n$link = mysqli_connect(\"localho"...], [/* 37 vars */]) = 0
uname({sys="Linux", node="zakath", ...}) = 0
brk(0)                                  = 0x83f6000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/mysql/tls/i686/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/mysql/tls/i686", 0xbff9d510) = -1 ENOENT (No such file or directory)
open("/usr/lib/mysql/tls/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/mysql/tls", 0xbff9d510) = -1 ENOENT (No such file or directory)
open("/usr/lib/mysql/i686/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/mysql/i686", 0xbff9d510) = -1 ENOENT (No such file or directory)
open("/usr/lib/mysql/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/mysql", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=30736, ...}) = 0
mmap2(NULL, 30736, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f84000
close(3)                                = 0
open("/lib/libcrypt.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\10"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=22424, ...}) = 0
mmap2(NULL, 180540, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f57000
madvise(0xb7f57000, 180540, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7f5b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0xb7f5b000
mmap2(0xb7f5d000, 155964, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f5d000
close(3)                                = 0
open("/usr/lib/mysql/libexslt.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libexslt.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300)\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=65984, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f56000
mmap2(NULL, 68124, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f45000
madvise(0xb7f45000, 68124, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7f55000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0xb7f55000
close(3)                                = 0
open("/usr/lib/mysql/libgcrypt.so.11", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libgcrypt.so.11", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200?\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=310640, ...}) = 0
mmap2(NULL, 311172, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ef9000
madvise(0xb7ef9000, 311172, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7f40000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x46) = 0xb7f40000
close(3)                                = 0
open("/usr/lib/mysql/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libnsl.so.1", O_RDONLY)      = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@5\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=75176, ...}) = 0
mmap2(NULL, 83968, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ee4000
madvise(0xb7ee4000, 83968, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7ef5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10) = 0xb7ef5000
mmap2(0xb7ef7000, 6144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ef7000
close(3)                                = 0
open("/usr/lib/mysql/libgpg-error.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libgpg-error.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\6\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=11140, ...}) = 0
mmap2(NULL, 13536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ee0000
madvise(0xb7ee0000, 13536, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7ee3000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7ee3000
close(3)                                = 0
open("/usr/lib/mysql/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libz.so.1", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\22"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=66356, ...}) = 0
mmap2(NULL, 67796, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ecf000
madvise(0xb7ecf000, 67796, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7edf000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0xb7edf000
close(3)                                = 0
open("/usr/lib/mysql/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/libm.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2003\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=153240, ...}) = 0
mmap2(NULL, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7eac000
madvise(0xb7eac000, 139424, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7ecd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20) = 0xb7ecd000
close(3)                                = 0
open("/usr/lib/mysql/libtidy-0.99.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libtidy-0.99.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\313"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=286200, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7eab000
mmap2(NULL, 284048, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e65000
madvise(0xb7e65000, 284048, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7ea6000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x41) = 0xb7ea6000
close(3)                                = 0
open("/usr/lib/mysql/libpspell.so.15", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libpspell.so.15", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\4\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=3412, ...}) = 0
mmap2(NULL, 6000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e63000
madvise(0xb7e63000, 6000, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7e64000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0xb7e64000
close(3)                                = 0
open("/usr/lib/mysql/libaspell.so.15", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libaspell.so.15", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\227\2"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=630452, ...}) = 0
mmap2(NULL, 630212, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dc9000
madvise(0xb7dc9000, 630212, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7e5e000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x94) = 0xb7e5e000
close(3)                                = 0
open("/usr/lib/mysql/libgpm.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libgpm.so.1", O_RDONLY)      = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\27"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=19380, ...}) = 0
mmap2(NULL, 22360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dc3000
madvise(0xb7dc3000, 22360, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7dc8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0xb7dc8000
close(3)                                = 0
open("/usr/lib/mysql/libstdc++.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so.5", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\300\3"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=969221, ...}) = 0
mmap2(NULL, 771296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d06000
madvise(0xb7d06000, 771296, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7db9000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb2) = 0xb7db9000
mmap2(0xb7dbe000, 17632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7dbe000
close(3)                                = 0
open("/usr/lib/mysql/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/librt.so.1", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\36\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=33236, ...}) = 0
mmap2(NULL, 33352, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7cfd000
madvise(0xb7cfd000, 33352, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7d04000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb7d04000
close(3)                                = 0
open("/usr/lib/mysql/libgd.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libgd.so.2", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0R\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=235464, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7cfc000
mmap2(NULL, 319288, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7cae000
madvise(0xb7cae000, 319288, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7cc8000, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19) = 0xb7cc8000
mmap2(0xb7ce8000, 81720, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ce8000
close(3)                                = 0
open("/usr/lib/mysql/libfontconfig.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libfontconfig.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\201"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=153716, ...}) = 0
mmap2(NULL, 159000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c87000
madvise(0xb7c87000, 159000, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7caa000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22) = 0xb7caa000
mmap2(0xb7cad000, 3352, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7cad000
close(3)                                = 0
open("/usr/lib/mysql/libexpat.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libexpat.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\"\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=126720, ...}) = 0
mmap2(NULL, 129152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c67000
madvise(0xb7c67000, 129152, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7c85000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d) = 0xb7c85000
close(3)                                = 0
open("/usr/lib/mysql/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libfreetype.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\354\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=458900, ...}) = 0
mmap2(NULL, 454344, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7bf8000
madvise(0xb7bf8000, 454344, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7c60000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x68) = 0xb7c60000
close(3)                                = 0
open("/usr/lib/mysql/libpng12.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libpng12.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300Z\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=144980, ...}) = 0
mmap2(NULL, 146820, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7bd4000
madvise(0xb7bd4000, 146820, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7bf7000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22) = 0xb7bf7000
close(3)                                = 0
open("/usr/lib/mysql/libttf.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libttf.so.2", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P4\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=182998, ...}) = 0
mmap2(NULL, 157472, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7bad000
madvise(0xb7bad000, 157472, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7bd3000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26) = 0xb7bd3000
mprotect(0xbff9d000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0
close(3)                                = 0
open("/usr/lib/mysql/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libjpeg.so.62", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@$\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=122004, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7bac000
mmap2(NULL, 121964, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7b8e000
madvise(0xb7b8e000, 121964, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7bab000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c) = 0xb7bab000
close(3)                                = 0
open("/usr/lib/mysql/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libresolv.so.2", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@$\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=60440, ...}) = 0
mmap2(NULL, 71880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7b7c000
madvise(0xb7b7c000, 71880, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7b8a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd) = 0xb7b8a000
mmap2(0xb7b8c000, 6344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7b8c000
close(3)                                = 0
open("/usr/lib/mysql/libssl.so.0.9.7", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libssl.so.0.9.7", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\204\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=197824, ...}) = 0
mmap2(NULL, 200208, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7b4b000
madvise(0xb7b4b000, 200208, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7b79000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2d) = 0xb7b79000
close(3)                                = 0
open("/usr/lib/mysql/libcrypto.so.0.9.7", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libcrypto.so.0.9.7", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\316\2"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=1054944, ...}) = 0
mmap2(NULL, 1045784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7a4b000
madvise(0xb7a4b000, 1045784, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7b35000, 73728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe9) = 0xb7b35000
mmap2(0xb7b47000, 13592, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7b47000
close(3)                                = 0
open("/usr/lib/mysql/libmysqlclient.so.15", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@3\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1407872, ...}) = 0
mmap2(NULL, 1406624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb78f3000
madvise(0xb78f3000, 1406624, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb793d000, 1101824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x49) = 0xb793d000
mmap2(0xb7a4a000, 1696, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7a4a000
close(3)                                = 0
open("/usr/lib/mysql/libxslt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libxslt.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300p\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=192976, ...}) = 0
mmap2(NULL, 190632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb78c4000
madvise(0xb78c4000, 190632, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb78f2000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2e) = 0xb78f2000
close(3)                                = 0
open("/usr/lib/mysql/libxml2.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libxml2.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\244\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1166328, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78c3000
mmap2(NULL, 1166164, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb77a6000
madvise(0xb77a6000, 1166164, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb78ba000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x114) = 0xb78ba000
mmap2(0xb78c2000, 2900, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb78c2000
close(3)                                = 0
open("/usr/lib/mysql/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\f\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=10440, ...}) = 0
mmap2(NULL, 12392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb77a2000
madvise(0xb77a2000, 12392, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb77a4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb77a4000
close(3)                                = 0
open("/usr/lib/mysql/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 I\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=157540, ...}) = 0
mmap2(NULL, 74200, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb778f000
madvise(0xb778f000, 74200, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb779e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) = 0xb779e000
mmap2(0xb77a0000, 4568, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb77a0000
close(3)                                = 0
open("/usr/lib/mysql/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320Q\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1203608, ...}) = 0
mmap2(NULL, 1146076, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7677000
madvise(0xb7677000, 1146076, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7789000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x112) = 0xb7789000
mmap2(0xb778d000, 7388, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb778d000
close(3)                                = 0
open("//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/tls/i686/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/tls/i686", 0xbff9cd54) = -1 ENOENT (No such file or directory)
open("//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/tls/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/tls", 0xbff9cd54) = -1 ENOENT (No such file or directory)
open("//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/i686/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/i686", 0xbff9cd54) = -1 ENOENT (No such file or directory)
open("//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130", 0xbff9cd54) = -1 ENOENT (No such file or directory)
open("/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libgcc_s.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\23\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=860393, ...}) = 0
mmap2(NULL, 29136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb766f000
madvise(0xb766f000, 29136, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb7676000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0xb7676000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb766e000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb766d000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb766c000
mprotect(0xb7789000, 4096, PROT_READ)   = 0
mprotect(0xb779e000, 4096, PROT_READ)   = 0
mprotect(0xb7fa1000, 4096, PROT_READ)   = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb766c6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7f84000, 30736)               = 0
set_tid_address(0xb766c708)             = 31758
rt_sigaction(SIGRTMIN, {0xb7793480, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xb7793500, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
_sysctl({{CTL_KERN, KERN_VERSION, 0, 20bb1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 2, 0xbff9dadc, 32, (nil), 0}) = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "\212\31\342\200", 4)           = 4
close(3)                                = 0
brk(0)                                  = 0x83f6000
brk(0x8417000)                          = 0x8417000
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
getcwd("/home/emil/public_html", 4096)  = 23
open("/etc/localtime", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=675, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=675, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f8b000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0"..., 4096) = 675
close(3)                                = 0
munmap(0xb7f8b000, 4096)                = 0
getcwd("/home/emil/public_html", 4096)  = 23
lstat64("/home/emil/public_html/php", 0xbff9c91c) = -1 ENOENT (No such file or directory)
open("./php-cli.ini", O_RDONLY)         = -1 ENOENT (No such file or directory)
open("/usr/local/lib/php-cli.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
open("./php.ini", O_RDONLY)             = -1 ENOENT (No such file or directory)
open("/usr/local/lib/php.ini", O_RDONLY) = 3
getcwd("/home/emil/public_html", 4096)  = 23
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local/lib/php.ini", {st_mode=S_IFLNK|0755, st_size=27, ...}) = 0
readlink("/usr/local/lib/php.ini", "/usr/local/Zend/etc/php.ini", 4096) = 27
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local/Zend", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local/Zend/etc", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local/Zend/etc/php.ini", {st_mode=S_IFREG|0644, st_size=39325, ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbff9c898) = -1 ENOTTY (Inappropriate ioctl for device)
fstat64(3, {st_mode=S_IFREG|0644, st_size=39325, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f8b000
read(3, "[PHP]\n\n;;;;;;;;;;;\n; WARNING ;\n;"..., 8192) = 8192
read(3, "le!\nsafe_mode_allowed_env_vars ="..., 8192) = 8192
read(3, "l\ndefault_mimetype = \"text/html\""..., 8192) = 8192
read(3, " password for mysql_connect() (d"..., 8192) = 8192
read(3, "etc.\n; - URL that contains activ"..., 8192) = 6557
read(3, "", 4096)                       = 0
read(3, "", 8192)                       = 0
close(3)                                = 0
munmap(0xb7f8b000, 4096)                = 0
brk(0x8438000)                          = 0x8438000
brk(0x8459000)                          = 0x8459000
futex(0xb78c29bc, FUTEX_WAKE, 2147483647) = 0
brk(0x847a000)                          = 0x847a000
brk(0x849b000)                          = 0x849b000
brk(0x84bc000)                          = 0x84bc000
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=503, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f8b000
read(3, "# /etc/nsswitch.conf:\n# $Header:"..., 4096) = 503
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7f8b000, 4096)                = 0
open("/usr/lib/mysql/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=30736, ...}) = 0
mmap2(NULL, 30736, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f84000
close(3)                                = 0
open("/lib/tls/i686/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686", 0xbff9d330)     = -1 ENOENT (No such file or directory)
open("/lib/tls/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls", {st_mode=S_IFDIR|S_ISGID|0755, st_size=4096, ...}) = 0
open("/lib/i686/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686", 0xbff9d330)         = -1 ENOENT (No such file or directory)
open("/lib/libnss_db.so.2", O_RDONLY)   = -1 ENOENT (No such file or directory)
stat64("/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/tls/i686/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686", 0xbff9d330) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls", 0xbff9d330)      = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686", 0xbff9d330)     = -1 ENOENT (No such file or directory)
open("/usr/lib/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
munmap(0xb7f84000, 30736)               = 0
open("/usr/lib/mysql/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=30736, ...}) = 0
mmap2(NULL, 30736, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f84000
close(3)                                = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\33"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=35240, ...}) = 0
mmap2(NULL, 37516, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7662000
madvise(0xb7662000, 37516, MADV_SEQUENTIAL|0x1) = 0
mmap2(0xb766a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0xb766a000
close(3)                                = 0
munmap(0xb7f84000, 30736)               = 0
open("/etc/protocols", O_RDONLY)        = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=1623, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f8b000
read(3, "# /etc/protocols\n#\n# Internet (I"..., 4096) = 1623
close(3)                                = 0
munmap(0xb7f8b000, 4096)                = 0
open("/etc/protocols", O_RDONLY)        = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=1623, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f8b000
read(3, "# /etc/protocols\n#\n# Internet (I"..., 4096) = 1623
close(3)                                = 0
munmap(0xb7f8b000, 4096)                = 0
brk(0x84dd000)                          = 0x84dd000
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
rt_sigaction(SIGPROF, {0x82a0580, [PROF], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={60, 0}}, NULL) = 0
rt_sigaction(SIGPROF, {0x82a0580, [PROF], SA_RESTART}, {0x82a0580, [PROF], SA_RESTART}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0
time(NULL)                              = 1156295888
gettimeofday({1156295888, 889648}, NULL) = 0
fstat64(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
lseek(0, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
lseek(1, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
fstat64(2, {st_mode=S_IFREG|0644, st_size=29140, ...}) = 0
lseek(2, 0, SEEK_CUR)                   = 29208
open("/etc/services", O_RDONLY)         = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=35832, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f8b000
read(3, "# /etc/services\n#\n# Network serv"..., 4096) = 4096
read(3, "E service\n# private\t77/udp\nvettc"..., 4096) = 4096
read(3, "et Message Access Protocol\nimap\t"..., 4096) = 4096
read(3, "dp\nsemantix\t361/tcp\t\t\t\t# Semanti"..., 4096) = 4096
read(3, "Admin\ncryptoadmin\t624/udp\ndec_dl"..., 4096) = 4096
read(3, "t\'s Windows Internet Name Servic"..., 4096) = 4096
read(3, "2583/udp\nhpstgmgr\t2600/tcp\tzebra"..., 4096) = 4096
close(3)                                = 0
munmap(0xb7f8b000, 4096)                = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_IGN}, 8) = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
brk(0x84ff000)                          = 0x84ff000
fcntl64(3, F_SETFL, O_RDONLY)           = 0
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
connect(3, {sa_family=AF_FILE, path="/var/run/mysqld/mysqld.sock"}, 110) = 0
setsockopt(3, SOL_IP, IP_TOS, [8], 4)   = -1 EOPNOTSUPP (Operation not supported)
setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
read(3, "8\0\0\0\n5.0.22-log\0n\2\0\0p|Bq6V.!\0,\242\10"..., 16384) = 60
stat64("/usr/share/mysql/charsets/Index.xml", {st_mode=S_IFREG|0644, st_size=18221, ...}) = 0
open("/usr/share/mysql/charsets/Index.xml", O_RDONLY|O_LARGEFILE) = 4
read(4, "<?xml version=\'1.0\' encoding=\"ut"..., 18221) = 18221
close(4)                                = 0
write(3, "D\0\0\1\215\242\2\0\0\0\0@\10\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 72) = 72
read(3, "\1\0\0\2\376", 16384)          = 5
write(3, "\t\0\0\3_I_TU_LQ\0", 13)      = 13
read(3, "\7\0\0\4\0\0\0\2\0\0\0", 16384) = 11
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-23 06:52 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

What is the exact version of MySQL?
 [2006-08-23 09:39 UTC] aderyn at c0la dot se
Thank you for your response. :)
The reason I omitted the specific MySQL-version is because I tested it on several servers, and had the same result on everyone of them, despite different MySQL-versions. However, the server I've used to obtain a backtrace is running 5.0.22-log. I believe the other servers are running at least that version.

Here's a GDB backtrace. I've tried to follow the instructions, but if I've missed out on something, just tell me and I'll do it again.

(gdb) bt
#0  0xb7ad5743 in mysql_master_send_query () from /usr/lib/mysql/libmysqlclient.so.15
#1  0xb7ad56f0 in mysql_master_query () from /usr/lib/mysql/libmysqlclient.so.15
#2  0x0811b57d in zif_mysqli_master_query (ht=139434548, return_value=0xb7b0c530, return_value_ptr=0x0, 
    this_ptr=0x84f9a34, return_value_used=0) at /root/php-5.1.5/ext/mysqli/mysqli_repl.c:111
#3  0x082d91f8 in zend_do_fcall_common_helper_SPEC (execute_data=0x84f900c) at zend_vm_execute.h:200
#4  0x082d8918 in execute (op_array=0x84f4994) at zend_vm_execute.h:92
#5  0x082bba20 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/php-5.1.5/Zend/zend.c:1109
#6  0x082794f6 in php_execute_script (primary_file=0xbfbecdb0) at /root/php-5.1.5/main/main.c:1737
#7  0x083309d1 in main (argc=2, argv=0xbfbece84) at /root/php-5.1.5/sapi/cli/php_cli.c:1093
 [2006-08-23 10:30 UTC] tony2001@php.net
Not PHP problem.
Please report it to MySQL (but try with the latest MySQL release first).
 [2010-12-20 12:17 UTC] jani@php.net
-Package: Tidy +Package: MySQLi related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC