Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] csbeats segfault

Date2012-05-26 15:42
FromPINOT Francois
SubjectRe: [Cs-dev] csbeats segfault
Hello John,

here is the output of a run of csbeats under gdb on my machine:

pinot@laptop-maison:~/builds/csound5$ gdb
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 

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 "i686-linux-gnu".
For bug reporting instructions, please see:
.
(gdb) file csbeats
Reading symbols from /home/pinot/builds/csound5/csbeats...done.
(gdb) run
Starting program: /home/pinot/builds/csound5/csbeats
[Thread debugging using libthread_db enabled]
;;; Generated by beats on Sat 2012 May 26 16:37:58

beats = 120
;;;setting bpm=120.000000
permeasure = 6
;;;setting permeasure=6
i101 m1 b1 B4 mp qd+s

Program received signal SIGSEGV, Segmentation fault.
0x0804990c in yyparse () at frontends/beats/beats.y:110
110                    fprintf(myout, " %f", instr[instrument].p[i]);

Hope this helps

Francois


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-26 17:05
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] csbeats segfault
That looks like a bug I fixed yesterday.  Did you take a new version of
frontends/beats/main.c ?


> Hello John,
>
> here is the output of a run of csbeats under gdb on my machine:
>
> pinot@laptop-maison:~/builds/csound5$ gdb
> GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
> Copyright (C) 2011 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> 
> 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 "i686-linux-gnu".
> For bug reporting instructions, please see:
> .
> (gdb) file csbeats
> Reading symbols from /home/pinot/builds/csound5/csbeats...done.
> (gdb) run
> Starting program: /home/pinot/builds/csound5/csbeats
> [Thread debugging using libthread_db enabled]
> ;;; Generated by beats on Sat 2012 May 26 16:37:58
>
> beats = 120
> ;;;setting bpm=120.000000
> permeasure = 6
> ;;;setting permeasure=6
> i101 m1 b1 B4 mp qd+s
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0804990c in yyparse () at frontends/beats/beats.y:110
> 110                    fprintf(myout, " %f", instr[instrument].p[i]);
>
> Hope this helps
>
> Francois
>
>
>


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-26 20:30
FromPINOT Francois
SubjectRe: [Cs-dev] csbeats segfault
Hello John,

just tried again with a new build including your last beats.y commit. It 
goes a bit further but there's still a segfault:

pinot@laptop-maison:~/builds/csound5$ gdb
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 

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 "i686-linux-gnu".
For bug reporting instructions, please see:
.
(gdb) file ./csbeats
Reading symbols from /home/pinot/builds/csound5/csbeats...done.
(gdb) run < test.txt
Starting program: /home/pinot/builds/csound5/csbeats < test.txt
[Thread debugging using libthread_db enabled]
;;; Generated by beats on Sat 2012 May 26 21:24:38

;;;setting bpm=100.000000
;;;setting permeasure=4
i101 0.000000 0.600000 146.832384 -4
i101 0.600000 0.600000 174.614116 -4
i101 1.200000 0.600000 146.832384 -4
i101 2.400000 0.600000 146.832384 -4
i101 3.600000 0.600000 146.832384 -4
i101 4.800000 0.600000 146.832384 -4
i101 5.400000 0.600000 174.614116 -4
i101 6.000000 0.600000 146.832384 -4
i101 7.200000 0.600000 146.832384 -4
i101 8.400000 0.600000 146.832384 -4
i101 9.600000 0.600000 146.832384 -4
i101 11.400000 0.600000 783.990872 -4
i101 12.000000 0.600000 659.255114 -4
i101 12.600000 0.600000 698.456463 -4
i101 13.200000 0.300000 622.253967 -4
i101 13.500000 0.300000 622.253967 -4
i101 13.800000 0.600000 622.253967 -4
i101 14.400000 0.300000 587.329536 -4
i101 14.700000 0.300000 587.329536 -4
i101 15.000000 0.600000 587.329536 -4
i101 15.600000 0.300000 554.365262 -4
i101 15.900000 0.300000 554.365262 -4
i101 16.200000 0.600000 554.365262 -4
i101 16.800000 0.600000 587.329536 -4
i101 17.400000 0.600000 659.255114 -4
i101 18.000000 0.600000 587.329536 -4

Program received signal SIGSEGV, Segmentation fault.
0x0804990c in yyparse () at frontends/beats/beats.y:110
110                    fprintf(myout, " %f", instr[instrument].p[i]);

The test.txt file that I use as input is a copy of the data in your 
example of the manual.

Regards

Francois


Le 26/05/2012 16:42, PINOT Francois a écrit :
> Hello John,
>
> here is the output of a run of csbeats under gdb on my machine:
>
> pinot@laptop-maison:~/builds/csound5$ gdb
> GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
> Copyright (C) 2011 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later 
> 
> 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 "i686-linux-gnu".
> For bug reporting instructions, please see:
> .
> (gdb) file csbeats
> Reading symbols from /home/pinot/builds/csound5/csbeats...done.
> (gdb) run
> Starting program: /home/pinot/builds/csound5/csbeats
> [Thread debugging using libthread_db enabled]
> ;;; Generated by beats on Sat 2012 May 26 16:37:58
>
> beats = 120
> ;;;setting bpm=120.000000
> permeasure = 6
> ;;;setting permeasure=6
> i101 m1 b1 B4 mp qd+s
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0804990c in yyparse () at frontends/beats/beats.y:110
> 110                    fprintf(myout, " %f", instr[instrument].p[i]);
>
> Hope this helps
>
> Francois
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-27 14:18
Fromjohn ffitch
SubjectRe: [Cs-dev] csbeats segfault
I found a typo/braino in the extending of the maximum instrument.
Fixed in git.  Trouble I am having is that it does not fail for me
yet.  The bug as too small a malloc so that could explain it.

==John ffitch

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net