ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:94757] [Ruby master Bug#16136] String corruption in 2.6.4
       [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
@ 2019-09-03 11:24 ` deivid.rodriguez
  2019-09-04  0:50 ` [ruby-core:94766] " kevin
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: deivid.rodriguez @ 2019-09-03 11:24 UTC (permalink / raw)
  To: ruby-core

Issue #16136 has been reported by deivid (David Rodríguez).

----------------------------------------
Bug #16136: String corruption in 2.6.4
https://bugs.ruby-lang.org/issues/16136

* Author: deivid (David Rodríguez)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
When trying to upgrade activeadmin's tests to use ruby 2.6.4, I got some very weird failures where some strings would end up containing random content. See https://circleci.com/gh/activeadmin/activeadmin/20329 for an example of those failures. Failures are somewhat random but the test suite seems to consistently fail on 2.6.4 and pass on 2.6.3. I also managed to reproduce the failures locally, sometimes very consistently, but now it's hardly ever happening... :/

I looked at the changes in 2.6.4 and it looks like https://bugs.ruby-lang.org/issues/16105 and/or https://bugs.ruby-lang.org/issues/15946 could be related, because the region of the Rails code where the corrupted string is created seems to be doing something similar to the reported issues: https://github.com/rails/rails/blob/b7e591a55f4de5f1511c3b9255b3b25159b8ba41/actionpack/lib/action_dispatch/routing/mapper.rb#L404-L412.

Sorry I'm not really sure how to create a reproducible example, or how to debug this issue. Just opening this in case it could help noticing something obviously wrong with the mentioned patches.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [ruby-core:94766] [Ruby master Bug#16136] String corruption in 2.6.4
       [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
  2019-09-03 11:24 ` [ruby-core:94757] [Ruby master Bug#16136] String corruption in 2.6.4 deivid.rodriguez
@ 2019-09-04  0:50 ` kevin
  2019-09-06  0:16 ` [ruby-core:94792] " XrXr
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: kevin @ 2019-09-04  0:50 UTC (permalink / raw)
  To: ruby-core

Issue #16136 has been updated by vcsjones (Kevin Jones).


Hello,

We started running in to this issue as well with Ruby 2.6.4. We are seeing consistent but non-deterministic string corruption in one of our applications. As an example, we see something like:

```
undefined method `"defense_profile_extension_id\x00eq"'
```

Note the `\x00` in the string does not belong there, it should be a `_`. However these results are not consistent. Another run of the application with zero code changes produced this error:

```
undefined method `"\x00\x00\x00\x00\x00\x00\x00\x00f_profile_extension_id_eq"
```

Unfortunately, we have yet to be able to create a small reproduction of this issue. We can make it happen consistently in a very large code base though. I did manage to run `git bisect` on a locally compiled ruby and determined that the change that introduced is https://github.com/ruby/ruby/commit/da36d5700d9e0e66411d93595b6f654c85853fa1.

When we revert that change, the issue can no longer be reproduced.

----------------------------------------
Bug #16136: String corruption in 2.6.4
https://bugs.ruby-lang.org/issues/16136#change-81379

* Author: deivid (David Rodríguez)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
When trying to upgrade activeadmin's tests to use ruby 2.6.4, I got some very weird failures where some strings would end up containing random content. See https://circleci.com/gh/activeadmin/activeadmin/20329 for an example of those failures. Failures are somewhat random but the test suite seems to consistently fail on 2.6.4 and pass on 2.6.3. I also managed to reproduce the failures locally, sometimes very consistently, but now it's hardly ever happening... :/

I looked at the changes in 2.6.4 and it looks like https://bugs.ruby-lang.org/issues/16105 and/or https://bugs.ruby-lang.org/issues/15946 could be related, because the region of the Rails code where the corrupted string is created seems to be doing something similar to the reported issues: https://github.com/rails/rails/blob/b7e591a55f4de5f1511c3b9255b3b25159b8ba41/actionpack/lib/action_dispatch/routing/mapper.rb#L404-L412.

Sorry I'm not really sure how to create a reproducible example, or how to debug this issue. Just opening this in case it could help noticing something obviously wrong with the mentioned patches.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [ruby-core:94792] [Ruby master Bug#16136] String corruption in 2.6.4
       [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
  2019-09-03 11:24 ` [ruby-core:94757] [Ruby master Bug#16136] String corruption in 2.6.4 deivid.rodriguez
  2019-09-04  0:50 ` [ruby-core:94766] " kevin
@ 2019-09-06  0:16 ` XrXr
  2019-09-06 10:40 ` [ruby-core:94797] " deivid.rodriguez
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: XrXr @ 2019-09-06  0:16 UTC (permalink / raw)
  To: ruby-core

Issue #16136 has been updated by alanwu (Alan Wu).


I wonder if these bugs exist on master or are specific to 2.6.4.


----------------------------------------
Bug #16136: String corruption in 2.6.4
https://bugs.ruby-lang.org/issues/16136#change-81410

* Author: deivid (David Rodríguez)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
When trying to upgrade activeadmin's tests to use ruby 2.6.4, I got some very weird failures where some strings would end up containing random content. See https://circleci.com/gh/activeadmin/activeadmin/20329 for an example of those failures. Failures are somewhat random but the test suite seems to consistently fail on 2.6.4 and pass on 2.6.3. I also managed to reproduce the failures locally, sometimes very consistently, but now it's hardly ever happening... :/

I looked at the changes in 2.6.4 and it looks like https://bugs.ruby-lang.org/issues/16105 and/or https://bugs.ruby-lang.org/issues/15946 could be related, because the region of the Rails code where the corrupted string is created seems to be doing something similar to the reported issues: https://github.com/rails/rails/blob/b7e591a55f4de5f1511c3b9255b3b25159b8ba41/actionpack/lib/action_dispatch/routing/mapper.rb#L404-L412.

Sorry I'm not really sure how to create a reproducible example, or how to debug this issue. Just opening this in case it could help noticing something obviously wrong with the mentioned patches.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [ruby-core:94797] [Ruby master Bug#16136] String corruption in 2.6.4
       [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2019-09-06  0:16 ` [ruby-core:94792] " XrXr
@ 2019-09-06 10:40 ` deivid.rodriguez
  2019-09-06 12:58 ` [ruby-core:94798] " hsbt
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: deivid.rodriguez @ 2019-09-06 10:40 UTC (permalink / raw)
  To: ruby-core

Issue #16136 has been updated by deivid (David Rodríguez).


@vcsjones You're right, my raw guess at the culprit was wrong since I just got the issue again with the ruby I built excluding the commits I mentioned. I'm going to build the same ruby you built now to confirm that the culprit is https://github.com/ruby/ruby/commit/da36d5700d9e0e66411d93595b6f654c85853fa1 from my side too.

If this is the culprit, I'm guessing this is happening on master too, but I'll run my tests against master as well to confirm.

----------------------------------------
Bug #16136: String corruption in 2.6.4
https://bugs.ruby-lang.org/issues/16136#change-81418

* Author: deivid (David Rodríguez)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
* Backport: 2.5: DONTNEED, 2.6: REQUIRED
----------------------------------------
When trying to upgrade activeadmin's tests to use ruby 2.6.4, I got some very weird failures where some strings would end up containing random content. See https://circleci.com/gh/activeadmin/activeadmin/20329 for an example of those failures. Failures are somewhat random but the test suite seems to consistently fail on 2.6.4 and pass on 2.6.3. I also managed to reproduce the failures locally, sometimes very consistently, but now it's hardly ever happening... :/

I looked at the changes in 2.6.4 and it looks like https://bugs.ruby-lang.org/issues/16105 and/or https://bugs.ruby-lang.org/issues/15946 could be related, because the region of the Rails code where the corrupted string is created seems to be doing something similar to the reported issues: https://github.com/rails/rails/blob/b7e591a55f4de5f1511c3b9255b3b25159b8ba41/actionpack/lib/action_dispatch/routing/mapper.rb#L404-L412.

Sorry I'm not really sure how to create a reproducible example, or how to debug this issue. Just opening this in case it could help noticing something obviously wrong with the mentioned patches.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [ruby-core:94798] [Ruby master Bug#16136] String corruption in 2.6.4
       [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2019-09-06 10:40 ` [ruby-core:94797] " deivid.rodriguez
@ 2019-09-06 12:58 ` hsbt
  2019-09-06 14:42 ` [ruby-core:94801] " mame
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: hsbt @ 2019-09-06 12:58 UTC (permalink / raw)
  To: ruby-core

Issue #16136 has been updated by hsbt (Hiroshi SHIBATA).


I faced the same error maybe.

Our company blog generated by middleman was failed with Ruby 2.6.4 and 2.7.0 built by master branch. This issue was completely reproduced with them. We could build with Ruby 2.5.6. 

I will investigate the root causes of this issue.


----------------------------------------
Bug #16136: String corruption in 2.6.4
https://bugs.ruby-lang.org/issues/16136#change-81419

* Author: deivid (David Rodríguez)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
* Backport: 2.5: DONTNEED, 2.6: REQUIRED
----------------------------------------
When trying to upgrade activeadmin's tests to use ruby 2.6.4, I got some very weird failures where some strings would end up containing random content. See https://circleci.com/gh/activeadmin/activeadmin/20329 for an example of those failures. Failures are somewhat random but the test suite seems to consistently fail on 2.6.4 and pass on 2.6.3. I also managed to reproduce the failures locally, sometimes very consistently, but now it's hardly ever happening... :/

I looked at the changes in 2.6.4 and it looks like https://bugs.ruby-lang.org/issues/16105 and/or https://bugs.ruby-lang.org/issues/15946 could be related, because the region of the Rails code where the corrupted string is created seems to be doing something similar to the reported issues: https://github.com/rails/rails/blob/b7e591a55f4de5f1511c3b9255b3b25159b8ba41/actionpack/lib/action_dispatch/routing/mapper.rb#L404-L412.

Sorry I'm not really sure how to create a reproducible example, or how to debug this issue. Just opening this in case it could help noticing something obviously wrong with the mentioned patches.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [ruby-core:94801] [Ruby master Bug#16136] String corruption in 2.6.4
       [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2019-09-06 12:58 ` [ruby-core:94798] " hsbt
@ 2019-09-06 14:42 ` mame
  2019-09-06 15:13 ` [ruby-core:94802] " kevin
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: mame @ 2019-09-06 14:42 UTC (permalink / raw)
  To: ruby-core

Issue #16136 has been updated by mame (Yusuke Endoh).


I've committed ade1283ca276f7d589ffd3539fbc7b9817f682d5, which is a workaround for the issue.  I confirm that activeadmin test runs successfully with this patch.

I think that this issue is related to the fstring mechanism, but I have no idea what function is wrong.  The internal state of a String object is too complicated and undocumented, so I cannot see the design, representation, and invariants.  The fstring mechanism is too difficult for human (except @normalperson).  

----------------------------------------
Bug #16136: String corruption in 2.6.4
https://bugs.ruby-lang.org/issues/16136#change-81423

* Author: deivid (David Rodríguez)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
* Backport: 2.5: DONTNEED, 2.6: REQUIRED
----------------------------------------
When trying to upgrade activeadmin's tests to use ruby 2.6.4, I got some very weird failures where some strings would end up containing random content. See https://circleci.com/gh/activeadmin/activeadmin/20329 for an example of those failures. Failures are somewhat random but the test suite seems to consistently fail on 2.6.4 and pass on 2.6.3. I also managed to reproduce the failures locally, sometimes very consistently, but now it's hardly ever happening... :/

I looked at the changes in 2.6.4 and it looks like https://bugs.ruby-lang.org/issues/16105 and/or https://bugs.ruby-lang.org/issues/15946 could be related, because the region of the Rails code where the corrupted string is created seems to be doing something similar to the reported issues: https://github.com/rails/rails/blob/b7e591a55f4de5f1511c3b9255b3b25159b8ba41/actionpack/lib/action_dispatch/routing/mapper.rb#L404-L412.

Sorry I'm not really sure how to create a reproducible example, or how to debug this issue. Just opening this in case it could help noticing something obviously wrong with the mentioned patches.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [ruby-core:94802] [Ruby master Bug#16136] String corruption in 2.6.4
       [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
                   ` (5 preceding siblings ...)
  2019-09-06 14:42 ` [ruby-core:94801] " mame
@ 2019-09-06 15:13 ` kevin
  2019-09-06 15:50 ` [ruby-core:94803] " deivid.rodriguez
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: kevin @ 2019-09-06 15:13 UTC (permalink / raw)
  To: ruby-core

Issue #16136 has been updated by vcsjones (Kevin Jones).


I applied the patch to ruby 2.6.4 and I cannot reproduce the issue any more. This patch appears to resolve the issue for 2.6.4. Thank you very much for taking the time to investigate the issue.


```diff
diff --git a/symbol.c b/symbol.c
index f3506a02dd..a408ee052e 100644
--- a/symbol.c
+++ b/symbol.c
@@ -743,7 +743,8 @@ rb_str_intern(VALUE str)
        enc = ascii;
     }
     else {
-       str = rb_str_new_frozen(str);
+        str = rb_str_dup(str);
+        OBJ_FREEZE(str);
     }
     str = rb_fstring(str);
     type = rb_str_symname_type(str, IDSET_ATTRSET_FOR_INTERN);
```

----------------------------------------
Bug #16136: String corruption in 2.6.4
https://bugs.ruby-lang.org/issues/16136#change-81424

* Author: deivid (David Rodríguez)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
* Backport: 2.5: DONTNEED, 2.6: REQUIRED
----------------------------------------
When trying to upgrade activeadmin's tests to use ruby 2.6.4, I got some very weird failures where some strings would end up containing random content. See https://circleci.com/gh/activeadmin/activeadmin/20329 for an example of those failures. Failures are somewhat random but the test suite seems to consistently fail on 2.6.4 and pass on 2.6.3. I also managed to reproduce the failures locally, sometimes very consistently, but now it's hardly ever happening... :/

I looked at the changes in 2.6.4 and it looks like https://bugs.ruby-lang.org/issues/16105 and/or https://bugs.ruby-lang.org/issues/15946 could be related, because the region of the Rails code where the corrupted string is created seems to be doing something similar to the reported issues: https://github.com/rails/rails/blob/b7e591a55f4de5f1511c3b9255b3b25159b8ba41/actionpack/lib/action_dispatch/routing/mapper.rb#L404-L412.

Sorry I'm not really sure how to create a reproducible example, or how to debug this issue. Just opening this in case it could help noticing something obviously wrong with the mentioned patches.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [ruby-core:94803] [Ruby master Bug#16136] String corruption in 2.6.4
       [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
                   ` (6 preceding siblings ...)
  2019-09-06 15:13 ` [ruby-core:94802] " kevin
@ 2019-09-06 15:50 ` deivid.rodriguez
  2019-09-07  4:48 ` [ruby-core:94814] " mame
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: deivid.rodriguez @ 2019-09-06 15:50 UTC (permalink / raw)
  To: ruby-core

Issue #16136 has been updated by deivid (David Rodríguez).


Wow! Thanks so much for providing this solution in such a timely manner! <3

----------------------------------------
Bug #16136: String corruption in 2.6.4
https://bugs.ruby-lang.org/issues/16136#change-81425

* Author: deivid (David Rodríguez)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
* Backport: 2.5: DONTNEED, 2.6: REQUIRED
----------------------------------------
When trying to upgrade activeadmin's tests to use ruby 2.6.4, I got some very weird failures where some strings would end up containing random content. See https://circleci.com/gh/activeadmin/activeadmin/20329 for an example of those failures. Failures are somewhat random but the test suite seems to consistently fail on 2.6.4 and pass on 2.6.3. I also managed to reproduce the failures locally, sometimes very consistently, but now it's hardly ever happening... :/

I looked at the changes in 2.6.4 and it looks like https://bugs.ruby-lang.org/issues/16105 and/or https://bugs.ruby-lang.org/issues/15946 could be related, because the region of the Rails code where the corrupted string is created seems to be doing something similar to the reported issues: https://github.com/rails/rails/blob/b7e591a55f4de5f1511c3b9255b3b25159b8ba41/actionpack/lib/action_dispatch/routing/mapper.rb#L404-L412.

Sorry I'm not really sure how to create a reproducible example, or how to debug this issue. Just opening this in case it could help noticing something obviously wrong with the mentioned patches.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [ruby-core:94814] [Ruby master Bug#16136] String corruption in 2.6.4
       [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
                   ` (7 preceding siblings ...)
  2019-09-06 15:50 ` [ruby-core:94803] " deivid.rodriguez
@ 2019-09-07  4:48 ` mame
  2019-09-07  6:53 ` [ruby-core:94817] " deivid.rodriguez
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: mame @ 2019-09-07  4:48 UTC (permalink / raw)
  To: ruby-core

Issue #16136 has been updated by mame (Yusuke Endoh).


@vcsjones Good to hear!  Thank you for confirming.  And your investigation by bisect was very helpful.
@deivid The most difficult part for me was to read .circleci/config.yml to reproduce the issue on my machine :-)

----------------------------------------
Bug #16136: String corruption in 2.6.4
https://bugs.ruby-lang.org/issues/16136#change-81435

* Author: deivid (David Rodríguez)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
* Backport: 2.5: DONTNEED, 2.6: REQUIRED
----------------------------------------
When trying to upgrade activeadmin's tests to use ruby 2.6.4, I got some very weird failures where some strings would end up containing random content. See https://circleci.com/gh/activeadmin/activeadmin/20329 for an example of those failures. Failures are somewhat random but the test suite seems to consistently fail on 2.6.4 and pass on 2.6.3. I also managed to reproduce the failures locally, sometimes very consistently, but now it's hardly ever happening... :/

I looked at the changes in 2.6.4 and it looks like https://bugs.ruby-lang.org/issues/16105 and/or https://bugs.ruby-lang.org/issues/15946 could be related, because the region of the Rails code where the corrupted string is created seems to be doing something similar to the reported issues: https://github.com/rails/rails/blob/b7e591a55f4de5f1511c3b9255b3b25159b8ba41/actionpack/lib/action_dispatch/routing/mapper.rb#L404-L412.

Sorry I'm not really sure how to create a reproducible example, or how to debug this issue. Just opening this in case it could help noticing something obviously wrong with the mentioned patches.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [ruby-core:94817] [Ruby master Bug#16136] String corruption in 2.6.4
       [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
                   ` (8 preceding siblings ...)
  2019-09-07  4:48 ` [ruby-core:94814] " mame
@ 2019-09-07  6:53 ` deivid.rodriguez
  2019-09-07 11:25 ` [ruby-core:94825] " wolf
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: deivid.rodriguez @ 2019-09-07  6:53 UTC (permalink / raw)
  To: ruby-core

Issue #16136 has been updated by deivid (David Rodríguez).


@mame I'm sorry you had to do extra work to figure that out! I'll post proper reproduction steps next time :)

----------------------------------------
Bug #16136: String corruption in 2.6.4
https://bugs.ruby-lang.org/issues/16136#change-81437

* Author: deivid (David Rodríguez)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
* Backport: 2.5: DONTNEED, 2.6: REQUIRED
----------------------------------------
When trying to upgrade activeadmin's tests to use ruby 2.6.4, I got some very weird failures where some strings would end up containing random content. See https://circleci.com/gh/activeadmin/activeadmin/20329 for an example of those failures. Failures are somewhat random but the test suite seems to consistently fail on 2.6.4 and pass on 2.6.3. I also managed to reproduce the failures locally, sometimes very consistently, but now it's hardly ever happening... :/

I looked at the changes in 2.6.4 and it looks like https://bugs.ruby-lang.org/issues/16105 and/or https://bugs.ruby-lang.org/issues/15946 could be related, because the region of the Rails code where the corrupted string is created seems to be doing something similar to the reported issues: https://github.com/rails/rails/blob/b7e591a55f4de5f1511c3b9255b3b25159b8ba41/actionpack/lib/action_dispatch/routing/mapper.rb#L404-L412.

Sorry I'm not really sure how to create a reproducible example, or how to debug this issue. Just opening this in case it could help noticing something obviously wrong with the mentioned patches.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [ruby-core:94825] [Ruby master Bug#16136] String corruption in 2.6.4
       [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
                   ` (9 preceding siblings ...)
  2019-09-07  6:53 ` [ruby-core:94817] " deivid.rodriguez
@ 2019-09-07 11:25 ` wolf
  2019-09-07 13:43 ` [ruby-core:94830] " mame
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: wolf @ 2019-09-07 11:25 UTC (permalink / raw)
  To: ruby-core

Issue #16136 has been updated by graywolf (Gray Wolf).


Out of curiosity, why is this issue closed if it was not yet backported to 2.6 branch?

----------------------------------------
Bug #16136: String corruption in 2.6.4
https://bugs.ruby-lang.org/issues/16136#change-81446

* Author: deivid (David Rodríguez)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
* Backport: 2.5: DONTNEED, 2.6: REQUIRED
----------------------------------------
When trying to upgrade activeadmin's tests to use ruby 2.6.4, I got some very weird failures where some strings would end up containing random content. See https://circleci.com/gh/activeadmin/activeadmin/20329 for an example of those failures. Failures are somewhat random but the test suite seems to consistently fail on 2.6.4 and pass on 2.6.3. I also managed to reproduce the failures locally, sometimes very consistently, but now it's hardly ever happening... :/

I looked at the changes in 2.6.4 and it looks like https://bugs.ruby-lang.org/issues/16105 and/or https://bugs.ruby-lang.org/issues/15946 could be related, because the region of the Rails code where the corrupted string is created seems to be doing something similar to the reported issues: https://github.com/rails/rails/blob/b7e591a55f4de5f1511c3b9255b3b25159b8ba41/actionpack/lib/action_dispatch/routing/mapper.rb#L404-L412.

Sorry I'm not really sure how to create a reproducible example, or how to debug this issue. Just opening this in case it could help noticing something obviously wrong with the mentioned patches.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [ruby-core:94830] [Ruby master Bug#16136] String corruption in 2.6.4
       [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
                   ` (10 preceding siblings ...)
  2019-09-07 11:25 ` [ruby-core:94825] " wolf
@ 2019-09-07 13:43 ` mame
  2019-09-09  1:12 ` [ruby-core:94850] " hsbt
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: mame @ 2019-09-07 13:43 UTC (permalink / raw)
  To: ruby-core

Issue #16136 has been updated by mame (Yusuke Endoh).


graywolf (Gray Wolf) wrote:
> Out of curiosity, why is this issue closed if it was not yet backported to 2.6 branch?

Don't worry.  The branch maintainers, @nagachika and @usa, are going to check all tickets whose "Backport" field is "REQUIRED", regardless of their status.

----------------------------------------
Bug #16136: String corruption in 2.6.4
https://bugs.ruby-lang.org/issues/16136#change-81451

* Author: deivid (David Rodríguez)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
* Backport: 2.5: DONTNEED, 2.6: REQUIRED
----------------------------------------
When trying to upgrade activeadmin's tests to use ruby 2.6.4, I got some very weird failures where some strings would end up containing random content. See https://circleci.com/gh/activeadmin/activeadmin/20329 for an example of those failures. Failures are somewhat random but the test suite seems to consistently fail on 2.6.4 and pass on 2.6.3. I also managed to reproduce the failures locally, sometimes very consistently, but now it's hardly ever happening... :/

I looked at the changes in 2.6.4 and it looks like https://bugs.ruby-lang.org/issues/16105 and/or https://bugs.ruby-lang.org/issues/15946 could be related, because the region of the Rails code where the corrupted string is created seems to be doing something similar to the reported issues: https://github.com/rails/rails/blob/b7e591a55f4de5f1511c3b9255b3b25159b8ba41/actionpack/lib/action_dispatch/routing/mapper.rb#L404-L412.

Sorry I'm not really sure how to create a reproducible example, or how to debug this issue. Just opening this in case it could help noticing something obviously wrong with the mentioned patches.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [ruby-core:94850] [Ruby master Bug#16136] String corruption in 2.6.4
       [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
                   ` (11 preceding siblings ...)
  2019-09-07 13:43 ` [ruby-core:94830] " mame
@ 2019-09-09  1:12 ` hsbt
  2019-09-14  2:25 ` [ruby-core:94934] " nagachika00
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 16+ messages in thread
From: hsbt @ 2019-09-09  1:12 UTC (permalink / raw)
  To: ruby-core

Issue #16136 has been updated by hsbt (Hiroshi SHIBATA).


Our blog system was fixed at commit:ade1283ca276f7d589ffd3539fbc7b9817f682d5

----------------------------------------
Bug #16136: String corruption in 2.6.4
https://bugs.ruby-lang.org/issues/16136#change-81473

* Author: deivid (David Rodríguez)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
* Backport: 2.5: DONTNEED, 2.6: REQUIRED
----------------------------------------
When trying to upgrade activeadmin's tests to use ruby 2.6.4, I got some very weird failures where some strings would end up containing random content. See https://circleci.com/gh/activeadmin/activeadmin/20329 for an example of those failures. Failures are somewhat random but the test suite seems to consistently fail on 2.6.4 and pass on 2.6.3. I also managed to reproduce the failures locally, sometimes very consistently, but now it's hardly ever happening... :/

I looked at the changes in 2.6.4 and it looks like https://bugs.ruby-lang.org/issues/16105 and/or https://bugs.ruby-lang.org/issues/15946 could be related, because the region of the Rails code where the corrupted string is created seems to be doing something similar to the reported issues: https://github.com/rails/rails/blob/b7e591a55f4de5f1511c3b9255b3b25159b8ba41/actionpack/lib/action_dispatch/routing/mapper.rb#L404-L412.

Sorry I'm not really sure how to create a reproducible example, or how to debug this issue. Just opening this in case it could help noticing something obviously wrong with the mentioned patches.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [ruby-core:94934] [Ruby master Bug#16136] String corruption in 2.6.4
       [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
                   ` (12 preceding siblings ...)
  2019-09-09  1:12 ` [ruby-core:94850] " hsbt
@ 2019-09-14  2:25 ` nagachika00
  2019-10-01 13:50 ` [ruby-core:95172] " mame
  2019-10-01 19:31 ` [ruby-core:95176] " deivid.rodriguez
  15 siblings, 0 replies; 16+ messages in thread
From: nagachika00 @ 2019-09-14  2:25 UTC (permalink / raw)
  To: ruby-core

Issue #16136 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 2.5: DONTNEED, 2.6: REQUIRED to 2.5: DONTNEED, 2.6: DONE

ruby_2_6 r67803 merged revision(s) ade1283ca276f7d589ffd3539fbc7b9817f682d5.

----------------------------------------
Bug #16136: String corruption in 2.6.4
https://bugs.ruby-lang.org/issues/16136#change-81549

* Author: deivid (David Rodríguez)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
* Backport: 2.5: DONTNEED, 2.6: DONE
----------------------------------------
When trying to upgrade activeadmin's tests to use ruby 2.6.4, I got some very weird failures where some strings would end up containing random content. See https://circleci.com/gh/activeadmin/activeadmin/20329 for an example of those failures. Failures are somewhat random but the test suite seems to consistently fail on 2.6.4 and pass on 2.6.3. I also managed to reproduce the failures locally, sometimes very consistently, but now it's hardly ever happening... :/

I looked at the changes in 2.6.4 and it looks like https://bugs.ruby-lang.org/issues/16105 and/or https://bugs.ruby-lang.org/issues/15946 could be related, because the region of the Rails code where the corrupted string is created seems to be doing something similar to the reported issues: https://github.com/rails/rails/blob/b7e591a55f4de5f1511c3b9255b3b25159b8ba41/actionpack/lib/action_dispatch/routing/mapper.rb#L404-L412.

Sorry I'm not really sure how to create a reproducible example, or how to debug this issue. Just opening this in case it could help noticing something obviously wrong with the mentioned patches.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [ruby-core:95172] [Ruby master Bug#16136] String corruption in 2.6.4
       [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
                   ` (13 preceding siblings ...)
  2019-09-14  2:25 ` [ruby-core:94934] " nagachika00
@ 2019-10-01 13:50 ` mame
  2019-10-01 19:31 ` [ruby-core:95176] " deivid.rodriguez
  15 siblings, 0 replies; 16+ messages in thread
From: mame @ 2019-10-01 13:50 UTC (permalink / raw)
  To: ruby-core

Issue #16136 has been updated by mame (Yusuke Endoh).


FYI: Ruby 2.6.5 has been released, which includes the fix for this issue.

https://www.ruby-lang.org/en/news/2019/10/01/ruby-2-6-5-released/

----------------------------------------
Bug #16136: String corruption in 2.6.4
https://bugs.ruby-lang.org/issues/16136#change-81808

* Author: deivid (David Rodríguez)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
* Backport: 2.5: DONTNEED, 2.6: DONE
----------------------------------------
When trying to upgrade activeadmin's tests to use ruby 2.6.4, I got some very weird failures where some strings would end up containing random content. See https://circleci.com/gh/activeadmin/activeadmin/20329 for an example of those failures. Failures are somewhat random but the test suite seems to consistently fail on 2.6.4 and pass on 2.6.3. I also managed to reproduce the failures locally, sometimes very consistently, but now it's hardly ever happening... :/

I looked at the changes in 2.6.4 and it looks like https://bugs.ruby-lang.org/issues/16105 and/or https://bugs.ruby-lang.org/issues/15946 could be related, because the region of the Rails code where the corrupted string is created seems to be doing something similar to the reported issues: https://github.com/rails/rails/blob/b7e591a55f4de5f1511c3b9255b3b25159b8ba41/actionpack/lib/action_dispatch/routing/mapper.rb#L404-L412.

Sorry I'm not really sure how to create a reproducible example, or how to debug this issue. Just opening this in case it could help noticing something obviously wrong with the mentioned patches.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [ruby-core:95176] [Ruby master Bug#16136] String corruption in 2.6.4
       [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
                   ` (14 preceding siblings ...)
  2019-10-01 13:50 ` [ruby-core:95172] " mame
@ 2019-10-01 19:31 ` deivid.rodriguez
  15 siblings, 0 replies; 16+ messages in thread
From: deivid.rodriguez @ 2019-10-01 19:31 UTC (permalink / raw)
  To: ruby-core

Issue #16136 has been updated by deivid (David Rodríguez).


Thanks so much! <3

----------------------------------------
Bug #16136: String corruption in 2.6.4
https://bugs.ruby-lang.org/issues/16136#change-81811

* Author: deivid (David Rodríguez)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-linux]
* Backport: 2.5: DONTNEED, 2.6: DONE
----------------------------------------
When trying to upgrade activeadmin's tests to use ruby 2.6.4, I got some very weird failures where some strings would end up containing random content. See https://circleci.com/gh/activeadmin/activeadmin/20329 for an example of those failures. Failures are somewhat random but the test suite seems to consistently fail on 2.6.4 and pass on 2.6.3. I also managed to reproduce the failures locally, sometimes very consistently, but now it's hardly ever happening... :/

I looked at the changes in 2.6.4 and it looks like https://bugs.ruby-lang.org/issues/16105 and/or https://bugs.ruby-lang.org/issues/15946 could be related, because the region of the Rails code where the corrupted string is created seems to be doing something similar to the reported issues: https://github.com/rails/rails/blob/b7e591a55f4de5f1511c3b9255b3b25159b8ba41/actionpack/lib/action_dispatch/routing/mapper.rb#L404-L412.

Sorry I'm not really sure how to create a reproducible example, or how to debug this issue. Just opening this in case it could help noticing something obviously wrong with the mentioned patches.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2019-10-01 19:31 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-16136.20190903112445@ruby-lang.org>
2019-09-03 11:24 ` [ruby-core:94757] [Ruby master Bug#16136] String corruption in 2.6.4 deivid.rodriguez
2019-09-04  0:50 ` [ruby-core:94766] " kevin
2019-09-06  0:16 ` [ruby-core:94792] " XrXr
2019-09-06 10:40 ` [ruby-core:94797] " deivid.rodriguez
2019-09-06 12:58 ` [ruby-core:94798] " hsbt
2019-09-06 14:42 ` [ruby-core:94801] " mame
2019-09-06 15:13 ` [ruby-core:94802] " kevin
2019-09-06 15:50 ` [ruby-core:94803] " deivid.rodriguez
2019-09-07  4:48 ` [ruby-core:94814] " mame
2019-09-07  6:53 ` [ruby-core:94817] " deivid.rodriguez
2019-09-07 11:25 ` [ruby-core:94825] " wolf
2019-09-07 13:43 ` [ruby-core:94830] " mame
2019-09-09  1:12 ` [ruby-core:94850] " hsbt
2019-09-14  2:25 ` [ruby-core:94934] " nagachika00
2019-10-01 13:50 ` [ruby-core:95172] " mame
2019-10-01 19:31 ` [ruby-core:95176] " deivid.rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).