﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	difficulty
1041	-d0 causes different application behavior	Mario Domenech Goulart		"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.
}}}
"	defect	closed	critical	4.11.0	unknown	4.8.x	fixed		andyjpb@…	
