joshua655 / v8cgi

Automatically exported from code.google.com/p/v8cgi
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Non session recursive variable #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create index.sjs file with recursive map content, such as:
var notasessionvariable = { a : notasessionvariable };
response.write(HTML.dump(notasessionvariable));
2. run it
3. run it again (show different output)

What is the expected output? What do you see instead?
#it should shown constantly:
a: undefined
#but after few refreshes, it show something like this:
a:
a: undefined
#and so on
a:
a:
a: undefined
#and if i try to open it in another browser, it show:
a:
a:
a:
a: undefined
#and then 
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, kyz@localhost and inform them of
the time the error occurred, and anything you might have done that may have
caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request.
#and after few refreshes, would be back to:
a:
a:
a:
a:
a:
a:
a: undefined

What version of the product are you using? On what operating system?
svn version 2009.10.07
ubuntu amd64
browsers tested: arora 0.8, chromium daily, mozilla daily, opera 10

Please provide any additional information below.
my apache2 configuration:
<VirtualHost *:80>
        ServerName jcode
        ServerAdmin kyz@localhost
        DocumentRoot /home/kyz/Projects
        ServerSignature Off
        <Directory /home/kyz/Projects >
                Options Indexes All Multiviews
                AllowOverride All
                Order deny,allow
                deny from all
                allow from 127.0.0.1
                DirectoryIndex index.sjs
        </Directory>
        ErrorLog /var/log/apache2/v8cgi_error.log
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
        CustomLog /var/log/apache2/v8cgi_access.log combined
</VirtualHost>

my apache2 error log:
[Fri Oct 09 07:55:03 2009] [error] [client 127.0.0.1]
/home/kyz/Projects/index.sjs:1: ReferenceError: notasessionvariable is not
defined
[Fri Oct 09 07:55:03 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/error
[Fri Oct 09 07:55:03 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/favicon.ico, referer: http://localhost/
[Fri Oct 09 07:55:03 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/error, referer: http://localhost/
[Fri Oct 09 07:55:36 2009] [error] [client 127.0.0.1]
/home/kyz/Projects/index.sjs:1: ReferenceError: notasessionvariable is not
defined
[Fri Oct 09 07:55:36 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/error
[Fri Oct 09 07:55:36 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/favicon.ico
[Fri Oct 09 07:55:36 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/error
[Fri Oct 09 07:55:37 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/favicon.ico
[Fri Oct 09 07:55:37 2009] [error] [client 127.0.0.1] File does not exist:
/home/kyz/Projects/error

Original issue reported on code.google.com by chosenpe...@gmail.com on 9 Oct 2009 at 12:58

GoogleCodeExporter commented 9 years ago
ignore it, i guess its because i use reuse_context..

Original comment by kiswono on 12 Oct 2009 at 10:36

GoogleCodeExporter commented 9 years ago
Probably. Please try with reuse_context=0 to see what happens...

Original comment by ondrej.zara on 13 Oct 2009 at 6:16