Closed natevw closed 9 years ago
Yup:
process.stdout.write(Buffer(0))
Segmentation fault: 11
Anything written/piped to these streams should be passed along as a string in stream.setEncoding('utf8')
sort of fashion, or at least whatever is doing the actual "pipe" from those streams to the tm_log stuff should be making sure the conversion has happened.
With
npm install tap
:Expected:
Actual:
LLDB reveals (full session) that
colony_tolutf8
is passing along a NULL pointer fromlua_tolstring
. Inserting this assert confirms that this is the source:So basically something is trying to use this on a value that is neither string nor number — is there some way perhaps a buffer could be making it's way through
process.stdout
or something?