Hi, I updated my LilyPond today, it built fine but it segfaults on some file 
(while working perfect on others). I attach the file and here is the 
backtrace. The crash is in the instrument name code.

When I comment line 189 in the ly file, to remove the instrument name engraver 
from the choirstaff, LilyPond does not segfault.

[EMAIL PROTECTED] cornelius $ gdb lilypond
GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run die-konige.ly
Starting program: /usr/local/bin/lilypond die-konige.ly
[Thread debugging using libthread_db enabled]
[New Thread 0xb788b6d0 (LWP 23376)]
GNU LilyPond 2.11.61
Verwerken van `die-konige.ly'
Ontleden...
Vertolken van muziek...[8][16][24]
Voorbewerken van grafische objecten...
Vertolken van muziek...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb788b6d0 (LWP 23376)]
Engraver::internal_make_grob (this=0x8ac63b0, symbol=0xb6c78ee0, cause=0x404,
    name=0x8308dbc "InstrumentName",
    file=0x8308d6e "instrument-name-engraver.cc", line=87,
    fun=0x8308efc "start_spanner") at ./include/lily-guile.hh:189
189     inline SCM ly_cdr (SCM x) { return SCM_CDR (x); }
(gdb) bt
#0  Engraver::internal_make_grob (this=0x8ac63b0, symbol=0xb6c78ee0,
    cause=0x404, name=0x8308dbc "InstrumentName",
    file=0x8308d6e "instrument-name-engraver.cc", line=87,
    fun=0x8308efc "start_spanner") at ./include/lily-guile.hh:189
#1  0x080de26b in Engraver::internal_make_spanner (this=0x8ac63b0,
    x=0xb6c78ee0, cause=0x404, name=0x8308dbc "InstrumentName",
    file=0x8308d6e "instrument-name-engraver.cc", line=87,
    fun=0x8308efc "start_spanner") at engraver.cc:163
#2  0x0812db91 in Instrument_name_engraver::start_spanner (this=0x8ac63b0)
    at instrument-name-engraver.cc:87
#3  0x082b90a3 in precomputed_recurse_over_translators (c=0x8ac5d88,
    idx=PROCESS_MUSIC, dir=UP) at ./include/translator-group.hh:35
#4  0x082b9041 in precomputed_recurse_over_translators (c=0x8ac0970,
    idx=PROCESS_MUSIC, dir=UP) at translator-group.cc:207
#5  0x08218ea1 in Score_performer::one_time_step_callback (self=0x8ac0db8,
    ev=0xb33ebb58) at score-performer.cc:138
#6  0x080ca015 in Dispatcher::dispatch (this=0x8ac0400, sev=0xb33ebb58)
    at dispatcher.cc:139
#7  0x080b67d4 in Context::internal_send_stream_event (this=0x8abee64,
    type=0xb6cbad10, origin=0x0, props=0xbfc4052c) at context.cc:451
#8  0x08102097 in Global_context::run_iterator_on_me (this=0x8abee00,
    iter=0x8ac02e8) at global-context.cc:159
#9  0x08104aa0 in ly_interpret_music_expression (mus=0xb72ae818,
    ctx=0xb33cd890) at global-context-scheme.cc:108
#10 0x0810504e in ly_run_translator (mus=0xb72ae818, output_def=0xb2329d50)
    at global-context-scheme.cc:136
---Type <return> to continue, or q <return> to quit---
#11 0x0821598b in Score::book_rendering (this=0x8653af8, layoutbook=0x845e5b8,
    default_def=0x840a2f8) at score.cc:146
#12 0x080957de in Book::process (this=0x845e590, default_paper=0x855ed48,
    default_layout=0x840a2f8) at book.cc:139
#13 0x08097032 in ly_book_process (book_smob=0xb2381468,
    default_paper=0xb74c1810, default_layout=0xb70e19f0, output=0xb6c85c00)
    at book-scheme.cc:53
#14 0xb7f293e8 in scm_gsubr_apply () from /usr/lib/libguile.so.17
#15 0xb7f0fca7 in scm_dapply () from /usr/lib/libguile.so.17
#16 0xb7f1321e in deval () from /usr/lib/libguile.so.17
#17 0xb7f17c3b in scm_primitive_eval () from /usr/lib/libguile.so.17
#18 0x081d329c in ly_parse_scm (
    s=0x85828a3 "(if (or (pair? toplevel-scores) output-empty-score-list)\n  
((if (defined? 'default-toplevel-book-handler)\n    
default-toplevel-book-handler\n    toplevel-book-handler)\n   parser\n   
(apply ly:make-book "...,
    n=0xbfc40aa0, [EMAIL PROTECTED], safe=false, parser=0x4) at parse-scm.cc:131
#19 0x082d8e8d in Lily_lexer::yylex (this=0x8596960) at lexer.ll:340
#20 0x082de8be in yyparse (my_lily_parser=0x846f6e0) at parser.yy:2621
#21 0x08141370 in Lily_parser::parse_file (this=0x846f6e0, [EMAIL PROTECTED],
    [EMAIL PROTECTED], [EMAIL PROTECTED]) at lily-parser.cc:114
#22 0x081469dc in ly_parse_file (name=0xb6c17190) at lily-parser-scheme.cc:124
#23 0xb7f12105 in deval () from /usr/lib/libguile.so.17
#24 0xb7f0ff16 in scm_dapply () from /usr/lib/libguile.so.17
#25 0xb7f100a5 in scm_apply () from /usr/lib/libguile.so.17
#26 0xb7f14d7d in scm_call_0 () from /usr/lib/libguile.so.17
#27 0xb7f709b0 in scm_body_thunk () from /usr/lib/libguile.so.17
---Type <return> to continue, or q <return> to quit---
#28 0xb7f70f85 in scm_c_catch () from /usr/lib/libguile.so.17
#29 0xb7f710d6 in scm_catch_with_pre_unwind_handler ()
   from /usr/lib/libguile.so.17
#30 0xb7f293e8 in scm_gsubr_apply () from /usr/lib/libguile.so.17
#31 0xb7f0fca7 in scm_dapply () from /usr/lib/libguile.so.17
#32 0xb7f1321e in deval () from /usr/lib/libguile.so.17
#33 0xb7f12de2 in deval () from /usr/lib/libguile.so.17
#34 0xb7f0ff16 in scm_dapply () from /usr/lib/libguile.so.17
#35 0xb7f100a5 in scm_apply () from /usr/lib/libguile.so.17
#36 0xb7f14d41 in scm_call_1 () from /usr/lib/libguile.so.17
#37 0xb7fbba44 in scm_srfi1_for_each ()
   from /usr/lib/libguile-srfi-srfi-1-v-3.so.3
#38 0xb7f1319a in deval () from /usr/lib/libguile.so.17
#39 0xb7f12de2 in deval () from /usr/lib/libguile.so.17
#40 0xb7f13b20 in deval () from /usr/lib/libguile.so.17
#41 0xb7f0ff16 in scm_dapply () from /usr/lib/libguile.so.17
#42 0xb7f100a5 in scm_apply () from /usr/lib/libguile.so.17
#43 0xb7f14d41 in scm_call_1 () from /usr/lib/libguile.so.17
#44 0x08160aab in main_with_guile () at main.cc:426
#45 0xb7f2d916 in invoke_main_func () from /usr/lib/libguile.so.17
#46 0xb7eff722 in c_body () from /usr/lib/libguile.so.17
#47 0xb7f70f85 in scm_c_catch () from /usr/lib/libguile.so.17
#48 0xb7effc82 in scm_i_with_continuation_barrier ()
   from /usr/lib/libguile.so.17
#49 0xb7effd63 in scm_c_with_continuation_barrier ()
   from /usr/lib/libguile.so.17
---Type <return> to continue, or q <return> to quit---
#50 0xb7f70109 in scm_i_with_guile_and_parent () from /usr/lib/libguile.so.17
#51 0xb7f701fe in scm_with_guile () from /usr/lib/libguile.so.17
#52 0xb7f2d8af in scm_boot_guile () from /usr/lib/libguile.so.17
#53 0x0815f0fb in main (argc=2, argv=0xbfc43794, envp=Cannot access memory at 
address 0x40c
) at main.cc:622
(gdb)





best regards,
Wilbert Berendsen

-- 
LilyKDE 0.6.3 has been released today!
LilyPond integration for KDE: http://lilykde.googlecode.com/
\version "2.11.61"
\include "../include/merge-rests.ly"

#(set-global-staff-size 18)

\header {
  title = "3. Die Könige"
  subtitle = "from “Weihnachtslieder” op. 8"
  composer = "Peter Cornelius (1824-1874)"
  poet = \markup \column {
    \line { Peter Cornelius (1824-1874) }
    \line { Text and melody “Wie schön leuchtet der Morgenstern” (1599) }
    \line { by Philipp Nicolai (1556-1608) }
  }
  copyright = \markup {
    \center-column {
      \line {
        Arranged and engraved by
        \with-url #"http://www.wilbertberendsen.nl/"; {
          Wilbert Berendsen (http://www.wilbertberendsen.nl/)
        }
      }
      \line {
        Copyright © 2008
        \with-url #"http://www.cpdl.org/"; {
          The Choral Public Domain Library (http://www.cpdl.org/)
        }
      }
      \line {This edition may be freely distributed, edited, performed or recorded.}
      \null
    }
  }
}

global = {
  \key g \major
  \time 3/4
  \partial 4.
  #(set-accidental-style 'modern)
}

\paper {
  ragged-last-bottom = ##f
  between-system-padding = #0
}

soloVoice = \relative c' {
  \global
  \dynamicUp
  % Muziek volgt hier.
  d8\p b' fis |
  a(g) b, c e8. d16 |
  \time 4/4
  d4 r8 d g a b a16 g |
  g8 c g4 r8 g b c |
  d b16 a g8 fis16 g e8 b'4 a8 |
  g a b ais16 b d8 cis16(b) a4 |
  r8 a gis a c a b a16 g |
  c8 g b a16(g) e8(fis) g d |
  \time 2/4
  e8 fis16(e) d4
  \time 3/4
  r4 r8
  d8 b' fis |
  a(g) b, c e8. d16 |
  \time 4/4
  d4 r8 d g a b a16 g |
  g8 c g4 r8 g b c |
  d b16 a g8 fis16(g) e8 b' b a8 |
  g(a) b ais16(b) d8 cis16(b) a4 |
  r8 a gis a c a b a16 g |
  c8 g b a16(g) e8(fis g) d |
  e8 fis16(e) d4~d8 r8 r4 |
  r4 r8 d b'8. c16 b4 |
  g8 fis e g fis2 |
  r8 d c'8. a16 e'8(d) b(g) |
  r8 g g e b'2 |
  r8^\markup\italic"un poco piú mosso" c b g e fis16 e dis8 e |
  fis c' b a16 g e8 fis16 e dis8 e fis fis c' b a g16(e)
  d8^\markup\italic"rit." d'16 c |
  b4^\markup\italic"a tempo" b8 a16 g d'8(b) g(fis) |
  e fis16(g) d4 r2
  e4\p d8. d16 b'2\fermata
 \bar"|."
}

verseSoloVoice = \lyricmode {
  % Liedtekst volgt hier.
  Drei Kön’ -- ge wan -- dern aus Mor -- gen -- land;
  ein Stern -- lein führt sie zum Jor -- dan -- strand.
  In Ju -- da fra -- gen und for -- schen die drei, wo der
  neu -- ge -- bo -- re -- ne Kö -- nig_ sei?
  Sie wol -- len Weih -- rauch, Myr -- rhen und Gold
  dem Kin -- de __ spen -- den zum Op -- fer -- sold.

  Und hell er -- glän -- zet des Ster -- nes Schein,
  zum Stal -- le ge -- hen die Kön’ -- ge ein;
  das Knäb -- lein schau -- en sie won -- nig -- lich,
  an -- be -- tend nei -- gen die __ Kön’ -- ge __ sich;
  sie brin -- gen Weih -- rauch, Myr -- rhen und Gold
  zum Op -- fer __ dar __ dem Knäb -- lein hold. __

  O Men -- schen -- kind! hal -- te treu -- lich Schritt!
  Die Kön’ -- ge wan -- dern, o wand -- re mit!
  Der Stern der Lie -- be, der Gna -- de Stern,
  er -- hel -- le dein Ziel, so du suchst den Herrn,
  und feh -- len Weih -- rauch, Myr -- rhen und Gold,
  schen -- ke dein Herz __ dem __ Knäb -- lein hold!
  schenk ihm dein Herz!
}

soprano = \relative c'' {
  \global
  \dynamicUp
  % Muziek volgt hier.
  r8 r4 r r
  g\p d' b g d' e e d2 r4 d e fis g fis e e d2 r4 b e d c b a2 g
  r4 r r
  g d' b g d' e e d2 r4 d e fis g fis e e d2 r4 b e d c b a2 g
  d' b R1 d2 b R1 c4 b a b c b a b c c8(b) a2 g\<
  g8\f(g'4) fis8~fis e4 d\> c b8 a2\p g\fermata

}

alto = \relative c' {
  \global
  % Muziek volgt hier.
  r8 r4 r r
  e g fis e g g g g2 r4 g g b b b b a8(g) fis2 r4 g g g g8(fis) g4 g(fis) d2
  r4 r r
  e g fis e g g g g2 r4 g g b b b b a8(g) fis2 r4 g g g g8(fis) g4 g(fis) d2
  fis g R1 fis2 g R1 dis4 e e fis8(e) dis4 e e fis8(e) dis4 e e(d) d(g)
  g g g g fis g g(fis) d2
}

tenor = \relative c' {
  \global
  % Muziek volgt hier.
  r8 r4 r r
  c b d b g8( d') c4 c b2 r4 d b dis e b d cis d2 r4 d c b a8(d) d4 e(d8 c) b2
  r4 r r
  c b d b g8( d') c4 c b2 r4 d b dis e b d cis d2 r4 d c b a8(d) d4 e(d8 c) b2
  a4(d) d2 b4(cis) d2 c4( a8 d) d2 b4(cis) dis2
  fis,4 g e a8(g) fis4 g e a8(g) fis4 g g4.(fis8) g(b cis4)
  d d c b d d e(d8 c) b2
}

bass = \relative c' {
  \global
  \dynamicDown
  % Muziek volgt hier.
  r8 r4 r r
  g\p g, d' e b c c g'2 r4 b g fis e d g a d,2 r4 g c, g' a8(d,)g(b,) c4(d) g2
  r4 r r
  g g, d' e b c c g'2 r4 b g fis e d g a d,2 r4 g c, g' a8(d,)g(b,) c4(d) g2
  d g g4(\<e)\> b2\! a4(d) g2 g4(\<e)\> b2\!
  a4 g c b a g c b a g c(d) g(\<e)
  b\f b' c g\> a b c8(\p c, d4) <g g,>2
}

verseChoir = \lyricmode {
  % Liedtekst volgt hier.
  Wie schön leuch -- tet der Mor -- gen -- stern
  voll Gnad und Wahr -- heit von dem Herrn,
  die sü -- ße Wur -- zel Jes -- se.

  Du Sohn Da -- vids aus Ja -- kobs Stamm
  mein Hei -- land und mein Bräu -- ti -- gam,
  hast mir mein Herz be -- ses --

  \set associatedVoice = "tenor"
  sen.
  Lieb -- lich, lieb -- lich,
  freund -- lich, freund --
  \set associatedVoice = "alto"
  lich,
  schön und herr -- lich, groß und ehr -- lich,
  reich an Ga -- ben, __
  hoch und sehr präch -- tig er -- ha -- ben.

}

\score {
  <<
    \new Staff \with {
      instrumentName = "Solo"
    } { \soloVoice } \addlyrics { \verseSoloVoice }
    \new ChoirStaff \with {
      \consists "Instrument_name_engraver"
      instrumentName = "SATB"
    } <<
      \new Staff \with {
        \override VerticalAxisGroup #'minimum-Y-extent = #'(-3 . 6)
      } <<
        \new Voice = "soprano" { \voiceOne \soprano }
        \new Voice = "alto" { \voiceTwo \alto }
      >>
      \new Staff = "men" \with {
        \override VerticalAxisGroup #'minimum-Y-extent = #'(-3 . 3)
      } <<
        \clef bass
        \new Voice = "tenor" { \voiceOne \tenor }
        \new Voice = "bass" { \voiceTwo \bass }
      >>
      \new Lyrics \with {
        alignAboveContext = "men"
        \override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0)
      } \lyricsto "alto" { \verseChoir }

    >>
  >>
  \layout {
    system-count = #11
    \context {
      \Staff
      \override RestCollision
      #'positioning-done = #merge-rests-on-positioning
    }
  }
  \midi {
    \context {
      \Voice
      \remove "Dynamic_performer"
    }
  }
}
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to