2016-09-02 20:12 GMT+02:00 David Kastrup <d...@gnu.org>:
> Timothy Lanfear <timo...@lanfear.me> writes:
>
>> On 02/09/16 17:31, David Kastrup wrote:
>>> Timothy Lanfear <timo...@lanfear.me> writes:
>>>
>>>> Bug appears in 2.19.46 and .47. Ubuntu 16.04, 64-bit.
>>>>
>>>> The first line provokes a core dump. The second line is perhaps the
>>>> right syntax for this construction and works fine, but I'm reporting
>>>> in case there is something here that needs investigating.
>>>>
>>>> \version "2.19.46"
>>>>
>>>> {
>>>>    <b' gis'>2\fermata ~ b'2  % core dump
>>>>    <b'~ gis'>2\fermata b'2   % move tie inside chord, OK
>>>>    <b' g'>2\fermata ~ b'2    % gis => g, OK
>>>>    <b' gis'>2 ~ b'2          % delete fermata, OK
>>>>    <b' gis'>2\fermata b'2    % delete tie, OK
>>>> }
>>> Not here.  Which compilations are you using?  I suspect some compiler
>>> bug or overoptimization.
>>>
>>
>> I'm using the pre-built package.
>>
>> lanfear@D20$ /usr/local/lilypond-2.19.46/bin/lilypond tmp.ly
>> GNU LilyPond 2.19.46
>> Processing `tmp.ly'
>> Parsing...
>> Interpreting music...
>> Preprocessing graphical objects...Segmentation fault (core dumped)
>
> Huh.  Don't remember the compiler version used currently in Gub.  I'll
> try a native compilation with gcc 6.x 64-bit here and see where this
> gets me.
>
> Man, we really have a lot of infrastructure hickups lately.
>
> --
> David Kastrup



I can confirm the bug with a build from
commit d6e93146b9f25e914373caeced7314237cc53e2f
(Don't remember which optimizing-option I used, though)

gdb says
Program received signal SIGSEGV, Segmentation fault.
0x00000000004ae5ab in Grob::get_offset (a=X_AXIS, this=0x0) at
/home/hermann/lilypond-git/lily/grob.cc:401
401      if (dim_cache_[a].offset_)

complete output from
(gdb) bt
attached.

Cheers,
  Harm
(gdb) bt 
#0  0x00000000004ae5ab in Grob::get_offset (a=X_AXIS, this=0x0) at 
/home/hermann/lilypond-git/lily/grob.cc:401
#1  Grob::relative_coordinate (this=0x0, refp=refp@entry=0xf06670, 
a=a@entry=X_AXIS) at /home/hermann/lilypond-git/lily/grob.cc:341
#2  0x000000000049ceea in Side_position_interface::aligned_side (me=0xef9e90, 
a=a@entry=Y_AXIS, pure=pure@entry=true, start=start@entry=0, 
    end=end@entry=4, current_off=0x0) at 
/home/hermann/lilypond-git/lily/side-position-interface.cc:278
#3  0x000000000049e530 in axis_aligned_side_helper (current_off_scm=0x204, 
end=4, start=0, pure=true, a=Y_AXIS, smob=0x7ffff06b5460)
    at /home/hermann/lilypond-git/lily/side-position-interface.cc:105
#4  Side_position_interface::pure_y_aligned_side (smob=0x7ffff06b5460, 
start=<optimized out>, end=<optimized out>, cur_off=0x204)
    at /home/hermann/lilypond-git/lily/side-position-interface.cc:134
#5  0x00007ffff7b21607 in scm_dapply () from /usr/lib/libguile.so.17
#6  0x00000000004af417 in Grob::pure_relative_y_coordinate 
(this=this@entry=0xef9e90, refp=refp@entry=0xefb410, start=start@entry=0, 
    end=end@entry=4) at /home/hermann/lilypond-git/lily/grob.cc:372
#7  0x0000000000669377 in Item::pure_y_extent (this=0xef9e90, g=0xefb410, 
start=0, end=4) at /home/hermann/lilypond-git/lily/item.cc:236
#8  0x000000000073e405 in Axis_group_interface::adjacent_pure_heights 
(smob=<optimized out>)
    at /home/hermann/lilypond-git/lily/axis-group-interface.cc:287
#9  0x00007ffff7b21462 in scm_dapply () from /usr/lib/libguile.so.17
#10 0x00000000006c2703 in Grob::try_callback_on_alist (proc=0x7ffff3bd3f40, 
sym=0x7ffff202ed40, alist=0xefb470, this=0xefb410)
    at /home/hermann/lilypond-git/lily/grob-property.cc:232
#11 Grob::internal_get_property (this=this@entry=0xefb410, sym=0x7ffff202ed40) 
at /home/hermann/lilypond-git/lily/grob-property.cc:184
#12 0x0000000000738fb0 in Axis_group_interface::part_of_line_pure_height 
(me=me@entry=0xefb410, begin=begin@entry=true, start=start@entry=0, 
    end=end@entry=1) at 
/home/hermann/lilypond-git/lily/axis-group-interface.cc:162
#13 0x0000000000739345 in Axis_group_interface::begin_of_line_pure_height 
(start=0, me=0xefb410)
    at /home/hermann/lilypond-git/lily/axis-group-interface.cc:186
#14 Axis_group_interface::sum_partial_pure_heights (end=2147483647, start=0, 
me=0xefb410)
    at /home/hermann/lilypond-git/lily/axis-group-interface.cc:143
#15 Axis_group_interface::relative_pure_height (me=me@entry=0xefb410, 
start=start@entry=0, end=end@entry=2147483647)
    at /home/hermann/lilypond-git/lily/axis-group-interface.cc:334
#16 0x0000000000739b7d in Axis_group_interface::pure_group_height 
(me=me@entry=0xefb410, start=start@entry=0, end=end@entry=2147483647)
    at /home/hermann/lilypond-git/lily/axis-group-interface.cc:592
#17 0x000000000043d76b in Hara_kiri_group_spanner::pure_height (smob=<optimized 
out>, start_scm=<optimized out>, end_scm=<optimized out>)
    at /home/hermann/lilypond-git/lily/hara-kiri-group-spanner.cc:58
#18 0x00007ffff7b21679 in scm_dapply () from /usr/lib/libguile.so.17
#19 0x00000000004af574 in Grob::pure_y_extent (this=0xefb410, refp=0xefb410, 
start=0, end=2147483647) at /home/hermann/lilypond-git/lily/grob.cc:496
#20 0x000000000058eff3 in get_skylines (end=2147483647, start=0, pure=true, 
other_common=0xf06550, a=Y_AXIS, g=0xefb410)
    at /home/hermann/lilypond-git/lily/align-interface.cc:96
#21 Align_interface::internal_get_minimum_translations (me=me@entry=0xefb650, 
elems=std::vector of length 1, capacity 1 = {...}, a=a@entry=Y_AXIS, 
---Type <return> to continue, or q <return> to quit--- 
    include_fixed_spacing=include_fixed_spacing@entry=true, 
pure=pure@entry=true, start=0, end=2147483647)
    at /home/hermann/lilypond-git/lily/align-interface.cc:212
#22 0x000000000058f9be in Align_interface::get_pure_minimum_translations 
(end=2147483647, start=0, a=Y_AXIS, 
    all_grobs=std::vector of length 1, capacity 1 = {...}, me=0xefb650) at 
/home/hermann/lilypond-git/lily/align-interface.cc:146
#23 Align_interface::get_pure_child_y_translation (me=me@entry=0xefb650, 
ch=ch@entry=0xefb410, start=start@entry=0, end=end@entry=2147483647)
    at /home/hermann/lilypond-git/lily/align-interface.cc:320
#24 0x00000000004af2e6 in Grob::pure_relative_y_coordinate 
(this=this@entry=0xefb410, refp=refp@entry=0xf05cc0, start=start@entry=0, 
    end=end@entry=2147483647) at /home/hermann/lilypond-git/lily/grob.cc:390
#25 0x00000000004af29d in Grob::pure_relative_y_coordinate 
(this=this@entry=0xef8b60, refp=refp@entry=0xf05cc0, start=start@entry=0, 
    end=end@entry=2147483647) at /home/hermann/lilypond-git/lily/grob.cc:392
#26 0x0000000000669377 in Item::pure_y_extent (this=0xef8b60, g=0xf05cc0, 
start=0, end=2147483647) at /home/hermann/lilypond-git/lily/item.cc:236
#27 0x00000000005e4f63 in Separation_item::boxes (left=<optimized out>, 
me=<optimized out>)
    at /home/hermann/lilypond-git/lily/separation-item.cc:160
#28 Separation_item::calc_skylines (smob=<optimized out>) at 
/home/hermann/lilypond-git/lily/separation-item.cc:91
#29 0x00007ffff7b21462 in scm_dapply () from /usr/lib/libguile.so.17
#30 0x00000000006c2703 in Grob::try_callback_on_alist (proc=0x7ffff3c3e420, 
sym=0x7ffff32b81e0, alist=0xf065b0, this=0xf06550)
    at /home/hermann/lilypond-git/lily/grob-property.cc:232
#31 Grob::internal_get_property (this=0xf06550, sym=0x7ffff32b81e0) at 
/home/hermann/lilypond-git/lily/grob-property.cc:184
#32 0x000000000052aa76 in Paper_column::minimum_distance (left=0xf06550, 
right=0xf06670) at /home/hermann/lilypond-git/lily/paper-column.cc:172
#33 0x000000000070d25a in Staff_spacing::get_spacing (me=me@entry=0xf1fc50, 
right_col=right_col@entry=0xf06670, 
    situational_space=situational_space@entry=0) at 
/home/hermann/lilypond-git/lily/staff-spacing.cc:198
#34 0x00000000004cb0df in Spacing_spanner::breakable_column_spacing 
(me=me@entry=0xefb590, l=l@entry=0xf06550, r=r@entry=0xf06670, 
    options=options@entry=0x7fffffff9e40) at 
/home/hermann/lilypond-git/lily/spacing-spanner.cc:501
#35 0x00000000004cb58a in Spacing_spanner::generate_pair_spacing 
(me=me@entry=0xefb590, left_col=left_col@entry=0xf06550, 
    right_col=right_col@entry=0xf06670, after_right_col=<optimized out>, 
options=options@entry=0x7fffffff9e40)
    at /home/hermann/lilypond-git/lily/spacing-spanner.cc:210
#36 0x00000000004cb785 in Spacing_spanner::generate_springs 
(me=me@entry=0xefb590, cols=std::vector of length 4, capacity 4 = {...}, 
    options=options@entry=0x7fffffff9e40) at 
/home/hermann/lilypond-git/lily/spacing-spanner.cc:300
#37 0x00000000004cbe1b in Spacing_spanner::set_springs (smob=<optimized out>) 
at /home/hermann/lilypond-git/lily/spacing-spanner.cc:73
#38 0x00007ffff7b21462 in scm_dapply () from /usr/lib/libguile.so.17
#39 0x00000000006c2703 in Grob::try_callback_on_alist (proc=0x7ffff3bbd830, 
sym=0x7ffff32ada60, alist=0xefb5f0, this=0xefb590)
    at /home/hermann/lilypond-git/lily/grob-property.cc:232
#40 Grob::internal_get_property (this=this@entry=0xefb590, sym=0x7ffff32ada60) 
at /home/hermann/lilypond-git/lily/grob-property.cc:184
#41 0x00000000005143dc in System::pre_processing (this=0xf05cc0) at 
/home/hermann/lilypond-git/lily/system.cc:527
#42 0x00000000004fe8e8 in Paper_score::process (this=0xf05c30) at 
/home/hermann/lilypond-git/lily/paper-score.cc:134
---Type <return> to continue, or q <return> to quit---
#43 0x000000000056b8bf in ly_format_output 
(context=context@entry=0x7ffff0719ed0) at 
/home/hermann/lilypond-git/lily/global-context-scheme.cc:45
#44 0x000000000056e1d8 in Score::book_rendering (this=this@entry=0xed15a0, 
layoutbook=0xed17d0, default_def=default_def@entry=0xe94570)
    at /home/hermann/lilypond-git/lily/score.cc:144
#45 0x000000000054b1a5 in Book::process_score (this=this@entry=0xd39cb0, 
s=s@entry=0x7ffff0750b40, 
    output_paper_book=output_paper_book@entry=0xed0da0, 
layout=layout@entry=0xe94570) at /home/hermann/lilypond-git/lily/book.cc:225
#46 0x000000000054b4b1 in Book::process (this=this@entry=0xd39cb0, 
default_paper=<optimized out>, default_layout=0xe94570, 
    parent_part=parent_part@entry=0x0) at 
/home/hermann/lilypond-git/lily/book.cc:302
#47 0x000000000054b587 in Book::process (this=this@entry=0xd39cb0, 
default_paper=<optimized out>, default_layout=<optimized out>)
    at /home/hermann/lilypond-git/lily/book.cc:196
#48 0x00000000006039da in ly_book_process (book_smob=<optimized out>, 
default_paper=0x7ffff0951a30, default_layout=0x7ffff0ae0890, 
    output=0x7ffff2f44b40) at /home/hermann/lilypond-git/lily/book-scheme.cc:75
#49 0x00007ffff7b21607 in scm_dapply () from /usr/lib/libguile.so.17
#50 0x00007ffff7b22670 in ?? () from /usr/lib/libguile.so.17
#51 0x00007ffff7b2bc02 in scm_c_with_fluid () from /usr/lib/libguile.so.17
#52 0x00000000006d54a3 in ly_eval_scm (form=form@entry=0x7ffff07954d0, i=..., 
safe=safe@entry=false, parser=parser@entry=0xbbbb90)
    at /home/hermann/lilypond-git/lily/parse-scm.cc:181
#53 0x0000000000772b1e in Lily_lexer::eval_scm (this=this@entry=0xc06900, 
readerdata=readerdata@entry=0x7ffff07954d0, hi=..., 
    extra_token=extra_token@entry=35 '#') at 
/home/hermann/lilypond-git/lily/lexer.ll:1081
#54 0x0000000000787a17 in Lily_lexer::eval_scm_token (this=0xc06900, 
sval=0x7ffff07954d0, w=...)
    at /home/hermann/lilypond-git/lily/include/lily-lexer.hh:61
#55 0x00000000007801a6 in yyparse (parser=<optimized out>, 
retval=retval@entry=0x7fffffffc2a0) at 
/home/hermann/lilypond-git/lily/parser.yy:447
#56 0x00000000007879a4 in Lily_parser::do_yyparse_trampoline (parser=<optimized 
out>) at /home/hermann/lilypond-git/lily/parser.yy:4043
#57 0x00007ffff7b2bc02 in scm_c_with_fluid () from /usr/lib/libguile.so.17
#58 0x00000000007785dc in Lily_parser::do_yyparse (this=<optimized out>) at 
/home/hermann/lilypond-git/lily/parser.yy:4036
#59 0x00000000005f9e28 in Lily_parser::parse_file (this=this@entry=0xbbbb90, 
init="init.ly", name="atest-40.ly", out_name="atest-40")
    at /home/hermann/lilypond-git/lily/lily-parser.cc:123
#60 0x0000000000648afc in ly_parse_file (name=<optimized out>) at 
/home/hermann/lilypond-git/lily/lily-parser-scheme.cc:121
#61 0x00007ffff7b237fd in ?? () from /usr/lib/libguile.so.17
#62 0x00007ffff7b21ba4 in scm_dapply () from /usr/lib/libguile.so.17
#63 0x00007ffff7b7aa10 in scm_c_catch () from /usr/lib/libguile.so.17
#64 0x00007ffff7b7ab2d in scm_catch_with_pre_unwind_handler () from 
/usr/lib/libguile.so.17
#65 0x00007ffff7b21607 in scm_dapply () from /usr/lib/libguile.so.17
#66 0x00007ffff7b22670 in ?? () from /usr/lib/libguile.so.17
#67 0x00007ffff7b22828 in ?? () from /usr/lib/libguile.so.17
#68 0x00007ffff7b21ba4 in scm_dapply () from /usr/lib/libguile.so.17
---Type <return> to continue, or q <return> to quit---
#69 0x00007ffff1e02620 in scm_srfi1_for_each () from 
/usr/lib/libguile-srfi-srfi-1-v-3.so
#70 0x00007ffff7b226ab in ?? () from /usr/lib/libguile.so.17
#71 0x00007ffff7b22828 in ?? () from /usr/lib/libguile.so.17
#72 0x00007ffff7b23587 in ?? () from /usr/lib/libguile.so.17
#73 0x00007ffff7b21ba4 in scm_dapply () from /usr/lib/libguile.so.17
#74 0x0000000000624189 in Scm_variable::operator() (arg1=<optimized out>, 
this=<optimized out>)
    at /home/hermann/lilypond-git/lily/include/lily-modules.hh:73
#75 main_with_guile () at /home/hermann/lilypond-git/lily/main.cc:537
#76 0x00007ffff7b3c9bf in ?? () from /usr/lib/libguile.so.17
#77 0x00007ffff7b13dca in ?? () from /usr/lib/libguile.so.17
#78 0x00007ffff7b7aa10 in scm_c_catch () from /usr/lib/libguile.so.17
#79 0x00007ffff7b143a4 in scm_i_with_continuation_barrier () from 
/usr/lib/libguile.so.17
#80 0x00007ffff7b14480 in scm_c_with_continuation_barrier () from 
/usr/lib/libguile.so.17
#81 0x00007ffff7b78d96 in scm_i_with_guile_and_parent () from 
/usr/lib/libguile.so.17
#82 0x00007ffff7b3cb25 in scm_boot_guile () from /usr/lib/libguile.so.17
#83 0x0000000000423515 in main (argc=2, argv=0x7fffffffdea8, envp=<optimized 
out>) at /home/hermann/lilypond-git/lily/main.cc:829
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to