Hello lilypond crew!

Reporting the bug here, since I saw on the bug link that you prefer mail over GitLab issues.

When trying to process any file with \layout{} directive, lilypond crashes (Segmentation fault / address not mapped).

I was able to reproduce it on current git master (2c9361d3d2d9e9bdfca626d01076c94fb81e2e88) as well.

My distro: Gentoo Linux

Installed (possibly relevant) library versions:

[IP-] [ ] dev-scheme/guile-2.2.7:12/2.2-1

[IP-] [ ] x11-libs/pango-1.42.4-r2:0

[IP-] [ ] dev-libs/boehm-gc-8.0.4:0

typescript.txt contains colored output (made with `script` utility, contains ANSI escapes, view best with cat or less -R) from lilypond being run under AddressSanitizer, which suggests that there is a use-after-free bug, while processing the example from snk6.ly; it also fails to process files as simple as `\score{c \layout{}}`, though providing arguably less helpful, but distinctly different output (attached as basic.txt).

I was not able to create such a minimal input file that would trigger the helpful trace.

Off-topic, I believe I transcribed the piece to sound pretty accurately,

but I have not seen the layout yet (because of the bug), so please don't tell me that it renders ugly.

Million thanks for such an awesome piece of software anyway :)

Please let me know if you need more info, or if the bug should be reported to one of the libraries instead.

--

Arusekk

\version "2.14.0"

signa = {
  \time 4/4
  \tempo 4 = 144
  \key cis \minor
}

ini = \relative c'' {
  << {
    cis2\fff bis |
    cis
  } \\ {
    dis,2\fff e |
    dis
  } >>
}
inii = \relative c'' {
  e,4\ffff gis
}

dro = \relative c'' {
  cis'8\fffff b a gis |
}
drond = \relative c'' {
  cis8 b a gis |
}

ref = \relative c'' {
  cis2 e8 cis\staccato cis\staccato cis\staccato |
  cis gis'\staccato gis\staccato gis\staccato gis4
}
refr = \relative c'' {
  e8 dis |
}
reff = \relative c'' {
  cis4\staccato cis'\staccato cis,\staccato cis'\staccato |
}
refe = \relative c'' {
  \reff |
  cis8 cis'\staccato cis\staccato cis\staccato
}
refcd = \relative c'' {
  cis'2 |
}
refbg = \relative c'' {
  f'4.\mf e16 d e4 c |
  d4. c16 bes c4 a |
  bes4. a16 g a4 f |
  e a g8 f e f |

  d2 e4 c |
  r4 f'4 e8 d c4 |
  d c a c |
  d2.. a16 c |

  d4 d a8 g f4 |
  r e f e8 a16 c |
  d4. a16 c d4. a16 c |
  d1 |
}

strsolo = \relative c'' {
  e8\mf dis fis e gis fis a gis |
  fis gis e dis e gis dis gis |
  cis, gis cis dis e gis, dis' e |
  cis gis cis gis cis gis gis'4 |
}

versea = \relative c' {
  e4\mf\> fis8 dis~dis e~e cis |
}
verseb = \relative c' {
  r8\mp dis8~dis bis~bis gis~gis gis |
}
versec = \relative c' {
  r8\mp b'8~b cis~cis4 r4 |
}

refA = \relative c'' {
  r4 a4 r a |
  r a r f8 e |
  r4 d'4 r d |
  a8 a a4 a a8 bes |

  r4 a4 r a |
  r a r f8 e |
  r4 d'4 r d |
  a8 a a4 a a8 bes |
}

bri = \relative c'' {
  cis8\ff cis bis bis
}
bria = \relative c'' {
  cis8 cis cis cis |
}
brib = \relative c'' {
  cis8 cis gis gis
}

endung = \relative c'' {
  a'8 gis fis gis fis e fis e |
  dis e dis cis dis bis cis r |
}

