drbobbeaty has joined #jruby
cremes has joined #jruby
rrutkowski_ has joined #jruby
rrutkowski has joined #jruby
rrutkowski_ has quit [Ping timeout: 248 seconds]
rrutkowski has quit [Quit: rrutkowski]
adam- is now known as adam12
rrutkowski has joined #jruby
rrutkowski has quit [Remote host closed the connection]
rrutkowski has joined #jruby
rrutkowski has quit [Remote host closed the connection]
rrutkowski has joined #jruby
rrutkowski has quit [Client Quit]
rrutkowski has joined #jruby
rrutkowski has quit [Client Quit]
rrutkowski has joined #jruby
rrutkowski has quit [Client Quit]
rrutkowski has joined #jruby
rrutkowski_ has joined #jruby
rrutkowski has quit [Ping timeout: 256 seconds]
rrutkowski_ has quit [Quit: rrutkowski_]
rrutkowski has joined #jruby
cremes has quit [Quit: cremes]
rrutkowski has quit [Quit: rrutkowski]
rrutkowski has joined #jruby
rrutkowski has quit [Client Quit]
rrutkowski has joined #jruby
rrutkowski has quit [Quit: rrutkowski]
rrutkowski has joined #jruby
rrutkowski has quit [Remote host closed the connection]
<GitHub17> [jruby] kares closed pull request #4973: Remove not used methods (master...remove_setMethods) https://git.io/vNcqJ
<GitHub103> [jruby] kares pushed 1 new commit to master: https://git.io/vNcxq
<GitHub103> jruby/master d42f53e Yuichiro Kaneko: Remove not used methods (#4973)
rrutkowski has joined #jruby
rrutkowski has quit [Client Quit]
rrutkowski has joined #jruby
rrutkowski has quit [Quit: rrutkowski]
rrutkowski has joined #jruby
rrutkowski has quit [Client Quit]
rrutkowski has joined #jruby
rrutkowski has quit [Quit: rrutkowski]
rrutkowski has joined #jruby
rrutkowski has quit [Client Quit]
rrutkowski has joined #jruby
rrutkowski has quit [Quit: rrutkowski]
<kares> enebo: hey! okey thanks for the (AR-JDBC) update - will compare Rails tests once again
<kares> have not seen any regressions with Rails tests
<kares> at least no ones that really matter -> as far as I checked (recall checking a few times)
<kares> wanted to get all green but there are some details that I feel like 'hiding' away with an exclude isn't good
<kares> maybe I forgot to exclude and 'port-over' the tests that assume changing VM's local time-zone
<kares> also PostgreSQL is no where as complete as MySQL/SQLite - there's still a issues that haven't been completed. did some work but I rather (ignorantly) will spend time on getting JNDI working
<kares> haven't decided what to do around the statement pool - whether we shall cache (the JNDI case) in .rb or just behave as before
<kares> + for the future we really need a RubyDate JRuby API, which I am trying to prepare for 9.2
claudiuinberlin has joined #jruby
shellac has joined #jruby
shellac has quit [Quit: Computer has gone to sleep.]
shellac has joined #jruby
<GitHub151> [jruby] badboy opened issue #4976: EADDRINUSE when binding TCP socket with globally disabled IPv6 https://git.io/vNCsZ
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Knot0nline has quit [Read error: Connection reset by peer]
Knot0nline has joined #jruby
drbobbeaty has joined #jruby
cremes has joined #jruby
<GitHub132> [jruby] yui-knk opened pull request #4977: Fix a typo (master...typo) https://git.io/vNCgV
<GitHub17> [jruby] mkristian pushed 2 new commits to master: https://git.io/vNC2I
<GitHub17> jruby/master a50a13b yui-knk: Fix a typo
<GitHub17> jruby/master 7bd2b2c Christian Meier: Merge pull request #4977 from yui-knk/typo...
<GitHub69> [jruby] mkristian closed pull request #4977: Fix a typo (master...typo) https://git.io/vNCgV
Knot0nline has quit [Quit: Leaving]
Chewi has joined #jruby
<Chewi> hello all. I believe I've found a rather scary issue and I'd appreciate if someone could verify that I'm not going insane. it could be a core JRuby bug or JRuby-OpenSSL. two of my colleagues are equally perplexed. https://gist.github.com/chewi/9e18a5f38025eaedb1e4db4ddf161b00
<Chewi> I have tried 9.1.15.0 and head (as of a few minutes ago)
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<enebo> Chewi: yeah that looks strange. I would open an issue against jruby/jruby-openssl. Looks like Ruby equality impl is not right.
<Chewi> enebo: it's not the ==, those Certificate instances shouldn't even get created, an exception should be raised
drbobbeaty has joined #jruby
<enebo> Chewi: wow so 0..50 is just long enough for it to work? whereas the bottom one isn't?
<enebo> oh heh
<enebo> This is probably a broken aref operator
<enebo> Chewi: this is strange pem[0..2] works but using "--" fails
<Chewi> I should have commented this better. it works even with 1 char but only if you reference it via the original pem variable. if you create a new variable or put the string literal in then it fails.
<enebo> Chewi: JRuby and MRI both use Copy On Write semantics so pem[0..2] is likely still backed by the full pem string but it's length is marked as 2
<enebo> I am betting jruby-openssl or JRuby (although I am having a harder time with that explanation) is still getting access to all the bytes and ignoring the realLength
<enebo> kares: what do you think?
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<enebo> Chewi: even a dup will share the same view into the original byte array
<Chewi> enebo: yep, my colleagues talked about string interning, that seems to be what this is
drbobbeaty has joined #jruby
<Chewi> but if it was JRuby itself, it surely would have been noticed already
<enebo> If this is destined to be X509Cert there are some sketchy paths
<enebo> line 196 of X509Cert.java
<Chewi> it's not just the length though, it happens even if you change the starting index
<enebo> yeah but that also could make sense here...if it just passes raw byte[] in but it ignores the begin and realSize of what that byte should represent it will always just be the whole thing
<Chewi> hmm yeah I did notice that line actually but I'm not very familiar with JRuby, only Java and Ruby separately :)
<enebo> Chewi: yeah we have had quite a few of these bugs in the past in core because there is no data hiding. ByteList was never really abstracted in a way to make it trivial to use and fast
livcd has joined #jruby
<enebo> I can say this initialize path which assumes 0 and encoded.length is just asking for long term issues
<livcd> does anyone rub jruby on solaris/sparc or aix/ppc ? (is that even possible?)
<enebo> since you have to absolutely know
ebarrett has quit [Ping timeout: 240 seconds]
<enebo> Chewi: since you know Java you can probably figure out a break point somewhere in javaland where that new executes but after whatever is passing the byte[] in. I think you will see something pass the byte[] with no other info and it will hit a path which uses 0 and byte.length.
<enebo> Chewi: but having spent a couple of minutes this looks fairly obviously the issue. As I said we used to have bugs like this show up in RubyString itself back in the day.
<enebo> Chewi: kares has been doing a lionshare of the maintenance of jruby-openssl for a while. He may chime in at some point this morning (tho he lives in EU)
<Chewi> so do I (for now...)
<enebo> I am on a mission this morning or I would dig in more :)
<Chewi> thanks for your help
<enebo> np
ebarrett has joined #jruby
<Chewi> enebo: heh dammit, I tested jruby master but not jruby-openssl master. it's already fixed!
<enebo> Chewi: oh haha ok well that is good to hear
<enebo> Chewi: in next week or so we will rev 9.1.x
<enebo> Chewi: but of course if jruby-openssl has a release you can gem update
<Chewi> good to know. no new jruby-openssl release yet.
<enebo> Chewi: we will try and make sure that is also released as part of it
<Chewi> thanks
<enebo> It makes me wonder how long that has existed
<Chewi> it's not an obvious one, only spotted it as part of someone else's test suite where they were testing certificate failure with a substring
<GitHub91> [jruby] enebo pushed 3 new commits to ruby-2.5: https://git.io/vNCjv
<GitHub91> jruby/ruby-2.5 3df64a6 Christian Bruckmayer: Add tests for fix String#{casecmp,casecmp?} for non-string arguments...
<GitHub91> jruby/ruby-2.5 bdd7b2f Christian Bruckmayer: Fix String#{casecmp,casecmp?} for non-string arguments...
<GitHub91> jruby/ruby-2.5 fb79687 Thomas E Enebo: Merge pull request #4975 from ChrisBr/feature/string-casecmp...
<GitHub152> [jruby] enebo closed pull request #4975: Feature/string casecmp (ruby-2.5...feature/string-casecmp) https://git.io/vNcgI
<GitHub36> [jruby] enebo closed pull request #4974: Make Integer#{round,floor,ceil,truncate} always return integer (ruby-2.5...feature/integer) https://git.io/vNcE9
<GitHub181> [jruby] enebo pushed 3 new commits to ruby-2.5: https://git.io/vNCjt
<GitHub181> jruby/ruby-2.5 7ced817 Christian Bruckmayer: Make Integer#{round,floor,ceil,truncate} always return integer...
<GitHub181> jruby/ruby-2.5 6962b6e Thomas E Enebo: Merge pull request #4974 from ChrisBr/feature/integer...
<GitHub181> jruby/ruby-2.5 bd85346 Christian Bruckmayer: Add test for Integer#{round,floor,ceil,truncate} always return integer...
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<lopex> enebo: that one regex failure only fails under mri/runner, does the runner create separate jruby runtime or something other ?
<enebo> lopex: could be?
<enebo> lopex: I believe we do run a new proc from rake task
<lopex> enebo: the bug was always there since joni regex doesnt has a hashCode
<enebo> heh
<lopex> enebo: but I want to know why it passed before the changes
<lopex> enebo: do you cache any regexps in the parser ?
<enebo> lopex: I would extract the test:mri commandline reduce it and back out to before you fixed the hashcode issue
<enebo> in the parser?
<lopex> yeah
<enebo> lopex: well we make RegexpNode
<enebo> and it has a hard reference to a regexp
<enebo> oh wait
<lopex> it's still immutable
<enebo> no we don't :)
<lopex> so you might
<enebo> we just save the bytelist
<enebo> ir.operand.Regexp will createCacheObject on first visit but it is not eager
<enebo> I think we do actually construct the Regexp once during parsing so it is maybe silly we do not just pass that
<enebo> I think we create it to check syntax
<lopex> enebo: I'm running plain runner so I guess I have to reduce that
<enebo> lopex: heh well we could save a little CPU by passing regexp instance around in parsing to IRBuilder
<enebo> We potentially remake the same regexp 3 times per
<lopex> I think you cold reuse any regexp literals
<lopex> er, appart from dregexp
<enebo> once to look for embedded vars, once for syntax check, and once to build it in IRBuilder
<enebo> a fourth it JIT
<enebo> yeah
<lopex> enebo: regexps that use ranges can be very expensive in construction
<enebo> anyways gotta run now
havenwood has quit [Remote host closed the connection]
havenwood has joined #jruby
havenwood has quit [Changing host]
havenwood has joined #jruby
<livcd> does anyone rub jruby on solaris/sparc or aix/ppc ? (is that even possible?)
<rtyler> o_O
shellac_ has joined #jruby
Chewi has left #jruby ["I'm outta here!"]
shellac_ has quit [Quit: Computer has gone to sleep.]
haze has joined #jruby
claudiuinberlin has joined #jruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #jruby
bbrowning is now known as bbrowning_away
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lopex> headius: hah, those two failures exposed bugs in jruby itself :P
GitHub160 has joined #jruby
<GitHub160> jcodings/master 9a0a9e4 Marcin Mielzynski: cover utf-8 codeToMbcLength
GitHub160 has left #jruby [#jruby]
<GitHub160> [jcodings] lopex pushed 1 new commit to master: https://git.io/vNWPo
<GitHub143> [jruby] lopex pushed 1 new commit to master: https://git.io/vNWX3
<GitHub143> jruby/master ddfee9d Marcin Mielzynski: use num2int in StringIO#ungetc
shellac_ has joined #jruby