wookay / Bukdu.jl

Bukdu 🌌 is a web development framework for Julia
Other
139 stars 14 forks source link

EXCEPTION_ACCESS_VIOLATION #93

Open darrencl opened 4 years ago

darrencl commented 4 years ago

Hi @wookay ,I am getting EXCEPTION_ACCESS_VIOLATION and it seems to happen when the server is transmitting something to a client (in my case, image) and the client discard it, e.g. changing a page. This happens in my colleague machine using Bukdu version 0.4.11. However, I could not reproduce this with Bukdu version 0.4.5. Both run in Julia 1.3 on Windows 10.

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.

Exception: EXCEPTION_ACCESS_VIOLATION at 0x669a74b0 -- uv_tcp_getpeername at /workspace/srcdir/libuv\src/win\tcp.c:792
in expression starting at C:\Users\tnatosh\Documents\trimrprocessing\app.jl:402
uv_tcp_getpeername at /workspace/srcdir/libuv\src/win\tcp.c:792
jl_tcp_getpeername at /cygdrive/d/buildbot/worker/package_win64/build/src/cygdrive/d/buildbot/worker/package_win64/build/src\jl_uv.c:704
_sockname at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Sockets\src\Sockets.jl:754
getpeername at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Sockets\src\Sockets.jl:741 [inlined]
handle_request at C:\Users\tnatosh\.julia\packages\Bukdu\dcndJ\src\server.jl:17
handle_stream at C:\Users\tnatosh\.julia\packages\Bukdu\dcndJ\src\server.jl:39
macro expansion at C:\Users\tnatosh\.julia\packages\HTTP\lZVI1\src\Servers.jl:360 [inlined]
#13 at .\task.jl:333
unknown function (ip: 0000000023698E6E)
_jl_invoke at /cygdrive/d/buildbot/worker/package_win64/build/src/cygdrive/d/buildbot/worker/package_win64/build/src\gf.c:2135 [inlined]
jl_apply_generic at /cygdrive/d/buildbot/worker/package_win64/build/src/cygdrive/d/buildbot/worker/package_win64/build/src\gf.c:2305
jl_apply at /cygdrive/d/buildbot/worker/package_win64/build/src/cygdrive/d/buildbot/worker/package_win64/build/src\julia.h:1631 [inlined]
start_task at /cygdrive/d/buildbot/worker/package_win64/build/src/cygdrive/d/buildbot/worker/package_win64/build/src\task.c:659
Allocations: 56198909 (Pool: 56185904; Big: 13005); GC: 56
StaticController    readfile        200 /seq-cosy_acq-96inc/sub-Br..
stty: write error: Invalid argument

Anyway, in case you're wondering, line 402 is

if Base.JLOptions().isinteractive == 0
    wait()
end

Thanks!

wookay commented 4 years ago

hi. this has reported on #86 could you run with master branch?