You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2013/04/09 22:35:12 UTC

[Bug 40513] Seeding PRNG with 0 bytes of entropy

https://issues.apache.org/bugzilla/show_bug.cgi?id=40513

Arkadiusz Miskiewicz <ar...@maven.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
           Hardware|Macintosh                   |All
            Version|2.5-HEAD                    |2.2.24
         Resolution|INVALID                     |---
                 OS|Mac OS X 10.4               |All

--- Comment #3 from Arkadiusz Miskiewicz <ar...@maven.pl> ---
I have the same message on Linux x86_64 platform, httpd 2.2.24:

strace for single child process:

# grep random log
22:22:12 open("/dev/urandom", O_RDONLY) = 14 <0.002871>
22:22:12 open("/dev/urandom", O_RDONLY) = 14 <0.000039>
22:22:12 open("/dev/urandom", O_RDONLY) = 14 <0.000028>
22:22:12 open("/dev/urandom", O_RDONLY) = 14 <0.000035>
22:22:12 open("/dev/urandom", O_RDONLY) = 14 <0.000030>
22:22:12 open("/dev/urandom", O_RDONLY) = 14 <0.000030>

so it opens /dev/urandom fine and later:

22:22:42 write(2, "[Tue Apr 09 22:22:42 2013] [debug] mod_headers.c(756):
headers: ap_headers_output_filter()\n", 91) = 91 <0.000035>
22:22:42 setsockopt(13, SOL_TCP, TCP_CORK, [1], 4) = 0 <0.000018>
22:22:42 writev(13, [{"HTTP/1.1 200 OK\r\nDate: Tue, 09 Apr 2013 20:22:42
GMT\r\nServer: Apache\r\nLast-Modified: Wed, 27 Mar 2013 10:32:25 GMT\r\nETag:
\"92d1bb54-13252-4d8e58dcfc4d5\"\r\nAccept-Ranges: bytes\r\nContent-Length:
78418\r\nK"..., 284}], 1) = 284 <0.000021>
22:22:42 sendfile(13, 14, [0], 78418)   = 23076 <0.000045>
22:22:42 setsockopt(13, SOL_TCP, TCP_CORK, [0], 4) = 0 <0.000015>
22:22:42 poll([{fd=13, events=POLLOUT}], 1, 300000) = 1 ([{fd=13,
revents=POLLOUT}]) <0.010243>
22:22:42 sendfile(13, 14, [23076], 55342) = 30660 <0.000036>
22:22:42 poll([{fd=13, events=POLLOUT}], 1, 300000) = 1 ([{fd=13,
revents=POLLOUT}]) <0.029560>
22:22:42 sendfile(13, 14, [53736], 24682) = 24682 <0.000026>
22:22:42 read(13, 0x8838ef8, 8000)      = -1 EAGAIN (Resource temporarily
unavailable) <0.000017>
22:22:42 write(9, "some.host xx.xx.170.48 - - [09/Apr/2013:22:22:42 +0200]
\"GET /pages_low/51_low.jpg HTTP/1.1\" 200 78702
\"http://some.host/?utm_source=glowna&utm_medium=middle&utm_campaign=abc"...,
297) = 297 <0.000027>
22:22:42 write(11, "some.host xx.xx.170.48 - - [09/Apr/2013:22:22:42 +0200]
\"GET /pages_low/51_low.jpg HTTP/1.1\" 200 78702
\"http://some.host/?utm_source=glowna&utm_medium=middle&utm_campaign=abc"...,
280) = 280 <0.000020>
22:22:42 gettid()                       = 29778 <0.000023>
22:22:42 open("/proc/29778/attr/current", O_WRONLY) = 15 <0.000027>
22:22:42 write(15, "changehat 000000001f74f58e^", 27) = 27 <0.000021>
22:22:42 close(15)                      = 0 <0.000017>
22:22:42 gettid()                       = 29778 <0.000014>
22:22:42 open("/proc/29778/attr/current", O_WRONLY) = 15 <0.000020>
22:22:42 write(15, "changehat 000000001f74f58e^HANDLING_UNTRUSTED_INPUT", 51) =
51 <0.000052>
22:22:42 close(15)                      = 0 <0.000015>

(change hat due to apache-mod_apparmor usage)

22:22:42 times({tms_utime=156, tms_stime=41, tms_cutime=0, tms_cstime=0}) =
1444949832 <0.000015>
22:22:42 close(14)                      = 0 <0.000017>
22:22:42 poll([{fd=13, events=POLLIN}], 1, 2000) = 0 (Timeout) <2.007569>
22:22:44 times({tms_utime=156, tms_stime=41, tms_cutime=0, tms_cstime=0}) =
1444950033 <0.000016>
22:22:44 shutdown(13, SHUT_WR)          = 0 <0.000039>
22:22:44 poll([{fd=13, events=POLLIN}], 1, 2000) = 1 ([{fd=13,
revents=POLLIN|POLLHUP}]) <0.023552>
22:22:44 read(13, "", 512)              = 0 <0.000029>
22:22:44 close(13)                      = 0 <0.000033>
22:22:44 read(7, 0x7fff40e8c897, 1)     = -1 EAGAIN (Resource temporarily
unavailable) <0.000021>
22:22:44 semop(5931027, {{0, -1, SEM_UNDO}}, 1) = 0 <1.202430>
22:22:46 epoll_wait(10, {?} 0x881c4a8, 4, 10000) = 1 <0.058998>
22:22:46 accept(6, {sa_family=AF_INET, sin_port=htons(39947),
sin_addr=inet_addr("89.69.21.174")}, [16]) = 13 <0.000023>
22:22:46 fcntl(13, F_GETFD)             = 0 <0.000018>
22:22:46 fcntl(13, F_SETFD, FD_CLOEXEC) = 0 <0.000018>
22:22:46 semop(5931027, {{0, 1, SEM_UNDO}}, 1) = 0 <0.000031>
22:22:46 write(2, "[Tue Apr 09 22:22:46 2013] [info] [client 89.69.21.174]
Connection to child 54 established (server localhost:443)\n", 114) = 114
<0.000039>
22:22:46 write(2, "[Tue Apr 09 22:22:46 2013] [info] Seeding PRNG with 0 bytes
of entropy\n", 71) = 71 <0.000032>
22:22:46 fcntl(13, F_GETFL)             = 0x2 (flags O_RDWR) <0.000023>
22:22:46 fcntl(13, F_SETFL, O_RDWR|O_NONBLOCK) = 0 <0.000016>
22:22:46 write(2, "[Tue Apr 09 22:22:46 2013] [debug]
ssl_engine_kernel.c(1872): OpenSSL: Handshake: start\n", 88) = 88 <0.000023>
22:22:46 write(2, "[Tue Apr 09 22:22:46 2013] [debug]
ssl_engine_kernel.c(1880): OpenSSL: Loop: before/accept initialization\n", 106)
= 106 <0.000022>


# grep "Seeding PRNG with 0 bytes of entropy" /var/log/httpd/error_log  | wc -l
4395
# grep "Seeding PRNG" /var/log/httpd/error_log | grep -v "Seeding PRNG with 0
bytes of entropy"
#

so every message had 0 bytes in it.


Updated bug fields to match this case since original reporter is not
responding.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org