mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Add patch to debug seg faults
This is a temporary patch to investigate https://gitlab.com/gitlab-org/gitlab/-/issues/326348.
This commit is contained in:
parent
f5168de9b4
commit
8c7986e6af
1 changed files with 25 additions and 0 deletions
25
patches/ruby/2.7.2/debug-segfault.patch
Normal file
25
patches/ruby/2.7.2/debug-segfault.patch
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
diff --git a/class.c b/class.c
|
||||
index c866d1d727..37ff3c5ade 100644
|
||||
--- a/class.c
|
||||
+++ b/class.c
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "ruby/st.h"
|
||||
#include "constant.h"
|
||||
#include "vm_core.h"
|
||||
+#include "vm_debug.h"
|
||||
#include "id_table.h"
|
||||
#include <ctype.h>
|
||||
|
||||
@@ -119,6 +120,12 @@ rb_class_foreach_subclass(VALUE klass, void (*f)(VALUE, VALUE), VALUE arg)
|
||||
while (cur) {
|
||||
VALUE curklass = cur->klass;
|
||||
cur = cur->next;
|
||||
+
|
||||
+ if (curklass == 0) {
|
||||
+ fprintf(stderr, "=== Detected NULL subclass:\n");
|
||||
+ dp(curklass);
|
||||
+ }
|
||||
+
|
||||
f(curklass, arg);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue