Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: drop valgrind on 2.7 #2892

Merged
merged 2 commits into from
May 24, 2023
Merged

ci: drop valgrind on 2.7 #2892

merged 2 commits into from
May 24, 2023

Conversation

flavorjones
Copy link
Member

@flavorjones flavorjones commented May 24, 2023

What problem is this PR intended to solve?

ci: drop valgrind checks on Ruby 2.7

because there seems to be a compaction bug in 2.7 that occasionally (rarely) gets triggered. it happens more frequently on windows, where we get segfaults, but sometimes valgrind catches it on linux, too.

e.g. https://github.com/sparklemotion/nokogiri/actions/runs/5063811163/jobs/9090845467?pr=2890#step:7:3154

== Invalid read of size 4
==780==    at 0x4908CB0: rb_gc_location (gc.c:8136)
==780==    by 0x4908CB0: rb_gc_location (gc.c:8127)
==780==    by 0x4A4CAD1: transient_heap_block_update_refs (transient_heap.c:831)
==780==    by 0x4A4CAD1: transient_heap_blocks_update_refs (transient_heap.c:847)
==780==    by 0x4A4CAD1: rb_transient_heap_update_references (transient_heap.c:859)
==780==    by 0x490FCA1: gc_update_references (gc.c:8433)
==780==    by 0x490FCA1: gc_compact_after_gc (gc.c:8576)
==780==    by 0x4911052: gc_compact (gc.c:8477)
==780==    by 0x4911052: gc_verify_compaction_references (gc.c:8683)

This PR also updates the version of Ruby used for some jobs to 3.2 (those jobs that don't need a specific version of Ruby).

because there seems to be a compaction bug in 2.7 that
occasionally (rarely) gets triggered. it happens more frequently on
windows, where we get segfaults, but sometimes valgrind catches it on
linux, too.

e.g. https://github.com/sparklemotion/nokogiri/actions/runs/5063811163/jobs/9090845467?pr=2890#step:7:3154

```
== Invalid read of size 4
==780==    at 0x4908CB0: rb_gc_location (gc.c:8136)
==780==    by 0x4908CB0: rb_gc_location (gc.c:8127)
==780==    by 0x4A4CAD1: transient_heap_block_update_refs (transient_heap.c:831)
==780==    by 0x4A4CAD1: transient_heap_blocks_update_refs (transient_heap.c:847)
==780==    by 0x4A4CAD1: rb_transient_heap_update_references (transient_heap.c:859)
==780==    by 0x490FCA1: gc_update_references (gc.c:8433)
==780==    by 0x490FCA1: gc_compact_after_gc (gc.c:8576)
==780==    by 0x4911052: gc_compact (gc.c:8477)
==780==    by 0x4911052: gc_verify_compaction_references (gc.c:8683)
```
@flavorjones flavorjones added topic/ci topic/memory Segfaults, memory leaks, valgrind testing, etc. labels May 24, 2023
@flavorjones flavorjones merged commit fe06196 into main May 24, 2023
@flavorjones flavorjones deleted the flavorjones-drop-valgrind-on-2.7 branch May 24, 2023 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/ci topic/memory Segfaults, memory leaks, valgrind testing, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant