MagickWand for PHP: MagickMosaicImages segfault

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
vav

MagickWand for PHP: MagickMosaicImages segfault

Post by vav »

Hi,

I've compiled php 5.2.0, magickwand 0.8.1 and imagemagick 6.3.1.

I have two images:

Code: Select all

convert -size 50x50 xc:green green.png
convert -size 50x50 xc:red red.png
Mosaic in convert works fine:

Code: Select all

convert -page +0+0 green.png -page +50+50 red.png -background none -mosaic test.png
Trying to run following php script I receive segmentation fault:

Code: Select all

<?php
$mgck_wnd = NewMagickWand();
MagickReadImage($mgck_wnd, 'green.png');
MagickSetImagePage($mgck_wnd, 50, 50, 0, 0);
MagickReadImage($mgck_wnd, 'red.png');
MagickSetImagePage($mgck_wnd, 50, 50, 50, 50);
$mosaic = MagickMosaicImages($mgck_wnd);
DestroyMagickWand($mgck_wnd);
DestroyMagickWand($mosaic);
?>
Here's the output of strace:

Code: Select all

execve("/usr/local/bin/php", ["php", "test-mosaic.php"], [/* 17 vars */]) = 0
uname({sys="Linux", node="smllinux", ...}) = 0
brk(0)                                  = 0x83cd000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/i686/mmx/cmov/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/tls/i686/mmx/cmov", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/i686/mmx/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/tls/i686/mmx", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/i686/cmov/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/tls/i686/cmov", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/i686/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/tls/i686", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/mmx/cmov/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/tls/mmx/cmov", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/mmx/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/tls/mmx", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/cmov/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/tls/cmov", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/tls", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/i686/mmx/cmov/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/i686/mmx/cmov", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/i686/mmx/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/i686/mmx", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/i686/cmov/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/i686/cmov", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/i686/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/i686", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/mmx/cmov/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/mmx/cmov", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/mmx/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/mmx", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/cmov/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/cmov", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib", {st_mode=S_IFDIR|S_ISGID|0775, st_size=4096, ...}) = 0
open("/usr/X11R6/lib/tls/i686/mmx/cmov/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/lib/tls/i686/mmx/cmov", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/tls/i686/mmx/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/lib/tls/i686/mmx", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/tls/i686/cmov/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/lib/tls/i686/cmov", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/tls/i686/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/lib/tls/i686", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/tls/mmx/cmov/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/lib/tls/mmx/cmov", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/tls/mmx/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/lib/tls/mmx", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/tls/cmov/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/lib/tls/cmov", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/tls/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/lib/tls", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/i686/mmx/cmov/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/lib/i686/mmx/cmov", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/i686/mmx/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/lib/i686/mmx", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/i686/cmov/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/lib/i686/cmov", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/i686/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/lib/i686", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/mmx/cmov/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/lib/mmx/cmov", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/mmx/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/lib/mmx", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/cmov/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/lib/cmov", 0xbffff268) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/X11R6/lib", {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=68956, ...}) = 0
old_mmap(NULL, 68956, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/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\360\t\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=18844, ...}) = 0
old_mmap(NULL, 181660, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40029000
old_mmap(0x4002e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4000) = 0x4002e000
old_mmap(0x4002f000, 157084, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4002f000
close(3)                                = 0
open("/usr/local/lib/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/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\200\33"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=24316, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40056000
old_mmap(NULL, 27084, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40057000
old_mmap(0x4005d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x5000) = 0x4005d000
close(3)                                = 0
open("/usr/local/lib/libmysqlclient.so.14", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libmysqlclient.so.14", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libmysqlclient.so.14", 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`\306\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1066632, ...}) = 0
old_mmap(NULL, 1080352, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4005e000
old_mmap(0x4009d000, 815104, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x3e000) = 0x4009d000
old_mmap(0x40164000, 7200, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40164000
close(3)                                = 0
open("/usr/local/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/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\00005\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=134208, ...}) = 0
old_mmap(NULL, 136704, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40166000
old_mmap(0x40187000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x20000) = 0x40187000
close(3)                                = 0
open("/usr/local/lib/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/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\27"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=67468, ...}) = 0
old_mmap(NULL, 70528, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40188000
old_mmap(0x40199000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x10000) = 0x40199000
close(3)                                = 0
open("/usr/local/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/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\220)\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=64924, ...}) = 0
old_mmap(NULL, 73640, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4019a000
old_mmap(0x401a9000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xf000) = 0x401a9000
old_mmap(0x401aa000, 8104, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401aa000
close(3)                                = 0
open("/usr/local/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/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 <\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=73304, ...}) = 0
old_mmap(NULL, 80544, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401ac000
old_mmap(0x401bd000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x11000) = 0x401bd000
old_mmap(0x401be000, 6816, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401be000
close(3)                                = 0
open("/usr/local/lib/libWand.so.10", 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 \344\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1540261, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401c0000
old_mmap(NULL, 752412, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401c1000
old_mmap(0x40277000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xb5000) = 0x40277000
close(3)                                = 0
open("/usr/local/lib/libMagick.so.10", 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\213"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=4372335, ...}) = 0
old_mmap(NULL, 1908220, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40279000
old_mmap(0x403eb000, 294912, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x171000) = 0x403eb000
old_mmap(0x40433000, 97788, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40433000
close(3)                                = 0
open("/usr/local/lib/liblcms.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/liblcms.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/liblcms.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\220J\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=177296, ...}) = 0
old_mmap(NULL, 186688, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4044b000
old_mmap(0x40475000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2a000) = 0x40475000
old_mmap(0x40477000, 6464, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40477000
close(3)                                = 0
open("/usr/local/lib/libtiff.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libtiff.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libtiff.so.4", 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\240G\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=325936, ...}) = 0
old_mmap(NULL, 325888, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40479000
old_mmap(0x404c7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4e000) = 0x404c7000
close(3)                                = 0
open("/usr/local/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/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`Z\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1254692, ...}) = 0
old_mmap(NULL, 1265004, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x404c9000
old_mmap(0x405f3000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x129000) = 0x405f3000
old_mmap(0x405fc000, 7532, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x405fc000
close(3)                                = 0
open("/usr/local/lib/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -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\340$\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=120952, ...}) = 0
old_mmap(NULL, 119916, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x405fe000
old_mmap(0x4061b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1d000) = 0x4061b000
close(3)                                = 0
open("/usr/local/lib/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libXext.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\220)\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=53456, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4061c000
old_mmap(NULL, 56820, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4061d000
old_mmap(0x4062a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xc000) = 0x4062a000
close(3)                                = 0
open("/usr/local/lib/libSM.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libSM.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\200\"\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=31516, ...}) = 0
old_mmap(NULL, 34596, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4062b000
old_mmap(0x40633000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x7000) = 0x40633000
close(3)                                = 0
open("/usr/local/lib/libICE.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libICE.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\3005\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=82128, ...}) = 0
old_mmap(NULL, 92528, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40634000
old_mmap(0x40648000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x13000) = 0x40648000
old_mmap(0x40649000, 6512, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40649000
close(3)                                = 0
open("/usr/local/lib/libX11.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libX11.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\240\24"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=813680, ...}) = 0
old_mmap(NULL, 814968, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4064b000
old_mmap(0x4070f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xc4000) = 0x4070f000
close(3)                                = 0
open("/usr/local/lib/libXt.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libXt.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\20\300"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=328400, ...}) = 0
old_mmap(NULL, 329308, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40712000
old_mmap(0x4075f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4d000) = 0x4075f000
old_mmap(0x40762000, 1628, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40762000
close(3)                                = 0
open("/usr/local/lib/libbz2.so.1.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libbz2.so.1.0", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/libbz2.so.1.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\0000\22\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=62048, ...}) = 0
old_mmap(NULL, 61012, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40763000
old_mmap(0x40771000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe000) = 0x40771000
close(3)                                = 0
open("/usr/local/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/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\260\32"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9872, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40772000
old_mmap(NULL, 8632, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40773000
old_mmap(0x40775000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x40775000
close(3)                                = 0
open("/usr/local/lib/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libfreetype.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -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\260\346"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=447212, ...}) = 0
old_mmap(NULL, 446176, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40776000
old_mmap(0x407dc000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x66000) = 0x407dc000
close(3)                                = 0
open("/usr/local/lib/libxml2.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libxml2.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -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\220\224"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1038096, ...}) = 0
old_mmap(NULL, 1076980, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x407e3000
old_mmap(0x408d9000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xf5000) = 0x408d9000
old_mmap(0x408e2000, 32500, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x408e2000
close(3)                                = 0
open("/usr/local/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/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\0G\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=82632, ...}) = 0
old_mmap(NULL, 64932, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x408ea000
old_mmap(0x408f7000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd000) = 0x408f7000
old_mmap(0x408f8000, 7588, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x408f8000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x408fa000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x408fb000
set_thread_area({entry_number:-1 -> 6, base_addr:0x408fafc0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0x40018000, 68956)               = 0
set_tid_address(0x408fb008)             = 18072
rt_sigaction(SIGRTMIN, {0x408ee660, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
brk(0)                                  = 0x83cd000
brk(0x83ee000)                          = 0x83ee000
brk(0)                                  = 0x83ee000
getcwd("/usr/local/apache2/htdocs", 4096) = 26
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x408fc000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=290576, ...}) = 0
mmap2(NULL, 290576, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4093d000
close(3)                                = 0
open("/etc/localtime", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=767, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40984000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\v\0\0\0\v\0"..., 4096) = 767
close(3)                                = 0
munmap(0x40984000, 4096)                = 0
getcwd("/usr/local/apache2/htdocs", 4096) = 26
lstat64("/usr/local/apache2/htdocs/php", 0xbfffe65c) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/php-cli.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/php.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
brk(0)                                  = 0x83ee000
brk(0x840f000)                          = 0x840f000
brk(0)                                  = 0x840f000
brk(0x8430000)                          = 0x8430000
futex(0x408e9d5c, FUTEX_WAKE, 2147483647) = 0
brk(0)                                  = 0x8430000
brk(0x8451000)                          = 0x8451000
brk(0)                                  = 0x8451000
brk(0x8472000)                          = 0x8472000
brk(0)                                  = 0x8472000
brk(0x8493000)                          = 0x8493000
time(NULL)                              = 1166760313
getpid()                                = 18072
getcwd("/usr/local/apache2/htdocs", 4096) = 26
rt_sigprocmask(SIG_BLOCK, [ABRT], NULL, 8) = 0
rt_sigaction(SIGABRT, {0x4033fc40, [ABRT], SA_INTERRUPT}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [FPE], NULL, 8) = 0
rt_sigaction(SIGFPE, {0x4033fc40, [FPE], SA_INTERRUPT}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [FPE], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [HUP], NULL, 8) = 0
rt_sigaction(SIGHUP, {0x4033fc40, [HUP], SA_INTERRUPT}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [HUP], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT], NULL, 8) = 0
rt_sigaction(SIGINT, {0x4033fc40, [INT], SA_INTERRUPT}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [INT], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [QUIT], NULL, 8) = 0
rt_sigaction(SIGQUIT, {0x4033fc40, [QUIT], SA_INTERRUPT}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [QUIT], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [TERM], NULL, 8) = 0
rt_sigaction(SIGTERM, {0x4033fc40, [TERM], SA_INTERRUPT}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [TERM], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [XCPU], NULL, 8) = 0
rt_sigaction(SIGXCPU, {0x4033fc40, [XCPU], SA_INTERRUPT}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [XCPU], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [XFSZ], NULL, 8) = 0
rt_sigaction(SIGXFSZ, {0x4033fc40, [XFSZ], SA_INTERRUPT}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [XFSZ], NULL, 8) = 0
open("/etc/mtab", O_RDONLY)             = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=238, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40984000
read(3, "/dev/sda1 / ext3 rw,errors=remou"..., 4096) = 238
close(3)                                = 0
munmap(0x40984000, 4096)                = 0
open("/proc/meminfo", O_RDONLY)         = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40984000
read(3, "MemTotal:       191908 kB\nMemFre"..., 1024) = 572
close(3)                                = 0
munmap(0x40984000, 4096)                = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
time([1166760313])                      = 1166760313
brk(0)                                  = 0x8493000
brk(0x84b4000)                          = 0x84b4000
munmap(0x408fc000, 266240)              = 0
open("test-mosaic.php", O_RDONLY)       = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=309, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x408fc000
read(3, "<?php\n$mgck_wnd = NewMagickWand("..., 4096) = 309
_llseek(3, 0, [0], SEEK_SET)            = 0
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40984000
setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
rt_sigaction(SIGPROF, {0x8280030, [PROF], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0
time(NULL)                              = 1166760313
gettimeofday({1166760313, 399876}, NULL) = 0
getpid()                                = 18072
fstat64(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
lseek(0, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
lseek(1, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
fstat64(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
lseek(2, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
getcwd("/usr/local/apache2/htdocs", 4096) = 26
time(NULL)                              = 1166760313
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local", {st_mode=S_IFDIR|S_ISGID|0775, st_size=4096, ...}) = 0
lstat64("/usr/local/apache2", {st_mode=S_IFDIR|S_ISGID|0755, st_size=4096, ...}) = 0
lstat64("/usr/local/apache2/htdocs", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat64("/usr/local/apache2/htdocs/test-mosaic.php", {st_mode=S_IFREG|0644, st_size=309, ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfffd548) = -1 ENOTTY (Inappropriate ioctl for device)
read(3, "<?php\n$mgck_wnd = NewMagickWand("..., 8192) = 309
read(3, "", 4096)                       = 0
read(3, "", 8192)                       = 0
close(3)                                = 0
munmap(0x408fc000, 4096)                = 0
getcwd("/usr/local/apache2/htdocs", 4096) = 26
time(NULL)                              = 1166760313
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local", {st_mode=S_IFDIR|S_ISGID|0775, st_size=4096, ...}) = 0
lstat64("/usr/local/apache2", {st_mode=S_IFDIR|S_ISGID|0755, st_size=4096, ...}) = 0
lstat64("/usr/local/apache2/htdocs", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat64("/usr/local/apache2/htdocs/green.png", {st_mode=S_IFREG|0644, st_size=232, ...}) = 0
open("/usr/local/lib/ImageMagick-6.3.1/config/coder.xml", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/local/share/ImageMagick-6.3.1/config/coder.xml", O_RDONLY|O_LARGEFILE) = 3
_llseek(3, 0, [3921], SEEK_END)         = 0
mmap2(NULL, 3921, PROT_READ, MAP_PRIVATE, 3, 0) = 0x408fc000
munmap(0x408fc000, 3921)                = 0
close(3)                                = 0
open("/usr/local/share/doc/ImageMagick-6.3.1/coder.xml", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/local/share/ImageMagick-6.3.1/coder.xml", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/home/vav/.magick/coder.xml", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("coder.xml", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
brk(0)                                  = 0x84b4000
brk(0x84d5000)                          = 0x84d5000
stat64("/usr/local/lib/ImageMagick-6.3.1/modules-Q16/coders/png.la", {st_mode=S_IFREG|0755, st_size=1000, ...}) = 0
access("/usr/local/lib/ImageMagick-6.3.1/modules-Q16/coders/png.la", F_OK) = 0
open("/usr/local/lib/ImageMagick-6.3.1/modules-Q16/coders/png.la", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0755, st_size=1000, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x408fc000
read(3, "# png.la - a libtool library fil"..., 4096) = 1000
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x408fc000, 4096)                = 0
futex(0x407751b4, FUTEX_WAKE, 2147483647) = 0
open("/usr/local/lib/png.a", O_RDONLY)  = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/png.a", 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=68956, ...}) = 0
old_mmap(NULL, 68956, PROT_READ, MAP_PRIVATE, 3, 0) = 0x408fc000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/mmx/cmov/png.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686/mmx/cmov", 0xbffeca4c) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/mmx/png.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686/mmx", 0xbffeca4c) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/png.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686/cmov", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/lib/tls/i686/png.a", O_RDONLY)   = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/lib/tls/mmx/cmov/png.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/mmx/cmov", 0xbffeca4c) = -1 ENOENT (No such file or directory)
open("/lib/tls/mmx/png.a", O_RDONLY)    = -1 ENOENT (No such file or directory)
stat64("/lib/tls/mmx", 0xbffeca4c)      = -1 ENOENT (No such file or directory)
open("/lib/tls/cmov/png.a", O_RDONLY)   = -1 ENOENT (No such file or directory)
stat64("/lib/tls/cmov", 0xbffeca4c)     = -1 ENOENT (No such file or directory)
open("/lib/tls/png.a", O_RDONLY)        = -1 ENOENT (No such file or directory)
stat64("/lib/tls", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/lib/i686/mmx/cmov/png.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686/mmx/cmov", 0xbffeca4c) = -1 ENOENT (No such file or directory)
open("/lib/i686/mmx/png.a", O_RDONLY)   = -1 ENOENT (No such file or directory)
stat64("/lib/i686/mmx", 0xbffeca4c)     = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/png.a", O_RDONLY)  = -1 ENOENT (No such file or directory)
stat64("/lib/i686/cmov", 0xbffeca4c)    = -1 ENOENT (No such file or directory)
open("/lib/i686/png.a", O_RDONLY)       = -1 ENOENT (No such file or directory)
stat64("/lib/i686", 0xbffeca4c)         = -1 ENOENT (No such file or directory)
open("/lib/mmx/cmov/png.a", O_RDONLY)   = -1 ENOENT (No such file or directory)
stat64("/lib/mmx/cmov", 0xbffeca4c)     = -1 ENOENT (No such file or directory)
open("/lib/mmx/png.a", O_RDONLY)        = -1 ENOENT (No such file or directory)
stat64("/lib/mmx", 0xbffeca4c)          = -1 ENOENT (No such file or directory)
open("/lib/cmov/png.a", O_RDONLY)       = -1 ENOENT (No such file or directory)
stat64("/lib/cmov", 0xbffeca4c)         = -1 ENOENT (No such file or directory)
open("/lib/png.a", 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/mmx/cmov/png.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686/mmx/cmov", 0xbffeca4c) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/i686/mmx/png.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686/mmx", 0xbffeca4c) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/i686/cmov/png.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686/cmov", 0xbffeca4c) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/i686/png.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686", 0xbffeca4c) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/mmx/cmov/png.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/mmx/cmov", 0xbffeca4c) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/mmx/png.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/mmx", 0xbffeca4c)  = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/cmov/png.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/cmov", 0xbffeca4c) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/png.a", O_RDONLY)    = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls", 0xbffeca4c)      = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/mmx/cmov/png.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686/mmx/cmov", 0xbffeca4c) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/mmx/png.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686/mmx", 0xbffeca4c) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/cmov/png.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686/cmov", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/i686/png.a", O_RDONLY)   = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/mmx/cmov/png.a", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/mmx/cmov", 0xbffeca4c) = -1 ENOENT (No such file or directory)
open("/usr/lib/mmx/png.a", O_RDONLY)    = -1 ENOENT (No such file or directory)
stat64("/usr/lib/mmx", 0xbffeca4c)      = -1 ENOENT (No such file or directory)
open("/usr/lib/cmov/png.a", O_RDONLY)   = -1 ENOENT (No such file or directory)
stat64("/usr/lib/cmov", 0xbffeca4c)     = -1 ENOENT (No such file or directory)
open("/usr/lib/png.a", O_RDONLY)        = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=45056, ...}) = 0
munmap(0x408fc000, 68956)               = 0
open("/usr/local/lib/ImageMagick-6.3.1/modules-Q16/coders/png.so", 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\360-\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=204671, ...}) = 0
old_mmap(NULL, 112848, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x408fc000
old_mmap(0x40917000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1a000) = 0x40917000
close(3)                                = 0
open("/usr/local/lib/libpng12.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libpng12.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/libpng12.so.0", 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=68956, ...}) = 0
old_mmap(NULL, 68956, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40918000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -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\220\\\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=147224, ...}) = 0
old_mmap(NULL, 150228, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x409c5000
old_mmap(0x409e9000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x23000) = 0x409e9000
close(3)                                = 0
munmap(0x40918000, 68956)               = 0
time([1166760313])                      = 1166760313
times({tms_utime=0, tms_stime=11, tms_cutime=0, tms_cstime=0}) = 429981769
times({tms_utime=0, tms_stime=11, tms_cutime=0, tms_cstime=0}) = 429981769
stat64("/usr/local/apache2/htdocs/green.png", {st_mode=S_IFREG|0644, st_size=232, ...}) = 0
open("/usr/local/apache2/htdocs/green.png", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=232, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40918000
read(3, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0002\0\0\0002\20\2\0\0"..., 4096) = 232
read(3, "", 4096)                       = 0
_llseek(3, 0, [0], SEEK_SET)            = 0
read(3, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0002\0\0\0002\20\2\0\0"..., 8192) = 232
read(3, "", 4096)                       = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=232, ...}) = 0
close(3)                                = 0
munmap(0x40918000, 4096)                = 0
open("/usr/local/lib/ImageMagick-6.3.1/config/magic.xml", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/local/share/ImageMagick-6.3.1/config/magic.xml", O_RDONLY|O_LARGEFILE) = 3
_llseek(3, 0, [5192], SEEK_END)         = 0
mmap2(NULL, 5192, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40918000
munmap(0x40918000, 5192)                = 0
close(3)                                = 0
open("/usr/local/share/doc/ImageMagick-6.3.1/magic.xml", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/local/share/ImageMagick-6.3.1/magic.xml", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/home/vav/.magick/magic.xml", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("magic.xml", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
times({tms_utime=0, tms_stime=11, tms_cutime=0, tms_cstime=0}) = 429981770
times({tms_utime=0, tms_stime=11, tms_cutime=0, tms_cstime=0}) = 429981770
stat64("/usr/local/apache2/htdocs/green.png", {st_mode=S_IFREG|0644, st_size=232, ...}) = 0
open("/usr/local/apache2/htdocs/green.png", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=232, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40918000
read(3, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0002\0\0\0002\20\2\0\0"..., 4096) = 232
read(3, "", 4096)                       = 0
_llseek(3, 0, [0], SEEK_SET)            = 0
read(3, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0002\0\0\0002\20\2\0\0"..., 4096) = 232
brk(0)                                  = 0x84d5000
brk(0x84f9000)                          = 0x84f9000
fstat64(3, {st_mode=S_IFREG|0644, st_size=232, ...}) = 0
close(3)                                = 0
munmap(0x40918000, 4096)                = 0
getcwd("/usr/local/apache2/htdocs", 4096) = 26
time(NULL)                              = 1166760313
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local", {st_mode=S_IFDIR|S_ISGID|0775, st_size=4096, ...}) = 0
lstat64("/usr/local/apache2", {st_mode=S_IFDIR|S_ISGID|0755, st_size=4096, ...}) = 0
lstat64("/usr/local/apache2/htdocs", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat64("/usr/local/apache2/htdocs/red.png", {st_mode=S_IFREG|0644, st_size=229, ...}) = 0
times({tms_utime=0, tms_stime=12, tms_cutime=0, tms_cstime=0}) = 429981771
times({tms_utime=0, tms_stime=12, tms_cutime=0, tms_cstime=0}) = 429981771
stat64("/usr/local/apache2/htdocs/red.png", {st_mode=S_IFREG|0644, st_size=229, ...}) = 0
open("/usr/local/apache2/htdocs/red.png", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=229, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40918000
read(3, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0002\0\0\0002\20\2\0\0"..., 4096) = 229
read(3, "", 4096)                       = 0
_llseek(3, 0, [0], SEEK_SET)            = 0
read(3, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0002\0\0\0002\20\2\0\0"..., 8192) = 229
read(3, "", 4096)                       = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=229, ...}) = 0
close(3)                                = 0
munmap(0x40918000, 4096)                = 0
times({tms_utime=0, tms_stime=12, tms_cutime=0, tms_cstime=0}) = 429981772
times({tms_utime=0, tms_stime=12, tms_cutime=0, tms_cstime=0}) = 429981772
stat64("/usr/local/apache2/htdocs/red.png", {st_mode=S_IFREG|0644, st_size=229, ...}) = 0
open("/usr/local/apache2/htdocs/red.png", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=229, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40918000
read(3, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0002\0\0\0002\20\2\0\0"..., 4096) = 229
read(3, "", 4096)                       = 0
_llseek(3, 0, [0], SEEK_SET)            = 0
read(3, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0002\0\0\0002\20\2\0\0"..., 4096) = 229
fstat64(3, {st_mode=S_IFREG|0644, st_size=229, ...}) = 0
close(3)                                = 0
munmap(0x40918000, 4096)                = 0
times({tms_utime=0, tms_stime=13, tms_cutime=0, tms_cstime=0}) = 429981772
times({tms_utime=0, tms_stime=13, tms_cutime=0, tms_cstime=0}) = 429981772
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

We recoded your script to call the MagickWand library directly and it ran without complaint. There could be a bug in the MagickWand for PHP wrapper, however, we currently do not have a maintainer. If there are any volunteers, post here.
Post Reply