[rrd-users] rrdtool php extension
Rick Dicaire
kritek at gmail.com
Fri Sep 4 01:35:16 CEST 2009
Hi folks, I compiled, installed, and enabled rrdtool php extension, it
shows as enabled in phpinfo().
rrdtool 1.2.27 (compiled, not package), php 5.2.6 (compiled, not
package), slackware linux 12.1.0, gcc (GCC) 4.2.3
When trying to run the following php script via commandline, I get the
following:
<?php
$fname = "missing.rrd";
$opts = array( "--step", "86400", "--start", "1231022640",
"DS:missing:GAUGE:172800:U:U",
"DS:msie:GAUGE:172800:U:U",
"DS:none:GAUGE:172800:U:U",
"RRA:AVERAGE:0.5:1:360",
"RRA:AVERAGE:0.5:7:360",
"RRA:AVERAGE:0.5:30:360",
"RRA:AVERAGE:0.5:360:360",
"RRA:MAX:0.5:1:360",
"RRA:MAX:0.5:7:360",
"RRA:MAX:0.5:30:360",
"RRA:MAX:0.5:360:360"
);
$ret = rrd_create($fname, $opts, count($opts));
if( $ret == 0 )
{
$err = rrd_error();
echo "Create error: $err\n";
}
?>
php missing_rrd.php
PHP Warning: Module 'rrdtool' already loaded in Unknown on line 0
Segmentation fault
I've tried stracing this:
execve("/usr/local/bin/php", ["php", "missing_rrd.php"], [/* 32 vars */]) = 0
brk(0) = 0x9bba000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/usr/src/imap-2007b/lib/tls/i686/libcrypt.so.1", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/src/imap-2007b/lib/tls/i686", 0xbfa84730) = -1 ENOENT (No
such file or directory)
open("/usr/src/imap-2007b/lib/tls/libcrypt.so.1", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/src/imap-2007b/lib/tls", 0xbfa84730) = -1 ENOENT (No such
file or directory)
open("/usr/src/imap-2007b/lib/i686/libcrypt.so.1", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/src/imap-2007b/lib/i686", 0xbfa84730) = -1 ENOENT (No
such file or directory)
open("/usr/src/imap-2007b/lib/libcrypt.so.1", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/src/imap-2007b/lib", {st_mode=S_IFDIR|0755,
st_size=12288, ...}) = 0
open("/usr/local/pgsql/lib/tls/i686/libcrypt.so.1", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/local/pgsql/lib/tls/i686", 0xbfa84730) = -1 ENOENT (No
such file or directory)
open("/usr/local/pgsql/lib/tls/libcrypt.so.1", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/local/pgsql/lib/tls", 0xbfa84730) = -1 ENOENT (No such
file or directory)
open("/usr/local/pgsql/lib/i686/libcrypt.so.1", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/local/pgsql/lib/i686", 0xbfa84730) = -1 ENOENT (No such
file or directory)
open("/usr/local/pgsql/lib/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/local/pgsql/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=45465, ...}) = 0
mmap2(NULL, 45465, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb805b000
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\0000\7\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=42592, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb805a000
mmap2(NULL, 201052, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb8028000
mmap2(0xb8031000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8) = 0xb8031000
mmap2(0xb8033000, 155996, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb8033000
close(3) = 0
open("/usr/src/imap-2007b/lib/libpq.so.3", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/local/pgsql/lib/libpq.so.3", 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\220S\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=125447, ...}) = 0
mmap2(NULL, 105848, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb800e000
mmap2(0xb8027000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19) = 0xb8027000
close(3) = 0
open("/usr/src/imap-2007b/lib/librt.so.1", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/local/pgsql/lib/librt.so.1", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/lib/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\320\30"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=39126, ...}) = 0
mmap2(NULL, 33328, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb8005000
mmap2(0xb800c000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb800c000
close(3) = 0
open("/usr/src/imap-2007b/lib/libt1.so.5", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/local/pgsql/lib/libt1.so.5", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/usr/lib/libt1.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\0pd\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=251292, ...}) = 0
mmap2(NULL, 339772, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7fb2000
mmap2(0xb7fed000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3a) = 0xb7fed000
mmap2(0xb7ff0000, 85820, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ff0000
close(3) = 0
open("/usr/src/imap-2007b/lib/libfreetype.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/local/pgsql/lib/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\0Pm\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=447484, ...}) = 0
mmap2(NULL, 449620, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7f44000
mmap2(0xb7fae000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x69) = 0xb7fae000
close(3) = 0
open("/usr/src/imap-2007b/lib/libz.so.1", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/local/pgsql/lib/libz.so.1", O_RDONLY) = -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\320\25"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=77688, ...}) = 0
mmap2(NULL, 80308, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7f30000
mmap2(0xb7f43000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0xb7f43000
close(3) = 0
open("/usr/src/imap-2007b/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/local/pgsql/lib/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\0p\n\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=13474, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f2f000
mmap2(NULL, 12412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7f2b000
mmap2(0xb7f2d000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7f2d000
close(3) = 0
open("/usr/src/imap-2007b/lib/libXpm.so.4", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/local/pgsql/lib/libXpm.so.4", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/lib/libXpm.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@\"\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=61088, ...}) = 0
mmap2(NULL, 63420, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7f1b000
mmap2(0xb7f2a000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) = 0xb7f2a000
close(3) = 0
open("/usr/src/imap-2007b/lib/libX11.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/local/pgsql/lib/libX11.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/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\320=\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=949412, ...}) = 0
mmap2(NULL, 946080, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7e34000
mmap2(0xb7f17000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe2) = 0xb7f17000
close(3) = 0
open("/usr/src/imap-2007b/lib/libxcb-xlib.so.0", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/local/pgsql/lib/libxcb-xlib.so.0", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/lib/libxcb-xlib.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\240\4\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=3340, ...}) = 0
mmap2(NULL, 6212, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7e32000
mmap2(0xb7e33000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0xb7e33000
close(3) = 0
open("/usr/src/imap-2007b/lib/libxcb.so.1", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/local/pgsql/lib/libxcb.so.1", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/lib/libxcb.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 q\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=92340, ...}) = 0
mmap2(NULL, 90948, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7e1b000
mmap2(0xb7e31000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16) = 0xb7e31000
close(3) = 0
open("/usr/src/imap-2007b/lib/libXau.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/local/pgsql/lib/libXau.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/lib/libXau.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 \t\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=7188, ...}) = 0
mmap2(NULL, 9940, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7e18000
mmap2(0xb7e1a000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7e1a000
close(3) = 0
open("/usr/src/imap-2007b/lib/libXdmcp.so.6", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/local/pgsql/lib/libXdmcp.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/lib/libXdmcp.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\300\r\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=17196, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7e17000
mmap2(NULL, 19348, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7e12000
mmap2(0xb7e16000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3) = 0xb7e16000
close(3) = 0
open("/usr/src/imap-2007b/lib/libpng.so.3", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/local/pgsql/lib/libpng.so.3", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/lib/libpng.so.3", 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\340Y\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=238768, ...}) = 0
mmap2(NULL, 241388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7dd7000
mmap2(0xb7e11000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x39) = 0xb7e11000
close(3) = 0
open("/usr/src/imap-2007b/lib/libjpeg.so.62", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/local/pgsql/lib/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\200!\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=126528, ...}) = 0
mmap2(NULL, 128536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7db7000
mmap2(0xb7dd6000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e) = 0xb7dd6000
close(3) = 0
open("/usr/src/imap-2007b/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/local/pgsql/lib/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\0p!\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=77478, ...}) = 0
mmap2(NULL, 75972, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7da4000
mmap2(0xb7db3000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0xb7db3000
mmap2(0xb7db5000, 6340, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7db5000
close(3) = 0
open("/usr/src/imap-2007b/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/local/pgsql/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/lib/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 at 4\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=180649, ...}) = 0
mmap2(NULL, 151680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7d7e000
mmap2(0xb7da2000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23) = 0xb7da2000
close(3) = 0
open("/usr/src/imap-2007b/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/local/pgsql/lib/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\00001\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=100991, ...}) = 0
mmap2(NULL, 96232, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7d66000
mmap2(0xb7d7a000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0xb7d7a000
mmap2(0xb7d7c000, 6120, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7d7c000
close(3) = 0
open("/usr/src/imap-2007b/lib/libssl.so.0", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/local/pgsql/lib/libssl.so.0", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/lib/libssl.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\263\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=259780, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7d65000
mmap2(NULL, 261976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7d25000
mmap2(0xb7d61000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3b) = 0xb7d61000
close(3) = 0
open("/usr/src/imap-2007b/lib/libcrypto.so.0", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/local/pgsql/lib/libcrypto.so.0", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/lib/libcrypto.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`\3\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=1285552, ...}) = 0
mmap2(NULL, 1292088, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7be9000
mmap2(0xb7d0d000, 86016, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x123) = 0xb7d0d000
mmap2(0xb7d22000, 10040, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7d22000
mprotect(0xbfa85000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0
close(3) = 0
open("/usr/src/imap-2007b/lib/libxml2.so.2", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/local/pgsql/lib/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\260\246"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1155340, ...}) = 0
mmap2(NULL, 1157140, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7ace000
mmap2(0xb7be3000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x115) = 0xb7be3000
mmap2(0xb7be8000, 2068, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7be8000
close(3) = 0
open("/usr/src/imap-2007b/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/local/pgsql/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/lib/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\360d\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1575187, ...}) = 0
mmap2(NULL, 1357360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7982000
mmap2(0xb7ac8000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x146) = 0xb7ac8000
mmap2(0xb7acb000, 9776, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7acb000
close(3) = 0
open("/usr/local/pgsql/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/src/imap-2007b/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/local/pgsql/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/lib/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\200G\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=114891, ...}) = 0
mmap2(NULL, 90588, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb796b000
mmap2(0xb797e000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0xb797e000
mmap2(0xb7980000, 4572, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7980000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb796a000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7969000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb79698d0,
limit:1048575, seg_32bit:1, contents:0, read_exec_on
ly:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7ac8000, 4096, PROT_READ) = 0
mprotect(0xb7f30000, 77824, PROT_READ|PROT_WRITE) = 0
mprotect(0xb7f30000, 77824, PROT_READ|PROT_EXEC) = 0
munmap(0xb805b000, 45465) = 0
set_tid_address(0xb7969918) = 22071
set_robust_list(0xb7969920, 0xc) = 0
futex(0xbfa85000, 0x81 /* FUTEX_??? */, 1) = 0
rt_sigaction(SIGRTMIN, {0xb796f260, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xb796f2e0, [], 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
uname({sys="Linux", node="rdb", ...}) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
brk(0) = 0x9bba000
brk(0x9bdb000) = 0x9bdb000
getcwd("/root", 4096) = 6
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7928000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2638, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb8066000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2638
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb8066000, 4096) = 0
open("/usr/lib/locale/en_US/LC_CTYPE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=220516, ...}) = 0
mmap2(NULL, 220516, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb78f2000
close(3) = 0
open("/etc/localtime", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2294, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=2294, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb78f1000
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0\0"...,
4096) = 2294
_llseek(3, -24, [2270], SEEK_CUR) = 0
read(3, "\nEST5EDT,M3.2.0,M11.1.0\n", 4096) = 24
close(3) = 0
munmap(0xb78f1000, 4096) = 0
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/sbin", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local/sbin/php", 0xbfa7facc) = -1 ENOENT (No such file
or directory)
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/sbin", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/sbin/php", 0xbfa7facc) = -1 ENOENT (No such file or directory)
lstat64("/sbin", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/sbin/php", 0xbfa7facc) = -1 ENOENT (No such file or directory)
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/bin", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local/bin/php", {st_mode=S_IFREG|0755, st_size=15001934, ...}) = 0
access("/usr/local/bin/php", X_OK) = 0
open("/usr/local/bin/php-cli.ini", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/etc/php/php-cli.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/bin/php.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/php/php.ini", O_RDONLY) = 3
lstat64("/etc", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/etc/php", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/etc/php/php.ini", {st_mode=S_IFREG|0644, st_size=38898, ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfa82af8) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat64(3, {st_mode=S_IFREG|0644, st_size=38898, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb78f1000
read(3, "[PHP]\n\n;;;;;;;;;;;\n; WARNING ;\n;"..., 8192) = 8192
read(3, "iable!\nsafe_mode_allowed_env_var"..., 8192) = 8192
read(3, "s text/html\ndefault_mimetype = \""..., 8192) = 8192
read(3, "l_connect() (doesn\'t apply in sa"..., 8192) = 8192
read(3, "send URL contains active session"..., 8192) = 6130
read(3, "", 4096) = 0
read(3, "", 8192) = 0
close(3) = 0
munmap(0xb78f1000, 4096) = 0
open("/etc/php", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(3, F_GETFD) = 0x1 (flags FD_CLOEXEC)
getdents(3, /* 3 entries */, 4096) = 52
getdents(3, /* 0 entries */, 4096) = 0
close(3) = 0
stat64("/etc/php/php.ini", {st_mode=S_IFREG|0644, st_size=38898, ...}) = 0
open("/etc/php/php.ini", O_RDONLY) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfa82af8) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat64(3, {st_mode=S_IFREG|0644, st_size=38898, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb78f1000
read(3, "[PHP]\n\n;;;;;;;;;;;\n; WARNING ;\n;"..., 8192) = 8192
read(3, "iable!\nsafe_mode_allowed_env_var"..., 8192) = 8192
read(3, "s text/html\ndefault_mimetype = \""..., 8192) = 8192
read(3, "l_connect() (doesn\'t apply in sa"..., 8192) = 8192
read(3, "send URL contains active session"..., 8192) = 6130
read(3, "", 4096) = 0
read(3, "", 8192) = 0
close(3) = 0
munmap(0xb78f1000, 4096) = 0
brk(0x9bfc000) = 0x9bfc000
brk(0x9c1e000) = 0x9c1e000
futex(0xb7f2e070, 0x81 /* FUTEX_??? */, 2147483647) = 0
open("/usr/local/lib/php/extensions/no-debug-non-zts-20060613/rrdtool.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\0\20\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=46510, ...}) = 0
mmap2(NULL, 19228, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb78ed000
mmap2(0xb78f1000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3) = 0xb78f1000
close(3) = 0
open("/backup/rrdtool-1.2.27/lib/tls/i686/librrd.so.2", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/backup/rrdtool-1.2.27/lib/tls/i686", 0xbfa84450) = -1 ENOENT
(No such file or directory)
open("/backup/rrdtool-1.2.27/lib/tls/librrd.so.2", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/backup/rrdtool-1.2.27/lib/tls", 0xbfa84450) = -1 ENOENT (No
such file or directory)
open("/backup/rrdtool-1.2.27/lib/i686/librrd.so.2", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/backup/rrdtool-1.2.27/lib/i686", 0xbfa84450) = -1 ENOENT (No
such file or directory)
open("/backup/rrdtool-1.2.27/lib/librrd.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\0pZ\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=592375, ...}) = 0
mmap2(NULL, 288000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb78a6000
mmap2(0xb78e7000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x40) = 0xb78e7000
mmap2(0xb78eb000, 5376, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb78eb000
close(3) = 0
open("/backup/rrdtool-1.2.27/lib/libart_lgpl_2.so.2", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/src/imap-2007b/lib/libart_lgpl_2.so.2", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/local/pgsql/lib/libart_lgpl_2.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=45465, ...}) = 0
mmap2(NULL, 45465, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb805b000
close(3) = 0
open("/usr/lib/libart_lgpl_2.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\20#\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=84724, ...}) = 0
mmap2(NULL, 86844, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7890000
mmap2(0xb78a5000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0xb78a5000
close(3) = 0
munmap(0xb805b000, 45465) = 0
write(2, "PHP Warning: Module \'rrdtool\' a"..., 67) = 67
futex(0xb7be8658, 0x81 /* FUTEX_??? */, 2147483647) = 0
brk(0x9c3f000) = 0x9c3f000
brk(0x9c60000) = 0x9c60000
brk(0x9c81000) = 0x9c81000
stat64("/etc/cram-md5.pwd", 0xbfa84ba4) = -1 ENOENT (No such file or directory)
stat64("/dev/urandom", {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 9), ...}) = 0
brk(0x9ca2000) = 0x9ca2000
munmap(0xb7928000, 266240) = 0
brk(0x9cf3000) = 0x9cf3000
open("missing_rrd.php", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0600, st_size=635, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb8066000
read(3, "<?php\n\n $fname = \"missing.rrd\";"..., 4096) = 635
_llseek(3, 0, [0], SEEK_SET) = 0
time(NULL) = 1252020380
fstat64(0, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 9), ...}) = 0
fstat64(0, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 9), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb8065000
_llseek(0, 0, 0xbfa84b5c, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 9), ...}) = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 9), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb8064000
_llseek(1, 0, 0xbfa84b5c, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fstat64(2, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 9), ...}) = 0
_llseek(2, 0, 0xbfa84b5c, SEEK_CUR) = -1 ESPIPE (Illegal seek)
getcwd("/root", 4096) = 6
time(NULL) = 1252020380
lstat64("/root", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/root/missing_rrd.php", {st_mode=S_IFREG|0600, st_size=635, ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfa82b18) = -1 ENOTTY
(Inappropriate ioctl for device)
read(3, "<?php\n\n $fname = \"missing.rrd\";"..., 8192) = 635
read(3, "", 4096) = 0
read(3, "", 8192) = 0
close(3) = 0
munmap(0xb8066000, 4096) = 0
time(NULL) = 1252020380
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
-------------------------------------------------------------------------------------------------------------
Any thoughts/ideas on why the rrdtool module is segfaulting?
Thanks
--
aRDy Music and Rick Dicaire present:
http://www.ardynet.com
http://www.ardynet.com:9000/ardymusic.ogg.m3u
More information about the rrd-users
mailing list