JuliaWeb / GnuTLS.jl

Transport Level Security for Julia Streams provided by GnuTLS
Other
8 stars 13 forks source link

segfault with async requests #20

Open porterjamesj opened 10 years ago

porterjamesj commented 10 years ago

As illustrated in https://github.com/JuliaLang/julia/issues/6525

porterjamesj commented 10 years ago

@loladiro I'm curious how you were digging into this before? My toolkit for debugging when I segfault Julia is basically none at this point and I'd love to be able to figure out what's going wrong here.

Keno commented 10 years ago

I built Julia with LLVM 3.5 on linux, which gives me proper gdb backtraces through Julia code.

porterjamesj commented 10 years ago

So:

1) Make debug build of Julia with LLVM 3.5 on linux 2) Run offending code through julia running under gdb 3) Examine backtrace

?

Keno commented 10 years ago

Pretty much. I'd be happy to answer any question you encounter along the way, but I won't have time to actually work on this for another two weeks or so.

porterjamesj commented 10 years ago

thanks! and no problem; I have a mostly free Saturday so I figured I'd take a crack at it :)

sbromberger commented 9 years ago

Just an update: I'm not seeing this behavior with the latest Requests and 0.4. I do get

ERROR: GnuTLS Exception: GNUTLS_E_PREMATURE_TERMINATION(-110): The TLS connection was non-properly terminated.
 in wait at task.jl:51
 in sync_end at /usr/local/julia-latest/lib/julia/sys.dylib
 in anonymous at task.jl:323

after several hundred requests.

sbromberger commented 9 years ago

Perhaps related, though: https://github.com/JuliaWeb/GnuTLS.jl/issues/39