( My apologies if this is posted twice. )


I have processes that appear to hang for a considerable period of time 
while waiting for a read to complete.  I would have thought that there 
would be a timeout but apparently not. 

My server is: 
Apache/1.3.19 (Unix) mod_perl/1.25_01-dev mod_ssl/2.8.1 OpenSSL/0.9.6 

Running on Solaris 2.7. 

There are actually two flavors of hanging processes.  Here is how they 
look with pstack: 

First flavor: 

26058:  
-----------------  lwp# 1 / thread# 1  -------------------- 
 ff216f88 read     (3, 14cef58, b) 
 fe39a7cc read     (0, 14cef58, b, fee79f00, fef03c64, 1) + 30 
 fee77ed0 BIO_read (12c7138, 14cef58, b, 1070, 1000, 0) + d0 
 fee506b0 ssl23_read_bytes (12ac0d0, b, 5455b8, 116c, 1000, f0) + 30 
 fee4f0f4 ssl23_get_client_hello (12ac0d0, ffbef640, 0, 0, ffbef640, 725560)
+ 54 
 fee4eff4 ssl23_accept (2210, 6000, 4000, 2003, 2211, 6f757400) + 194 
 fee54224 SSL_accept (12ac0d0, 12c, 0, 7efefeff, 81010100, ff0000) + 24 
 fee3d07c ssl_hook_NewConnection (7214a0, 7234d0, 1e2c, ff310154, 4, 1) +
378 
 00025cb0 new_connection (45415049, 5df00, 6e89f8, ffbef8a8, ffbef8b8, c) +
f4 
 00026ad0 child_main (59400, 59000, 59c00, 59400, 59438, 59c00) + 5a0 
 00026d80 make_child (5df00, c, 3b963c46, 59000, ff2369f4, 4) + 114 
 000270ac perform_idle_server_maintenance (17, 0, 0, 5df00, 40f58, 3bb38) +
250 
 00027598 standalone_main (3fc00, 59400, 55000, 44, ff236508, ff236844) +
324 
 00027b54 main     (7, ffbefbbc, ffbefbdc, 59b28, 0, 0) + 328 
 00018e58 _start   (0, 0, 0, 0, 0, 0) + 5c 
-----------------  lwp# 2 / thread# 2  -------------------- 
 ff2174bc signotifywait () 
 fe38f590 _dynamiclwps (fe3ac524, fe3ade3c, 2, 0, ff233968, ff233968) + 1c 
 ff212830 thr_errnop (0, 0, 0, 0, 0, 0) + 24 
-----------------  lwp# 5 / thread# 3  -------------------- 
 ff217aec lwp_sema_wait (fdf0de78) 
 fe38b044 _park    (fdf0ddc8, fdf0de78, 0, 1, fe3ad298, 0) + 10c 
 fe38ad38 _swtch   (5, fe3ac524, fdf0de58, fdf0de54, fdf0de50, fdf0de4c) +
350 
 fe38e64c _reap_wait (fe3ae070, fe3b0fa0, 0, 0, 0, 0) + 34 
 fe38e3d0 _reaper  (fe3ac524, fe3ae070, fe3ad308, 455f34, 1, fe401000) + 34 
 fe39b824 _thread_start (0, 0, 0, 0, 0, 0) + 40 



Second flavor: 

21644:  / 
-----------------  lwp# 1 / thread# 1  -------------------- 
 ff216f88 read     (3, 174c798, 5) 
 fe39a7cc read     (0, 174c798, 5, fee79f00, fef03c64, 1) + 30 
 fee77ed0 BIO_read (14a96c0, 174c798, 5, 174c798, 97538, 97538) + d0 
 fee668a0 ssl3_read_n (0, 5, 5, 0, ff233968, fee79eb8) + 160 
 fee6697c ssl3_get_record (132ab70, 97538, 97628, 0, fee7a000, 1) + 5c 
 fee671b4 ssl3_read_bytes (132ab70, 16, 15e0868, 4, 0, 0) + 1b4 
 fee681f4 ssl3_get_message (132ab70, 2180, 2181, ffffffff, 4000, ffbef4ec) +
b4 
 fee61720 ssl3_check_client_hello (132ab70, 21c0, 21c1, 0, 2, ffbef408) + 20

 fee5f59c ssl3_accept (ffffffff, 2100, 3, 2180, 21d0, 21c0) + 6fc 
 fee54224 SSL_accept (132ab70, 1, 97538, 1, 4c, 800) + 24 
 fee4f818 ssl23_get_client_hello (8, ffbef658, 4f, 2, ffbef658, 722680) +
778 
 fee4eff4 ssl23_accept (2210, 6000, 4000, 2003, 2211, 6f757400) + 194 
 fee54224 SSL_accept (132ab70, 12c, 0, 7efefeff, 81010100, ff0000) + 24 
 fee3d07c ssl_hook_NewConnection (71e5c0, 7205f0, 1e2c, ff310154, 4, 1) +
378 
 00025cb0 new_connection (45415049, 5df00, 13e458, ffbef8c0, ffbef8d0, a) +
f4 
 00026ad0 child_main (59400, 59000, 59c00, 59400, 59438, 59c00) + 5a0 
 00026d80 make_child (5df00, a, 3b9638d8, 59000, ff2369f4, 1) + 114 
 000270ac perform_idle_server_maintenance (24, 0, 0, 5df00, 40f58, 3bb38) +
250 
 00027598 standalone_main (3fc00, 59400, 55000, 44, ff236508, ff236844) +
324 
 00027b54 main     (7, ffbefbd4, ffbefbf4, 59b28, 0, 0) + 328 
 00018e58 _start   (0, 0, 0, 0, 0, 0) + 5c 
-----------------  lwp# 2 / thread# 2  -------------------- 
 ff2174bc signotifywait () 
 fe38f590 _dynamiclwps (fe3ac524, fe3ade3c, 2, 0, ff233968, ff233968) + 1c 
 ff212830 thr_errnop (0, 0, 0, 0, 0, 0) + 24 
-----------------  lwp# 4 / thread# 3  -------------------- 
 ff217aec lwp_sema_wait (fdf0de78) 
 fe38b044 _park    (fdf0ddc8, fdf0de78, 0, 1, fe3ad298, 0) + 10c 
 fe38ad38 _swtch   (5, fe3ac524, fdf0de58, fdf0de54, fdf0de50, fdf0de4c) +
350 
 fe38e64c _reap_wait (fe3ae070, fe3b0fa0, 0, 0, 0, 0) + 34 
 fe38e3d0 _reaper  (fe3ac524, fe3ae070, fe3ad308, 455f34, 1, fe401000) + 34 

Look familiar to anyone? 

-Paul Weiss 

  
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to