Apache i auth-type DB = Segm. Fault

Adam Jurkiewicz a.jurkiewicz w herc.com.pl
Czw, 6 Lut 2003, 15:53:02 CET


Dnia czw 6. luty 2003 14:08, Tomasz Kłoczko napisał:
> uruchomieniu bez widelca zapuścić śledzia za bugiem :)

No to Tomku, dla żądnych danych umysłów :

w przeglądarce zrobiłem:
1. www.linux.herc.com.pl
2. www.linux.herc.com.pl/dealer
3. wpisałem usera i hasło i wcisnąłem OK.

Zaraz zrobię też ltrace .....

tu wcześniej był strace httpd -X
[....]
write(18, "http://www.linux.herc.com.pl/men"..., 57) = 57
write(19, "Mozilla/5.0 (compatible; Konquer"..., 44) = 44
close(7)                                = 0
rt_sigaction(SIGUSR1, {0x805beb4, [], SA_INTERRUPT|0x4000000}, {SIG_IGN}, 8) = 
0
alarm(15)                               = 0
read(5, 0x808fb10, 4096)                = ? ERESTARTSYS (To be restarted)
--- SIGALRM (Alarm clock) ---
close(5)                                = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGURG, {0x805ae3c, [], SA_INTERRUPT|0x4000000}, {0x805ae3c, [], 
SA_INTERRU
PT|0x4000000}, 8) = 0
rt_sigaction(SIGALRM, {0x805b080, [], SA_INTERRUPT|0x4000000}, {0x805b080, [], 
SA_INTERR
UPT|0x4000000}, 8) = 0
rt_sigaction(SIGUSR1, {0x805beb4, [], SA_INTERRUPT|0x4000000}, {0x805beb4, [], 
SA_INTERR
UPT|0x4000000}, 8) = 0
alarm(0)                                = 0
accept(16, {sin_family=AF_INET6, sin6_port=htons(2031), inet_pton(AF_INET6, 
"::ffff:192.
168.0.5", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 5
rt_sigaction(SIGUSR1, {SIG_IGN}, {0x805beb4, [], SA_INTERRUPT|0x4000000}, 8) = 
0
getsockname(5, {sin_family=AF_INET6, sin6_port=htons(80), inet_pton(AF_INET6, 
"::ffff:21
3.25.210.68", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0
alarm(300)                              = 0
read(5, "GET /tuxlarge.gif HTTP/1.1\r\nUser"..., 4096) = 522
rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0
time(NULL)                              = 1044541136
alarm(300)                              = 300
alarm(0)                                = 300
stat("/home/httpd/html/tuxlarge.gif", {st_mode=S_IFREG|0644, st_size=15811, 
...}) = 0
alarm(0)                                = 0
open("/home/httpd/html/tuxlarge.gif", O_RDONLY) = 7
alarm(300)                              = 0
alarm(0)                                = 300
select(6, [5], NULL, NULL, {0, 0})      = 0 (Timeout)
write(5, "HTTP/1.1 304 Not Modified\r\nDate:"..., 189) = 189
socket(PF_UNIX, SOCK_STREAM, 0)         = 8
connect(8, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1 
ECONNREFUSED (C
onnection refused)
close(8)                                = 0
open("/etc/hosts", O_RDONLY)            = 8
fcntl(8, F_GETFD)                       = 0
fcntl(8, F_SETFD, FD_CLOEXEC)           = 0
fstat(8, {st_mode=S_IFREG|0644, st_size=301, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x125000
read(8, "# /etc/hosts\n127.0.0.1\tlocalhost"..., 4096) = 301
read(8, "", 4096)                       = 0
close(8)                                = 0
munmap(0x125000, 4096)                  = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 8
connect(8, {sin_family=AF_INET, sin_port=htons(53), 
sin_addr=inet_addr("192.168.0.1")}},
 28) = 0
send(8, "\361\234\1\0\0\1\0\0\0\0\0\0\0015\0010\003168\003192\7"..., 42, 0) = 
42
gettimeofday({1044541136, 705802}, NULL) = 0
poll([{fd=8, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
recvfrom(8, "\361\234\205\203\0\1\0\0\0\1\0\0\0015\0010\003168\0031"..., 1024, 
0, {sin_f
amily=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.0.1")}}, [16]) 
= 119
close(8)                                = 0
time(NULL)                              = 1044541136
write(17, "::ffff:192.168.0.5 - - [06/Feb/2"..., 174) = 174
write(18, "http://www.linux.herc.com.pl/men"..., 56) = 56
write(19, "Mozilla/5.0 (compatible; Konquer"..., 44) = 44
close(7)                                = 0
rt_sigaction(SIGUSR1, {0x805beb4, [], SA_INTERRUPT|0x4000000}, {SIG_IGN}, 8) = 
0
alarm(15)                               = 0
read(5, 0x808fb10, 4096)                = ? ERESTARTSYS (To be restarted)
--- SIGALRM (Alarm clock) ---
close(5)                                = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGURG, {0x805ae3c, [], SA_INTERRUPT|0x4000000}, {0x805ae3c, [], 
SA_INTERRU
PT|0x4000000}, 8) = 0
rt_sigaction(SIGALRM, {0x805b080, [], SA_INTERRUPT|0x4000000}, {0x805b080, [], 
SA_INTERR
UPT|0x4000000}, 8) = 0
rt_sigaction(SIGUSR1, {0x805beb4, [], SA_INTERRUPT|0x4000000}, {0x805beb4, [], 
SA_INTERR
UPT|0x4000000}, 8) = 0
alarm(0)                                = 0
accept(16, {sin_family=AF_INET6, sin6_port=htons(2032), inet_pton(AF_INET6, 
"::ffff:192.
168.0.5", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 5
rt_sigaction(SIGUSR1, {SIG_IGN}, {0x805beb4, [], SA_INTERRUPT|0x4000000}, 8) = 
0
getsockname(5, {sin_family=AF_INET6, sin6_port=htons(80), inet_pton(AF_INET6, 
"::ffff:21
3.25.210.68", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0
alarm(300)                              = 0
read(5, "GET /bnr-02.gif HTTP/1.1\r\nUser-A"..., 4096) = 520
rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0
time(NULL)                              = 1044541151
alarm(300)                              = 300
alarm(0)                                = 300
stat("/home/httpd/html/bnr-02.gif", {st_mode=S_IFREG|0644, st_size=13289, 
...}) = 0
alarm(0)                                = 0
open("/home/httpd/html/bnr-02.gif", O_RDONLY) = 7
alarm(300)                              = 0
alarm(0)                                = 300
select(6, [5], NULL, NULL, {0, 0})      = 1 (in [5], left {0, 0})
socket(PF_UNIX, SOCK_STREAM, 0)         = 8
connect(8, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1 
ECONNREFUSED (C
onnection refused)
close(8)                                = 0
open("/etc/hosts", O_RDONLY)            = 8
fcntl(8, F_GETFD)                       = 0
fcntl(8, F_SETFD, FD_CLOEXEC)           = 0
fstat(8, {st_mode=S_IFREG|0644, st_size=301, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x125000
read(8, "# /etc/hosts\n127.0.0.1\tlocalhost"..., 4096) = 301
read(8, "", 4096)                       = 0
close(8)                                = 0
munmap(0x125000, 4096)                  = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 8
connect(8, {sin_family=AF_INET, sin_port=htons(53), 
sin_addr=inet_addr("192.168.0.1")}
 28) = 0
send(8, "\361\235\1\0\0\1\0\0\0\0\0\0\0015\0010\003168\003192\7"..., 42, 0) = 
42
gettimeofday({1044541151, 754767}, NULL) = 0
poll([{fd=8, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
recvfrom(8, "\361\235\205\203\0\1\0\0\0\1\0\0\0015\0010\003168\0031"..., 1024, 
0, {sin      amily=AF_INET, sin_port=htons(53), 
sin_addr=inet_addr("192.168.0.1")}}, [16]) = 119
close(8)                                = 0
time(NULL)                              = 1044541151
write(17, "::ffff:192.168.0.5 - - [06/Feb/2"..., 172) = 172
write(18, "http://www.linux.herc.com.pl/sof"..., 54) = 54
write(19, "Mozilla/5.0 (compatible; Konquer"..., 44) = 44
close(7)                                = 0
rt_sigaction(SIGUSR1, {0x805beb4, [], SA_INTERRUPT|0x4000000}, {SIG_IGN}, 8) = 
0
alarm(15)                               = 0
select(6, [5], NULL, NULL, {0, 0})      = 1 (in [5], left {0, 0})
read(5, "", 4096)                       = 0
time(NULL)                              = 1044541151
alarm(0)                                = 15
close(5)                                = 0
rt_sigaction(SIGUSR1, {0x805beb4, [], SA_INTERRUPT|0x4000000}, {0x805beb4, [], 
SA_INTE      UPT|0x4000000}, 8) = 0
alarm(0)                                = 0
accept(16, 0xbffff6dc, [128])           = ? ERESTARTSYS (To be restarted)
--- SIGWINCH (Window changed) ---
accept(16, 0xbffff6dc, [128])           = ? ERESTARTSYS (To be restarted)
--- SIGWINCH (Window changed) ---
accept(16, 0xbffff6dc, [128])           = ? ERESTARTSYS (To be restarted)
--- SIGWINCH (Window changed) ---
accept(16, {sin_family=AF_INET6, sin6_port=htons(2034), inet_pton(AF_INET6, 
"::ffff:192.168.0.5", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 
5
rt_sigaction(SIGUSR1, {SIG_IGN}, {0x805beb4, [], SA_INTERRUPT|0x4000000}, 8) = 
0
getsockname(5, {sin_family=AF_INET6, sin6_port=htons(80), inet_pton(AF_INET6, 
"::ffff:213.25.210.68", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) 
= 0
setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0
alarm(300)                              = 0
read(5, "GET /dealer HTTP/1.1\r\nUser-Agent"..., 4096) = 275
rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0
time(NULL)                              = 1044541236
alarm(300)                              = 300
alarm(0)                                = 300
stat("/home/httpd/html/dealer", {st_mode=S_IFDIR|0755, st_size=16, ...}) = 0
stat("/home/httpd/errordocs/401.shtml", {st_mode=S_IFREG|0644, st_size=1125, 
...}) = 0
alarm(0)                                = 0
open("/home/httpd/errordocs/401.shtml", O_RDONLY) = 7
alarm(300)                              = 0
alarm(0)                                = 300
socket(PF_UNIX, SOCK_STREAM, 0)         = 8
connect(8, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1 
ECONNREFUSED (Connection refused)
close(8)                                = 0
open("/etc/hosts", O_RDONLY)            = 8
fcntl(8, F_GETFD)                       = 0
fcntl(8, F_SETFD, FD_CLOEXEC)           = 0
fstat(8, {st_mode=S_IFREG|0644, st_size=301, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x125000
read(8, "# /etc/hosts\n127.0.0.1\tlocalhost"..., 4096) = 301
read(8, "", 4096)                       = 0
close(8)                                = 0
munmap(0x125000, 4096)                  = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 8
connect(8, {sin_family=AF_INET, sin_port=htons(53), 
sin_addr=inet_addr("192.168.0.1")}}, 28) = 0
send(8, "\361\236\1\0\0\1\0\0\0\0\0\0\0015\0010\003168\003192\7"..., 42, 0) = 
42
gettimeofday({1044541236, 649170}, NULL) = 0
poll([{fd=8, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
recvfrom(8, "\361\236\205\203\0\1\0\0\0\1\0\0\0015\0010\003168\0031"..., 1024, 
0, {sin_family=AF_INET, sin_port=htons(53), 
sin_addr=inet_addr("192.168.0.1")}}, [16]) = 119
close(8)                                = 0
open("/etc/passwd", O_RDONLY)           = 8
fcntl(8, F_GETFD)                       = 0
fcntl(8, F_SETFD, FD_CLOEXEC)           = 0
fstat(8, {st_mode=S_IFREG|0644, st_size=1101, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x125000
read(8, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1101
close(8)                                = 0
munmap(0x125000, 4096)                  = 0
alarm(300)                              = 0
chdir("/home/httpd/errordocs")          = 0
fstat(7, {st_mode=S_IFREG|0644, st_size=1125, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x125000
read(7, "<!--#set var=\"title\" value=\"Auth"..., 4096) = 1125
stat("/home/httpd/errordocs/HEADER.shtml", {st_mode=S_IFREG|0644, st_size=306, 
...}) = 0
alarm(0)                                = 300
open("/home/httpd/errordocs/HEADER.shtml", O_RDONLY) = 8
alarm(300)                              = 0
chdir("/home/httpd/errordocs")          = 0
fstat(8, {st_mode=S_IFREG|0644, st_size=306, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x470000
read(8, "<HTML>\n<HEAD>\n<META HTTP-EQUIV=\""..., 4096) = 306
read(8, "", 4096)                       = 0
close(8)                                = 0
munmap(0x470000, 4096)                  = 0
brk(0x81fe000)                          = 0x81fe000
alarm(0)                                = 300
chdir("/home/httpd/errordocs")          = 0
stat("/home/httpd/errordocs/FOOT.shtml", {st_mode=S_IFREG|0644, st_size=885, 
...}) = 0
alarm(0)                                = 0
open("/home/httpd/errordocs/FOOT.shtml", O_RDONLY) = 8
alarm(300)                              = 0
chdir("/home/httpd/errordocs")          = 0
fstat(8, {st_mode=S_IFREG|0644, st_size=885, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x470000
read(8, "<P>\n<!--#set var=\"Mail\" value=\"/"..., 4096) = 885
read(8, "", 4096)                       = 0
close(8)                                = 0
munmap(0x470000, 4096)                  = 0
brk(0x8201000)                          = 0x8201000
alarm(0)                                = 300
chdir("/home/httpd/errordocs")          = 0
read(7, "", 4096)                       = 0
close(7)                                = 0
munmap(0x125000, 4096)                  = 0
alarm(0)                                = 0
alarm(300)                              = 0
alarm(0)                                = 300
select(6, [5], NULL, NULL, {0, 0})      = 0 (Timeout)
write(5, "HTTP/1.1 401 Authorization Requi"..., 2057) = 2057
time(NULL)                              = 1044541236
write(17, "::ffff:192.168.0.5 - - [06/Feb/2"..., 134) = 134
write(18, "- -> /dealer\n", 13)         = 13
write(19, "Mozilla/5.0 (compatible; Konquer"..., 44) = 44
rt_sigaction(SIGUSR1, {0x805beb4, [], SA_INTERRUPT|0x4000000}, {SIG_IGN}, 8) = 
0
alarm(15)                               = 0
read(5, 0x808fb10, 4096)                = ? ERESTARTSYS (To be restarted)
--- SIGALRM (Alarm clock) ---
close(5)                                = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGURG, {0x805ae3c, [], SA_INTERRUPT|0x4000000}, {0x805ae3c, [], 
SA_INTERRUPT|0x4000000}, 8) = 0
rt_sigaction(SIGALRM, {0x805b080, [], SA_INTERRUPT|0x4000000}, {0x805b080, [], 
SA_INTERRUPT|0x4000000}, 8) = 0
rt_sigaction(SIGUSR1, {0x805beb4, [], SA_INTERRUPT|0x4000000}, {0x805beb4, [], 
SA_INTERRUPT|0x4000000}, 8) = 0
alarm(0)                                = 0
accept(16, {sin_family=AF_INET6, sin6_port=htons(2035), inet_pton(AF_INET6, 
"::ffff:192.168.0.5", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 
5
rt_sigaction(SIGUSR1, {SIG_IGN}, {0x805beb4, [], SA_INTERRUPT|0x4000000}, 8) = 
0
getsockname(5, {sin_family=AF_INET6, sin6_port=htons(80), inet_pton(AF_INET6, 
"::ffff:213.25.210.68", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) 
= 0
setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0
alarm(300)                              = 0
read(5, "GET /dealer HTTP/1.1\r\nUser-Agent"..., 4096) = 318
rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}, 8) = 0
time(NULL)                              = 1044541323
alarm(300)                              = 300
alarm(0)                                = 300
stat("/home/httpd/html/dealer", {st_mode=S_IFDIR|0755, st_size=16, ...}) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
[root w hq httpd]#


-- 
Adam Jurkiewicz : Inżynier Serwisu Linux  
HERC : Linuxowe Systemy Sprzeday Detalicznej
[ http://www.linux.herc.com.pl ]
Numer Gadu-Gadu : 302315   




Więcej informacji o liście dyskusyjnej pld-users-pl