chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #1041: -d0 causes different application behavior


From: Chicken Trac
Subject: [Chicken-janitors] #1041: -d0 causes different application behavior
Date: Mon, 29 Jul 2013 23:51:17 -0000

#1041: -d0 causes different application behavior
----------------------+-----------------------------------------------------
 Reporter:  mario     |       Owner:       
     Type:  defect    |      Status:  new  
 Priority:  critical  |   Milestone:  4.9.0
Component:  unknown   |     Version:  4.8.x
 Keywords:            |  
----------------------+-----------------------------------------------------
 When compiled with -d0, awful-picman fails to serve some files.  It works
 fine when compiled with -d1.

 I'll try to provide a shorter test case, but for now the steps to
 reproduce are:

 1. Clone the awful-picman repo (https://github.com/mario-goulart/awful-
 picman)

 2. cd awful-picman

 3. git checkout e810ddc78da725051eb76e9b205358a5c23b7912

 4. chicken-install

 5. mkdir foo

 6. cd foo

 7. awful-picman --init &

 8. curl http://localhost:8080/css/awful-picman.css
 {{{
 <?xml version="1.0" encoding="utf-8" ?>
 <!DOCTYPE html
   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
 <html xmlns="http://www.w3.org/1999/xhtml";
       xml:lang="en" lang="en">
   <head>
     <title>404 - Not Found</title>
   </head>
   <body>
     <h1>404 - Not Found</h1>
     <p>The resource you requested could not be found</p>
   </body>
 </html>
 }}}

 If I change the build option from -d0 to -d1 in the .setup file (line 11)
 and repeat steps from 4 to 8, it works:

 {{{
 $ curl http://localhost:8080/css/awful-picman.css | head
   % Total    % Received % Xferd  Average Speed   Time    Time     Time
 Current
                                  Dload  Upload   Total   Spent    Left
 Speed
 100  1172  100  1172    0     0   368k      0 --:--:-- --:--:-- --:--:--
 572k
 body {
     padding-top: 80px;
 }

 .breadcrumb {
     top: 40px;
     position: fixed;
 }

 .dir {
 }}}

 Tested with:

 {{{
 $ chicken -version
 (c) 2008-2013, The Chicken Team
 (c) 2000-2007, Felix L. Winkelmann
 Version 4.8.0.3 (stability/4.8.0) (rev 091c3d9)
 linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
 compiled 2013-03-12 on aeryn.xorinia.dim (Darwin)
 }}}

 {{{
 $ gcc --version
 gcc (Debian 4.7.2-5) 4.7.2
 Copyright (C) 2012 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.
 }}}

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/1041>
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]