| Thr tests hae not changed as far as I can seel neither has linsnd.c
Tracing wit gdb I got lost with optimised-out values, but ksmps seems to
be 10, but spoutsf function is looping way more than 10. I thought spout
was only ksmps long.
The regression test and trapped are OK so I suspect unitialised value in
the C test code, but not my area.
This is of cource in 64bit Linux. Have not been able to run the tests for
months so this may not be new.
Valgrind shows errors
==9402== Conditional jump or move depends on uninitialised value(s)
==9402== at 0x4F99895: opcode_perf_debug (csound.c:1619)
==9402== by 0x4F99895: kperf_debug (csound.c:1822)
==9402== by 0x4F99B6B: csoundPerformKsmps (csound.c:1935)
==9402== by 0x40221C: test_next (csound_debugger_test.c:435)
==9402== by 0x52F8260: ??? (in /usr/lib64/libcunit.so.1.0.1)
==9402== by 0x52F856E: ??? (in /usr/lib64/libcunit.so.1.0.1)
==9402== by 0x52F88A5: CU_run_all_tests (in
/usr/lib64/libcunit.so.1.0.1)
==9402== by 0x4012EC: main (csound_debugger_test.c:511)
==9402==
==9402== Invalid read of size 8
==9402== at 0x4E9D5A4: spoutsf (libsnd.c:78)
==9402== by 0x4F990B5: kperf_debug (csound.c:1875)
==9402== by 0x4F99B6B: csoundPerformKsmps (csound.c:1935)
==9402== by 0x402264: test_next (csound_debugger_test.c:444)
==9402== by 0x52F8260: ??? (in /usr/lib64/libcunit.so.1.0.1)
==9402== by 0x52F856E: ??? (in /usr/lib64/libcunit.so.1.0.1)
==9402== by 0x52F88A5: CU_run_all_tests (in
/usr/lib64/libcunit.so.1.0.1)
==9402== by 0x4012EC: main (csound_debugger_test.c:511)
==9402== Address 0x9b4e090 is 0 bytes after a block of size 96 alloc'd
==9402== at 0x4C2B200: calloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd6
4-linux.so)
==9402== by 0x4E8BD87: mcalloc (memalloc.c:113)
==9402== by 0x4E8E86F: musmon (musmon.c:205)
==9402== by 0x4F9C4BB: csoundStart (main.c:483)
Could be kperf_debug? That is not used in my oter tests
Only changes I coud see relate to android.
==John ff
On Sun, 16 Aug 2015, Victor Lazzarini wrote:
> Has this code been changed at all recently?
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 16 Aug 2015, at 16:07, jpff wrote:
>>
>> Tried one test under gdb and....
>> Suite: csound_orc_semantics function tests
>> Test: Test Next Command ...virtual_keyboard real time MIDI plugin for
>> Csound
>> 0dBFS level = 32768.0
>> Csound version 6.05 (double samples) Aug 16 2015
>> libsndfile-1.0.26pre6
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x00007ffff79865a4 in spoutsf (csound=0x6059d0)
>> at /home/jpff/Sourceforge/csound/New/csound6/InOut/libsnd.c:78
>> 78 absamp = *sp++;
>> .....
>> (gdb) where
>> #0 0x00007ffff79865a4 in spoutsf (csound=0x6059d0)
>> at /home/jpff/Sourceforge/csound/New/csound6/InOut/libsnd.c:78
>> #1 0x00007ffff7a820b6 in kperf_debug (csound=0x6059d0)
>> at /home/jpff/Sourceforge/csound/New/csound6/Top/csound.c:1875
>> #2 0x00007ffff7a82b6c in csoundPerformKsmps
>> (csound=csound@entry=0x6059d0)
>> at /home/jpff/Sourceforge/csound/New/csound6/Top/csound.c:1935
>> #3 0x0000000000402265 in test_next ()
>> at
>> /home/jpff/Sourceforge/csound/New/csound6/tests/c/csound_debugger_test.c:444
>> #4 0x00007ffff7710261 in ?? () from /usr/lib64/libcunit.so.1
>> #5 0x00007ffff771056f in ?? () from /usr/lib64/libcunit.so.1
>> #6 0x00007ffff77108a6 in CU_run_all_tests () from
>> /usr/lib64/libcunit.so.1
>> #7 0x00000000004012ed in main ()
>> at
>> /home/jpff/Sourceforge/csound/New/csound6/tests/c/csound_debugger_test.c:511
>> (gdb) list
>> 73 n = (int) csound->libsndStatics.outbufrem;
>> 74 }
>> 75 spoutrem -= n;
>> 76 csound->libsndStatics.outbufrem -= n;
>> 77 do {
>> 78 absamp = *sp++;
>> 79 if (csound->libsndStatics.osfopen) {
>> 80 *csound->libsndStatics.outbufp++ = (absamp *
>> csound->dbfs_to_float);
>> 81 }
>> 82 if (absamp < FL(0.0)) {
>> (gdb) print sp
>> $1 = (double *) 0x800008
>>
>> which is clearly not an address
>>
>> On to valgrind I guess
>>
>>
>> On Sun, 16 Aug 2015, Victor Lazzarini wrote:
>>
>>> all tests passing here and, it appears, in travis
>>> https://travis-ci.org/csound/csound
>>> ========================
>>> Dr Victor Lazzarini
>>> Dean of Arts, Celtic Studies and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 16 Aug 2015, at 14:42, jpff wrote:
>>>>
>>>> Not investigated but just pulled and make; make test
>>>>
>>>> /usr/bin/ctest --force-new-ctest-process
>>>> Test project /home/jpff/Sourceforge/csound/New/csound6
>>>> Start 1: testCsoundTypeSystem
>>>> 1/11 Test #1: testCsoundTypeSystem ............. Passed 0.30 sec
>>>> Start 2: testCsoundMessageBuffer
>>>> 2/11 Test #2: testCsoundMessageBuffer ..........***Failed 0.29 sec
>>>> Start 3: testCsoundOrcSemantics
>>>> 3/11 Test #3: testCsoundOrcSemantics ........... Passed 0.29 sec
>>>> Start 4: testCsoundOrcCompileTest
>>>> 4/11 Test #4: testCsoundOrcCompileTest .........***Failed 0.30 sec
>>>> Start 5: testChannels
>>>> 5/11 Test #5: testChannels .....................***Failed 0.31 sec
>>>> Start 6: testCsoundDataStructures
>>>> 6/11 Test #6: testCsoundDataStructures ......... Passed 0.06 sec
>>>> Start 7: testIo
>>>> 7/11 Test #7: testIo ...........................***Failed 0.32 sec
>>>> Start 8: testCircularBuffer
>>>> 8/11 Test #8: testCircularBuffer ............... Passed 0.06 sec
>>>> Start 9: testPerfThread
>>>> 9/11 Test #9: testPerfThread ...................***Failed 0.28 sec
>>>> Start 10: testDebugger
>>>> 10/11 Test #10: testDebugger .....................***Failed 0.28 sec
>>>> Start 11: testEngine
>>>> 11/11 Test #11: testEngine ....................... Passed 1.05 sec
>>>>
>>>> 45% tests passed, 6 tests failed out of 11
>>>>
>>>> Total Test time (real) = 3.56 sec
>>>>
>>>> The following tests FAILED:
>>>> 2 - testCsoundMessageBuffer (Failed)
>>>> 4 - testCsoundOrcCompileTest (Failed)
>>>> 5 - testChannels (Failed)
>>>> 7 - testIo (Failed)
>>>> 9 - testPerfThread (Failed)
>>>> 10 - testDebugger (Failed)
>>>> Errors while running CTest
>>>> Makefile:130: recipe for target 'test' failed
>>>> make: *** [test] Error 8
>>>>
>>>> ==John ffitch
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |