rhenium (Kazuki Yamaguchi) wrote in #note-3: > Yes, openssl issues should go to the GitHub. > ... I just managed to try the other two combinations of ruby and gem versions, and a bit unexpected, it seems it actually depends on the ruby...hspem (Per-Erik Martin)
retro (Josef Šimánek) wrote in #note-1: > Can you share more details to reproduce like Dockerfile? Also if I understand it well, Ruby OpenSSL issues are tracked at https://github.com/ruby/openssl/issues now. Sorry, no. Ok, I wasn't a...hspem (Per-Erik Martin)
We have a server using openssl 3.0.3 (i.e. written i C). This has worked with all kinds of different clients (ruby, C, java...) without any problem... except now, with the latest ruby gem, openssl 3.0.0. The behavior is odd: It suc...hspem (Per-Erik Martin)
Mistakenly calling Shellwords.escape with nil as parameter had this result: ``` ruby irb(main):002:0> Shellwords.escape(nil) => "''" ``` This is not helpful and resulted a hard-to-find bug when a script proceeded to use an empty s...hspem (Per-Erik Martin)
mame (Yusuke Endoh) wrote in #note-2: > > ... I found a way to fix this. The problem seems to be a known strangeness in the AIX pty implementation. It's sensitive to in which order things are done relative closing the descriptors. It'...hspem (Per-Erik Martin)
Another discovery... sleep *after* the commands makes it work as well: ``` shell # ./ptytest.rb 'echo foo; sleep 1' Got line "foo" Exit status 0 # ``` So apparently, it's when the child process is exiting too soon the problem ari...hspem (Per-Erik Martin)
I had some instances with inconsistent behavior and got an idea... ``` shell # ./ptytest.rb 'echo foo' Exit status 0 # ./ptytest.rb 'echo foo' Exit status 0 # ./ptytest.rb 'echo foo' Exit status 0 # ./ptytest.rb 'sleep 1;echo foo...hspem (Per-Erik Martin)
The attached test script simply executes a command under a PTY and captures the output and exit code. This works on Linux (all supported versions of Redhat, Debian, Ubuntu, and SuSE) as well as Solaris 11.4 on sparc and x86. But on AIX...hspem (Per-Erik Martin)