lewdlime / abcm2ps

abcm2ps is a command line program which converts ABC to music sheet in PostScript or SVG format. It is an extension of abc2ps which may handle many voices per staff. abcm2ps is Copyright © 2014-2016 Jean-Francois Moine.
http://moinejf.free.fr/
GNU General Public License v3.0
82 stars 31 forks source link

access violation music.c:862 in gchord_width(struct SYMBOL *s, float wlnote, float wlw) #20

Closed c1208828 closed 6 years ago

c1208828 commented 6 years ago

https://drive.google.com/open?id=1LBcdyedXMoub4bhGGHFMxYqU7NeoAuwf

Version: 8.13.20 after commit fd956e19f88ee32f8ec4aece5901400b06e80bcc

(gdb) set args POC6 (gdb) r

abcm2ps-8.13.20 (2018-02-21) File POC6 POC6:3:2: error: Bad character 3 |2ÿÿdÿ&e,d_d&ddªB-ÿ2ÿ ^ POC6:3:3: error: Bad character 3 |2ÿÿdÿ&e,d_d&ddªB-ÿ2ÿ ^ . . . POC6:27:14: error: !slide! must be on a note or a rest POC6:27:38: error: Bad character 't' POC6:27:38: error: Bad character 'N' POC6:27:38: error: Bad character 'N' POC6:31:0: error: tune info ':' not treated POC6:26:25: warning: Line underfull (561pt of 682pt) POC6:4:0: error: Note too much dotted POC6:3:20: error: Bad tie POC6:22:0: error: Bad tie

Program received signal SIGSEGV, Segmentation fault. gchord_width (s=s@entry=0x845f88, wlnote=wlnote@entry=8, wlw=wlw@entry=8) at music.c:862 862 if (s2->sflags & S_SEQST)

(gdb) bt

0 0x00000000004f4fb0 in gchord_width (s=s@entry=0x845f88, wlnote=wlnote@entry=8, wlw=wlw@entry=8)

at music.c:862

1 0x000000000050eedb in set_allsymwidth (s=0x845f88) at music.c:1194

2 0x000000000050eedb in set_allsymwidth (last_s=last_s@entry=0x830db0) at music.c:1436

3 0x000000000052defa in output_music () at music.c:3371

4 0x000000000052defa in output_music () at music.c:4766

5 0x000000000052defa in output_music () at music.c:5134

6 0x000000000054d511 in generate () at parse.c:1039

7 0x00000000005709cd in do_tune (eob=0) at parse.c:1060

8 0x00000000005709cd in do_tune () at parse.c:3620

9 0x0000000000414731 in abc_eof () at abcparse.c:200

10 0x00000000004e45e9 in frontend (s=,

s@entry=0x827a40 "X:^2\rK:\r|2\377\377d\377&e,d_d&dd\252B-\377\062\377\n[e,c>|2\377\377&e9k>|2\377\n[\020'eD[\377\205\377fe-d6e{@)\177\377\r:\001&d\353\377\177ddzd{\370\062Kdd\231d2\rtdd&E,\351\177\"&ed\252d-\r\177&KL\031K:\352\325J:Ӫd-\r\177&K_\031K:\352\325J:\323\323\375L\213-c>|2!\v[\377[\020'eD[\377\205\377fe-d6e{@)\177\377\r:\001&d\353\377\177ddzd{UUUUUt&K:1J:\323\326\360L\203-", <incomplete sequence \375>..., ftype=ftype@entry=0, fname=fname@entry=0x825ea0 "POC6", linenum=31, linenum@entry=0) at front.c:901

11 0x000000000040b98d in treat_file (fn=, ext=) at abcm2ps.c:239

12 0x00000000004084f9 in main (argc=0, argv=) at abcm2ps.c:1040

(gdb) list 857 for (s2 = s->ts_prev; ; s2 = s2->ts_prev) { 858 if (s2 == s->prev) { 859 AT_LEAST(wlw, lspc); 860 break; 861 } 862 if (s2->sflags & S_SEQST) 863 lspc -= s2->shrink; 864 } 865 } 866 if (alspc != 0)