lilypond-user
[Top][All Lists]
Advanced

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

Segfault when using RemoveEmptyStaves


From: Frank Steinmetzger
Subject: Segfault when using RemoveEmptyStaves
Date: Mon, 15 Feb 2016 23:15:34 +0100
User-agent: Mutt 1.5.24, VIM - Vi IMproved 7.4

Hello list

I was ponding along with 2.18.2 and all of a sudden, the piece I was typing
didn't build a PDF anymore. As it turns out, lilypund is suffering a
segmentation fault.

I took the file apart and in an hour's search narrowed it down to those 
features:
- RemoveEmptyStaves is enabled
- there is a \break at the end followed by a \bar command

Under those conditions lilypond crashes if I use either lyrics or a dynamics
context. If I comment out either the Dynamics and Lyrics, the PDF compiles.
If all are there, I get the segfault.

I attached the file in question. Please try it yourself by commenting out
line 46 and/or 55. Here is my backtrace from compiling it:

$ LC_ALL=C gdb lilypond
GNU gdb (Gentoo 7.10.1 vanilla) 7.10.1
Copyright (C) 2015 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-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
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 lilypond...Reading symbols from 
/usr/lib64/debug/usr/bin/lilypond.debug...done.
done.
(gdb) run reger.ly
Starting program: /usr/bin/lilypond reger.ly
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
GNU LilyPond 2.18.2
Processing `reger.ly'
Parsing...
Interpreting music...[8][16][24][32][40][48][56]
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Program received signal SIGSEGV, Segmentation fault.
Page_layout_problem::find_system_offsets (address@hidden) at 
page-layout-problem.cc:839
839     page-layout-problem.cc: No such file or directory.
(gdb) bt
#0  Page_layout_problem::find_system_offsets (address@hidden) at 
page-layout-problem.cc:839
#1  0x000000000065b5f7 in Page_layout_problem::fixed_force_solution 
(address@hidden, address@hidden) at page-layout-problem.cc:956
#2  0x00000000005f65fd in Page_breaking::make_pages (address@hidden, 
lines_per_page=std::vector of length 1, capacity 1 = {...}, address@hidden) at 
page-breaking.cc:630
#3  0x00000000005a58dc in Optimal_page_breaking::solve (address@hidden) at 
optimal-page-breaking.cc:219
#4  0x0000000000458490 in ly_optimal_breaking (pb=<optimized out>) at 
page-breaking-scheme.cc:43
#5  0x00000030cc44c27b in scm_dapply (proc=0x7ffff45f2a30, arg1=0x7ffff134f4e0, 
args=0x404) at eval.c:4895
#6  0x000000000057813c in Paper_book::pages (address@hidden) at 
paper-book.cc:654
#7  0x00000000005784e2 in Paper_book::output_aux (address@hidden, 
address@hidden, address@hidden, 
    address@hidden, address@hidden) at paper-book.cc:162
#8  0x00000000005786bc in Paper_book::output (address@hidden, address@hidden) 
at paper-book.cc:188
#9  0x000000000046d2c9 in ly_book_process (book_smob=<optimized out>, 
default_paper=0x7ffff168eab0, default_layout=0x7ffff18a6c50, 
output=0x7ffff3a03340) at book-scheme.cc:79
#10 0x00000030cc44c7bf in scm_dapply (proc=0x7ffff3d494f0, arg1=0x7ffff46091b0, 
args=0x7ffff134f500, address@hidden) at eval.c:4930
#11 0x00000030cc44d309 in deval (x=<optimized out>, env=<optimized out>) at 
eval.c:4378
#12 0x0000000000420eab in ly_eval_scm (address@hidden, i=..., address@hidden, 
address@hidden) at parse-scm.cc:182
#13 0x00000000006ad35e in Lily_lexer::eval_scm (address@hidden, address@hidden, 
hi=..., address@hidden '#') at lexer.ll:1120
#14 0x00000000006c1cf7 in Lily_lexer::eval_scm_token (this=0xd802e0, 
sval=0x7ffff1352d40, w=...) at ./include/lily-lexer.hh:59
#15 0x00000000006b5f64 in yyparse (address@hidden, address@hidden) at 
parser.yy:434
#16 0x00000000006c1ca7 in Lily_parser::do_yyparse (address@hidden) at 
parser.yy:3625
#17 0x00000000005bc8d8 in Lily_parser::parse_file (address@hidden, 
init="init.ly", name="reger.ly", out_name="reger") at lily-parser.cc:124
#18 0x00000000005c2f18 in ly_parse_file (name=<optimized out>) at 
lily-parser-scheme.cc:121
#19 0x00000030cc44dc40 in deval (x=<optimized out>, address@hidden, 
env=<optimized out>, address@hidden) at eval.c:4232
#20 0x00000030cc44c867 in scm_dapply (proc=0x7ffff231a300, arg1=<optimized 
out>, args=0x7ffff231a1d0) at eval.c:5012
#21 0x00000030cc4a4cb2 in scm_c_catch (tag=<optimized out>, address@hidden 
<scm_body_thunk>, address@hidden, handler=0x30cc4a4a90 <scm_handle_by_proc>, 
    address@hidden, pre_unwind_handler=0x0, address@hidden) at throw.c:203
#22 0x00000030cc4a4eae in scm_catch_with_pre_unwind_handler (key=<optimized 
out>, thunk=<optimized out>, handler=0x12ee540, 
pre_unwind_handler=0x7ffff5c07c00 <main_arena>) at throw.c:587
#23 0x00000030cc44c7bf in scm_dapply (proc=0x7ffff3d494f0, arg1=0x7ffff473ed80, 
args=0x7ffff231a240, address@hidden) at eval.c:4930
#24 0x00000030cc44d309 in deval (x=<optimized out>, env=<optimized out>, 
address@hidden) at eval.c:4378
#25 0x00000030cc44d4ff in deval (x=0x7ffff23e3b60, address@hidden, 
env=0x7ffff231a4b0, address@hidden) at eval.c:3397
#26 0x00000030cc44c867 in scm_dapply (proc=0x7ffff231bf00, arg1=<optimized 
out>, args=0x7ffff231bdf0) at eval.c:5012
#27 0x00007ffff28634c8 in scm_srfi1_for_each (proc=0x7ffff231bee0, 
arg1=0x7ffff231bf50, args=<optimized out>) at srfi-1.c:1516
#28 0x00000030cc44d352 in deval (x=<optimized out>, env=<optimized out>, 
address@hidden) at eval.c:4509
#29 0x00000030cc44d4ff in deval (x=0x7ffff23e3060, env=0x7ffff231b800, 
address@hidden) at eval.c:3397
#30 0x00000030cc44e44e in deval (x=0x7ffff231ba30, address@hidden, 
address@hidden) at eval.c:3648
#31 0x00000030cc44c867 in scm_dapply (proc=0x7ffff23e9400, arg1=<optimized 
out>, args=0x7ffff231be70) at eval.c:5012
#32 0x000000000059f86a in main_with_guile () at main.cc:533
#33 0x00000030cc467cdf in invoke_main_func (body_data=0x7fffffffd6f0) at 
init.c:367
#34 0x00000030cc43ec8a in c_body (address@hidden) at continuations.c:349
#35 0x00000030cc4a4cb2 in scm_c_catch (address@hidden, address@hidden <c_body>, 
address@hidden, handler=0x30cc43eca0 <c_handler>, 
    address@hidden, address@hidden <scm_handle_by_message_noexit>, 
pre_unwind_handler_data=0x0) at throw.c:203
#36 0x00000030cc43f217 in scm_i_with_continuation_barrier (address@hidden 
<c_body>, address@hidden, address@hidden <c_handler>, 
    address@hidden, pre_unwind_handler=0x30cc4a52c0 
<scm_handle_by_message_noexit>, address@hidden) at continuations.c:325
#37 0x00000030cc43f2b0 in scm_c_with_continuation_barrier (address@hidden 
<invoke_main_func>, address@hidden) at continuations.c:367
#38 0x00000030cc4a3204 in scm_i_with_guile_and_parent (address@hidden 
<invoke_main_func>, address@hidden, parent=<optimized out>) at threads.c:733
#39 0x00000030cc4a329c in scm_with_guile (address@hidden <invoke_main_func>, 
address@hidden) at threads.c:721
#40 0x00000030cc467d85 in scm_boot_guile (argc=<optimized out>, argv=<optimized 
out>, main_func=<optimized out>, closure=<optimized out>) at init.c:350
#41 0x000000000040f70b in main (argc=2, argv=0x7fffffffd858, envp=<optimized 
out>) at main.cc:808


-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me with any social network.

No mabob without a thingy.

Attachment: reger.ly
Description: Text Data

Attachment: signature.asc
Description: Digital signature


reply via email to

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