\score {
  <<
  \new Staff {
    \signa
    \clef treble
    \relative c'' {
      \set Staff.midiInstrument = #"acoustic grand"
      % gpno
      \ini \inii |
      \ini \dro |

      \ini \inii |
      \ini \drond |
      \ini \inii |
      \ini \drond |  % ref end
      \ini \inii |
      \ini \drond |  % violin solo end
      \ini \inii |
      \ini \drond |
      \ini \inii |
      \ini

      \key d \minor
      \transpose cis d {
        \dro |
        r1 r r r |
        r1 r r r |

        % refbg enters
        r1 r r r |
        r1 r r r |
        r1 r r r |
      }

      \key cis \minor
      % gpno
      \bri \bri |
      \bri \bria |
      \bri \bri |
      \brib \bria |

      \bri \bri |
      \bri \bria |
    }
  }
  \new Staff {
    \signa
    \clef treble
    <<
      \new Voice {
        \relative c'' {
          \set Staff.midiInstrument = #"choir aahs"
          gis4\pppp a~a fis~ |
          fis1 |
          gis4 a~a fis |
          b2\<

          % choir
          \dro |
          \ref \refr |
          \ref r4 |
          \ref \refr |
          \refe \refcd |

          r1 r r r |  % violin solo end

          \set Staff.midiInstrument = #"synth voice"
          % voice
          \versea |
          \verseb |
          \versea |
          \versec |

          \versea |
          \verseb |

          cis8\> cis cis cis~cis cis~cis4 |
          r2

          \set Staff.midiInstrument = #"choir aahs"

          \key d \minor
          <<
            \transpose cis d {
              % choir
              \dro |
              \ref \refr |
              \ref r4 |
              \ref \refr |
              \refe \dro |

              \ref \refr |
              \ref r4 |
              \ref \refr |
              \refe \refcd |

              r1 r |  % there should be a little voice solo here
              \refe \refcd |
            } \\ {
              r2 |
              \refA |
              \refA |
            }
          >>

          \key cis \minor
          r1 |
          r2 <e gis cis>2 |
          r1 |
          cis4\staccato r <e gis cis>2 |
          r1 |
          cis4\staccato\< r <e gis cis>2\fffff |

          \reff \reff |
        }
      }
    >>
  }
  \new Staff {
    \signa
    \clef treble
    \set Staff.midiInstrument = #"string ensemble 1"

    \relative c'' {
      r1 r r r2
      \dro |

      r1 r r r |  % ref 1/2 end
      r1 r r r2  % ref end
      \drond |

      \set Staff.midiInstrument = #"violin"
      % violin solo
      \strsolo |

      \set Staff.midiInstrument = #"string ensemble 1"
      r1 r r r |  % verse 1/2 end
      r4 gis'\pp r dis |
      r gis r dis |
      r gis r dis |
      cis2  % verse end

      \key d \minor
      \transpose cis d {
        \dro |
        r1 r r r |
        r1 r r r |
      }

      \refbg |

      \key cis \minor
      r1 r r r |  % bri 1/2 end
      r1 r |  % bri end

      \endung |
    }
  }
  \drums {
    <bd cyms>2\ff ss16\ppppp ss r ss ss ss ss8 |
    bd2\pp ss16\ppppp ss r ss ss r bd8\pp |
    bd2 ss16\ppppp ss r ss ss ss ss8 |
    bd1\pp |

    % ref
    <bd cymc>8\fffff bd <sn cymc>4 bd8 bd <sn cymc>4\> |
    bd8 bd sn4 bd8 bd sn4\ffff |
    bd8 bd sn4 bd8 bd sn4 |
    bd8 bd sn4 bd8 sn16\> sn sn sn sn sn |
    
    % ref 2
    bd8\ffff bd sn4 bd8 bd sn4 |
    bd8 bd sn4 bd8 bd sn4 |
    bd8 bd <sn cymc>4 bd8 bd <sn cymc>4 |
    bd8 <sn cymc> <sn cymc>4 <bd cymc>8 sn sn sn16 sn |
    
    % strsolo
    <bd cymc>8 bd sn4 bd8 bd sn4 |
    \repeat unfold 9 {
      bd8 bd sn4 bd8 bd sn4 |
    }

    tomfl8 tomfl r tomfl r tomfl r tomfl |
    tomfl1 | % verse 1/2 end

    % key d minor
    \repeat unfold 20 {
      bd8 bd sn4 bd8 bd sn4 |
    }
    
    \repeat unfold 3 {
      << {
        <cyms bd>1\ff | bd1 |
      } \\ {
        sn8\pp sn sn \tuplet 3/2 { sn16 sn sn }
        sn8 sn sn \tuplet 3/2 { sn16 sn sn } |
        sn8 sn sn \tuplet 3/2 { sn16 sn sn }
        sn8 sn sn \tuplet 3/2 { sn16 sn sn } |
      } >> |
    }
    << {
      cyms2\f cyms | cyms cyms4 cymc |
    } \\ {
      sn8\pp sn sn \tuplet 3/2 { sn16 sn sn }
      sn8 sn sn \tuplet 3/2 { sn16 sn sn } |
      sn8 sn sn sn sn sn sn r |
    } >> |
  }
  >>

  \layout {}
  \midi {}
}

