Multi_measure_rest_engraver segfaults when its context doesn’t include Staff_symbol_engraver.
Originally reported by: v_villenave
https://codereview.appspot.com/576090043
This used to work as recently as 2.20.0, and it no longer does:
\version 2.21.1
\layout {
\context {
\type Engraver_group
\name GlobalRests
%\consists Staff_symbol_engraver
%\omit StaffSymbol
\consists Multi_measure_rest_engraver
}
\context {
\Score
\accepts GlobalRests
}
}
\score {
\new GlobalRests { R1 }
}
Uncommenting the Staff_symbol_engraver prevents the segfault from happening.
Here’s what gdb has to say:
Program received signal SIGSEGV, Segmentation fault.
Grob::internal_get_property (this=this@entry=0x0, sym=0x7fffe98e1ea0) at grob-property.cc:162
162 SCM val = get_property_data (this, sym);
Reported by Trevor B: https://lists.gnu.org/archive/html/lilypond-user/2020-05/msg00077.html
Original URL: https://sourceforge.net/p/testlilyissues/issues/5964