Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Web REPL socket errors followed by webserver shutdown #1299

Closed
staticfloat opened this Issue · 4 comments

4 participants

@staticfloat
Owner

If I open up a new web REPL session, then simply try to execute 2+2 twice:

Julia Version 0.0.0+97152005.ra273.dirty
Commit a27310a6c1 (2012-09-20 07:19:11)*

name> 2+2
4

name> 2+2

The web REPL freezes up, and in the server window I see:

$ launch-julia-webserver 
Connect to http://localhost:2000/ for the web REPL.
SCGI server started on port 2001.
0 open sessions.
2012-09-20 10:49:08: (log.c.166) server started 
Started Reading from Julia stdoutNew user "name".
User "name" has started session "session".
1 open session.
Recevied Data from Julia on STDOUT
Port number received. Connecting ...
Recevied Data from Julia on STDOUT
Recevied Data from Julia on STDOUT
Recevied Data from Julia on STDOUT
2012-09-20 10:50:33: (network_writev.c.112) writev failed: Socket is not connected 5 
Request AbortedRequest AbortedUser "name" has left session "session".
Process Exited
Session "session" is terminating because it has no more users.
0 open sessions.

Further attempts at communication with the server don't work, (The socket isn't even open anymore; netstat -na | grep 2000 is empty, although netstat -na | grep 2001 shows that the julia-release-webserver process is still listening; my guess is lighttpd is throwing a fit for some reason.

If I then attempt to shutdown the server with CTRL-C, I get a segfault:

^Ccleaning up...
/Users/sabae/.homebrew/bin/launch-julia-webserver: line 20: 98290 Segmentation fault: 11  ../sbin/lighttpd -D -f ../etc/lighttpd.conf -m $MODULE_DIRECTORY

This is on OSX 10.8, built with homebrew. I'm doing a complete rebuild outside of Homebrew to see if this issue persists, but I get similar (if not identical) results from Viral's binary distribution. (The difference being after the writev error, the server segfaults instantly rather than continuing on until I send the CTRL-C. This is probably due to Homebrew having a more recent version of lighttpd)

@ViralBShah
Owner

I do not see any segfault, but have yet to make webrepl work in the binary distribution and try it out.

@vtjnash
Collaborator

i recall fixing a bug similar to this report a few months ago. i think it works now (except for the other open bugs / feature requests), and we've switched to nginx.

@staticfloat
Owner

I decided to check this out again, and I get the following error (in the REPL):

Julia Version 0.0.0+109620212.r2e0d
Commit 2e0d89dc14 (2013-02-11 13:42:38)

exception on 1: ErrorException("in __socket_callback: parse_input_line not defined")
agdgad> 2+2

Note that the error appears in response to be typing 2+2, but appears above the line I typed. The console doesn't show anything strange either:

$ launch-julia-webserver 
Connect to http://localhost:2000/ for the web REPL.
SCGI server started on port 2001.
0 open sessions.
Started Reading from Julia stdoutNew user "agdgad".
User "agdgad" has started session "aga".
1 open session.
Port number received. Connecting ...
^Ccleaning up...
exiting...
@pao
Collaborator

#2282 indicates we also see this in the Windows binaries built on d8a5dc1.

@vtjnash vtjnash closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.