% vi: se ts=2 sw=2 et: kate: replace-tabs on; indent-width 2; tab-width 2;
Skrypt uruchomiony 2021-02-16 15:06:50+01:00 [TERM="xterm-256color" 
TTY="/dev/pts/4" COLUMNS="189" LINES="50"]
GNU LilyPond 2.23.0
Processing `/home/arusekk/Muzyka/heard-mid/opy/snk6.ly'
Parsing...
Interpreting 
music...[8][16][24][32][40][48]=================================================================
==28806==ERROR: AddressSanitizer: heap-use-after-free on address 
0x60800001b030 at pc 0x5603ab599ace bp 0x7ffc34f52140 sp 0x7ffc34f52130
READ of size 8 at 0x60800001b030 thread T0
    #0 0x5603ab599acd in Translator::context() const 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/include/translator.hh:126
    #1 0x5603ab599acd in Beam_collision_engraver::finalize() 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/beam-collision-engraver.cc:112
    #2 0x5603ab599acd in Beam_collision_engraver::finalize() 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/beam-collision-engraver.cc:76
    #3 0x5603ab6b1e1e in scm_unused_struct* Callbacks::trampoline<Translator, 
&Translator::finalize>(scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/include/callback.hh:114
    #4 0x5603ab507613 in Callback_wrapper<>::call(scm_unused_struct*, 
scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/include/callback.hh:59
    #5 0x7f998a135c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #6 0x7f998a13b8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #7 0x7f998a0b5f17 in scm_call_1 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:485
    #8 0x5603abc99e4f in translator_each(scm_unused_struct*, 
scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/translator-group.cc:45
    #9 0x5603abc9aa01 in recurse_over_translators(Context*, scm_unused_struct*, 
scm_unused_struct*, Direction) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/translator-group.cc:220
    #10 0x5603abaa1e50 in Score_engraver::finish(scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/score-engraver.cc:62
    #11 0x5603abaa3679 in scm_unused_struct* 
Callbacks::trampoline<Score_engraver, 
&Score_engraver::finish>(scm_unused_struct*, scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/include/callback.hh:124
    #12 0x5603ab546ec8 in 
Callback_wrapper<scm_unused_struct*>::call(scm_unused_struct*, 
scm_unused_struct*, scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/include/callback.hh:59
    #13 0x7f998a135c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #14 0x7f998a13b8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #15 0x7f998a0b5f49 in scm_call_2 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:492
    #16 0x5603ab6c8be1 in Listener::listen(scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/include/listener.hh:108
    #17 0x5603ab6c8be1 in scm_unused_struct* 
Smob_base<Listener>::smob_trampoline<&Listener::listen>(scm_unused_struct*, 
scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/include/smobs.hh:250
    #18 0x7f998a135c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #19 0x7f998a13b8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #20 0x7f998a0b5f17 in scm_call_1 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:485
    #21 0x5603ab6c5a8b in Dispatcher::dispatch(scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/dispatcher.cc:141
    #22 0x5603ab6a6024 in 
Context::internal_send_stream_event(scm_unused_struct*, Input*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/context.cc:614
    #23 0x5603ab778548 in Global_context::iterate(Music*, bool) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/global-context.cc:192
    #24 0x5603ab773a53 in ly_run_translator(scm_unused_struct*, 
scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/global-context-scheme.cc:105
    #25 0x5603abaaa331 in Score::book_rendering(Output_def*, Output_def*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/score.cc:137
    #26 0x5603ab60280f in Book::process_score(scm_unused_struct*, Paper_book*, 
Output_def*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/book.cc:225
    #27 0x5603ab605a4b in Book::process(Output_def*, Output_def*, Paper_book*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/book.cc:307
    #28 0x5603ab5fde4b in ly_book_process(scm_unused_struct*, 
scm_unused_struct*, scm_unused_struct*, scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/book-scheme.cc:71
    #29 0x7f998a135c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #30 0x7f998a13b8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #31 0x7f998a0b7216 in scm_primitive_eval 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:660
    #32 0x7f998a0c0ea0 in scm_c_with_fluid 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/fluids.c:541
    #33 0x5603aba04e20 in evaluate_embedded_scheme(scm_unused_struct*, Input 
const&, bool, Lily_parser*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/parse-scm.cc:198
    #34 0x5603abd0b31e in Lily_lexer::eval_scm(scm_unused_struct*, Input, char) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/lexer.ll:1109
    #35 0x5603abd3ba82 in Lily_lexer::eval_scm_token(scm_unused_struct*, Input) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/include/lily-lexer.hh:58
    #36 0x5603abd3ba82 in yyparse(Lily_parser*, scm_unused_struct**) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/parser.yy:448
    #37 0x5603abd71c10 in Lily_parser::do_yyparse_trampoline(void*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/parser.yy:4243
    #38 0x7f998a0c0ea0 in scm_c_with_fluid 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/fluids.c:541
    #39 0x5603ab81f177 in 
Lily_parser::parse_file(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&, 
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&, std::__cxx11::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const&) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/lily-parser.cc:118
    #40 0x5603ab81861e in ly_parse_file(scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/lily-parser-scheme.cc:124
    #41 0x7f998a135c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #42 0x7f998a13b8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #43 0x7f998a0b5f17 in scm_call_1 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:485
    #44 0x5603ab8544e8 in Scm_variable::operator()(scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/include/lily-modules.hh:73
    #45 0x5603ab8544e8 in main_with_guile 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/main.cc:576
    #46 0x7f998a0cf23c in invoke_main_func 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/init.c:341
    #47 0x7f998a0afdd9 in c_body 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/continuations.c:422
    #48 0x7f998a135c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #49 0x7f998a13b8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #50 0x7f998a129537 in catch 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/throw.c:137
    #51 0x7f998a0b04c2 in scm_i_with_continuation_barrier 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/continuations.c:360
    #52 0x7f998a0b0544 in scm_c_with_continuation_barrier 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/continuations.c:456
    #53 0x7f998a12823d in with_guile 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/threads.c:661
    #54 0x7f998a006df6 in GC_call_with_stack_base 
(/usr/lib64/libgc.so.1+0x10df6)
    #55 0x7f998a128357 in scm_i_with_guile 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/threads.c:704
    #56 0x7f998a128357 in scm_with_guile 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/threads.c:710
    #57 0x7f998a0cf3a1 in scm_boot_guile 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/init.c:324
    #58 0x5603ab4a9e9d in main 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/main.cc:927
    #59 0x7f99898c3e9a in __libc_start_main (/lib64/libc.so.6+0x23e9a)
    #60 0x5603ab4fdd69 in _start (/usr/bin/lilypond+0x301d69)

0x60800001b030 is located 16 bytes inside of 88-byte region 
[0x60800001b020,0x60800001b078)
freed by thread T1 here:
    #0 0x7f998a387d07 in operator delete(void*) 
(/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/libasan.so.6+0xb3d07)
    #1 0x5603ab5085ac in Smob<Translator>::free_smob(scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/include/smobs.hh:335

previously allocated by thread T0 here:
    #0 0x7f998a3871a7 in operator new(unsigned long) 
(/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/libasan.so.6+0xb31a7)
    #1 0x5603abbb7453 in Translator* 
Translator_creator::allocate<Stem_engraver>(Context*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/include/translator.hh:70

Thread T1 created by T0 here:
    #0 0x7f998a32c311 in __interceptor_pthread_create 
(/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/libasan.so.6+0x58311)
    #1 0x7f998a0bfbc6 in start_finalization_thread 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/finalizers.c:254
    #2 0x7f998a0bfbc6 in spawn_finalizer_thread 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/finalizers.c:281

SUMMARY: AddressSanitizer: heap-use-after-free 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/include/translator.hh:126
 in Translator::context() const
Shadow bytes around the buggy address:
  0x0c107fffb5b0: fa fa fa 
fa 00 00 00 
00 00 00 00 
00 00 00 00 
fa
  0x0c107fffb5c0: fa fa fa 
fa 00 00 00 
00 00 00 00 
00 00 00 00 
fa
  0x0c107fffb5d0: fa fa fa 
fa 00 00 00 
00 00 00 00 
00 00 00 00 
fa
  0x0c107fffb5e0: fa fa fa 
fa fd fd fd 
fd fd fd fd 
fd fd fd fd 
fa
  0x0c107fffb5f0: fa fa fa 
fa fd fd fd 
fd fd fd fd 
fd fd fd fd 
fa
=>0x0c107fffb600: fa fa fa 
fa fd 
fd[fd]fd fd 
fd fd fd fd 
fd fd fa
  0x0c107fffb610: fa fa fa 
fa fd fd fd 
fd fd fd fd 
fd fd fd fd 
fd
  0x0c107fffb620: fa fa fa 
fa fd fd fd 
fd fd fd fd 
fd fd fd fd 
fd
  0x0c107fffb630: fa fa fa 
fa fd fd fd 
fd fd fd fd 
fd fd fd fd 
fd
  0x0c107fffb640: fa fa fa 
fa fd fd fd 
fd fd fd fd 
fd fd fd fd 
fd
  0x0c107fffb650: fa fa fa 
fa fd fd fd 
fd fd fd fd 
fd fd fd fd 
fd
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 
03 04 05 06 
07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
==28806==ABORTING

Skrypt wykonany 2021-02-16 15:06:52+01:00 [KOD_WYJŚCIA="1"]
GNU LilyPond 2.23.0
Processing `basic.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...AddressSanitizer:DEADLYSIGNAL
=================================================================
==31881==ERROR: AddressSanitizer: SEGV on unknown address (pc 0x7fe0ec9af8b2 bp 
0xffff100000000000 sp 0x7ffc6b772a60 T0)
==31881==The signal is caused by a READ memory access.
==31881==Hint: this fault was caused by a dereference of a high value address 
(see register values below).  Dissassemble the provided pc to learn which 
register was used.
    #0 0x7fe0ec9af8b2  
