You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6055 Reporter: pmeunier Status: closed (set by @xavierleroy on 2015-12-11T18:23:58Z) Resolution: not a bug Priority: normal Severity: crash OS: Linux and Mac OS Version: 4.00.1 Target version: 4.01.1+dev Category: standard library
Bug description
The programs produced by patoline (http://patoline.org) with our "Net" driver crash when used with safari.
The crash seems to occur on a call to Unix.write. It happens on each session, maybe not on the first slide. I could not give a small example.
Open firefox at localhost:8080/master
And safari/webkit at localhost:8080
Go back and forth between the slides.
After at most two or three slides, and/or a page reload in safari, the server silently crashes.
Additional information
In some versions of safari, the page may remain blank, due to a bug in my implementation of the old version of websockets they use. However, I believe that my program should not crash.
Is there some hidden state in the server? At one point I had it crashing on every "back" keystroke, but then I removed Safari's cache for localhost, and now I can't make it crash at all.
EPIPE is a normal condition for a web server. Browsers sometimes reset the TCP connection to the server, and this is reported to the program as EPIPE (but ECONNRESET is also possible). Note that EPIPE implies a signal by default, hence the impression of a crash. You should set this signal to ignored (Sys.set_signal), and handle exceptions from Unix.write.
Original bug ID: 6055
Reporter: pmeunier
Status: closed (set by @xavierleroy on 2015-12-11T18:23:58Z)
Resolution: not a bug
Priority: normal
Severity: crash
OS: Linux and Mac OS
Version: 4.00.1
Target version: 4.01.1+dev
Category: standard library
Bug description
The programs produced by patoline (http://patoline.org) with our "Net" driver crash when used with safari.
The crash seems to occur on a call to Unix.write. It happens on each session, maybe not on the first slide. I could not give a small example.
Steps to reproduce
Compile the attached program with
ocamlfind ocamlopt -o slides_server -package "cryptokit,str" -thread -linkpkg slides_server.ml
Then run it: ./slides_server -master master
Open firefox at localhost:8080/master
And safari/webkit at localhost:8080
Go back and forth between the slides.
After at most two or three slides, and/or a page reload in safari, the server silently crashes.
Additional information
In some versions of safari, the page may remain blank, due to a bug in my implementation of the old version of websockets they use. However, I believe that my program should not crash.
File attachments
The text was updated successfully, but these errors were encountered: