lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lilypond crashes while drawing systems


From: Thomas Morley
Subject: Re: Lilypond crashes while drawing systems
Date: Thu, 14 Jun 2018 22:41:03 +0200

2018-06-14 13:24 GMT+02:00 Lukas-Fabian Moser <address@hidden>:
> Folks,
>
> I seem to have managed to create a Lilypond file that crashes my system
> (Linux Mint 64-Bit with kernel 4.4.0-98-generic) so hard that I have to shut
> it down using the power button. Even a bash script in background that kills
> the Lilypond process every few seconds cannot rescue reliably. :-( The
> system hangs while "Drawing systems" ("Systeme erstellen" on my pc).
>
> Version is pre-compiled 2.19.80 64 bit.
>
> So I'm sorry that the following example is not really minimal - it's not so
> easy to reduce further if you have to reboot after every other compilation.
>
> In the original version, I had "tonart = f" (hence no transposition) which
> caused no problems. "tonart = fis" also works; "tonart = d" crashes.


I tried to compile your (unchanged) code with 2.19.81 on 64-bit Ubuntu 16.04:
~$ uname -a
Linux kasten 4.4.0-128-generic #154-Ubuntu SMP Fri May 25 14:15:18 UTC
2018 x86_64 x86_64 x86_64 GNU/Linux
I've got:
[...]
Drawing systems...terminate called after throwing an instance of
'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)


Using gdb:
~$ gdb lilydevel/usr/bin/lilydevel
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 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 "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from lilydevel/usr/bin/lilydevel...(no debugging
symbols found)...done.


(gdb) run lilypondH/Test/forum/atest-79.ly
Starting program: /home/hermann/lilydevel/usr/bin/lilydevel
lilypondH/Test/forum/atest-79.ly
warning: File "/home/hermann/lilydevel/usr/lib/libstdc++.so.6.0.20-gdb.py"
auto-loading has been declined by your `auto-load safe-path' set to
"$debugdir:$datadir/auto-load".
To enable execution of this file add
    add-auto-load-safe-path
/home/hermann/lilydevel/usr/lib/libstdc++.so.6.0.20-gdb.py
line to your configuration file "/home/hermann/.gdbinit".
To completely disable this security protection add
    set auto-load safe-path /
line to your configuration file "/home/hermann/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
    info "(gdb)Auto-loading safe path"
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
GNU LilyPond 2.19.81
Processing `lilypondH/Test/forum/atest-79.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
lilypondH/Test/forum/atest-79.ly:1826:7: programming error: Infinity
or NaN encountered

      f,8*2_[ s4*12 f,8]
lilypondH/Test/forum/atest-79.ly:1826:7: continuing, cross fingers
lilypondH/Test/forum/atest-79.ly:1817:7: programming error: Infinity
or NaN encountered

      f2( b4)\( a g f4*1/2\)^( f')( es4)\( d c b\)( a)^( b4*1/2
\once\tiny g c4)( f,2)
lilypondH/Test/forum/atest-79.ly:1817:7: continuing, cross fingers
lilypondH/Test/forum/atest-79.ly:1817:11: warning: this Voice needs a
\voiceXx or \shiftXx setting
      f2(
          b4)\( a g f4*1/2\)^( f')( es4)\( d c b\)( a)^( b4*1/2
\once\tiny g c4)( f,2)
lilypondH/Test/forum/atest-79.ly:1826:21: programming error: Infinity
or NaN encountered
      f,8*2_[ s4*12
                    f,8]
lilypondH/Test/forum/atest-79.ly:1826:21: continuing, cross fingers
lilypondH/Test/forum/atest-79.ly:1817:83: programming error: Infinity
or NaN encountered
      f2( b4)\( a g f4*1/2\)^( f')( es4)\( d c b\)( a)^( b4*1/2
\once\tiny g c4)(

           f,2)
lilypondH/Test/forum/atest-79.ly:1817:83: continuing, cross fingers
lilypondH/Test/forum/atest-79.ly:1817:48: warning: this Voice needs a
\voiceXx or \shiftXx setting
      f2( b4)\( a g f4*1/2\)^( f')( es4)\( d c
                                               b\)( a)^( b4*1/2
\once\tiny g c4)( f,2)
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...terminate called after throwing an instance of
'std::bad_alloc'
  what():  std::bad_alloc

Program received signal SIGABRT, Aborted.
0x00007ffff5bc4428 in __GI_raise (address@hidden)
    at ../sysdeps/unix/sysv/linux/raise.c:54
54    ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.


(gdb) bt
#0  0x00007ffff5bc4428 in __GI_raise (address@hidden)
    at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ffff5bc602a in __GI_abort () at abort.c:89
#2  0x00007ffff64e0afd in __gnu_cxx::__verbose_terminate_handler() ()
   from /home/hermann/lilydevel/usr/bin/../lib/libstdc++.so.6
#3  0x00007ffff64de8c6 in ?? ()
   from /home/hermann/lilydevel/usr/bin/../lib/libstdc++.so.6
#4  0x00007ffff64de911 in std::terminate() ()
   from /home/hermann/lilydevel/usr/bin/../lib/libstdc++.so.6
#5  0x00007ffff64deb28 in __cxa_throw ()
   from /home/hermann/lilydevel/usr/bin/../lib/libstdc++.so.6
#6  0x00007ffff64df2f9 in operator new(unsigned long) ()
   from /home/hermann/lilydevel/usr/bin/../lib/libstdc++.so.6