(/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/libasan.so.6+0x288b2)
    #1 0x7fe0eca383b2 in __interceptor_free 
(/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/libasan.so.6+0xb13b2)
    #2 0x7fe0ec659a34 in pango_font_description_free 
(/usr/lib64/libpango-1.0.so.0+0x12a34)
    #3 0x561a8bfb5473 in Pango_font::pango_item_string_stencil(_PangoGlyphItem 
const*) const 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/pango-font.cc:387
    #4 0x561a8bfb9950 in Pango_font::text_stencil(Output_def*, 
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&, bool, std::__cxx11::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const&) const 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/pango-font.cc:494
    #5 0x561a8c21b09d in Text_interface::interpret_string(scm_unused_struct*, 
scm_unused_struct*, scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:197
    #6 0x561a8c21ca86 in Text_interface::internal_interpret_markup(Output_def*, 
scm_unused_struct*, scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:246
    #7 0x561a8c21cd68 in Text_interface::interpret_markup(scm_unused_struct*, 
scm_unused_struct*, scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:219
    #8 0x7fe0ec7e8c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #9 0x7fe0ec7ee8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #10 0x7fe0ec7693f0 in scm_apply_0 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:592
    #11 0x561a8c21c9ed in 
Text_interface::internal_interpret_markup(Output_def*, scm_unused_struct*, 
scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:275
    #12 0x561a8c21cd68 in Text_interface::interpret_markup(scm_unused_struct*, 
scm_unused_struct*, scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:219
    #13 0x7fe0ec7e8c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #14 0x7fe0ec7ee8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #15 0x7fe0ec7693f0 in scm_apply_0 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:592
    #16 0x561a8c21c9ed in 
Text_interface::internal_interpret_markup(Output_def*, scm_unused_struct*, 
scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:275
    #17 0x561a8c21cd68 in Text_interface::interpret_markup(scm_unused_struct*, 
scm_unused_struct*, scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:219
    #18 0x7fe0ec7e8c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #19 0x7fe0ec7ee8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #20 0x7fe0ec7693f0 in scm_apply_0 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:592
    #21 0x561a8c21c9ed in 
Text_interface::internal_interpret_markup(Output_def*, scm_unused_struct*, 
scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:275
    #22 0x561a8c21cd68 in Text_interface::interpret_markup(scm_unused_struct*, 
scm_unused_struct*, scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:219
    #23 0x7fe0ec7e8c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #24 0x7fe0ec7ee8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #25 0x7fe0ec7693f0 in scm_apply_0 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:592
    #26 0x561a8c21c9ed in 
Text_interface::internal_interpret_markup(Output_def*, scm_unused_struct*, 
scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:275
    #27 0x561a8c21cd68 in Text_interface::interpret_markup(scm_unused_struct*, 
scm_unused_struct*, scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:219
    #28 0x7fe0ec7e8c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #29 0x7fe0ec7ee8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #30 0x7fe0ec7693f0 in scm_apply_0 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:592
    #31 0x561a8c21c9ed in 
Text_interface::internal_interpret_markup(Output_def*, scm_unused_struct*, 
scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:275
    #32 0x561a8c21cd68 in Text_interface::interpret_markup(scm_unused_struct*, 
scm_unused_struct*, scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:219
    #33 0x7fe0ec7e8c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #34 0x7fe0ec7ee8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #35 0x7fe0ec7693f0 in scm_apply_0 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:592
    #36 0x561a8c21c9ed in 
Text_interface::internal_interpret_markup(Output_def*, scm_unused_struct*, 
scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:275
    #37 0x561a8c21cd68 in Text_interface::interpret_markup(scm_unused_struct*, 
scm_unused_struct*, scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:219
    #38 0x7fe0ec7e8c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #39 0x7fe0ec7ee8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #40 0x7fe0ec7693f0 in scm_apply_0 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:592
    #41 0x561a8c21c9ed in 
Text_interface::internal_interpret_markup(Output_def*, scm_unused_struct*, 
scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:275
    #42 0x561a8c21cd68 in Text_interface::interpret_markup(scm_unused_struct*, 
scm_unused_struct*, scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:219
    #43 0x7fe0ec7e8c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #44 0x7fe0ec7ee8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #45 0x7fe0ec7693f0 in scm_apply_0 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:592
    #46 0x561a8c21c9ed in 
Text_interface::internal_interpret_markup(Output_def*, scm_unused_struct*, 
scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:275
    #47 0x561a8c21cd68 in Text_interface::interpret_markup(scm_unused_struct*, 
scm_unused_struct*, scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:219
    #48 0x7fe0ec7e8c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #49 0x7fe0ec7ee8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #50 0x7fe0ec7693f0 in scm_apply_0 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:592
    #51 0x561a8c21c9ed in 
Text_interface::internal_interpret_markup(Output_def*, scm_unused_struct*, 
scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:275
    #52 0x561a8c21cd68 in Text_interface::interpret_markup(scm_unused_struct*, 
scm_unused_struct*, scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/text-interface.cc:219
    #53 0x7fe0ec7e8c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #54 0x7fe0ec7ee8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #55 0x7fe0ec7693f0 in scm_apply_0 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:592
    #56 0x561a8bf2c258 in Page_breaking::make_page(int, bool) const 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/page-breaking.cc:489
    #57 0x561a8bf2e9c3 in Page_breaking::page_height(int, bool) const 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/page-breaking.cc:521
    #58 0x561a8bf8a1d5 in Page_spacer::calc_subproblem(unsigned long, unsigned 
long) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/page-spacing.cc:311
    #59 0x561a8bf8c0d4 in Page_spacer::solve() 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/page-spacing.cc:158
    #60 0x561a8bf4bc1a in Page_breaking::space_systems_on_best_pages(unsigned 
long, int) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/page-breaking.cc:1343
    #61 0x561a8bf0de31 in Optimal_page_breaking::solve() 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/optimal-page-breaking.cc:64
    #62 0x561a8bf25b1b in ly_optimal_breaking(scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/page-breaking-scheme.cc:45
    #63 0x7fe0ec7e8c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #64 0x7fe0ec7ee8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #65 0x7fe0ec768f17 in scm_call_1 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:485
    #66 0x561a8bfbdfe7 in Paper_book::pages() 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/paper-book.cc:652
    #67 0x561a8bfbff97 in Paper_book::pages() 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/paper-book.cc:144
    #68 0x561a8bfbff97 in Paper_book::output_aux(scm_unused_struct*, bool, 
long*, long*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/paper-book.cc:150
    #69 0x561a8bfc07c5 in Paper_book::output(scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/paper-book.cc:173
    #70 0x561a8bbe2e5e in ly_book_process(scm_unused_struct*, 
scm_unused_struct*, scm_unused_struct*, scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/book-scheme.cc:74
    #71 0x7fe0ec7e8c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #72 0x7fe0ec7ee8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #73 0x7fe0ec76a216 in scm_primitive_eval 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:660
    #74 0x7fe0ec773ea0 in scm_c_with_fluid 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/fluids.c:541
    #75 0x561a8bfe9e20 in evaluate_embedded_scheme(scm_unused_struct*, Input 
const&, bool, Lily_parser*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/parse-scm.cc:198
    #76 0x561a8c2f031e in Lily_lexer::eval_scm(scm_unused_struct*, Input, char) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/lexer.ll:1109
    #77 0x561a8c320a82 in Lily_lexer::eval_scm_token(scm_unused_struct*, Input) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/include/lily-lexer.hh:58
    #78 0x561a8c320a82 in yyparse(Lily_parser*, scm_unused_struct**) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/parser.yy:448
    #79 0x561a8c356c10 in Lily_parser::do_yyparse_trampoline(void*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/parser.yy:4243
    #80 0x7fe0ec773ea0 in scm_c_with_fluid 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/fluids.c:541
    #81 0x561a8be04177 in 
Lily_parser::parse_file(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&, 
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > 
const&, std::__cxx11::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const&) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/lily-parser.cc:118
    #82 0x561a8bdfd61e in ly_parse_file(scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/lily-parser-scheme.cc:124
    #83 0x7fe0ec7e8c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #84 0x7fe0ec7ee8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #85 0x7fe0ec768f17 in scm_call_1 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/eval.c:485
    #86 0x561a8be394e8 in Scm_variable::operator()(scm_unused_struct*) 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/include/lily-modules.hh:73
    #87 0x561a8be394e8 in main_with_guile 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/main.cc:576
    #88 0x7fe0ec78223c in invoke_main_func 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/init.c:341
    #89 0x7fe0ec762dd9 in c_body 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/continuations.c:422
    #90 0x7fe0ec7e8c7c in vm_regular_engine 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm-engine.c:786
    #91 0x7fe0ec7ee8df in scm_call_n 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/vm.c:1260
    #92 0x7fe0ec7dc537 in catch 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/throw.c:137
    #93 0x7fe0ec7634c2 in scm_i_with_continuation_barrier 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/continuations.c:360
    #94 0x7fe0ec763544 in scm_c_with_continuation_barrier 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/continuations.c:456
    #95 0x7fe0ec7db23d in with_guile 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/threads.c:661
    #96 0x7fe0ec6b9df6 in GC_call_with_stack_base 
(/usr/lib64/libgc.so.1+0x10df6)
    #97 0x7fe0ec7db357 in scm_i_with_guile 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/threads.c:704
    #98 0x7fe0ec7db357 in scm_with_guile 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/threads.c:710
    #99 0x7fe0ec7823a1 in scm_boot_guile 
/var/tmp/portage/dev-scheme/guile-2.2.7/work/guile-2.2.7/libguile/init.c:324
    #100 0x561a8ba8ee9d in main 
/usr/src/debug/media-sound/lilypond-2.23.0/lilypond-2.23.0/lily/main.cc:927
    #101 0x7fe0ebf76e9a in __libc_start_main (/lib64/libc.so.6+0x23e9a)
    #102 0x561a8bae2d69 in _start (/usr/bin/lilypond+0x301d69)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV 
(/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/libasan.so.6+0x288b2) 
==31881==ABORTING
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to