﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	difficulty
1058	Strange bugs in openssl egg (or core?)	sjamaan	Thomas Chust	"We've seen that henrietta-cache occasionally, but consistently shows strange behaviour.  It appears this happens only for HTTPS URIs, so I've done some investigating and can reproduce a situation which could be related:

{{{
#!scm
(use http-client extras)

(let lp ()
  (print (with-input-from-request (car (command-line-arguments)) #f read-file))
  (lp))
}}}

Just call the program like this:

{{{
csi -s foo.scm https://bitbucket.org/sjamaan/henrietta-cache/raw/tip/henrietta-cache.release-info
}}}

Then press {{{^C}}} after the program has seemed to make a connection.

You'll generally get a panic in the scheduler that says ""fdset-set: invalid i/o direction: ssl-mutex (fd = 15)"" (with today's master; before you just got the message without more info).  It appears the ssl-mutex ''somehow'' ends up in the fd-set upon which the thread will wait for I/O. This is most likely due to some corruption elsewhere, but it's unclear where exactly.

This ''may'' be related to #989 (ie, it could be a signal handling issue).  Mario has [[http://paste.call-cc.org/paste?id=3afab8fc3c4af312b5b0711cee1b922620b5ad7e#a1 observed]] occasional segfaults instead of panics."	defect	closed	major	4.9.0	unknown	4.8.x	fixed	crash, panic, openssl		
