[Csnd] Segmentation fault on Osx
Date | 2014-07-03 17:06 |
From | Ruben Sverre Gjertsen |
Subject | [Csnd] Segmentation fault on Osx |
Hi, I have been looking for working Csound versions on Osx 10.6.8 for a while. Many versions give the error «segmentation fault» and Csound skips the score: :: Csound tidy up: Segmentation fault :: end of score. overall amps: 0.0 :: overall samples out of range: 0 :: 0 errors in performance :: Elapsed time at end of performance: real: 0.478s, CPU: 0.025s It seemed to mean that I didn’t choose the right build (OSX10.6 or OSX10.7). This is still the most recent version I got to run my scores: csound5.18.031-OSX10.7-universal.dmg I thought upgrading to Maverick could help using newer version, but all of the following versions gave the same «segmentation fault» on Osx 10.9.4: csound6.00.0-OSX10.6-x86_64.dmg csound6.00.0-OSX10.8-x86_64.dmg csound6.00.1-OSX10.8-x86_64.dmg csound6.01.0u1-OSX10.8-x86_64.dmg Csound6.02.0-OSX10.9-x86_64.dmg csound6.03.2-OSX10.9-universal.dmg The only version I still get to work is: csound5.18.031-OSX10.7-universal.dmg Even though my system is now upgraded. Do you have some hints about what kind of systems Csound 6 can run on? It would be nice to be able to follow new upgrades. Best Ruben Gjertsen |
Date | 2014-07-03 17:12 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Segmentation fault on Osx |
Could you post the CSD that causes the segfault? ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 3 Jul 2014, at 17:06, Ruben Sverre Gjertsen |
Date | 2014-07-03 17:35 |
From | Ruben Sverre Gjertsen |
Subject | Re: [Csnd] Segmentation fault on Osx |
Yes, I have a standard setup which I use, there is a Csound Workspace for download here: http://www.bek.no/~ruben/Research/Downloads/software.html The folder 0RubenCsound must be placed on root level (./ does not solve relative paths in all cases), and runs with a command like: csound /0RubenCsound/zAnimalGlassDemoScore1.csd -A -3 These files have the same issue, I have to stick with version 5.18 for them to work. Ruben 3. juli 2014 kl. 18:12 skrev Victor Lazzarini |
Date | 2014-07-03 17:56 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: |
Attachments | None |
Date | 2014-07-03 18:22 |
From | Ruben Sverre Gjertsen |
Subject | Re: [Csnd] Segmentation fault on Osx |
Thank you, I got the log below for version 6.03.2. It keeps referring to: /Users/stevenyi/work/csound/csound6/ I can’t see any of that in the working version 5.18. Check CreateEqualsFFTsettings4method against C Check CreateEqualsFFTsettings4method against B Check CreateEqualsFFTsettings4method against A Check CreateEqualsFFTsettings4method against C Check CreateEqualsFFTsettings4method against B Check CreateEqualsFFTsettings4method against A Check CreateEqualsFFTsettings4method against E Check CreateEqualsFFTsettings4method against D Check CreateEqualsFFTsettings4method against C Check CreateEqualsFFTsettings4method against B Check CreateEqualsFFTsettings4method against A Check CreateEqualsFFTsettings4method against E Check CreateEqualsFFTsettings4method against D Check CreateEqualsFFTsettings4method against C Check CreateEqualsFFTsettings4method against B Check CreateEqualsFFTsettings4method against A Check CreateEqualsFFTsettings4method against D Check CreateEqualsFFTsettings4method against C Check CreateEqualsFFTsettings4method against B Check CreateEqualsFFTsettings4method against A Check CreateEqualsFFTsettings4method against D Check CreateEqualsFFTsettings4method against C Check CreateEqualsFFTsettings4method against B Check CreateEqualsFFTsettings4method against A Check CreateEqualsFFTsettings4method against B Check CreateEqualsFFTsettings4method against A Check CreateEqualsFFTsettings4method against B Check CreateEqualsFFTsettings4method against A Check CreateEqualsFFTsettings4method against C Check CreateEqualsFFTsettings4method against B Check CreateEqualsFFTsettings4method against A Check CreateEqualsFFTsettings4method against B Check CreateEqualsFFTsettings4method against A Check CreateEqualsFFTsettings4method against B Check CreateEqualsFFTsettings4method against A Check CreateEqualsFFTsettings4method against B Check CreateEqualsFFTsettings4method against A Check CreateEqualsFFTsettings4method against xrvb25s Check CreateEqualsFFTsettings4method against rvb22s Check CreateEqualsFFTsettings4method against rvb21s Check CreateEqualsFFTsettings4method against rvb19s Check CreateEqualsFFTsettings4method against rvb19m Check CreateEqualsFFTsettings4method against rvb18m Check CreateEqualsFFTsettings4method against rvb17m Check CreateEqualsFFTsettings4method against rvb16m Check CreateEqualsFFTsettings4method against rvb15s Check CreateEqualsFFTsettings4method against rvb14m Check CreateEqualsFFTsettings4method against rvb12s Check CreateEqualsFFTsettings4method against rvb8s Check CreateEqualsFFTsettings4method against rvb7s Check CreateEqualsFFTsettings4method against xrvb6s Check CreateEqualsFFTsettings4method against xrvb5m Check CreateEqualsFFTsettings4method against rvb5quad34 Check CreateEqualsFFTsettings4method against rvb5s Check CreateEqualsFFTsettings4method against xrvb4s Check CreateEqualsFFTsettings4method against rvb4quad34 Check CreateEqualsFFTsettings4method against rvb4s Check CreateEqualsFFTsettings4method against xrvb3s Check CreateEqualsFFTsettings4method against rvb3s Check CreateEqualsFFTsettings4method against xrvb2s Check CreateEqualsFFTsettings4method against ResetRev Check CreateEqualsFFTsettings4method against ReveiceRev Check CreateEqualsFFTsettings4method against QUADConvolver Check CreateEqualsFFTsettings4method against StereoConvolver Check CreateEqualsFFTsettings4method against CreateEqualsFFTsettings4method Looking for 1 args Arg 1: A defining argument A as...#17# Push 0x7fd7e2500f90 macro stack 0x7fd7e2501230 *********Leaving buffer 0x7fd7e2501230 /Users/stevenyi/work/csound/csound6/installer/macosx/2014-05-12-155611/csound6/Engine/csound_pre.lex(477): loc=262; lastloc=67135 /Users/stevenyi/work/csound/csound6/installer/macosx/2014-05-12-155611/csound6/Engine/csound_pre.lex(495): line now 1 at 2 0x7fd7e2501230 *********Leaving buffer 0x7fd7e2501230 /Users/stevenyi/work/csound/csound6/installer/macosx/2014-05-12-155611/csound6/Engine/csound_pre.lex(477): loc=67135; lastloc=67135 /Users/stevenyi/work/csound/csound6/installer/macosx/2014-05-12-155611/csound6/Engine/csound_pre.lex(495): line now 2 at 2 0x7fd7e2501230 *********Leaving buffer 0x7fd7e2501230 /Users/stevenyi/work/csound/csound6/installer/macosx/2014-05-12-155611/csound6/Engine/csound_pre.lex(477): loc=67135; lastloc=67135 /Users/stevenyi/work/csound/csound6/installer/macosx/2014-05-12-155611/csound6/Engine/csound_pre.lex(495): line now 3 at 2 0x7fd7e2501230 *********Leaving buffer 0x7fd7e2501230 /Users/stevenyi/work/csound/csound6/installer/macosx/2014-05-12-155611/csound6/Engine/csound_pre.lex(477): loc=67135; lastloc=67135 /Users/stevenyi/work/csound/csound6/installer/macosx/2014-05-12-155611/csound6/Engine/csound_pre.lex(495): line now 4 at 2 Csound tidy up: Segmentation fault end of score. overall amps: 0.0 overall samples out of range: 0 0 errors in performance Elapsed time at end of performance: real: 0.551s, CPU: 0.035s signalflowgraph: csoundModuleDestroy(0x7fd7e2807200) 3. juli 2014 kl. 18:56 skrev jpff@cs.bath.ac.uk: Running with -v can also be useful in finding/pinpointing errors. |
Date | 2014-07-03 18:24 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: |
There is a problem with macros. If the code runs on 5.18 and is not running >= 6.00, then it’s a bug with the macro system. It might be hard to track down. I got this backtrace (lldb) bt * thread #1: tid = 0x6b563, 0x00007fff9ad88eca libsystem_c.dylib`flockfile + 18, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x68) * frame #0: 0x00007fff9ad88eca libsystem_c.dylib`flockfile + 18 frame #1: 0x00007fff9ad8ac06 libsystem_c.dylib`fread + 31 frame #2: 0x000000010018ba8c CsoundLib64`yy_get_next_buffer(yyscanner=0x000000010104c080) + 652 at csound_prelex.c:2308 frame #3: 0x0000000100184a6c CsoundLib64`csound_prelex(csound=0x0000000100801200, yyscanner= |
Date | 2014-07-03 18:55 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: |
Attachments | None |
Date | 2014-07-03 18:57 |
From | Victor Lazzarini |
Subject | Re: [Csnd] |
Attachments | 0RubenCsoundMacros2012.h |
I figured it out. If the last line of your macro is a comment, then you need to give it another blank line before closing it. # define CreateEqualsFFTsettings4method(A) # ifftsize1=(imethod== $A && ifftsize1>ifftsize2?ifftsize2:ifftsize1) ifftsize2=(imethod== $A && ifftsize2>ifftsize1?ifftsize1:ifftsize2) iolaps1=(imethod== $A && iolaps1>iolaps2?iolaps2:iolaps1) iolaps2=(imethod== $A && iolaps2>iolaps1?iolaps1:iolaps2) ;print ifftsize1,iolaps1, imethod ;print ifftsize2,iolaps2, imethod # will crash, whereas # define CreateEqualsFFTsettings4method(A) # ifftsize1=(imethod== $A && ifftsize1>ifftsize2?ifftsize2:ifftsize1) ifftsize2=(imethod== $A && ifftsize2>ifftsize1?ifftsize1:ifftsize2) iolaps1=(imethod== $A && iolaps1>iolaps2?iolaps2:iolaps1) iolaps2=(imethod== $A && iolaps2>iolaps1?iolaps1:iolaps2) ;print ifftsize1,iolaps1, imethod ;print ifftsize2,iolaps2, imethod # will not. I had noticed this before with something reported by Oeyvind; not sure what the story is in terms of this being a bug or not. I’ve fixed your macros (see attached). Let me know if it works for you now. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 3 Jul 2014, at 18:24, Victor Lazzarini |
Date | 2014-07-03 19:37 |
From | Ruben Sverre Gjertsen |
Subject | Re: [Csnd] |
Thank you! Now it works for me too. Ruben Den 3. juli 2014 kl. 19.57 skrev Victor Lazzarini: > I figured it out. If the last line of your macro is a comment, then you need to give it another blank > line before closing it. > > # define CreateEqualsFFTsettings4method(A) # > ifftsize1=(imethod== $A && ifftsize1>ifftsize2?ifftsize2:ifftsize1) > ifftsize2=(imethod== $A && ifftsize2>ifftsize1?ifftsize1:ifftsize2) > iolaps1=(imethod== $A && iolaps1>iolaps2?iolaps2:iolaps1) > iolaps2=(imethod== $A && iolaps2>iolaps1?iolaps1:iolaps2) > ;print ifftsize1,iolaps1, imethod > ;print ifftsize2,iolaps2, imethod > # > > will crash, whereas > > # define CreateEqualsFFTsettings4method(A) # > ifftsize1=(imethod== $A && ifftsize1>ifftsize2?ifftsize2:ifftsize1) > ifftsize2=(imethod== $A && ifftsize2>ifftsize1?ifftsize1:ifftsize2) > iolaps1=(imethod== $A && iolaps1>iolaps2?iolaps2:iolaps1) > iolaps2=(imethod== $A && iolaps2>iolaps1?iolaps1:iolaps2) > ;print ifftsize1,iolaps1, imethod > ;print ifftsize2,iolaps2, imethod > > # > > will not. > > I had noticed this before with something reported by Oeyvind; not sure what the story is in > terms of this being a bug or not. > > I’ve fixed your macros (see attached). Let me know if it works for you now. > > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > > > > <0RubenCsoundMacros2012.h> > ======================== > Dr Victor Lazzarini > Senior Lecturer > NUI Maynooth, Ireland > victor dot lazzarini at nuim dot ie > > > > > On 3 Jul 2014, at 18:24, Victor Lazzarini |