parser

Написать ответ на текущее сообщение

 

 
   команды управления поиском

На всякий случай - strace parser3.cgi

Nikon 11.02.2004 15:30

ttt.html - вызов now() из MySQL.

[root@svr mysql]# strace parser3 -f /var/www/cgi-bin/auto.p /var/wwwhost/local/zhik/ttt.html
execve("/usr/bin/parser3", ["parser3", "-f", "/var/www/cgi-bin/auto.p", "/var/wwwhost/local/zhik/ttt.html"], [/* 35 vars */]) = 0
uname({sys="Linux", node="svr.nsic.gov", ...}) = 0
brk(0) = 0x8128b8c
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=26345, ...}) = 0
mmap2(NULL, 26345, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40012000
close(4) = 0
open("/lib/libdl.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\30\0\000"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0755, st_size=8316, ...}) = 0
mmap2(NULL, 11248, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40019000
mprotect(0x4001b000, 3056, PROT_NONE) = 0
mmap2(0x4001b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x1) = 0x4001b000
close(4) = 0
open("/usr/lib/libgc.so.1", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\206\0"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0755, st_size=129736, ...}) = 0
mmap2(NULL, 180096, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4001c000
mprotect(0x40038000, 65408, PROT_NONE) = 0
mmap2(0x40038000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x1c) = 0x40038000
mmap2(0x4003c000, 49024, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4003c000
close(4) = 0
open("/lib/libglib-1.2.so.0", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20b\0\000"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0644, st_size=150540, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40048000
mmap2(NULL, 149516, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40049000
mprotect(0x4006d000, 2060, PROT_NONE) = 0
mmap2(0x4006d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x24) = 0x4006d000
close(4) = 0
open("/usr/lib/libxml2.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\330"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0644, st_size=970896, ...}) = 0
mmap2(NULL, 972980, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4006e000
mprotect(0x40152000, 39092, PROT_NONE) = 0
mmap2(0x40152000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xe4) = 0x40152000
mmap2(0x4015b000, 2228, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4015b000
close(4) = 0
open("/usr/lib/libgdome.so.0", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\3\1"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0644, st_size=223184, ...}) = 0
mmap2(NULL, 226276, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4015c000
mprotect(0x40192000, 5092, PROT_NONE) = 0
mmap2(0x40192000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x35) = 0x40192000
close(4) = 0
open("/usr/lib/libxslt.so.1", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20i\0\000"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0644, st_size=192044, ...}) = 0
mmap2(NULL, 195128, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40194000
mprotect(0x401c3000, 2616, PROT_NONE) = 0
mmap2(0x401c3000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x2e) = 0x401c3000
close(4) = 0
open("/usr/lib/libexslt.so.0", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0%\0\000"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0644, st_size=59612, ...}) = 0
mmap2(NULL, 62672, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x401c4000
mprotect(0x401d3000, 1232, PROT_NONE) = 0
mmap2(0x401d3000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xe) = 0x401d3000
close(4) = 0
open("/lib/libcrypt.so.1", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 r\0\000"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0755, st_size=41228, ...}) = 0
mmap2(NULL, 204124, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x401d4000
mprotect(0x401dd000, 167260, PROT_NONE) = 0
mmap2(0x401dd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x8) = 0x401dd000
mmap2(0x401df000, 159068, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401df000
close(4) = 0
open("/lib/libm.so.6", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2606\0"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0644, st_size=137716, ...}) = 0
mmap2(NULL, 140288, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40206000
mprotect(0x40228000, 1024, PROT_NONE) = 0
mmap2(0x40228000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x21) = 0x40228000
close(4) = 0
open("/lib/libc.so.6", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\207"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0755, st_size=1145896, ...}) = 0
mmap2(NULL, 1158976, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40229000
mprotect(0x4033b000, 36672, PROT_NONE) = 0
mmap2(0x4033b000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x112) = 0x4033b000
mmap2(0x40340000, 16192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40340000
close(4) = 0
open("/lib/libpthread.so.0", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0C\0\000"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0644, st_size=105521, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40344000
mmap2(NULL, 85328, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40345000
mprotect(0x40353000, 27984, PROT_NONE) = 0
mmap2(0x40353000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xe) = 0x40353000
close(4) = 0
open("/lib/libz.so.1", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\31\0\000"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0755, st_size=55524, ...}) = 0
mmap2(NULL, 58584, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4035a000
mprotect(0x40367000, 5336, PROT_NONE) = 0
mmap2(0x40367000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xc) = 0x40367000
close(4) = 0
munmap(0x40012000, 26345) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024, rlim_max=RLIM_INFINITY}) = 0
getpid() = 20943
rt_sigaction(SIGRTMIN, {0x4034d900, [], SA_RESTORER, 0x40252288}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x4034d9a0, [], SA_RESTORER, 0x40252288}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0x4034dad0, [], SA_RESTORER, 0x40252288}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff36c, 31, (nil), 0}) = 0
rt_sigaction(SIGPWR, {0x4034e0d0, ~[HUP INT], SA_RESTORER|SA_RESTART, 0x40252288}, NULL, 8) = 0
rt_sigaction(SIGXCPU, {0x4034e0d0, ~[HUP INT], SA_RESTORER|SA_RESTART, 0x40252288}, NULL, 8) = 0
open("/proc/stat", O_RDONLY) = 4
read(4, "cpu 256946 3303392 607782 40676"..., 4096) = 749
close(4) = 0
brk(0) = 0x8128b8c
brk(0x8129000) = 0x8129000
brk(0x8139000) = 0x8139000
brk(0x8149000) = 0x8149000
brk(0x8159000) = 0x8159000
getpid() = 20943
brk(0x8159030) = 0x8159030
brk(0x815a000) = 0x815a000
brk(0x816a000) = 0x816a000
brk(0x817a000) = 0x817a000
rt_sigaction(SIGUSR1, {0x4034e0d0, [USR1], SA_RESTORER|SA_RESTART, 0x40252288}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGPIPE, {0x4034e0d0, [PIPE], SA_RESTORER|SA_RESTART, 0x40252288}, {SIG_DFL}, 8) = 0
umask(02) = 022
getcwd("/home/nikon/sql/mysql", 1024) = 22
time(NULL) = 1076502628
time(NULL) = 1076502628
open("/var/www/cgi-bin/auto.p", O_RDONLY) = 4
stat64("/var/www/cgi-bin/auto.p", {st_mode=S_IFREG|0644, st_size=3464, ...}) = 0
read(4, "#$Id: auto.p.dist.in,v 1.10 2003"..., 3464) = 3464
close(4) = 0
brk(0x818a000) = 0x818a000
open("/etc/parser3.charsets/windows-1251.cfg", O_RDONLY) = 4
stat64("/etc/parser3.charsets/windows-1251.cfg", {st_mode=S_IFREG|0644, st_size=5229, ...}) = 0
read(4, "char\twhite-space\tdigit\thex-digit"..., 5229) = 5229
close(4) = 0
open("/etc/mtab", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=334, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40012000
read(4, "/dev/hda3 / ext3 rw 0 0\nproc /pr"..., 4096) = 334
close(4) = 0
munmap(0x40012000, 4096) = 0
open("/proc/meminfo", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40012000
read(4, " total: used: free:"..., 4096) = 524
close(4) = 0
munmap(0x40012000, 4096) = 0
open("/etc/parser3.charsets/koi8-r.cfg", O_RDONLY) = 4
stat64("/etc/parser3.charsets/koi8-r.cfg", {st_mode=S_IFREG|0644, st_size=4370, ...}) = 0
brk(0x819c000) = 0x819c000
read(4, "char\twhite-space\tdigit\thex-digit"..., 4370) = 4370
close(4) = 0
stat64("/var/auto.p", 0xbfffdd00) = -1 ENOENT (No such file or directory)
stat64("/var/wwwhost/auto.p", 0xbfffdd00) = -1 ENOENT (No such file or directory)
stat64("/var/wwwhost/local/auto.p", 0xbfffdd00) = -1 ENOENT (No such file or directory)
stat64("/var/wwwhost/local/zhik/auto.p", {st_mode=S_IFREG|0777, st_size=18301, ...}) = 0
open("/var/wwwhost/local/zhik/auto.p", O_RDONLY) = 4
stat64("/var/wwwhost/local/zhik/auto.p", {st_mode=S_IFREG|0777, st_size=18301, ...}) = 0
read(4, "@generic_page[]\n$sect[^table::lo"..., 18301) = 18301
close(4) = 0
brk(0x81b3000) = 0x81b3000
brk(0x81d1000) = 0x81d1000
open("/var/wwwhost/local/zhik/ttt.html", O_RDONLY) = 4
stat64("/var/wwwhost/local/zhik/ttt.html", {st_mode=S_IFREG|0644, st_size=525, ...}) = 0
read(4, "<html>\n <head>\n\t<link rel=\"st"..., 525) = 525
close(4) = 0
time(NULL) = 1076502628
open("/etc/localtime", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=815, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40012000
read(4, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\f\0\0\0\f\0"..., 4096) = 815
close(4) = 0
munmap(0x40012000, 4096) = 0
open("/usr/lib/libparser3mysql.so", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@=\0\000"..., 1024) = 1024
fstat64(4, {st_mode=S_IFREG|0755, st_size=176008, ...}) = 0
mmap2(NULL, 52532, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40369000
mprotect(0x40374000, 7476, PROT_NONE) = 0
mmap2(0x40374000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xa) = 0x40374000
close(4) = 0
writev(2, [{"parser3", 7}, {": ", 2}, {"relocation error", 16}, {": ", 2}, {"/usr/lib/libparser3mysql.so", 27}, {": ", 2}, {"undefined symbol: lt_dlinit", 27}, {"", 0}, {"", 0}, {"\n", 1}], 10parser3: relocation error: /usr/lib/libparser3mysql.so: undefined symbol: lt_dlinit
) = 84
_exit(127) = ?