#7  0x000000000046c221 in ?? ()
#8  0x000000000056dfd3 in ?? ()
#9  0x00007ffff7922a83 in scm_dapply ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#10 0x000000000053fc09 in ?? ()
#11 0x00000000006fc1c7 in ?? ()
#12 0x00007ffff7922a83 in scm_dapply ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#13 0x000000000053fc09 in ?? ()
#14 0x0000000000469092 in ?? ()
---Type <return> to continue, or q <return> to quit---
#15 0x0000000000469eb2 in ?? ()
#16 0x000000000046b591 in ?? ()
#17 0x00007ffff7922a83 in scm_dapply ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#18 0x000000000053fc09 in ?? ()
#19 0x0000000000448dde in ?? ()
#20 0x0000000000449f13 in ?? ()
#21 0x0000000000601b92 in ?? ()
#22 0x000000000060382c in ?? ()
#23 0x00000000005efbe7 in ?? ()
#24 0x00000000005e447f in ?? ()
#25 0x00000000005ee5dc in ?? ()
#26 0x00007ffff7922a83 in scm_dapply ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#27 0x000000000061a5d9 in ?? ()
#28 0x000000000061a992 in ?? ()
#29 0x000000000061ab90 in ?? ()
#30 0x000000000049531d in ?? ()
#31 0x00007ffff7922bff in scm_dapply ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#32 0x00007ffff7923bd1 in ?? ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#33 0x00007ffff792cdb2 in scm_c_with_fluid ()
---Type <return> to continue, or q <return> to quit---
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#34 0x0000000000628b2f in ?? ()
#35 0x0000000000765ffe in ?? ()
#36 0x000000000077b8b7 in ?? ()
#37 0x0000000000771273 in ?? ()
#38 0x000000000077b867 in ?? ()
#39 0x00007ffff792cdb2 in scm_c_with_fluid ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#40 0x000000000057fb90 in ?? ()
#41 0x000000000057ce30 in ?? ()
#42 0x00007ffff7924eb4 in ?? ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#43 0x00007ffff7923193 in scm_dapply ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#44 0x00007ffff79788f7 in scm_c_catch ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#45 0x00007ffff79789dd in scm_catch_with_pre_unwind_handler ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#46 0x00007ffff7922bff in scm_dapply ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#47 0x00007ffff7923bd1 in ?? ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#48 0x00007ffff7923db9 in ?? ()
---Type <return> to continue, or q <return> to quit---
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#49 0x00007ffff7923193 in scm_dapply ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17

#50 0x00007ffff24fe5f8 in scm_srfi1_for_each (proc=0x7ffff1d8d720,
    arg1=0x7ffff1d813d0, args=<optimized out>) at srfi-1.c:1516
#51 0x00007ffff7923cc1 in ?? ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#52 0x00007ffff7923db9 in ?? ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#53 0x00007ffff7924ba7 in ?? ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#54 0x00007ffff7923193 in scm_dapply ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#55 0x0000000000593db9 in ?? ()
#56 0x00007ffff793d48f in ?? ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#57 0x00007ffff7915c1a in ?? ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#58 0x00007ffff79788f7 in scm_c_catch ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#59 0x00007ffff7916158 in scm_i_with_continuation_barrier ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#60 0x00007ffff79161e0 in scm_c_with_continuation_barrier ()
---Type <return> to continue, or q <return> to quit---
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#61 0x00007ffff7977638 in scm_i_with_guile_and_parent ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#62 0x00007ffff793d5c5 in scm_boot_guile ()
   from /home/hermann/lilydevel/usr/bin/../lib/libguile.so.17
#63 0x0000000000422bd3 in ?? ()
#64 0x00007ffff5baf830 in __libc_start_main (main=0x4229f0, argc=2,
    argv=0x7fffffffdd68, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7fffffffdd58)
    at ../csu/libc-start.c:291
#65 0x000000000043860f in ?? ()
#66 0x00007fffffffdd58 in ?? ()
#67 0x000000000000001c in ?? ()
#68 0x0000000000000002 in ?? ()
#69 0x00007fffffffe11a in ?? ()
#70 0x00007fffffffe144 in ?? ()
#71 0x0000000000000000 in ?? ()



Can't analyse the above, though it's also obvious a plethora of
warnings/errors occuring during lilypond-compilation.
Below seems to work:

\version "2.19.81"

\language "deutsch"

tonart = d

\layout {
  indent = 0
}

\header {
  tagline = ""
}


\score {
  \layout {
    ragged-last = ##f
    \context {
      \Staff
      \omit TimeSignature
    }
  }
  \transpose f \tonart
  \new Staff <<
   \mergeDifferentlyHeadedOn
   \relative f, {

    \clef bass
    \cadenzaOn
    \key f \major
    \omit Stem
    \voiceOne
    \phrasingSlurDown
    \slurUp
    f2( b4)\( a g f4*1/2\)^( f')( es4)\( d c b\)( a)^( b4*1/2
\once\tiny g c4)( f,2)

    \break
    \bar "||"
   }
   \new Voice {
        \voiceFour
     \override NoteHead.transparent = ##t
     \override Beam.positions = #'(-6.5 . -6)
     f,8*26_[  f,8]
   }
   \new Voice {
     \override NoteHead.transparent = ##t
     \override Beam.positions = #'(4 . 4.5)
     \override Stem.X-offset = 1.2
     s2
     b,8*14^[ b,8*2]
    }
  >>
}


Cheers,
  Harm



reply via email to

[Prev in Thread] Current Thread [Next in Thread]