Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] patch for incomplete CSOUND segfault

Date2009-10-20 03:50
From"Art Hunkins"
SubjectRe: [Cs-dev] patch for incomplete CSOUND segfault
Thanks, Wade.

This seems quite helpful; the crash otherwise seems rather problematic for 
the user.

Will, by any chance, this patch eventually propagate to the XO-1 (Sugar 82), 
which shows identical behavior? (I.e., will it be an update to its OLPCsound 
5.08? Just asking; I don't suppose its a realistic possibility, and 
certainly not anything of major importance.)

Art Hunkins

----- Original Message ----- 
From: "Wade Brainerd" 
To: 
Sent: Thursday, October 15, 2009 10:31 PM
Subject: [Cs-dev] patch for incomplete CSOUND segfault


> Hi all,
>
> When a sound fails to compile (e.g. SetJmp is invoked) the CSOUND can
> be left in an incomplete state.  Calling a performance function on an
> incomplete CSOUND, or starting a performance thread (part of the SWIG
> interfaces) can lead to a segfault.
>
> I encountered this while testing Art Hunkins' OurMusic Sugar activity.
> The segfault occurred when I opened a .csd file that required a MIDI
> input device, and I did not have one in my machine.
>
> I developed a patch and posted it to this Fedora bug:
> https://bugzilla.redhat.com/show_bug.cgi?id=529293
> The patch delays setting the COMP flag until csoundCompile returns
> success.  The performance functions check for the presence of the COMP
> flag before performing.
>
> Best,
> Wade
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net