PDA

Visualizza la versione completa : ctype_digit() : Segmentation fault


Gionnico
15-04-2007, 23:37
Se eseguo questo comando, da linea di comando o meno:


php -r 'print ctype_digit(1234);'

Ottengo l'errore:


Fatal error: Call to undefined function ctype_digit() in Command line code on line 1
Segmentation fault


Cosa c' che non v??

cacao74
16-04-2007, 07:46
traccia le chiamate di sistema con strace e riverifica...
$ strace <tuo_codice>

In teoria dovresti ottenere un output simile a questo:


$ php -r 'print ctype_digit(1234);'
1


ciao

Gionnico
16-04-2007, 14:34
Magari # strace desse 1..



execve("/usr/bin/php", ["php", "-r", "print ctype_digit(1234);"], [/* 22 vars */]) = 0
brk(0) = 0x85af000
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", 0xbf876654) = -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", 0xbf876654) = -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", 0xbf876654) = -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=664, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13257, ...}) = 0
mmap2(NULL, 13257, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7eeb000
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\0P\1 0\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=22200, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7eea000
mmap2(NULL, 184636, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ebc000
mmap2(0xb7ec1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0xb7ec1000
mmap2(0xb7ec3000, 155964, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ec3000
close(3) = 0
open("/usr/lib/mysql/libhistory.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libhistory.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 \30\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=26632, ...}) = 0
mmap2(NULL, 25216, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7eb5000
mmap2(0xb7ebb000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb7ebb000
close(3) = 0
open("/usr/lib/mysql/libreadline.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libreadline.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\0000 \273"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=186252, ...}) = 0
mmap2(NULL, 192196, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e86000
mmap2(0xb7eb0000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x29) = 0xb7eb0000
mmap2(0xb7eb4000, 3780, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7eb4000
close(3) = 0
open("/usr/lib/mysql/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libncurses.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\20 0\347"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=284432, ...}) = 0
mmap2(NULL, 280452, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e41000
mmap2(0xb7e7d000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3c) = 0xb7e7d000
mmap2(0xb7e85000, 1924, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e85000
close(3) = 0
open("/usr/lib/mysql/libpanel.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libpanel.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\0000 \10\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=10220, ...}) = 0
mmap2(NULL, 8508, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e3e000
mmap2(0xb7e40000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7e40000
close(3) = 0
open("/usr/lib/mysql/libmcrypt.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libmcrypt.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`x\ 0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=220484, ...}) = 0
mmap2(NULL, 240960, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e03000
mmap2(0xb7e36000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x33) = 0xb7e36000
mmap2(0xb7e39000, 19776, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e39000
close(3) = 0
open("/usr/lib/mysql/libltdl.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libltdl.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\0P\2 2\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=22412, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e02000
mmap2(NULL, 21108, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dfc000
mmap2(0xb7e01000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5) = 0xb7e01000
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`\f \0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=10192, ...}) = 0
mmap2(NULL, 12412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7df8000
mmap2(0xb7dfa000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7dfa000
close(3) = 0
open("/usr/lib/mysql/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=275088, ...}) = 0
mmap2(NULL, 358872, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7da0000
mmap2(0xb7de0000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x40) = 0xb7de0000
mmap2(0xb7de3000, 84440, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7de3000
close(3) = 0
open("/usr/lib/mysql/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\36 03\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=155340, ...}) = 0
mmap2(NULL, 147584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d7b000
mmap2(0xb7d9e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22) = 0xb7d9e000
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`j\ 0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=534224, ...}) = 0
mmap2(NULL, 531596, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7cf9000
mmap2(0xb7d78000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7f) = 0xb7d78000
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\22 0\24"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=78376, ...}) = 0
mmap2(NULL, 80756, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ce5000
mmap2(0xb7cf8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0xb7cf8000
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\0p6\ 0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=144992, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ce4000
mmap2(NULL, 147180, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7cc0000
mmap2(0xb7ce3000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22) = 0xb7ce3000
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\0p$\ 0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=151580, ...}) = 0
mmap2(NULL, 148592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c9b000
mmap2(0xb7cbf000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x24) = 0xb7cbf000
close(3) = 0
open("/usr/lib/mysql/libgdbm.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libgdbm.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\20 0\17"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=20136, ...}) = 0
mmap2(NULL, 22236, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c95000
mmap2(0xb7c9a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4) = 0xb7c9a000
close(3) = 0
open("/usr/lib/mysql/libbz2.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libbz2.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 \21\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=66612, ...}) = 0
mmap2(NULL, 65060, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c85000
mmap2(0xb7c94000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0xb7c94000
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\32 0$\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=59932, ...}) = 0
mmap2(NULL, 71880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c73000
mmap2(0xb7c81000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd) = 0xb7c81000
mmap2(0xb7c83000, 6344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7c83000
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\36 05\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=77016, ...}) = 0
mmap2(NULL, 87848, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c5d000
mmap2(0xb7c6f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11) = 0xb7c6f000
mmap2(0xb7c71000, 5928, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7c71000
close(3) = 0
open("/usr/lib/mysql/libssl.so.0.9.8", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libssl.so.0.9.8", 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`\2 55\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=254508, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c5c000
mmap2(NULL, 255860, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7c1d000
mmap2(0xb7c58000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3a) = 0xb7c58000
close(3) = 0
open("/usr/lib/mysql/libcrypto.so.0.9.8", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libcrypto.so.0.9.8", 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\30 0\\\3"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0555, st_size=1318032, ...}) = 0
mmap2(NULL, 1312248, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7adc000
mmap2(0xb7c05000, 86016, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x129) = 0xb7c05000
mmap2(0xb7c1a000, 9720, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7c1a000
close(3) = 0

Gionnico
16-04-2007, 14:34
open("/usr/lib/mysql/libcurl.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libcurl.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\26 0n\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=219388, ...}) = 0
mmap2(NULL, 216412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7aa7000
mmap2(0xb7adb000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x34) = 0xb7adb000
close(3) = 0
open("/usr/lib/mysql/libmysqlclient_r.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\0P>\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1438652, ...}) = 0
mmap2(NULL, 1440696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7947000
mmap2(0xb7a64000, 270336, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11c) = 0xb7a64000
mmap2(0xb7aa6000, 3000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7aa6000
close(3) = 0
open("/usr/lib/mysql/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\32 0L\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=123541, ...}) = 0
mmap2(NULL, 90592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7930000
mmap2(0xb7943000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0xb7943000
mmap2(0xb7945000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7945000
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\0p\2 45\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1528764, ...}) = 0
mmap2(NULL, 1529684, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb77ba000
mmap2(0xb792a000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x170) = 0xb792a000
mmap2(0xb792f000, 1876, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb792f000
close(3) = 0
open("/usr/lib/mysql/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\20 0Y\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1245984, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77b9000
mmap2(NULL, 1209788, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7691000
mmap2(0xb77b3000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x122) = 0xb77b3000
mmap2(0xb77b6000, 9660, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb77b6000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7690000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb768f000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb768f6b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb77b3000, 4096, PROT_READ) = 0
mprotect(0xb7943000, 4096, PROT_READ) = 0
mprotect(0xb7f0a000, 4096, PROT_READ) = 0
munmap(0xb7eeb000, 13257) = 0
set_tid_address(0xb768f6f8) = 10716
sendto(-1217857792, 0xc, 3079946228, MSG_PROXY|MSG_EOR|MSG_TRUNC|MSG_ERRQUEUE|MSG_FIN|M SG_SYN|MSG_RST|MSG_NOSIGNAL|MSG_MORE|0xb7680000, {sa_family=0x457f /* AF_??? */, sa_data="LF\1\1\1\0\0\0\0\0\0\0\0\0"}, 3213323944) = 0
rt_sigaction(SIGRTMIN, {0xb79348c0, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xb79347e0, [], 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="prise", ...}) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
brk(0) = 0x85af000
brk(0x85d0000) = 0x85d0000
getcwd("/root", 4096) = 6
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb764e000
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=2586, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7eee000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2586
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7eee000, 4096) = 0
open("/usr/lib/locale/it_IT@euro/LC_CTYPE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=207972, ...}) = 0
mmap2(NULL, 207972, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb761b000
close(3) = 0
open("/etc/localtime", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=951, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=951, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb761a000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0 \6\0"..., 4096) = 951
close(3) = 0
munmap(0xb761a000, 4096) = 0
getcwd("/root", 4096) = 6
lstat64("/root/php", 0xbf8759dc) = -1 ENOENT (No such file or directory)
lstat64("/etc", {st_mode=S_IFDIR|0755, st_size=2992, ...}) = 0
lstat64("/etc/php", {st_mode=S_IFDIR|0755, st_size=104, ...}) = 0
lstat64("/etc/php/cli-php5", {st_mode=S_IFDIR|0755, st_size=128, ...}) = 0
lstat64("/etc/php/cli-php5/php-cli.ini", 0xbf8728ac) = -1 ENOENT (No such file or directory)
open("/etc/php/cli-php5/php-cli.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
lstat64("/etc", {st_mode=S_IFDIR|0755, st_size=2992, ...}) = 0
lstat64("/etc/php", {st_mode=S_IFDIR|0755, st_size=104, ...}) = 0
lstat64("/etc/php/cli-php5", {st_mode=S_IFDIR|0755, st_size=128, ...}) = 0
lstat64("/etc/php/cli-php5/php.ini", {st_mode=S_IFREG|0644, st_size=44171, ...}) = 0
open("/etc/php/cli-php5/php.ini", O_RDONLY) = 3
lstat64("/etc", {st_mode=S_IFDIR|0755, st_size=2992, ...}) = 0
lstat64("/etc/php", {st_mode=S_IFDIR|0755, st_size=104, ...}) = 0
lstat64("/etc/php/cli-php5", {st_mode=S_IFDIR|0755, st_size=128, ...}) = 0
lstat64("/etc/php/cli-php5/php.ini", {st_mode=S_IFREG|0644, st_size=44171, ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf875958) = -1 ENOTTY (Inappropriate ioctl for device)
fstat64(3, {st_mode=S_IFREG|0644, st_size=44171, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb761a000
read(3, "[PHP]\n\n;;;;;;;;;;;\n; WARNING ;\n;"..., 8192) = 8192
read(3, "may only alter environment varia"..., 8192) = 8192
read(3, "\"EGPCS\"\n\n; Whether or not to reg"..., 8192) = 8192
read(3, "\n;sqlite.assoc_case = 0\n\n[xmlrpc"..., 8192) = 8192
read(3, "o limit.\nifx.max_links = -1\n\n; I"..., 8192) = 8192
read(3, "mbstring]\n; language for interna"..., 8192) = 3211
read(3, "", 4096) = 0
read(3, "", 8192) = 0
close(3) = 0
munmap(0xb761a000, 4096) = 0
open("/etc/php/cli-php5/ext-active", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=48, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents(3, /* 2 entries */, 4096) = 32
getdents(3, /* 0 entries */, 4096) = 0
close(3) = 0
brk(0x85f1000) = 0x85f1000
brk(0x8612000) = 0x8612000
futex(0xb792f5b8, FUTEX_WAKE, 2147483647) = 0
brk(0x8633000) = 0x8633000
brk(0x8654000) = 0x8654000
open("/etc/nsswitch.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=508, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb761a000
read(3, "# /etc/nsswitch.conf:\n# $Header:"..., 4096) = 508
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb761a000, 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=13257, ...}) = 0
mmap2(NULL, 13257, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7617000
close(3) = 0
open("/lib/tls/i686/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686", 0xbf8763f0) = -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", 0xbf8763f0) = -1 ENOENT (No such file or directory)
open("/lib/i686/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686", 0xbf8763f0) = -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=3920, ...}) = 0
open("/usr/lib/tls/i686/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686", 0xbf8763f0) = -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", 0xbf8763f0) = -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", 0xbf8763f0) = -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=10912, ...}) = 0
munmap(0xb7617000, 13257) = 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=13257, ...}) = 0
mmap2(NULL, 13257, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7617000
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\34 0\33"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=34860, ...}) = 0
mmap2(NULL, 37528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb760d000
mmap2(0xb7615000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0xb7615000
close(3) = 0
munmap(0xb7617000, 13257) = 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) = 0xb761a000
read(3, "# /etc/protocols\n#\n# Internet (I"..., 4096) = 1623
close(3) = 0

Gionnico
16-04-2007, 14:35
munmap(0xb761a000, 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) = 0xb761a000
read(3, "# /etc/protocols\n#\n# Internet (I"..., 4096) = 1623
close(3) = 0
munmap(0xb761a000, 4096) = 0
brk(0x8675000) = 0x8675000
brk(0x8696000) = 0x8696000
brk(0x86b7000) = 0x86b7000
futex(0xb7dfb070, FUTEX_WAKE, 2147483647) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13257, ...}) = 0
mmap2(NULL, 13257, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7617000
close(3) = 0
open("/lib/libz.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\22 0\24"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=78376, ...}) = 0
close(3) = 0
munmap(0xb7617000, 13257) = 0
brk(0x86d8000) = 0x86d8000
brk(0x86f9000) = 0x86f9000
brk(0x871a000) = 0x871a000
munmap(0xb764e000, 266240) = 0
brk(0x8775000) = 0x8775000
time(NULL) = 1176726033
gettimeofday({1176726033, 182596}, NULL) = 0
fstat64(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
lseek(1, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fstat64(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
lseek(2, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb768e000
write(1, "\n", 1) = 1
write(1, "Fatal error: Call to undefined f"..., 85) = 85
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

dAb
16-04-2007, 14:54
Che versione usi? Quella che hai e` stata probabilmente compilata con --disable-ctype, a partire dalla 4.2.0 e` un'estensione abilitata al default.

Gionnico
16-04-2007, 16:31
Originariamente inviato da dAb
Che versione usi? Quella che hai e` stata probabilmente compilata con --disable-ctype, a partire dalla 4.2.0 e` un'estensione abilitata al default.
Ho la 5.2.1.... ma avevi ragione, era disabilitata l'estenzione.. :zizi:

Loading