suspect bug: lldb segfault when redirecting `--version` output

Have a look at Issue 13501: Make libedit support more generic; port readline / libedit to FreeBSD - Python tracker and issues referenced
from there. There have been a number of inconsistencies between
libedit's readline compatibility interface and GNU readline, and
Python's readline module has workarounds for a number of these but
only for __APPLE__.

I suspect that on OS X the standard Python expects libedit, not
readline, and everything "just works" with the built-in workarounds.
On other platforms Python may be built assuming readline, but then it
actually gets libedit via LLDB. The readline module can detect at
runtime that the workarounds are necessary -- it just need to be
enabled for all operating systems, I think.