Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory access violation draw.c:1205 in draw_bar(struct SYMBOL *s, float bot, float h) #19

Closed
c1208828 opened this issue Apr 13, 2018 · 0 comments

Comments

@c1208828
Copy link

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

(gdb) set args POC5
(gdb) r

abcm2ps-8.13.20 (2018-02-21)
File POC5
POC5:7:3: error: Bad character
7 :ReÜa:K:eæ]E
^

.
.
.
Program received signal SIGSEGV, Segmentation fault.
0x00000000004bc344 in draw_bar (h=24, bot=-51, s=0x847fd8) at draw.c:1205
1205 for (s2 = s->prev; s2->abc_type != ABC_T_REST; s2 = s2->prev)

(gdb) bt
#0 0x00000000004bc344 in draw_systems (h=24, bot=-51, s=0x847fd8) at draw.c:1205
#1 0x00000000004bc344 in draw_systems (indent=indent@entry=0) at draw.c:4570
#2 0x000000000052ffd5 in output_music (indent=0) at music.c:5088
#3 0x000000000052ffd5 in output_music () at music.c:5139
#4 0x000000000054d511 in generate () at parse.c:1039
#5 0x00000000005709cd in do_tune (eob=0) at parse.c:1060
#6 0x00000000005709cd in do_tune () at parse.c:3620
#7 0x0000000000414731 in abc_eof () at abcparse.c:200
#8 0x00000000004e45e9 in frontend (s=,
s@entry=0x827a40 "&&\rX:MPRe\a:K:\a\ae]\377:K:\a>K\005\377\377\005]E\rKPRe\a:e\aenE.PRe\rPRee\\a:&&Y]E\rt\177f\a:e]E\rK:vE\r:Re\334a:K:e\ae]E\rPRe\a:6&ae]E]\005\377\377:K:\a>K\005\377\377\005]E\rKPRe\a:e\aenE.PRe\rPRee\\a:"&Y]E\re\a:e\aenE.PRe\rPRea:P\177f\a:enK:e\E0K>]E\rK>"..., ftype=ftype@entry=0, fname=fname@entry=0x825ea0 "POC5", linenum=35, linenum@entry=0) at front.c:901
#9 0x000000000040b98d in treat_file (fn=, ext=) at abcm2ps.c:239
#10 0x00000000004084f9 in main (argc=0, argv=) at abcm2ps.c:1040

(gdb) list
1200 if (s->u.bar.len != 0) {
1201 struct SYMBOL *s2;
1202
1203 set_scale(s);
1204 if (s->u.bar.len == 1) {
1205 for (s2 = s->prev; s2->abc_type != ABC_T_REST; s2 = s2->prev)
1206 ;
1207 putxy(s2->x, yb + 12);
1208 a2b("mrep\n");
1209 } else {

moinejf added a commit that referenced this issue Apr 14, 2018
@c1208828 c1208828 closed this as completed May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant