Hi Victor, Thanks for the feedback. I should have a little time on the plane tomorrow to look at the code and see what is going on (I can get segfaults here so will create a debug build to help figure it out). For the multithreading, this initial strategy real only give performance increases when having multiple instances of the same instrument playing at the same time, and that is even only in theory. My guess is that the synchronization overhead as well as the partitioning of work with the current strategy is grossly inefficient, but it's a start! Thanks again! steven On 4/5/07, Victor Lazzarini wrote: > I have now also tested in a dual-processor Linux box, with > the same crashing results. Exactly at the same point. > > Victor > > At 12:35 05/04/2007, you wrote: > >and running on gdb, I get this > > > >mulab90-24:~/csound5 victor$ gdb csound > >GNU gdb 6.1-20040303 (Apple version gdb-384) (Mon Mar 21 00:05:26 GMT 2005) > >Copyright 2004 Free Software Foundation, Inc. > >GDB is free software, covered by the GNU General Public License, and you are > >welcome to change it and/or distribute copies of it under certain conditions. > >Type "show copying" to see the conditions. > >There is absolutely no warranty for GDB. Type "show warranty" for details. > >This GDB was configured as "powerpc-apple-darwin"...Reading symbols for > >shared libraries ........ done > > > >(gdb) run examples/trapped.csd --num-threads=2 > >Starting program: /Users/victor/csound5/csound examples/trapped.csd > >--num-threads=2 > >Reading symbols for shared libraries > >.++................................................................ done > >Localisation of messages is disabled, using default language. > >Reading symbols for shared libraries .. done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries .... done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries .. done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >PortMIDI real time MIDI plugin for Csound > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries .. done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries .. done > >Reading symbols for shared libraries .... done > >PortAudio real-time audio module for Csound > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries . done > >Reading symbols for shared libraries .. done > >virtual_keyboard real time MIDI plugin for Csound > >Reading symbols for shared libraries .. done > >Reading symbols for shared libraries . done > >0dBFS level = 32768.0 > >Csound version 5.05 (float samples) Apr 5 2007 > >libsndfile-1.0.16 > >UnifiedCSD: examples/trapped.csd > >STARTING FILE > >Creating options > >Creating orchestra > >Creating score > >orchname: /tmp/tmp.0.PxlFLW.orc > >scorename: /tmp/tmp.1.rkAu8e.sco > >rtaudio: PortAudio module enabled ... using callback interface > >rtmidi: PortMIDI module enabled > >orch compiler: > >397 lines read > > instr 1 > > instr 2 > > instr 3 > > instr 4 > > instr 5 > > instr 6 > > instr 7 > > instr 8 > > instr 9 > > instr 10 > > instr 11 > > instr 12 > > instr 13 > > instr 98 > > instr 99 > >sorting score ... > > ... done > >Csound version 5.05 (float samples) Apr 5 2007 > >displays suppressed > >0dBFS level = 32768.0 > >orch now loaded > >audio buffered in 1024 sample-frame blocks > >writing 4096-byte blks of shorts to test.wav (WAV) > >SECTION 1: > >ftable 1: > >ftable 2: > >ftable 3: > >ftable 4: > >ftable 5: > >ftable 6: > >ftable 7: > >ftable 8: > >ftable 9: > >ftable 10: > >ftable 11: > >ftable 12: > >ftable 13: > >ftable 14: > >ftable 15: > >ftable 16: > >ftable 17: > >ftable 18: > >ftable 19: > >ftable 20: > >ftable 21: > >ftable 22: > >new alloc for instr 1: > >B 0.000 .. 1.000 T 1.000 TT 1.000 M: 32.8 0.0 > >new alloc for instr 1: > > > >Program received signal EXC_BAD_ACCESS, Could not access memory. > >Reason: KERN_PROTECTION_FAILURE at address: 0x00000004 > >[Switching to process 2364 thread 0x1c03] > >0x00279620 in kperfThread () > >(gdb) > > > >Victor > >Victor Lazzarini > >Music Technology Laboratory > >Music Department > >National University of Ireland, Maynooth > > > > > >------------------------------------------------------------------------- > >Take Surveys. Earn Cash. Influence the Future of IT > >Join SourceForge.net's Techsay panel and you'll get the chance to share your > >opinions on IT & business topics through brief surveys-and earn cash > >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >_______________________________________________ > >Csound-devel mailing list > >Csound-devel@lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/csound-devel > > Victor Lazzarini > Music Technology Laboratory > Music Department > National University of Ireland, Maynooth > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net