chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-janitors] #668: Issue with 49b92ba0bfb7ecfceb49a45f64e9943e


From: Chicken Trac
Subject: Re: [Chicken-janitors] #668: Issue with 49b92ba0bfb7ecfceb49a45f64e9943ea83a6d94
Date: Tue, 23 Aug 2011 17:21:10 -0000

#668: Issue with 49b92ba0bfb7ecfceb49a45f64e9943ea83a6d94
----------------------+-----------------------------------------------------
  Reporter:  mario    |       Owner:  felix                                   
      Type:  defect   |      Status:  new                                     
  Priority:  major    |   Milestone:  4.8.0                                   
 Component:  unknown  |     Version:  4.7.x                                   
Resolution:           |    Keywords:  49b92ba0bfb7ecfceb49a45f64e9943ea83a6d94
----------------------+-----------------------------------------------------

Comment(by mario):

 Ok, I could make a simple code to illustrate the problem. Christian said
 he could also reproduce the issue using a recent chicken-core. Here is the
 test code:

 {{{
 $ cat spiffy.scm
 (use spiffy)
 (root-path (current-directory))
 (start-server)

 $ cat index.html
 <html><head><link rel='stylesheet' href='0.css' type='text/css'><link
 rel='stylesheet' href='1.css'
 type='text/css'></head><body>foo</body></html>

 $ csi -s spiffy.scm
 }}}

 If I access http://localhost:8080, the CPU usage gets very high for ~60s,
 when the server eventually sends the response.

 This behavior can be observed no matter the CSS files exist or not.

 If I remove the link to one of the CSS files, it works as expected (i.e.,
 it doesn't hang for 60s eating CPU).

 Most part of the strace output goes like:

 {{{
 gettimeofday({1314118760, 902292}, NULL) = 0
 gettimeofday({1314118760, 902344}, NULL) = 0
 gettimeofday({1314118760, 902400}, NULL) = 0
 select(1024, [4 5], [], NULL, {60, 0})  = 1 (in [4], left {59, 999997})
 gettimeofday({1314118760, 902705}, NULL) = 0
 gettimeofday({1314118760, 902754}, NULL) = 0
 select(1024, [4 5], [], NULL, {60, 0})  = 1 (in [4], left {59, 999998})
 gettimeofday({1314118760, 903024}, NULL) = 0
 gettimeofday({1314118760, 903072}, NULL) = 0
 select(1024, [4 5], [], NULL, {59, 999000}) = 1 (in [4], left {59,
 998998})
 gettimeofday({1314118760, 903340}, NULL) = 0
 gettimeofday({1314118760, 903387}, NULL) = 0
 select(1024, [4 5], [], NULL, {59, 999000}) = 1 (in [4], left {59,
 998998})
 gettimeofday({1314118760, 903657}, NULL) = 0
 gettimeofday({1314118760, 903705}, NULL) = 0

 ...

 select(1024, [4 5], [], NULL, {0, 2000}) = 1 (in [4], left {0, 1999})
 gettimeofday({1314118820, 900945}, NULL) = 0
 gettimeofday({1314118820, 900977}, NULL) = 0
 select(1024, [4 5], [], NULL, {0, 2000}) = 1 (in [4], left {0, 1999})
 gettimeofday({1314118820, 901158}, NULL) = 0
 gettimeofday({1314118820, 901190}, NULL) = 0
 select(1024, [4 5], [], NULL, {0, 1000}) = 1 (in [4], left {0, 999})
 gettimeofday({1314118820, 901370}, NULL) = 0
 gettimeofday({1314118820, 901402}, NULL) = 0
 select(1024, [4 5], [], NULL, {0, 1000}) = 1 (in [4], left {0, 999})
 gettimeofday({1314118820, 901582}, NULL) = 0
 gettimeofday({1314118820, 901614}, NULL) = 0
 select(1024, [4 5], [], NULL, {0, 1000}) = 1 (in [4], left {0, 999})
 gettimeofday({1314118820, 901794}, NULL) = 0
 gettimeofday({1314118820, 901827}, NULL) = 0
 select(1024, [4 5], [], NULL, {0, 1000}) = 1 (in [4], left {0, 999})
 gettimeofday({1314118820, 902007}, NULL) = 0
 select(1024, [4], [], NULL, {0, 0})     = 1 (in [4], left {0, 0})
 shutdown(5, 0 /* receive */)            = 0
 shutdown(5, 1 /* send */)               = 0
 close(5)                                = 0
 select(5, [4], NULL, NULL, {0, 0})      = 1 (in [4], left {0, 0})
 accept(4, 0, NULL)                      = 5
 }}}

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/668#comment:3>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]