Segfault in pg_query/parse.rb
Ci::CreatePipelineService
when the variable is set
uses the evaluated variable
when the tag is composed by two variables
uses the evaluated variables
when the variable is not set
uses the variable as a regular string
when the tag uses group variables
uses the evaluated variables
when the tag has the same variable name defined for both group and project
uses the project variable instead of group due to variable precedence
with parallel:matrix config
/builds/gitlab-org/gitlab/vendor/ruby/2.7.0/gems/pg_query-2.1.0/lib/pg_query/parse.rb:238: [BUG] Segmentation fault at 0x0000000000000010
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0200 p:1397 s:1098 e:001096 BLOCK /builds/gitlab-org/gitlab/vendor/ruby/2.7.0/gems/pg_query-2.1.0/lib/pg_query/parse.rb:238 [FINISH]
c:0199 p:---- s:1085 e:001084 CFUNC :loop
c:0198 p:0048 s:1081 e:001080 METHOD /builds/gitlab-org/gitlab/vendor/ruby/2.7.0/gems/pg_query-2.1.0/lib/pg_query/parse.rb:102
c:0197 p:0010 s:1074 e:001073 METHOD /builds/gitlab-org/gitlab/vendor/ruby/2.7.0/gems/pg_query-2.1.0/lib/pg_query/parse.rb:81
c:0196 p:0003 s:1070 e:001069 METHOD /builds/gitlab-org/gitlab/vendor/ruby/2.7.0/gems/pg_query-2.1.0/lib/pg_query/parse.rb:40
c:0195 p:0052 s:1066 e:001065 METHOD /builds/gitlab-org/gitlab/spec/support/database/prevent_cross_joins.rb:33
c:0194 p:0027 s:1059 e:001058 BLOCK /builds/gitlab-org/gitlab/spec/support/database/prevent_cross_joins.rb:47
c:0193 p:0042 s:1055 e:001054 METHOD /builds/gitlab-org/gitlab/vendor/ruby/2.7.0/gems/activesupport-6.1.3.2/lib/active_support/notifications/fanout.rb:220
c:0192 p:0011 s:1046 e:001045 BLOCK /builds/gitlab-org/gitlab/vendor/ruby/2.7.0/gems/activesupport-6.1.3.2/lib/active_support/notifications/fanout.rb:63 [FINISH]
c:0191 p:---- s:1042 e:001041 CFUNC :beach:
...
Affected pipelines
Edited by Rémy Coutable