Csound Csound-dev Csound-tekno Search About

[Cs-dev] Holdup on Windows installers

Date2010-08-31 18:25
FromMichael Gogins
Subject[Cs-dev] Holdup on Windows installers
I've run into a serious roadblock on preparing the Csound 5.12 windows
installer.

The module loading  and module unloading code causes segmentation
violations with some libraries including tclcsound.dll and rtpa.dll.
This in turn causes Csound not to be re-startable. And that means
QuteCsound and other hosts do not work.

The problem appears to be exhibited in this stack trace and seems to
have something to do with thread local storage in MinGW. I am using
the Twilight Dragon Media build of MinGW but I will try the regular
build of MinGW now.

#0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
#1  0x6f082ee8 in __mingwthr_run_key_dtors ()
   from D:\utah\home\mkg\csound\head\rtpa.dll
#2  0x6f082f26 in __mingw_TLScallback ()
   from D:\utah\home\mkg\csound\head\rtpa.dll
#3  0x6f082943 in __dyn_tls_dtor@12 ()
   from D:\utah\home\mkg\csound\head\rtpa.dll
#4  0x77c597a0 in ntdll!RtlQueryInformationActiveActivationContext ()
   from C:\Windows\system32\ntdll.dll
#5  0x6f080000 in ?? ()
#6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
   from C:\Windows\system32\ntdll.dll
#7  0x6f082920 in __tlregdtor () from D:\utah\home\mkg\csound\head\rtpa.dll
#8  0x77c99a29 in ntdll!AlpcMaxAllowedMessageLength ()
   from C:\Windows\system32\ntdll.dll
#9  0x00000000 in ?? ()


Any hints, anyone?

Regards,
Mike


-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-08-31 18:34
Fromandy fillebrown
SubjectRe: [Cs-dev] Holdup on Windows installers
Looks to me like the fltk threading issue reported earlier.

Cheers,
~andy.f



On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
 wrote:
> I've run into a serious roadblock on preparing the Csound 5.12 windows
> installer.
>
> The module loading  and module unloading code causes segmentation
> violations with some libraries including tclcsound.dll and rtpa.dll.
> This in turn causes Csound not to be re-startable. And that means
> QuteCsound and other hosts do not work.
>
> The problem appears to be exhibited in this stack trace and seems to
> have something to do with thread local storage in MinGW. I am using
> the Twilight Dragon Media build of MinGW but I will try the regular
> build of MinGW now.
>
> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>   from D:\utah\home\mkg\csound\head\rtpa.dll
> #2  0x6f082f26 in __mingw_TLScallback ()
>   from D:\utah\home\mkg\csound\head\rtpa.dll
> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>   from D:\utah\home\mkg\csound\head\rtpa.dll
> #4  0x77c597a0 in ntdll!RtlQueryInformationActiveActivationContext ()
>   from C:\Windows\system32\ntdll.dll
> #5  0x6f080000 in ?? ()
> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>   from C:\Windows\system32\ntdll.dll
> #7  0x6f082920 in __tlregdtor () from D:\utah\home\mkg\csound\head\rtpa.dll
> #8  0x77c99a29 in ntdll!AlpcMaxAllowedMessageLength ()
>   from C:\Windows\system32\ntdll.dll
> #9  0x00000000 in ?? ()
>
>
> Any hints, anyone?
>
> Regards,
> Mike
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-08-31 18:40
FromFelipe Sateler
SubjectRe: [Cs-dev] Holdup on Windows installers
What suprises me is that rtpa wants to call code from fltk.

On Tue, Aug 31, 2010 at 13:34, andy fillebrown
 wrote:
> Looks to me like the fltk threading issue reported earlier.
>
> Cheers,
> ~andy.f
>
>
>
> On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>  wrote:
>> I've run into a serious roadblock on preparing the Csound 5.12 windows
>> installer.
>>
>> The module loading  and module unloading code causes segmentation
>> violations with some libraries including tclcsound.dll and rtpa.dll.
>> This in turn causes Csound not to be re-startable. And that means
>> QuteCsound and other hosts do not work.
>>
>> The problem appears to be exhibited in this stack trace and seems to
>> have something to do with thread local storage in MinGW. I am using
>> the Twilight Dragon Media build of MinGW but I will try the regular
>> build of MinGW now.
>>
>> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>> #2  0x6f082f26 in __mingw_TLScallback ()
>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>> #4  0x77c597a0 in ntdll!RtlQueryInformationActiveActivationContext ()
>>   from C:\Windows\system32\ntdll.dll
>> #5  0x6f080000 in ?? ()
>> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>   from C:\Windows\system32\ntdll.dll
>> #7  0x6f082920 in __tlregdtor () from D:\utah\home\mkg\csound\head\rtpa.dll
>> #8  0x77c99a29 in ntdll!AlpcMaxAllowedMessageLength ()
>>   from C:\Windows\system32\ntdll.dll
>> #9  0x00000000 in ?? ()
>>
>>
>> Any hints, anyone?
>>
>> Regards,
>> Mike
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 

Saludos,
Felipe Sateler

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge

Date2010-08-31 20:04
FromMichael Gogins
SubjectRe: [Cs-dev] Holdup on Windows installers
Thanks for the suggestion, I will check that.

Regards,
Mike

On 8/31/10, andy fillebrown  wrote:
> Looks to me like the fltk threading issue reported earlier.
>
> Cheers,
> ~andy.f
>
>
>
> On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>  wrote:
>> I've run into a serious roadblock on preparing the Csound 5.12 windows
>> installer.
>>
>> The module loading  and module unloading code causes segmentation
>> violations with some libraries including tclcsound.dll and rtpa.dll.
>> This in turn causes Csound not to be re-startable. And that means
>> QuteCsound and other hosts do not work.
>>
>> The problem appears to be exhibited in this stack trace and seems to
>> have something to do with thread local storage in MinGW. I am using
>> the Twilight Dragon Media build of MinGW but I will try the regular
>> build of MinGW now.
>>
>> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>> #2  0x6f082f26 in __mingw_TLScallback ()
>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>> #4  0x77c597a0 in ntdll!RtlQueryInformationActiveActivationContext ()
>>   from C:\Windows\system32\ntdll.dll
>> #5  0x6f080000 in ?? ()
>> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>   from C:\Windows\system32\ntdll.dll
>> #7  0x6f082920 in __tlregdtor () from
>> D:\utah\home\mkg\csound\head\rtpa.dll
>> #8  0x77c99a29 in ntdll!AlpcMaxAllowedMessageLength ()
>>   from C:\Windows\system32\ntdll.dll
>> #9  0x00000000 in ?? ()
>>
>>
>> Any hints, anyone?
>>
>> Regards,
>> Mike
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>


-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-08-31 21:47
FromVictor.Lazzarini@nuim.ie
SubjectRe: [Cs-dev] Holdup on Windows installers
AttachmentsNone  

Date2010-08-31 22:46
FromMichael Gogins
SubjectRe: [Cs-dev] Holdup on Windows installers
I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
and TDM MinGW, the code for handling exceptions across image
boundaries in multi-threaded code has been in flux for two years. I'm
beginning to wonder why it ever worked. I'm going to revert the
compiler and see if that helps.

Unloading libraries has also been an issue, I may just omit that step
on Windows and see what happens.

Note that at this point I am building FLTK itself, PortAudio, and
Csound with the same options for threading and exception handling.

The same exception happens in tclcsound.dll and in rtpa.dll even if
all plugins and modules that link with FLTK are removed from the path
(though I hope I didn't miss anyway).

On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
> I'm not sure that is the case. I think it's Csound calling the FLTK function.
>
> ----- Original Message -----
> From: Felipe Sateler 
> Date: Tuesday, August 31, 2010 6:42 pm
> Subject: Re: [Cs-dev] Holdup on Windows installers
> To: Developer discussions 
>
>> What suprises me is that rtpa wants to call code from fltk.
>>
>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>  wrote:
>> > Looks to me like the fltk threading issue reported earlier.
>> >
>> > Cheers,
>> > ~andy.f
>> >
>> >
>> >
>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>> >  wrote:
>> >> I've run into a serious roadblock on preparing the Csound
>> 5.12 windows
>> >> installer.
>> >>
>> >> The module loading  and module unloading code causes segmentation
>> >> violations with some libraries including tclcsound.dll and
>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>> And that means
>> >> QuteCsound and other hosts do not work.
>> >>
>> >> The problem appears to be exhibited in this stack trace and
>> seems to
>> >> have something to do with thread local storage in MinGW. I am using
>> >> the Twilight Dragon Media build of MinGW but I will try the regular
>> >> build of MinGW now.
>> >>
>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>> >> #4  0x77c597a0 in
>> ntdll!RtlQueryInformationActiveActivationContext ()
>> >>   from C:\Windows\system32\ntdll.dll
>> >> #5  0x6f080000 in ?? ()
>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>> >>   from C:\Windows\system32\ntdll.dll
>> >> #7  0x6f082920 in __tlregdtor () from
>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>> ntdll!AlpcMaxAllowedMessageLength ()
>> >>   from C:\Windows\system32\ntdll.dll
>> >> #9  0x00000000 in ?? ()
>> >>
>> >>
>> >> Any hints, anyone?
>> >>
>> >> Regards,
>> >> Mike
>> >>
>> >>
>> >> --
>> >> Michael Gogins
>> >> Irreducible Productions
>> >> http://www.michael-gogins.com
>> >> Michael dot Gogins at gmail dot com
>> >>
>> >> --------------------------------------------------------------
>> ----------------
>> >> This SF.net Dev2Dev email is sponsored by:
>> >>
>> >> Show off your parallel programming skills.
>> >> Enter the Intel(R) Threading Challenge 2010.
>> >> http://p.sf.net/sfu/intel-thread-sfd
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >
>> > ---------------------------------------------------------------
>> ---------------
>> > This SF.net Dev2Dev email is sponsored by:
>> >
>> > Show off your parallel programming skills.
>> > Enter the Intel(R) Threading Challenge 2010.
>> > http://p.sf.net/sfu/intel-thread-sfd
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>>
>> --
>>
>> Saludos,
>> Felipe Sateler
>>
>> -----------------------------------------------------------------
>> -------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
> National University of Ireland, Maynooth
>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-08-31 22:55
FromVictor.Lazzarini@nuim.ie
SubjectRe: [Cs-dev] Holdup on Windows installers
AttachmentsNone  None  None  None  

Date2010-09-01 00:09
FromMichael Gogins
SubjectRe: [Cs-dev] Holdup on Windows installers
In the development environment all shared libraries in the Csound
directory are loaded and interrogated for module entry points. Then
they are unloaded.

All modules that are loaded for use also are unloaded (FreeLibrary on
Windows, problematic) at the end of the CSound run.

Regards,
Mike

On Tue, Aug 31, 2010 at 5:55 PM,   wrote:
> But tclcsound.dll is not a Csound plugin. How does that happen?
>
> ----- Original Message -----
> From: Michael Gogins 
> Date: Tuesday, August 31, 2010 10:46 pm
> Subject: Re: [Cs-dev] Holdup on Windows installers
> To: Developer discussions 
>
>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>> and TDM MinGW, the code for handling exceptions across image
>> boundaries in multi-threaded code has been in flux for two
>> years. I'm
>> beginning to wonder why it ever worked. I'm going to revert the
>> compiler and see if that helps.
>>
>> Unloading libraries has also been an issue, I may just omit that step
>> on Windows and see what happens.
>>
>> Note that at this point I am building FLTK itself, PortAudio, and
>> Csound with the same options for threading and exception handling.
>>
>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>> all plugins and modules that link with FLTK are removed from the path
>> (though I hope I didn't miss anyway).
>>
>> On Tue, Aug 31, 2010 at 4:47 PM,
>>  wrote:
>> > I'm not sure that is the case. I think it's Csound calling the
>> FLTK function.
>> >
>> > ----- Original Message -----
>> > From: Felipe Sateler 
>> > Date: Tuesday, August 31, 2010 6:42 pm
>> > Subject: Re: [Cs-dev] Holdup on Windows installers
>> > To: Developer discussions 
>> >
>> >> What suprises me is that rtpa wants to call code from fltk.
>> >>
>> >> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>> >>  wrote:
>> >> > Looks to me like the fltk threading issue reported earlier.
>> >> >
>> >> > Cheers,
>> >> > ~andy.f
>> >> >
>> >> >
>> >> >
>> >> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>> >> >  wrote:
>> >> >> I've run into a serious roadblock on preparing the Csound
>> >> 5.12 windows
>> >> >> installer.
>> >> >>
>> >> >> The module loading  and module unloading code causes
>> segmentation>> >> violations with some libraries including
>> tclcsound.dll and
>> >> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>> >> And that means
>> >> >> QuteCsound and other hosts do not work.
>> >> >>
>> >> >> The problem appears to be exhibited in this stack trace and
>> >> seems to
>> >> >> have something to do with thread local storage in MinGW. I
>> am using
>> >> >> the Twilight Dragon Media build of MinGW but I will try
>> the regular
>> >> >> build of MinGW now.
>> >> >>
>> >> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>> >> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>> >> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>> >> >> #2  0x6f082f26 in __mingw_TLScallback ()
>> >> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>> >> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>> >> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>> >> >> #4  0x77c597a0 in
>> >> ntdll!RtlQueryInformationActiveActivationContext ()
>> >> >>   from C:\Windows\system32\ntdll.dll
>> >> >> #5  0x6f080000 in ?? ()
>> >> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>> >> >>   from C:\Windows\system32\ntdll.dll
>> >> >> #7  0x6f082920 in __tlregdtor () from
>> >> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>> >> ntdll!AlpcMaxAllowedMessageLength ()
>> >> >>   from C:\Windows\system32\ntdll.dll
>> >> >> #9  0x00000000 in ?? ()
>> >> >>
>> >> >>
>> >> >> Any hints, anyone?
>> >> >>
>> >> >> Regards,
>> >> >> Mike
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Michael Gogins
>> >> >> Irreducible Productions
>> >> >> http://www.michael-gogins.com
>> >> >> Michael dot Gogins at gmail dot com
>> >> >>
>> >> >> -----------------------------------------------------------
>> ---
>> >> ----------------
>> >> >> This SF.net Dev2Dev email is sponsored by:
>> >> >>
>> >> >> Show off your parallel programming skills.
>> >> >> Enter the Intel(R) Threading Challenge 2010.
>> >> >> http://p.sf.net/sfu/intel-thread-sfd
>> >> >> _______________________________________________
>> >> >> Csound-devel mailing list
>> >> >> Csound-devel@lists.sourceforge.net
>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >>
>> >> >
>> >> > ------------------------------------------------------------
>> ---
>> >> ---------------
>> >> > This SF.net Dev2Dev email is sponsored by:
>> >> >
>> >> > Show off your parallel programming skills.
>> >> > Enter the Intel(R) Threading Challenge 2010.
>> >> > http://p.sf.net/sfu/intel-thread-sfd
>> >> > _______________________________________________
>> >> > Csound-devel mailing list
>> >> > Csound-devel@lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >>
>> >> Saludos,
>> >> Felipe Sateler
>> >>
>> >> --------------------------------------------------------------
>> ---
>> >> -------------
>> >> This SF.net Dev2Dev email is sponsored by:
>> >>
>> >> Show off your parallel programming skills.
>> >> Enter the Intel(R) Threading Challenge 2010.
>> >> http://p.sf.net/sfu/intel-thread-sfd
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> > Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>> > National University of Ireland, Maynooth
>> >
>> >
>> > ---------------------------------------------------------------
>> ---------------
>> > This SF.net Dev2Dev email is sponsored by:
>> >
>> > Show off your parallel programming skills.
>> > Enter the Intel(R) Threading Challenge 2010.
>> > http://p.sf.net/sfu/intel-thread-sfd
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>> -----------------------------------------------------------------
>> -------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
> National University of Ireland, Maynooth
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-01 08:24
FromVictor.Lazzarini@nuim.ie
SubjectRe: [Cs-dev] Holdup on Windows installers
AttachmentsNone  None  None  None  

Date2010-09-01 11:01
FromMichael Gogins
SubjectRe: [Cs-dev] Holdup on Windows installers
No. There is still the same problem. Moving the DLLs proves it's not
only a tclcsound or an FLTK problem. It still happens with just
rpa.dll.

Regards,
Mike

On Wed, Sep 1, 2010 at 3:24 AM,   wrote:
> So, just to be clear: if you move these two DLLs out of that directory,
> there is no problem?
>
> Victor
> ----- Original Message -----
> From: Michael Gogins 
> Date: Wednesday, September 1, 2010 12:09 am
> Subject: Re: [Cs-dev] Holdup on Windows installers
> To: Developer discussions 
>
>> In the development environment all shared libraries in the Csound
>> directory are loaded and interrogated for module entry points. Then
>> they are unloaded.
>>
>> All modules that are loaded for use also are unloaded
>> (FreeLibrary on
>> Windows, problematic) at the end of the CSound run.
>>
>> Regards,
>> Mike
>>
>> On Tue, Aug 31, 2010 at 5:55 PM,
>>  wrote:
>> > But tclcsound.dll is not a Csound plugin. How does that happen?
>> >
>> > ----- Original Message -----
>> > From: Michael Gogins 
>> > Date: Tuesday, August 31, 2010 10:46 pm
>> > Subject: Re: [Cs-dev] Holdup on Windows installers
>> > To: Developer discussions 
>> >
>> >> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>> >> and TDM MinGW, the code for handling exceptions across image
>> >> boundaries in multi-threaded code has been in flux for two
>> >> years. I'm
>> >> beginning to wonder why it ever worked. I'm going to revert the
>> >> compiler and see if that helps.
>> >>
>> >> Unloading libraries has also been an issue, I may just omit
>> that step
>> >> on Windows and see what happens.
>> >>
>> >> Note that at this point I am building FLTK itself, PortAudio, and
>> >> Csound with the same options for threading and exception handling.
>> >>
>> >> The same exception happens in tclcsound.dll and in rtpa.dll
>> even if
>> >> all plugins and modules that link with FLTK are removed from
>> the path
>> >> (though I hope I didn't miss anyway).
>> >>
>> >> On Tue, Aug 31, 2010 at 4:47 PM,
>> >>  wrote:
>> >> > I'm not sure that is the case. I think it's Csound calling the
>> >> FLTK function.
>> >> >
>> >> > ----- Original Message -----
>> >> > From: Felipe Sateler 
>> >> > Date: Tuesday, August 31, 2010 6:42 pm
>> >> > Subject: Re: [Cs-dev] Holdup on Windows installers
>> >> > To: Developer discussions 
>> >> >
>> >> >> What suprises me is that rtpa wants to call code from fltk.
>> >> >>
>> >> >> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>> >> >>  wrote:
>> >> >> > Looks to me like the fltk threading issue reported earlier.
>> >> >> >
>> >> >> > Cheers,
>> >> >> > ~andy.f
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>> >> >> >  wrote:
>> >> >> >> I've run into a serious roadblock on preparing the Csound
>> >> >> 5.12 windows
>> >> >> >> installer.
>> >> >> >>
>> >> >> >> The module loading  and module unloading code causes
>> >> segmentation>> >> violations with some libraries including
>> >> tclcsound.dll and
>> >> >> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>> >> >> And that means
>> >> >> >> QuteCsound and other hosts do not work.
>> >> >> >>
>> >> >> >> The problem appears to be exhibited in this stack trace and
>> >> >> seems to
>> >> >> >> have something to do with thread local storage in
>> MinGW. I
>> >> am using
>> >> >> >> the Twilight Dragon Media build of MinGW but I will try
>> >> the regular
>> >> >> >> build of MinGW now.
>> >> >> >>
>> >> >> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>> >> >> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>> >> >> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>> >> >> >> #2  0x6f082f26 in __mingw_TLScallback ()
>> >> >> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>> >> >> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>> >> >> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>> >> >> >> #4  0x77c597a0 in
>> >> >> ntdll!RtlQueryInformationActiveActivationContext ()
>> >> >> >>   from C:\Windows\system32\ntdll.dll
>> >> >> >> #5  0x6f080000 in ?? ()
>> >> >> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>> >> >> >>   from C:\Windows\system32\ntdll.dll
>> >> >> >> #7  0x6f082920 in __tlregdtor () from
>> >> >> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>> >> >> ntdll!AlpcMaxAllowedMessageLength ()
>> >> >> >>   from C:\Windows\system32\ntdll.dll
>> >> >> >> #9  0x00000000 in ?? ()
>> >> >> >>
>> >> >> >>
>> >> >> >> Any hints, anyone?
>> >> >> >>
>> >> >> >> Regards,
>> >> >> >> Mike
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> Michael Gogins
>> >> >> >> Irreducible Productions
>> >> >> >> http://www.michael-gogins.com
>> >> >> >> Michael dot Gogins at gmail dot com
>> >> >> >>
>> >> >> >> --------------------------------------------------------
>> ---
>> >> ---
>> >> >> ----------------
>> >> >> >> This SF.net Dev2Dev email is sponsored by:
>> >> >> >>
>> >> >> >> Show off your parallel programming skills.
>> >> >> >> Enter the Intel(R) Threading Challenge 2010.
>> >> >> >> http://p.sf.net/sfu/intel-thread-sfd
>> >> >> >> _______________________________________________
>> >> >> >> Csound-devel mailing list
>> >> >> >> Csound-devel@lists.sourceforge.net
>> >> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >>
>> >> >> >
>> >> >> > ---------------------------------------------------------
>> ---
>> >> ---
>> >> >> ---------------
>> >> >> > This SF.net Dev2Dev email is sponsored by:
>> >> >> >
>> >> >> > Show off your parallel programming skills.
>> >> >> > Enter the Intel(R) Threading Challenge 2010.
>> >> >> > http://p.sf.net/sfu/intel-thread-sfd
>> >> >> > _______________________________________________
>> >> >> > Csound-devel mailing list
>> >> >> > Csound-devel@lists.sourceforge.net
>> >> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >>
>> >> >> Saludos,
>> >> >> Felipe Sateler
>> >> >>
>> >> >> -----------------------------------------------------------
>> ---
>> >> ---
>> >> >> -------------
>> >> >> This SF.net Dev2Dev email is sponsored by:
>> >> >>
>> >> >> Show off your parallel programming skills.
>> >> >> Enter the Intel(R) Threading Challenge 2010.
>> >> >> http://p.sf.net/sfu/intel-thread-sfd
>> >> >> _______________________________________________
>> >> >> Csound-devel mailing list
>> >> >> Csound-devel@lists.sourceforge.net
>> >> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >
>> >> > Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>> >> > National University of Ireland, Maynooth
>> >> >
>> >> >
>> >> > ------------------------------------------------------------
>> ---
>> >> ---------------
>> >> > This SF.net Dev2Dev email is sponsored by:
>> >> >
>> >> > Show off your parallel programming skills.
>> >> > Enter the Intel(R) Threading Challenge 2010.
>> >> > http://p.sf.net/sfu/intel-thread-sfd
>> >> > _______________________________________________
>> >> > Csound-devel mailing list
>> >> > Csound-devel@lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Michael Gogins
>> >> Irreducible Productions
>> >> http://www.michael-gogins.com
>> >> Michael dot Gogins at gmail dot com
>> >>
>> >> --------------------------------------------------------------
>> ---
>> >> -------------
>> >> This SF.net Dev2Dev email is sponsored by:
>> >>
>> >> Show off your parallel programming skills.
>> >> Enter the Intel(R) Threading Challenge 2010.
>> >> http://p.sf.net/sfu/intel-thread-sfd
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> > Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>> > National University of Ireland, Maynooth
>> >
>> > ---------------------------------------------------------------
>> ---------------
>> > This SF.net Dev2Dev email is sponsored by:
>> >
>> > Show off your parallel programming skills.
>> > Enter the Intel(R) Threading Challenge 2010.
>> > http://p.sf.net/sfu/intel-thread-sfd
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>> -----------------------------------------------------------------
>> -------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
> National University of Ireland, Maynooth
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-01 11:35
FromVictor Lazzarini
SubjectRe: [Cs-dev] Holdup on Windows installers
Maybe reverting to an older version of pa? Possibly something to ask  
the portaudio developers.
To my knowledge, rtpa.c has not changed between 5.11 and 5.12.

Victor

On 1 Sep 2010, at 11:01, Michael Gogins wrote:

> No. There is still the same problem. Moving the DLLs proves it's not
> only a tclcsound or an FLTK problem. It still happens with just
> rpa.dll.
>
> Regards,
> Mike
>
> On Wed, Sep 1, 2010 at 3:24 AM,   wrote:
>> So, just to be clear: if you move these two DLLs out of that  
>> directory,
>> there is no problem?
>>
>> Victor
>> ----- Original Message -----
>> From: Michael Gogins 
>> Date: Wednesday, September 1, 2010 12:09 am
>> Subject: Re: [Cs-dev] Holdup on Windows installers
>> To: Developer discussions 
>>
>>> In the development environment all shared libraries in the Csound
>>> directory are loaded and interrogated for module entry points. Then
>>> they are unloaded.
>>>
>>> All modules that are loaded for use also are unloaded
>>> (FreeLibrary on
>>> Windows, problematic) at the end of the CSound run.
>>>
>>> Regards,
>>> Mike
>>>
>>> On Tue, Aug 31, 2010 at 5:55 PM,
>>>  wrote:
>>>> But tclcsound.dll is not a Csound plugin. How does that happen?
>>>>
>>>> ----- Original Message -----
>>>> From: Michael Gogins 
>>>> Date: Tuesday, August 31, 2010 10:46 pm
>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>> To: Developer discussions 
>>>>
>>>>> I'm pretty sure there is an interaction with FLTK. In GCC and  
>>>>> MinGW
>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>> boundaries in multi-threaded code has been in flux for two
>>>>> years. I'm
>>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>>> compiler and see if that helps.
>>>>>
>>>>> Unloading libraries has also been an issue, I may just omit
>>> that step
>>>>> on Windows and see what happens.
>>>>>
>>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>>> Csound with the same options for threading and exception handling.
>>>>>
>>>>> The same exception happens in tclcsound.dll and in rtpa.dll
>>> even if
>>>>> all plugins and modules that link with FLTK are removed from
>>> the path
>>>>> (though I hope I didn't miss anyway).
>>>>>
>>>>> On Tue, Aug 31, 2010 at 4:47 PM,
>>>>>  wrote:
>>>>>> I'm not sure that is the case. I think it's Csound calling the
>>>>> FLTK function.
>>>>>>
>>>>>> ----- Original Message -----
>>>>>> From: Felipe Sateler 
>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>> To: Developer discussions 
>>>>>>
>>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>>
>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>  wrote:
>>>>>>>> Looks to me like the fltk threading issue reported earlier.
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> ~andy.f
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>>  wrote:
>>>>>>>>> I've run into a serious roadblock on preparing the Csound
>>>>>>> 5.12 windows
>>>>>>>>> installer.
>>>>>>>>>
>>>>>>>>> The module loading  and module unloading code causes
>>>>> segmentation>> >> violations with some libraries including
>>>>> tclcsound.dll and
>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>>> And that means
>>>>>>>>> QuteCsound and other hosts do not work.
>>>>>>>>>
>>>>>>>>> The problem appears to be exhibited in this stack trace and
>>>>>>> seems to
>>>>>>>>> have something to do with thread local storage in
>>> MinGW. I
>>>>> am using
>>>>>>>>> the Twilight Dragon Media build of MinGW but I will try
>>>>> the regular
>>>>>>>>> build of MinGW now.
>>>>>>>>>
>>>>>>>>> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>>>> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>> #4  0x77c597a0 in
>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>> #5  0x6f080000 in ?? ()
>>>>>>>>> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>> #7  0x6f082920 in __tlregdtor () from
>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>> #9  0x00000000 in ?? ()
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Any hints, anyone?
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Mike
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Michael Gogins
>>>>>>>>> Irreducible Productions
>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>
>>>>>>>>> --------------------------------------------------------
>>> ---
>>>>> ---
>>>>>>> ----------------
>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>
>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------
>>> ---
>>>>> ---
>>>>>>> ---------------
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> Saludos,
>>>>>>> Felipe Sateler
>>>>>>>
>>>>>>> -----------------------------------------------------------
>>> ---
>>>>> ---
>>>>>>> -------------
>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>
>>>>>>> Show off your parallel programming skills.
>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>> National University of Ireland, Maynooth
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------
>>> ---
>>>>> ---------------
>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>
>>>>>> Show off your parallel programming skills.
>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>> --------------------------------------------------------------
>>> ---
>>>>> -------------
>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>
>>>>> Show off your parallel programming skills.
>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>> National University of Ireland, Maynooth
>>>>
>>>> ---------------------------------------------------------------
>>> ---------------
>>>> This SF.net Dev2Dev email is sponsored by:
>>>>
>>>> Show off your parallel programming skills.
>>>> Enter the Intel(R) Threading Challenge 2010.
>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>> -----------------------------------------------------------------
>>> -------------
>>> This SF.net Dev2Dev email is sponsored by:
>>>
>>> Show off your parallel programming skills.
>>> Enter the Intel(R) Threading Challenge 2010.
>>> http://p.sf.net/sfu/intel-thread-sfd
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>> National University of Ireland, Maynooth
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>
>
>
> -- 
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-01 11:55
Fromandy fillebrown
SubjectRe: [Cs-dev] Holdup on Windows installers
The 3 plugins that are problematic for QuteCsound are virtual.dll,
widgets.dll, and fluidOpcodes.dll, although I'm not sure
fluidOpcodes.dll does anything with fltk.  Regardless, removing those
3 clears the problem up for QuteCsound.

Cheers,
~ andy.f



On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
 wrote:
> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
> and TDM MinGW, the code for handling exceptions across image
> boundaries in multi-threaded code has been in flux for two years. I'm
> beginning to wonder why it ever worked. I'm going to revert the
> compiler and see if that helps.
>
> Unloading libraries has also been an issue, I may just omit that step
> on Windows and see what happens.
>
> Note that at this point I am building FLTK itself, PortAudio, and
> Csound with the same options for threading and exception handling.
>
> The same exception happens in tclcsound.dll and in rtpa.dll even if
> all plugins and modules that link with FLTK are removed from the path
> (though I hope I didn't miss anyway).
>
> On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
>> I'm not sure that is the case. I think it's Csound calling the FLTK function.
>>
>> ----- Original Message -----
>> From: Felipe Sateler 
>> Date: Tuesday, August 31, 2010 6:42 pm
>> Subject: Re: [Cs-dev] Holdup on Windows installers
>> To: Developer discussions 
>>
>>> What suprises me is that rtpa wants to call code from fltk.
>>>
>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>  wrote:
>>> > Looks to me like the fltk threading issue reported earlier.
>>> >
>>> > Cheers,
>>> > ~andy.f
>>> >
>>> >
>>> >
>>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>> >  wrote:
>>> >> I've run into a serious roadblock on preparing the Csound
>>> 5.12 windows
>>> >> installer.
>>> >>
>>> >> The module loading  and module unloading code causes segmentation
>>> >> violations with some libraries including tclcsound.dll and
>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>> And that means
>>> >> QuteCsound and other hosts do not work.
>>> >>
>>> >> The problem appears to be exhibited in this stack trace and
>>> seems to
>>> >> have something to do with thread local storage in MinGW. I am using
>>> >> the Twilight Dragon Media build of MinGW but I will try the regular
>>> >> build of MinGW now.
>>> >>
>>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>> >> #4  0x77c597a0 in
>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>> >>   from C:\Windows\system32\ntdll.dll
>>> >> #5  0x6f080000 in ?? ()
>>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>> >>   from C:\Windows\system32\ntdll.dll
>>> >> #7  0x6f082920 in __tlregdtor () from
>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>> ntdll!AlpcMaxAllowedMessageLength ()
>>> >>   from C:\Windows\system32\ntdll.dll
>>> >> #9  0x00000000 in ?? ()
>>> >>
>>> >>
>>> >> Any hints, anyone?
>>> >>
>>> >> Regards,
>>> >> Mike
>>> >>
>>> >>
>>> >> --
>>> >> Michael Gogins
>>> >> Irreducible Productions
>>> >> http://www.michael-gogins.com
>>> >> Michael dot Gogins at gmail dot com
>>> >>
>>> >> --------------------------------------------------------------
>>> ----------------
>>> >> This SF.net Dev2Dev email is sponsored by:
>>> >>
>>> >> Show off your parallel programming skills.
>>> >> Enter the Intel(R) Threading Challenge 2010.
>>> >> http://p.sf.net/sfu/intel-thread-sfd
>>> >> _______________________________________________
>>> >> Csound-devel mailing list
>>> >> Csound-devel@lists.sourceforge.net
>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >>
>>> >
>>> > ---------------------------------------------------------------
>>> ---------------
>>> > This SF.net Dev2Dev email is sponsored by:
>>> >
>>> > Show off your parallel programming skills.
>>> > Enter the Intel(R) Threading Challenge 2010.
>>> > http://p.sf.net/sfu/intel-thread-sfd
>>> > _______________________________________________
>>> > Csound-devel mailing list
>>> > Csound-devel@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>>
>>>
>>>
>>> --
>>>
>>> Saludos,
>>> Felipe Sateler
>>>
>>> -----------------------------------------------------------------
>>> -------------
>>> This SF.net Dev2Dev email is sponsored by:
>>>
>>> Show off your parallel programming skills.
>>> Enter the Intel(R) Threading Challenge 2010.
>>> http://p.sf.net/sfu/intel-thread-sfd
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>> National University of Ireland, Maynooth
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-01 15:30
FromMichael Gogins
SubjectRe: [Cs-dev] Holdup on Windows installers
rtpa.c has indeed not changed.

I will try reverting PortAudio. I have not yet tried reverting the
compiler. I have excluded FLTK as a cause of this problem. It happens
when FreeLibrary is called on the rtpa DLL handle.

I can also try linking the PortAudio library statically.

Regards,
Mike

On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
 wrote:
> The 3 plugins that are problematic for QuteCsound are virtual.dll,
> widgets.dll, and fluidOpcodes.dll, although I'm not sure
> fluidOpcodes.dll does anything with fltk.  Regardless, removing those
> 3 clears the problem up for QuteCsound.
>
> Cheers,
> ~ andy.f
>
>
>
> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>  wrote:
>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>> and TDM MinGW, the code for handling exceptions across image
>> boundaries in multi-threaded code has been in flux for two years. I'm
>> beginning to wonder why it ever worked. I'm going to revert the
>> compiler and see if that helps.
>>
>> Unloading libraries has also been an issue, I may just omit that step
>> on Windows and see what happens.
>>
>> Note that at this point I am building FLTK itself, PortAudio, and
>> Csound with the same options for threading and exception handling.
>>
>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>> all plugins and modules that link with FLTK are removed from the path
>> (though I hope I didn't miss anyway).
>>
>> On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
>>> I'm not sure that is the case. I think it's Csound calling the FLTK function.
>>>
>>> ----- Original Message -----
>>> From: Felipe Sateler 
>>> Date: Tuesday, August 31, 2010 6:42 pm
>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>> To: Developer discussions 
>>>
>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>
>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>  wrote:
>>>> > Looks to me like the fltk threading issue reported earlier.
>>>> >
>>>> > Cheers,
>>>> > ~andy.f
>>>> >
>>>> >
>>>> >
>>>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>> >  wrote:
>>>> >> I've run into a serious roadblock on preparing the Csound
>>>> 5.12 windows
>>>> >> installer.
>>>> >>
>>>> >> The module loading  and module unloading code causes segmentation
>>>> >> violations with some libraries including tclcsound.dll and
>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>> And that means
>>>> >> QuteCsound and other hosts do not work.
>>>> >>
>>>> >> The problem appears to be exhibited in this stack trace and
>>>> seems to
>>>> >> have something to do with thread local storage in MinGW. I am using
>>>> >> the Twilight Dragon Media build of MinGW but I will try the regular
>>>> >> build of MinGW now.
>>>> >>
>>>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>> >> #4  0x77c597a0 in
>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>> >>   from C:\Windows\system32\ntdll.dll
>>>> >> #5  0x6f080000 in ?? ()
>>>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>> >>   from C:\Windows\system32\ntdll.dll
>>>> >> #7  0x6f082920 in __tlregdtor () from
>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>> >>   from C:\Windows\system32\ntdll.dll
>>>> >> #9  0x00000000 in ?? ()
>>>> >>
>>>> >>
>>>> >> Any hints, anyone?
>>>> >>
>>>> >> Regards,
>>>> >> Mike
>>>> >>
>>>> >>
>>>> >> --
>>>> >> Michael Gogins
>>>> >> Irreducible Productions
>>>> >> http://www.michael-gogins.com
>>>> >> Michael dot Gogins at gmail dot com
>>>> >>
>>>> >> --------------------------------------------------------------
>>>> ----------------
>>>> >> This SF.net Dev2Dev email is sponsored by:
>>>> >>
>>>> >> Show off your parallel programming skills.
>>>> >> Enter the Intel(R) Threading Challenge 2010.
>>>> >> http://p.sf.net/sfu/intel-thread-sfd
>>>> >> _______________________________________________
>>>> >> Csound-devel mailing list
>>>> >> Csound-devel@lists.sourceforge.net
>>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> >>
>>>> >
>>>> > ---------------------------------------------------------------
>>>> ---------------
>>>> > This SF.net Dev2Dev email is sponsored by:
>>>> >
>>>> > Show off your parallel programming skills.
>>>> > Enter the Intel(R) Threading Challenge 2010.
>>>> > http://p.sf.net/sfu/intel-thread-sfd
>>>> > _______________________________________________
>>>> > Csound-devel mailing list
>>>> > Csound-devel@lists.sourceforge.net
>>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Saludos,
>>>> Felipe Sateler
>>>>
>>>> -----------------------------------------------------------------
>>>> -------------
>>>> This SF.net Dev2Dev email is sponsored by:
>>>>
>>>> Show off your parallel programming skills.
>>>> Enter the Intel(R) Threading Challenge 2010.
>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>> National University of Ireland, Maynooth
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.net Dev2Dev email is sponsored by:
>>>
>>> Show off your parallel programming skills.
>>> Enter the Intel(R) Threading Challenge 2010.
>>> http://p.sf.net/sfu/intel-thread-sfd
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-01 16:36
FromMichael Gogins
SubjectRe: [Cs-dev] Holdup on Windows installers
I solved the problem.

The cause is that PortAudio contains C++ code, but the rtpa module was
being compiled as C code, lacking the MinGW libraries required to
handle exceptions that are thrown from multi-threaded code in DLLs.
The result was that when the PortAudio module was unloaded, there was
a segmentation fault.

I fixed the problem by creating a shim rtpa.cpp file that #includes
rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
compiled and linked instead of rtpa.c. There is no longer a
segmentation fault when the rtpa module is unloaded, and Csound can be
stopped and restarted in QuteCsound.

Regards,
Mike

On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
 wrote:
> rtpa.c has indeed not changed.
>
> I will try reverting PortAudio. I have not yet tried reverting the
> compiler. I have excluded FLTK as a cause of this problem. It happens
> when FreeLibrary is called on the rtpa DLL handle.
>
> I can also try linking the PortAudio library statically.
>
> Regards,
> Mike
>
> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>  wrote:
>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>> fluidOpcodes.dll does anything with fltk.  Regardless, removing those
>> 3 clears the problem up for QuteCsound.
>>
>> Cheers,
>> ~ andy.f
>>
>>
>>
>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>  wrote:
>>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>>> and TDM MinGW, the code for handling exceptions across image
>>> boundaries in multi-threaded code has been in flux for two years. I'm
>>> beginning to wonder why it ever worked. I'm going to revert the
>>> compiler and see if that helps.
>>>
>>> Unloading libraries has also been an issue, I may just omit that step
>>> on Windows and see what happens.
>>>
>>> Note that at this point I am building FLTK itself, PortAudio, and
>>> Csound with the same options for threading and exception handling.
>>>
>>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>>> all plugins and modules that link with FLTK are removed from the path
>>> (though I hope I didn't miss anyway).
>>>
>>> On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
>>>> I'm not sure that is the case. I think it's Csound calling the FLTK function.
>>>>
>>>> ----- Original Message -----
>>>> From: Felipe Sateler 
>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>> To: Developer discussions 
>>>>
>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>
>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>  wrote:
>>>>> > Looks to me like the fltk threading issue reported earlier.
>>>>> >
>>>>> > Cheers,
>>>>> > ~andy.f
>>>>> >
>>>>> >
>>>>> >
>>>>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>> >  wrote:
>>>>> >> I've run into a serious roadblock on preparing the Csound
>>>>> 5.12 windows
>>>>> >> installer.
>>>>> >>
>>>>> >> The module loading  and module unloading code causes segmentation
>>>>> >> violations with some libraries including tclcsound.dll and
>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>> And that means
>>>>> >> QuteCsound and other hosts do not work.
>>>>> >>
>>>>> >> The problem appears to be exhibited in this stack trace and
>>>>> seems to
>>>>> >> have something to do with thread local storage in MinGW. I am using
>>>>> >> the Twilight Dragon Media build of MinGW but I will try the regular
>>>>> >> build of MinGW now.
>>>>> >>
>>>>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>> >> #4  0x77c597a0 in
>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>> >> #5  0x6f080000 in ?? ()
>>>>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>> >> #7  0x6f082920 in __tlregdtor () from
>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>> >> #9  0x00000000 in ?? ()
>>>>> >>
>>>>> >>
>>>>> >> Any hints, anyone?
>>>>> >>
>>>>> >> Regards,
>>>>> >> Mike
>>>>> >>
>>>>> >>
>>>>> >> --
>>>>> >> Michael Gogins
>>>>> >> Irreducible Productions
>>>>> >> http://www.michael-gogins.com
>>>>> >> Michael dot Gogins at gmail dot com
>>>>> >>
>>>>> >> --------------------------------------------------------------
>>>>> ----------------
>>>>> >> This SF.net Dev2Dev email is sponsored by:
>>>>> >>
>>>>> >> Show off your parallel programming skills.
>>>>> >> Enter the Intel(R) Threading Challenge 2010.
>>>>> >> http://p.sf.net/sfu/intel-thread-sfd
>>>>> >> _______________________________________________
>>>>> >> Csound-devel mailing list
>>>>> >> Csound-devel@lists.sourceforge.net
>>>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> >>
>>>>> >
>>>>> > ---------------------------------------------------------------
>>>>> ---------------
>>>>> > This SF.net Dev2Dev email is sponsored by:
>>>>> >
>>>>> > Show off your parallel programming skills.
>>>>> > Enter the Intel(R) Threading Challenge 2010.
>>>>> > http://p.sf.net/sfu/intel-thread-sfd
>>>>> > _______________________________________________
>>>>> > Csound-devel mailing list
>>>>> > Csound-devel@lists.sourceforge.net
>>>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Saludos,
>>>>> Felipe Sateler
>>>>>
>>>>> -----------------------------------------------------------------
>>>>> -------------
>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>
>>>>> Show off your parallel programming skills.
>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>> National University of Ireland, Maynooth
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF.net Dev2Dev email is sponsored by:
>>>>
>>>> Show off your parallel programming skills.
>>>> Enter the Intel(R) Threading Challenge 2010.
>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.net Dev2Dev email is sponsored by:
>>>
>>> Show off your parallel programming skills.
>>> Enter the Intel(R) Threading Challenge 2010.
>>> http://p.sf.net/sfu/intel-thread-sfd
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-01 16:46
FromFelipe Sateler
SubjectRe: [Cs-dev] Holdup on Windows installers
Shouldn't this be solved on the portaudio side? I cannot imagine why
calling a C library that happens to have some implementation details in
C++ from a C source file should cause trouble.

On 01/09/10 11:36, Michael Gogins wrote:
> I solved the problem.
> 
> The cause is that PortAudio contains C++ code, but the rtpa module was
> being compiled as C code, lacking the MinGW libraries required to
> handle exceptions that are thrown from multi-threaded code in DLLs.
> The result was that when the PortAudio module was unloaded, there was
> a segmentation fault.
> 
> I fixed the problem by creating a shim rtpa.cpp file that #includes
> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
> compiled and linked instead of rtpa.c. There is no longer a
> segmentation fault when the rtpa module is unloaded, and Csound can be
> stopped and restarted in QuteCsound.
> 
> Regards,
> Mike
> 
> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>  wrote:
>> rtpa.c has indeed not changed.
>>
>> I will try reverting PortAudio. I have not yet tried reverting the
>> compiler. I have excluded FLTK as a cause of this problem. It happens
>> when FreeLibrary is called on the rtpa DLL handle.
>>
>> I can also try linking the PortAudio library statically.
>>
>> Regards,
>> Mike
>>
>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>  wrote:
>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing those
>>> 3 clears the problem up for QuteCsound.
>>>
>>> Cheers,
>>> ~ andy.f
>>>
>>>
>>>
>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>  wrote:
>>>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>>>> and TDM MinGW, the code for handling exceptions across image
>>>> boundaries in multi-threaded code has been in flux for two years. I'm
>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>> compiler and see if that helps.
>>>>
>>>> Unloading libraries has also been an issue, I may just omit that step
>>>> on Windows and see what happens.
>>>>
>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>> Csound with the same options for threading and exception handling.
>>>>
>>>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>>>> all plugins and modules that link with FLTK are removed from the path
>>>> (though I hope I didn't miss anyway).
>>>>
>>>> On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
>>>>> I'm not sure that is the case. I think it's Csound calling the FLTK function.
>>>>>
>>>>> ----- Original Message -----
>>>>> From: Felipe Sateler 
>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>> To: Developer discussions 
>>>>>
>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>
>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>  wrote:
>>>>>>> Looks to me like the fltk threading issue reported earlier.
>>>>>>>
>>>>>>> Cheers,
>>>>>>> ~andy.f
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>  wrote:
>>>>>>>> I've run into a serious roadblock on preparing the Csound
>>>>>> 5.12 windows
>>>>>>>> installer.
>>>>>>>>
>>>>>>>> The module loading  and module unloading code causes segmentation
>>>>>>>> violations with some libraries including tclcsound.dll and
>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>> And that means
>>>>>>>> QuteCsound and other hosts do not work.
>>>>>>>>
>>>>>>>> The problem appears to be exhibited in this stack trace and
>>>>>> seems to
>>>>>>>> have something to do with thread local storage in MinGW. I am using
>>>>>>>> the Twilight Dragon Media build of MinGW but I will try the regular
>>>>>>>> build of MinGW now.
>>>>>>>>
>>>>>>>> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>>> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>> #4  0x77c597a0 in
>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>> #5  0x6f080000 in ?? ()
>>>>>>>> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>> #7  0x6f082920 in __tlregdtor () from
>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>> #9  0x00000000 in ?? ()
>>>>>>>>
>>>>>>>>
>>>>>>>> Any hints, anyone?
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Mike
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Michael Gogins
>>>>>>>> Irreducible Productions
>>>>>>>> http://www.michael-gogins.com
>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>
>>>>>>>> --------------------------------------------------------------
>>>>>> ----------------
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------
>>>>>> ---------------
>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>
>>>>>>> Show off your parallel programming skills.
>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Saludos,
>>>>>> Felipe Sateler
>>>>>>
>>>>>> -----------------------------------------------------------------
>>>>>> -------------
>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>
>>>>>> Show off your parallel programming skills.
>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>> National University of Ireland, Maynooth
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>
>>>>> Show off your parallel programming skills.
>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF.net Dev2Dev email is sponsored by:
>>>>
>>>> Show off your parallel programming skills.
>>>> Enter the Intel(R) Threading Challenge 2010.
>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.net Dev2Dev email is sponsored by:
>>>
>>> Show off your parallel programming skills.
>>> Enter the Intel(R) Threading Challenge 2010.
>>> http://p.sf.net/sfu/intel-thread-sfd
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
> 
> 
> 


-- 
Saludos,
Felipe Sateler

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-01 17:00
FromMichael Gogins
SubjectRe: [Cs-dev] Holdup on Windows installers
It does cause trouble, and it is not (only) a PortAudio problem. It is
indeed (also) a Csound problem. The behavior of the MinGW compiler for
handling exceptions in shared libraries has changed and caused this
problem for our code.

The underlying problem is that C++ code can throw exceptions, but C
code cannot. With the new MinGW compiler, exception handling for C++
is not done in the runtime library any more, but in a supplementary
shared library. This library is not linked into C executables, only
into C++ executables. Perhaps the old compiler just ignored these
exceptions, or perhaps they were handled properly from the runtime
library, but in any case, in the new compiler  they cause a segfault
unless the exception handling library is linked in by compiling and
linking rtpa as C++ code.

Regards,
Mike

On Wed, Sep 1, 2010 at 11:46 AM, Felipe Sateler  wrote:
> Shouldn't this be solved on the portaudio side? I cannot imagine why
> calling a C library that happens to have some implementation details in
> C++ from a C source file should cause trouble.
>
> On 01/09/10 11:36, Michael Gogins wrote:
>> I solved the problem.
>>
>> The cause is that PortAudio contains C++ code, but the rtpa module was
>> being compiled as C code, lacking the MinGW libraries required to
>> handle exceptions that are thrown from multi-threaded code in DLLs.
>> The result was that when the PortAudio module was unloaded, there was
>> a segmentation fault.
>>
>> I fixed the problem by creating a shim rtpa.cpp file that #includes
>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>> compiled and linked instead of rtpa.c. There is no longer a
>> segmentation fault when the rtpa module is unloaded, and Csound can be
>> stopped and restarted in QuteCsound.
>>
>> Regards,
>> Mike
>>
>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>  wrote:
>>> rtpa.c has indeed not changed.
>>>
>>> I will try reverting PortAudio. I have not yet tried reverting the
>>> compiler. I have excluded FLTK as a cause of this problem. It happens
>>> when FreeLibrary is called on the rtpa DLL handle.
>>>
>>> I can also try linking the PortAudio library statically.
>>>
>>> Regards,
>>> Mike
>>>
>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>  wrote:
>>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing those
>>>> 3 clears the problem up for QuteCsound.
>>>>
>>>> Cheers,
>>>> ~ andy.f
>>>>
>>>>
>>>>
>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>  wrote:
>>>>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>> boundaries in multi-threaded code has been in flux for two years. I'm
>>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>>> compiler and see if that helps.
>>>>>
>>>>> Unloading libraries has also been an issue, I may just omit that step
>>>>> on Windows and see what happens.
>>>>>
>>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>>> Csound with the same options for threading and exception handling.
>>>>>
>>>>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>>>>> all plugins and modules that link with FLTK are removed from the path
>>>>> (though I hope I didn't miss anyway).
>>>>>
>>>>> On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
>>>>>> I'm not sure that is the case. I think it's Csound calling the FLTK function.
>>>>>>
>>>>>> ----- Original Message -----
>>>>>> From: Felipe Sateler 
>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>> To: Developer discussions 
>>>>>>
>>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>>
>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>  wrote:
>>>>>>>> Looks to me like the fltk threading issue reported earlier.
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> ~andy.f
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>>  wrote:
>>>>>>>>> I've run into a serious roadblock on preparing the Csound
>>>>>>> 5.12 windows
>>>>>>>>> installer.
>>>>>>>>>
>>>>>>>>> The module loading  and module unloading code causes segmentation
>>>>>>>>> violations with some libraries including tclcsound.dll and
>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>>> And that means
>>>>>>>>> QuteCsound and other hosts do not work.
>>>>>>>>>
>>>>>>>>> The problem appears to be exhibited in this stack trace and
>>>>>>> seems to
>>>>>>>>> have something to do with thread local storage in MinGW. I am using
>>>>>>>>> the Twilight Dragon Media build of MinGW but I will try the regular
>>>>>>>>> build of MinGW now.
>>>>>>>>>
>>>>>>>>> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>>>> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>> #4  0x77c597a0 in
>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>> #5  0x6f080000 in ?? ()
>>>>>>>>> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>> #7  0x6f082920 in __tlregdtor () from
>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>> #9  0x00000000 in ?? ()
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Any hints, anyone?
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Mike
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Michael Gogins
>>>>>>>>> Irreducible Productions
>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>
>>>>>>>>> --------------------------------------------------------------
>>>>>>> ----------------
>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>
>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------
>>>>>>> ---------------
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> Saludos,
>>>>>>> Felipe Sateler
>>>>>>>
>>>>>>> -----------------------------------------------------------------
>>>>>>> -------------
>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>
>>>>>>> Show off your parallel programming skills.
>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>> National University of Ireland, Maynooth
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>
>>>>>> Show off your parallel programming skills.
>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>
>>>>> Show off your parallel programming skills.
>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF.net Dev2Dev email is sponsored by:
>>>>
>>>> Show off your parallel programming skills.
>>>> Enter the Intel(R) Threading Challenge 2010.
>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>
>>
>>
>
>
> --
> Saludos,
> Felipe Sateler
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-01 17:34
FromVictor Lazzarini
SubjectRe: [Cs-dev] Holdup on Windows installers
Well done. Michael, this must have been a tricky one to diagnose.  
Maybe a note can be dropped to the portaudio list just warning about  
this possible
behaviour in C programs (after all portaudio has a C API and it's  
likely that people will call it from C code).

Victor

On 1 Sep 2010, at 17:00, Michael Gogins wrote:

> It does cause trouble, and it is not (only) a PortAudio problem. It is
> indeed (also) a Csound problem. The behavior of the MinGW compiler for
> handling exceptions in shared libraries has changed and caused this
> problem for our code.
>
> The underlying problem is that C++ code can throw exceptions, but C
> code cannot. With the new MinGW compiler, exception handling for C++
> is not done in the runtime library any more, but in a supplementary
> shared library. This library is not linked into C executables, only
> into C++ executables. Perhaps the old compiler just ignored these
> exceptions, or perhaps they were handled properly from the runtime
> library, but in any case, in the new compiler  they cause a segfault
> unless the exception handling library is linked in by compiling and
> linking rtpa as C++ code.
>
> Regards,
> Mike
>
> On Wed, Sep 1, 2010 at 11:46 AM, Felipe Sateler   
> wrote:
>> Shouldn't this be solved on the portaudio side? I cannot imagine why
>> calling a C library that happens to have some implementation  
>> details in
>> C++ from a C source file should cause trouble.
>>
>> On 01/09/10 11:36, Michael Gogins wrote:
>>> I solved the problem.
>>>
>>> The cause is that PortAudio contains C++ code, but the rtpa module  
>>> was
>>> being compiled as C code, lacking the MinGW libraries required to
>>> handle exceptions that are thrown from multi-threaded code in DLLs.
>>> The result was that when the PortAudio module was unloaded, there  
>>> was
>>> a segmentation fault.
>>>
>>> I fixed the problem by creating a shim rtpa.cpp file that #includes
>>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>>> compiled and linked instead of rtpa.c. There is no longer a
>>> segmentation fault when the rtpa module is unloaded, and Csound  
>>> can be
>>> stopped and restarted in QuteCsound.
>>>
>>> Regards,
>>> Mike
>>>
>>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>>  wrote:
>>>> rtpa.c has indeed not changed.
>>>>
>>>> I will try reverting PortAudio. I have not yet tried reverting the
>>>> compiler. I have excluded FLTK as a cause of this problem. It  
>>>> happens
>>>> when FreeLibrary is called on the rtpa DLL handle.
>>>>
>>>> I can also try linking the PortAudio library statically.
>>>>
>>>> Regards,
>>>> Mike
>>>>
>>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>>  wrote:
>>>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing  
>>>>> those
>>>>> 3 clears the problem up for QuteCsound.
>>>>>
>>>>> Cheers,
>>>>> ~ andy.f
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>>  wrote:
>>>>>> I'm pretty sure there is an interaction with FLTK. In GCC and  
>>>>>> MinGW
>>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>>> boundaries in multi-threaded code has been in flux for two  
>>>>>> years. I'm
>>>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>>>> compiler and see if that helps.
>>>>>>
>>>>>> Unloading libraries has also been an issue, I may just omit  
>>>>>> that step
>>>>>> on Windows and see what happens.
>>>>>>
>>>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>>>> Csound with the same options for threading and exception  
>>>>>> handling.
>>>>>>
>>>>>> The same exception happens in tclcsound.dll and in rtpa.dll  
>>>>>> even if
>>>>>> all plugins and modules that link with FLTK are removed from  
>>>>>> the path
>>>>>> (though I hope I didn't miss anyway).
>>>>>>
>>>>>> On Tue, Aug 31, 2010 at 4:47 PM,    
>>>>>> wrote:
>>>>>>> I'm not sure that is the case. I think it's Csound calling the  
>>>>>>> FLTK function.
>>>>>>>
>>>>>>> ----- Original Message -----
>>>>>>> From: Felipe Sateler 
>>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>>> To: Developer discussions 
>>>>>>>
>>>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>>>
>>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>>  wrote:
>>>>>>>>> Looks to me like the fltk threading issue reported earlier.
>>>>>>>>>
>>>>>>>>> Cheers,
>>>>>>>>> ~andy.f
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>>>  wrote:
>>>>>>>>>> I've run into a serious roadblock on preparing the Csound
>>>>>>>> 5.12 windows
>>>>>>>>>> installer.
>>>>>>>>>>
>>>>>>>>>> The module loading  and module unloading code causes  
>>>>>>>>>> segmentation
>>>>>>>>>> violations with some libraries including tclcsound.dll and
>>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>>>> And that means
>>>>>>>>>> QuteCsound and other hosts do not work.
>>>>>>>>>>
>>>>>>>>>> The problem appears to be exhibited in this stack trace and
>>>>>>>> seems to
>>>>>>>>>> have something to do with thread local storage in MinGW. I  
>>>>>>>>>> am using
>>>>>>>>>> the Twilight Dragon Media build of MinGW but I will try the  
>>>>>>>>>> regular
>>>>>>>>>> build of MinGW now.
>>>>>>>>>>
>>>>>>>>>> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>>>>> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>> #4  0x77c597a0 in
>>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>> #5  0x6f080000 in ?? ()
>>>>>>>>>> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>> #7  0x6f082920 in __tlregdtor () from
>>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>> #9  0x00000000 in ?? ()
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Any hints, anyone?
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>> Mike
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Michael Gogins
>>>>>>>>>> Irreducible Productions
>>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>
>>>>>>>>>> --------------------------------------------------------------
>>>>>>>> ----------------
>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>
>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------
>>>>>>>> ---------------
>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>
>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> Saludos,
>>>>>>>> Felipe Sateler
>>>>>>>>
>>>>>>>> -----------------------------------------------------------------
>>>>>>>> -------------
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>>> National University of Ireland, Maynooth
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>
>>>>>>> Show off your parallel programming skills.
>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>
>>>>>> Show off your parallel programming skills.
>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>
>>>>> Show off your parallel programming skills.
>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>
>>>
>>>
>>
>>
>> --
>> Saludos,
>> Felipe Sateler
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> -- 
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-01 17:47
Fromandy fillebrown
SubjectRe: [Cs-dev] Holdup on Windows installers
Sweet!  Thank you for figuring this out.  Does this mean we won't have
to remove fluidOpcodes.dll, virtual.dll, and widgets.dll to get
QuteCsound to run correctly, or is it unrelated?

Cheers,
~ andy.f



On Wed, Sep 1, 2010 at 11:36 AM, Michael Gogins
 wrote:
> I solved the problem.
>
> The cause is that PortAudio contains C++ code, but the rtpa module was
> being compiled as C code, lacking the MinGW libraries required to
> handle exceptions that are thrown from multi-threaded code in DLLs.
> The result was that when the PortAudio module was unloaded, there was
> a segmentation fault.
>
> I fixed the problem by creating a shim rtpa.cpp file that #includes
> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
> compiled and linked instead of rtpa.c. There is no longer a
> segmentation fault when the rtpa module is unloaded, and Csound can be
> stopped and restarted in QuteCsound.
>
> Regards,
> Mike
>
> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>  wrote:
>> rtpa.c has indeed not changed.
>>
>> I will try reverting PortAudio. I have not yet tried reverting the
>> compiler. I have excluded FLTK as a cause of this problem. It happens
>> when FreeLibrary is called on the rtpa DLL handle.
>>
>> I can also try linking the PortAudio library statically.
>>
>> Regards,
>> Mike
>>
>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>  wrote:
>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing those
>>> 3 clears the problem up for QuteCsound.
>>>
>>> Cheers,
>>> ~ andy.f
>>>
>>>
>>>
>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>  wrote:
>>>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>>>> and TDM MinGW, the code for handling exceptions across image
>>>> boundaries in multi-threaded code has been in flux for two years. I'm
>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>> compiler and see if that helps.
>>>>
>>>> Unloading libraries has also been an issue, I may just omit that step
>>>> on Windows and see what happens.
>>>>
>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>> Csound with the same options for threading and exception handling.
>>>>
>>>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>>>> all plugins and modules that link with FLTK are removed from the path
>>>> (though I hope I didn't miss anyway).
>>>>
>>>> On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
>>>>> I'm not sure that is the case. I think it's Csound calling the FLTK function.
>>>>>
>>>>> ----- Original Message -----
>>>>> From: Felipe Sateler 
>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>> To: Developer discussions 
>>>>>
>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>
>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>  wrote:
>>>>>> > Looks to me like the fltk threading issue reported earlier.
>>>>>> >
>>>>>> > Cheers,
>>>>>> > ~andy.f
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>> >  wrote:
>>>>>> >> I've run into a serious roadblock on preparing the Csound
>>>>>> 5.12 windows
>>>>>> >> installer.
>>>>>> >>
>>>>>> >> The module loading  and module unloading code causes segmentation
>>>>>> >> violations with some libraries including tclcsound.dll and
>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>> And that means
>>>>>> >> QuteCsound and other hosts do not work.
>>>>>> >>
>>>>>> >> The problem appears to be exhibited in this stack trace and
>>>>>> seems to
>>>>>> >> have something to do with thread local storage in MinGW. I am using
>>>>>> >> the Twilight Dragon Media build of MinGW but I will try the regular
>>>>>> >> build of MinGW now.
>>>>>> >>
>>>>>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>> >> #4  0x77c597a0 in
>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>> >> #5  0x6f080000 in ?? ()
>>>>>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>> >> #7  0x6f082920 in __tlregdtor () from
>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>> >> #9  0x00000000 in ?? ()
>>>>>> >>
>>>>>> >>
>>>>>> >> Any hints, anyone?
>>>>>> >>
>>>>>> >> Regards,
>>>>>> >> Mike
>>>>>> >>
>>>>>> >>
>>>>>> >> --
>>>>>> >> Michael Gogins
>>>>>> >> Irreducible Productions
>>>>>> >> http://www.michael-gogins.com
>>>>>> >> Michael dot Gogins at gmail dot com
>>>>>> >>
>>>>>> >> --------------------------------------------------------------
>>>>>> ----------------
>>>>>> >> This SF.net Dev2Dev email is sponsored by:
>>>>>> >>
>>>>>> >> Show off your parallel programming skills.
>>>>>> >> Enter the Intel(R) Threading Challenge 2010.
>>>>>> >> http://p.sf.net/sfu/intel-thread-sfd
>>>>>> >> _______________________________________________
>>>>>> >> Csound-devel mailing list
>>>>>> >> Csound-devel@lists.sourceforge.net
>>>>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >>
>>>>>> >
>>>>>> > ---------------------------------------------------------------
>>>>>> ---------------
>>>>>> > This SF.net Dev2Dev email is sponsored by:
>>>>>> >
>>>>>> > Show off your parallel programming skills.
>>>>>> > Enter the Intel(R) Threading Challenge 2010.
>>>>>> > http://p.sf.net/sfu/intel-thread-sfd
>>>>>> > _______________________________________________
>>>>>> > Csound-devel mailing list
>>>>>> > Csound-devel@lists.sourceforge.net
>>>>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> >
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Saludos,
>>>>>> Felipe Sateler
>>>>>>
>>>>>> -----------------------------------------------------------------
>>>>>> -------------
>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>
>>>>>> Show off your parallel programming skills.
>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>> National University of Ireland, Maynooth
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>
>>>>> Show off your parallel programming skills.
>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF.net Dev2Dev email is sponsored by:
>>>>
>>>> Show off your parallel programming skills.
>>>> Enter the Intel(R) Threading Challenge 2010.
>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.net Dev2Dev email is sponsored by:
>>>
>>> Show off your parallel programming skills.
>>> Enter the Intel(R) Threading Challenge 2010.
>>> http://p.sf.net/sfu/intel-thread-sfd
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-01 19:01
FromMichael Gogins
SubjectRe: [Cs-dev] Holdup on Windows installers
It was tricky and we are not out of the woods yet. First, there is a
problem with FLTK, this DLL exception problem is in addition to the
FLTK problem although the FLTK problem may be another form of the DLL
exception problem. And this affects CsoundVST, vst4cs, the FLTK
widgets, the virtual keyboard, and the Fluid opcodes.

Second, I can indeed start and stop performances now in QuteCsound
which I could not do before, but I still cannot let a performance run
out. It hangs at the end. I think I probably need to build QuteCsound
itself with the relevant options. I am working on that now.

I'm pretty sure this means that the current Windows build of
QuteCsound will never work with the upcoming release of Csound 5.12.

I'm still thinking about reverting the compiler, but the current TDM
compiler is up to date and easy to install, so as long as I seem to be
making progress I will persist.

Regards,
Mike


On Wed, Sep 1, 2010 at 12:34 PM, Victor Lazzarini
 wrote:
> Well done. Michael, this must have been a tricky one to diagnose.
> Maybe a note can be dropped to the portaudio list just warning about
> this possible
> behaviour in C programs (after all portaudio has a C API and it's
> likely that people will call it from C code).
>
> Victor
>
> On 1 Sep 2010, at 17:00, Michael Gogins wrote:
>
>> It does cause trouble, and it is not (only) a PortAudio problem. It is
>> indeed (also) a Csound problem. The behavior of the MinGW compiler for
>> handling exceptions in shared libraries has changed and caused this
>> problem for our code.
>>
>> The underlying problem is that C++ code can throw exceptions, but C
>> code cannot. With the new MinGW compiler, exception handling for C++
>> is not done in the runtime library any more, but in a supplementary
>> shared library. This library is not linked into C executables, only
>> into C++ executables. Perhaps the old compiler just ignored these
>> exceptions, or perhaps they were handled properly from the runtime
>> library, but in any case, in the new compiler  they cause a segfault
>> unless the exception handling library is linked in by compiling and
>> linking rtpa as C++ code.
>>
>> Regards,
>> Mike
>>
>> On Wed, Sep 1, 2010 at 11:46 AM, Felipe Sateler 
>> wrote:
>>> Shouldn't this be solved on the portaudio side? I cannot imagine why
>>> calling a C library that happens to have some implementation
>>> details in
>>> C++ from a C source file should cause trouble.
>>>
>>> On 01/09/10 11:36, Michael Gogins wrote:
>>>> I solved the problem.
>>>>
>>>> The cause is that PortAudio contains C++ code, but the rtpa module
>>>> was
>>>> being compiled as C code, lacking the MinGW libraries required to
>>>> handle exceptions that are thrown from multi-threaded code in DLLs.
>>>> The result was that when the PortAudio module was unloaded, there
>>>> was
>>>> a segmentation fault.
>>>>
>>>> I fixed the problem by creating a shim rtpa.cpp file that #includes
>>>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>>>> compiled and linked instead of rtpa.c. There is no longer a
>>>> segmentation fault when the rtpa module is unloaded, and Csound
>>>> can be
>>>> stopped and restarted in QuteCsound.
>>>>
>>>> Regards,
>>>> Mike
>>>>
>>>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>>>  wrote:
>>>>> rtpa.c has indeed not changed.
>>>>>
>>>>> I will try reverting PortAudio. I have not yet tried reverting the
>>>>> compiler. I have excluded FLTK as a cause of this problem. It
>>>>> happens
>>>>> when FreeLibrary is called on the rtpa DLL handle.
>>>>>
>>>>> I can also try linking the PortAudio library statically.
>>>>>
>>>>> Regards,
>>>>> Mike
>>>>>
>>>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>>>  wrote:
>>>>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing
>>>>>> those
>>>>>> 3 clears the problem up for QuteCsound.
>>>>>>
>>>>>> Cheers,
>>>>>> ~ andy.f
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>>>  wrote:
>>>>>>> I'm pretty sure there is an interaction with FLTK. In GCC and
>>>>>>> MinGW
>>>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>>>> boundaries in multi-threaded code has been in flux for two
>>>>>>> years. I'm
>>>>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>>>>> compiler and see if that helps.
>>>>>>>
>>>>>>> Unloading libraries has also been an issue, I may just omit
>>>>>>> that step
>>>>>>> on Windows and see what happens.
>>>>>>>
>>>>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>>>>> Csound with the same options for threading and exception
>>>>>>> handling.
>>>>>>>
>>>>>>> The same exception happens in tclcsound.dll and in rtpa.dll
>>>>>>> even if
>>>>>>> all plugins and modules that link with FLTK are removed from
>>>>>>> the path
>>>>>>> (though I hope I didn't miss anyway).
>>>>>>>
>>>>>>> On Tue, Aug 31, 2010 at 4:47 PM,  
>>>>>>> wrote:
>>>>>>>> I'm not sure that is the case. I think it's Csound calling the
>>>>>>>> FLTK function.
>>>>>>>>
>>>>>>>> ----- Original Message -----
>>>>>>>> From: Felipe Sateler 
>>>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>>>> To: Developer discussions 
>>>>>>>>
>>>>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>>>>
>>>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>>>  wrote:
>>>>>>>>>> Looks to me like the fltk threading issue reported earlier.
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>> ~andy.f
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>>>>  wrote:
>>>>>>>>>>> I've run into a serious roadblock on preparing the Csound
>>>>>>>>> 5.12 windows
>>>>>>>>>>> installer.
>>>>>>>>>>>
>>>>>>>>>>> The module loading  and module unloading code causes
>>>>>>>>>>> segmentation
>>>>>>>>>>> violations with some libraries including tclcsound.dll and
>>>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>>>>> And that means
>>>>>>>>>>> QuteCsound and other hosts do not work.
>>>>>>>>>>>
>>>>>>>>>>> The problem appears to be exhibited in this stack trace and
>>>>>>>>> seems to
>>>>>>>>>>> have something to do with thread local storage in MinGW. I
>>>>>>>>>>> am using
>>>>>>>>>>> the Twilight Dragon Media build of MinGW but I will try the
>>>>>>>>>>> regular
>>>>>>>>>>> build of MinGW now.
>>>>>>>>>>>
>>>>>>>>>>> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>>>>>> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>> #4  0x77c597a0 in
>>>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>> #5  0x6f080000 in ?? ()
>>>>>>>>>>> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>> #7  0x6f082920 in __tlregdtor () from
>>>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>> #9  0x00000000 in ?? ()
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Any hints, anyone?
>>>>>>>>>>>
>>>>>>>>>>> Regards,
>>>>>>>>>>> Mike
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Michael Gogins
>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>
>>>>>>>>>>> --------------------------------------------------------------
>>>>>>>>> ----------------
>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>
>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ---------------------------------------------------------------
>>>>>>>>> ---------------
>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>
>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> Saludos,
>>>>>>>>> Felipe Sateler
>>>>>>>>>
>>>>>>>>> -----------------------------------------------------------------
>>>>>>>>> -------------
>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>
>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>>>> National University of Ireland, Maynooth
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Michael Gogins
>>>>>>> Irreducible Productions
>>>>>>> http://www.michael-gogins.com
>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>
>>>>>>> Show off your parallel programming skills.
>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>
>>>>>> Show off your parallel programming skills.
>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Saludos,
>>> Felipe Sateler
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.net Dev2Dev email is sponsored by:
>>>
>>> Show off your parallel programming skills.
>>> Enter the Intel(R) Threading Challenge 2010.
>>> http://p.sf.net/sfu/intel-thread-sfd
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-01 19:03
FromMichael Gogins
SubjectRe: [Cs-dev] Holdup on Windows installers
There is still a problem with FLTK.

Repeat: there have been two problems, one with PortAudio and one with
FLTK. The PortAudio problem is solved but the FLTK problem remains. I
configured FLTK to build with the correct options but I need to make
sure they are actually being used.

On Wed, Sep 1, 2010 at 12:47 PM, andy fillebrown
 wrote:
> Sweet!  Thank you for figuring this out.  Does this mean we won't have
> to remove fluidOpcodes.dll, virtual.dll, and widgets.dll to get
> QuteCsound to run correctly, or is it unrelated?
>
> Cheers,
> ~ andy.f
>
>
>
> On Wed, Sep 1, 2010 at 11:36 AM, Michael Gogins
>  wrote:
>> I solved the problem.
>>
>> The cause is that PortAudio contains C++ code, but the rtpa module was
>> being compiled as C code, lacking the MinGW libraries required to
>> handle exceptions that are thrown from multi-threaded code in DLLs.
>> The result was that when the PortAudio module was unloaded, there was
>> a segmentation fault.
>>
>> I fixed the problem by creating a shim rtpa.cpp file that #includes
>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>> compiled and linked instead of rtpa.c. There is no longer a
>> segmentation fault when the rtpa module is unloaded, and Csound can be
>> stopped and restarted in QuteCsound.
>>
>> Regards,
>> Mike
>>
>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>  wrote:
>>> rtpa.c has indeed not changed.
>>>
>>> I will try reverting PortAudio. I have not yet tried reverting the
>>> compiler. I have excluded FLTK as a cause of this problem. It happens
>>> when FreeLibrary is called on the rtpa DLL handle.
>>>
>>> I can also try linking the PortAudio library statically.
>>>
>>> Regards,
>>> Mike
>>>
>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>  wrote:
>>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing those
>>>> 3 clears the problem up for QuteCsound.
>>>>
>>>> Cheers,
>>>> ~ andy.f
>>>>
>>>>
>>>>
>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>  wrote:
>>>>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>> boundaries in multi-threaded code has been in flux for two years. I'm
>>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>>> compiler and see if that helps.
>>>>>
>>>>> Unloading libraries has also been an issue, I may just omit that step
>>>>> on Windows and see what happens.
>>>>>
>>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>>> Csound with the same options for threading and exception handling.
>>>>>
>>>>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>>>>> all plugins and modules that link with FLTK are removed from the path
>>>>> (though I hope I didn't miss anyway).
>>>>>
>>>>> On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
>>>>>> I'm not sure that is the case. I think it's Csound calling the FLTK function.
>>>>>>
>>>>>> ----- Original Message -----
>>>>>> From: Felipe Sateler 
>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>> To: Developer discussions 
>>>>>>
>>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>>
>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>  wrote:
>>>>>>> > Looks to me like the fltk threading issue reported earlier.
>>>>>>> >
>>>>>>> > Cheers,
>>>>>>> > ~andy.f
>>>>>>> >
>>>>>>> >
>>>>>>> >
>>>>>>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>> >  wrote:
>>>>>>> >> I've run into a serious roadblock on preparing the Csound
>>>>>>> 5.12 windows
>>>>>>> >> installer.
>>>>>>> >>
>>>>>>> >> The module loading  and module unloading code causes segmentation
>>>>>>> >> violations with some libraries including tclcsound.dll and
>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>>> And that means
>>>>>>> >> QuteCsound and other hosts do not work.
>>>>>>> >>
>>>>>>> >> The problem appears to be exhibited in this stack trace and
>>>>>>> seems to
>>>>>>> >> have something to do with thread local storage in MinGW. I am using
>>>>>>> >> the Twilight Dragon Media build of MinGW but I will try the regular
>>>>>>> >> build of MinGW now.
>>>>>>> >>
>>>>>>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>> >> #4  0x77c597a0 in
>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>> >> #5  0x6f080000 in ?? ()
>>>>>>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>> >> #7  0x6f082920 in __tlregdtor () from
>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>> >> #9  0x00000000 in ?? ()
>>>>>>> >>
>>>>>>> >>
>>>>>>> >> Any hints, anyone?
>>>>>>> >>
>>>>>>> >> Regards,
>>>>>>> >> Mike
>>>>>>> >>
>>>>>>> >>
>>>>>>> >> --
>>>>>>> >> Michael Gogins
>>>>>>> >> Irreducible Productions
>>>>>>> >> http://www.michael-gogins.com
>>>>>>> >> Michael dot Gogins at gmail dot com
>>>>>>> >>
>>>>>>> >> --------------------------------------------------------------
>>>>>>> ----------------
>>>>>>> >> This SF.net Dev2Dev email is sponsored by:
>>>>>>> >>
>>>>>>> >> Show off your parallel programming skills.
>>>>>>> >> Enter the Intel(R) Threading Challenge 2010.
>>>>>>> >> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> >> _______________________________________________
>>>>>>> >> Csound-devel mailing list
>>>>>>> >> Csound-devel@lists.sourceforge.net
>>>>>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>> >>
>>>>>>> >
>>>>>>> > ---------------------------------------------------------------
>>>>>>> ---------------
>>>>>>> > This SF.net Dev2Dev email is sponsored by:
>>>>>>> >
>>>>>>> > Show off your parallel programming skills.
>>>>>>> > Enter the Intel(R) Threading Challenge 2010.
>>>>>>> > http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> > _______________________________________________
>>>>>>> > Csound-devel mailing list
>>>>>>> > Csound-devel@lists.sourceforge.net
>>>>>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> Saludos,
>>>>>>> Felipe Sateler
>>>>>>>
>>>>>>> -----------------------------------------------------------------
>>>>>>> -------------
>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>
>>>>>>> Show off your parallel programming skills.
>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>> National University of Ireland, Maynooth
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>
>>>>>> Show off your parallel programming skills.
>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>
>>>>> Show off your parallel programming skills.
>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF.net Dev2Dev email is sponsored by:
>>>>
>>>> Show off your parallel programming skills.
>>>> Enter the Intel(R) Threading Challenge 2010.
>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-01 20:18
FromMichael Gogins
SubjectRe: [Cs-dev] Holdup on Windows installers
I got past some of the FLTK problems by ensuring correct link options,
but I still can't finish a performance and then restart in QuteCsound.

Also, there are problems with Python and, I expect, other stuff.

So, there are enough problems with the new compiler and getting
executables to work together than I am going to try reverting the
compiler now.

On Wed, Sep 1, 2010 at 2:03 PM, Michael Gogins  wrote:
> There is still a problem with FLTK.
>
> Repeat: there have been two problems, one with PortAudio and one with
> FLTK. The PortAudio problem is solved but the FLTK problem remains. I
> configured FLTK to build with the correct options but I need to make
> sure they are actually being used.
>
> On Wed, Sep 1, 2010 at 12:47 PM, andy fillebrown
>  wrote:
>> Sweet!  Thank you for figuring this out.  Does this mean we won't have
>> to remove fluidOpcodes.dll, virtual.dll, and widgets.dll to get
>> QuteCsound to run correctly, or is it unrelated?
>>
>> Cheers,
>> ~ andy.f
>>
>>
>>
>> On Wed, Sep 1, 2010 at 11:36 AM, Michael Gogins
>>  wrote:
>>> I solved the problem.
>>>
>>> The cause is that PortAudio contains C++ code, but the rtpa module was
>>> being compiled as C code, lacking the MinGW libraries required to
>>> handle exceptions that are thrown from multi-threaded code in DLLs.
>>> The result was that when the PortAudio module was unloaded, there was
>>> a segmentation fault.
>>>
>>> I fixed the problem by creating a shim rtpa.cpp file that #includes
>>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>>> compiled and linked instead of rtpa.c. There is no longer a
>>> segmentation fault when the rtpa module is unloaded, and Csound can be
>>> stopped and restarted in QuteCsound.
>>>
>>> Regards,
>>> Mike
>>>
>>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>>  wrote:
>>>> rtpa.c has indeed not changed.
>>>>
>>>> I will try reverting PortAudio. I have not yet tried reverting the
>>>> compiler. I have excluded FLTK as a cause of this problem. It happens
>>>> when FreeLibrary is called on the rtpa DLL handle.
>>>>
>>>> I can also try linking the PortAudio library statically.
>>>>
>>>> Regards,
>>>> Mike
>>>>
>>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>>  wrote:
>>>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing those
>>>>> 3 clears the problem up for QuteCsound.
>>>>>
>>>>> Cheers,
>>>>> ~ andy.f
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>>  wrote:
>>>>>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>>> boundaries in multi-threaded code has been in flux for two years. I'm
>>>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>>>> compiler and see if that helps.
>>>>>>
>>>>>> Unloading libraries has also been an issue, I may just omit that step
>>>>>> on Windows and see what happens.
>>>>>>
>>>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>>>> Csound with the same options for threading and exception handling.
>>>>>>
>>>>>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>>>>>> all plugins and modules that link with FLTK are removed from the path
>>>>>> (though I hope I didn't miss anyway).
>>>>>>
>>>>>> On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
>>>>>>> I'm not sure that is the case. I think it's Csound calling the FLTK function.
>>>>>>>
>>>>>>> ----- Original Message -----
>>>>>>> From: Felipe Sateler 
>>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>>> To: Developer discussions 
>>>>>>>
>>>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>>>
>>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>>  wrote:
>>>>>>>> > Looks to me like the fltk threading issue reported earlier.
>>>>>>>> >
>>>>>>>> > Cheers,
>>>>>>>> > ~andy.f
>>>>>>>> >
>>>>>>>> >
>>>>>>>> >
>>>>>>>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>> >  wrote:
>>>>>>>> >> I've run into a serious roadblock on preparing the Csound
>>>>>>>> 5.12 windows
>>>>>>>> >> installer.
>>>>>>>> >>
>>>>>>>> >> The module loading  and module unloading code causes segmentation
>>>>>>>> >> violations with some libraries including tclcsound.dll and
>>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>>>> And that means
>>>>>>>> >> QuteCsound and other hosts do not work.
>>>>>>>> >>
>>>>>>>> >> The problem appears to be exhibited in this stack trace and
>>>>>>>> seems to
>>>>>>>> >> have something to do with thread local storage in MinGW. I am using
>>>>>>>> >> the Twilight Dragon Media build of MinGW but I will try the regular
>>>>>>>> >> build of MinGW now.
>>>>>>>> >>
>>>>>>>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>> >> #4  0x77c597a0 in
>>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>> >> #5  0x6f080000 in ?? ()
>>>>>>>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>> >> #7  0x6f082920 in __tlregdtor () from
>>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>> >> #9  0x00000000 in ?? ()
>>>>>>>> >>
>>>>>>>> >>
>>>>>>>> >> Any hints, anyone?
>>>>>>>> >>
>>>>>>>> >> Regards,
>>>>>>>> >> Mike
>>>>>>>> >>
>>>>>>>> >>
>>>>>>>> >> --
>>>>>>>> >> Michael Gogins
>>>>>>>> >> Irreducible Productions
>>>>>>>> >> http://www.michael-gogins.com
>>>>>>>> >> Michael dot Gogins at gmail dot com
>>>>>>>> >>
>>>>>>>> >> --------------------------------------------------------------
>>>>>>>> ----------------
>>>>>>>> >> This SF.net Dev2Dev email is sponsored by:
>>>>>>>> >>
>>>>>>>> >> Show off your parallel programming skills.
>>>>>>>> >> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> >> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> >> _______________________________________________
>>>>>>>> >> Csound-devel mailing list
>>>>>>>> >> Csound-devel@lists.sourceforge.net
>>>>>>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>> >>
>>>>>>>> >
>>>>>>>> > ---------------------------------------------------------------
>>>>>>>> ---------------
>>>>>>>> > This SF.net Dev2Dev email is sponsored by:
>>>>>>>> >
>>>>>>>> > Show off your parallel programming skills.
>>>>>>>> > Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> > http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> > _______________________________________________
>>>>>>>> > Csound-devel mailing list
>>>>>>>> > Csound-devel@lists.sourceforge.net
>>>>>>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>> >
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> Saludos,
>>>>>>>> Felipe Sateler
>>>>>>>>
>>>>>>>> -----------------------------------------------------------------
>>>>>>>> -------------
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>>> National University of Ireland, Maynooth
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>
>>>>>>> Show off your parallel programming skills.
>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>
>>>>>> Show off your parallel programming skills.
>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>
>>>>> Show off your parallel programming skills.
>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.net Dev2Dev email is sponsored by:
>>>
>>> Show off your parallel programming skills.
>>> Enter the Intel(R) Threading Challenge 2010.
>>> http://p.sf.net/sfu/intel-thread-sfd
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-01 23:53
FromMichael Gogins
SubjectRe: [Cs-dev] Holdup on Windows installers
I am switching to use MinGW with gcc 4.4.0 that comes with Qt 2010.04.
We'll see...

Mike

On Wed, Sep 1, 2010 at 3:18 PM, Michael Gogins  wrote:
> I got past some of the FLTK problems by ensuring correct link options,
> but I still can't finish a performance and then restart in QuteCsound.
>
> Also, there are problems with Python and, I expect, other stuff.
>
> So, there are enough problems with the new compiler and getting
> executables to work together than I am going to try reverting the
> compiler now.
>
> On Wed, Sep 1, 2010 at 2:03 PM, Michael Gogins  wrote:
>> There is still a problem with FLTK.
>>
>> Repeat: there have been two problems, one with PortAudio and one with
>> FLTK. The PortAudio problem is solved but the FLTK problem remains. I
>> configured FLTK to build with the correct options but I need to make
>> sure they are actually being used.
>>
>> On Wed, Sep 1, 2010 at 12:47 PM, andy fillebrown
>>  wrote:
>>> Sweet!  Thank you for figuring this out.  Does this mean we won't have
>>> to remove fluidOpcodes.dll, virtual.dll, and widgets.dll to get
>>> QuteCsound to run correctly, or is it unrelated?
>>>
>>> Cheers,
>>> ~ andy.f
>>>
>>>
>>>
>>> On Wed, Sep 1, 2010 at 11:36 AM, Michael Gogins
>>>  wrote:
>>>> I solved the problem.
>>>>
>>>> The cause is that PortAudio contains C++ code, but the rtpa module was
>>>> being compiled as C code, lacking the MinGW libraries required to
>>>> handle exceptions that are thrown from multi-threaded code in DLLs.
>>>> The result was that when the PortAudio module was unloaded, there was
>>>> a segmentation fault.
>>>>
>>>> I fixed the problem by creating a shim rtpa.cpp file that #includes
>>>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>>>> compiled and linked instead of rtpa.c. There is no longer a
>>>> segmentation fault when the rtpa module is unloaded, and Csound can be
>>>> stopped and restarted in QuteCsound.
>>>>
>>>> Regards,
>>>> Mike
>>>>
>>>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>>>  wrote:
>>>>> rtpa.c has indeed not changed.
>>>>>
>>>>> I will try reverting PortAudio. I have not yet tried reverting the
>>>>> compiler. I have excluded FLTK as a cause of this problem. It happens
>>>>> when FreeLibrary is called on the rtpa DLL handle.
>>>>>
>>>>> I can also try linking the PortAudio library statically.
>>>>>
>>>>> Regards,
>>>>> Mike
>>>>>
>>>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>>>  wrote:
>>>>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing those
>>>>>> 3 clears the problem up for QuteCsound.
>>>>>>
>>>>>> Cheers,
>>>>>> ~ andy.f
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>>>  wrote:
>>>>>>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>>>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>>>> boundaries in multi-threaded code has been in flux for two years. I'm
>>>>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>>>>> compiler and see if that helps.
>>>>>>>
>>>>>>> Unloading libraries has also been an issue, I may just omit that step
>>>>>>> on Windows and see what happens.
>>>>>>>
>>>>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>>>>> Csound with the same options for threading and exception handling.
>>>>>>>
>>>>>>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>>>>>>> all plugins and modules that link with FLTK are removed from the path
>>>>>>> (though I hope I didn't miss anyway).
>>>>>>>
>>>>>>> On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
>>>>>>>> I'm not sure that is the case. I think it's Csound calling the FLTK function.
>>>>>>>>
>>>>>>>> ----- Original Message -----
>>>>>>>> From: Felipe Sateler 
>>>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>>>> To: Developer discussions 
>>>>>>>>
>>>>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>>>>
>>>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>>>  wrote:
>>>>>>>>> > Looks to me like the fltk threading issue reported earlier.
>>>>>>>>> >
>>>>>>>>> > Cheers,
>>>>>>>>> > ~andy.f
>>>>>>>>> >
>>>>>>>>> >
>>>>>>>>> >
>>>>>>>>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>>> >  wrote:
>>>>>>>>> >> I've run into a serious roadblock on preparing the Csound
>>>>>>>>> 5.12 windows
>>>>>>>>> >> installer.
>>>>>>>>> >>
>>>>>>>>> >> The module loading  and module unloading code causes segmentation
>>>>>>>>> >> violations with some libraries including tclcsound.dll and
>>>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>>>>> And that means
>>>>>>>>> >> QuteCsound and other hosts do not work.
>>>>>>>>> >>
>>>>>>>>> >> The problem appears to be exhibited in this stack trace and
>>>>>>>>> seems to
>>>>>>>>> >> have something to do with thread local storage in MinGW. I am using
>>>>>>>>> >> the Twilight Dragon Media build of MinGW but I will try the regular
>>>>>>>>> >> build of MinGW now.
>>>>>>>>> >>
>>>>>>>>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>>>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>> >> #4  0x77c597a0 in
>>>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>> >> #5  0x6f080000 in ?? ()
>>>>>>>>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>> >> #7  0x6f082920 in __tlregdtor () from
>>>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>> >> #9  0x00000000 in ?? ()
>>>>>>>>> >>
>>>>>>>>> >>
>>>>>>>>> >> Any hints, anyone?
>>>>>>>>> >>
>>>>>>>>> >> Regards,
>>>>>>>>> >> Mike
>>>>>>>>> >>
>>>>>>>>> >>
>>>>>>>>> >> --
>>>>>>>>> >> Michael Gogins
>>>>>>>>> >> Irreducible Productions
>>>>>>>>> >> http://www.michael-gogins.com
>>>>>>>>> >> Michael dot Gogins at gmail dot com
>>>>>>>>> >>
>>>>>>>>> >> --------------------------------------------------------------
>>>>>>>>> ----------------
>>>>>>>>> >> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>> >>
>>>>>>>>> >> Show off your parallel programming skills.
>>>>>>>>> >> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>> >> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>> >> _______________________________________________
>>>>>>>>> >> Csound-devel mailing list
>>>>>>>>> >> Csound-devel@lists.sourceforge.net
>>>>>>>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>> >>
>>>>>>>>> >
>>>>>>>>> > ---------------------------------------------------------------
>>>>>>>>> ---------------
>>>>>>>>> > This SF.net Dev2Dev email is sponsored by:
>>>>>>>>> >
>>>>>>>>> > Show off your parallel programming skills.
>>>>>>>>> > Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>> > http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>> > _______________________________________________
>>>>>>>>> > Csound-devel mailing list
>>>>>>>>> > Csound-devel@lists.sourceforge.net
>>>>>>>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>> >
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> Saludos,
>>>>>>>>> Felipe Sateler
>>>>>>>>>
>>>>>>>>> -----------------------------------------------------------------
>>>>>>>>> -------------
>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>
>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>>>> National University of Ireland, Maynooth
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Michael Gogins
>>>>>>> Irreducible Productions
>>>>>>> http://www.michael-gogins.com
>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>
>>>>>>> Show off your parallel programming skills.
>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>
>>>>>> Show off your parallel programming skills.
>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF.net Dev2Dev email is sponsored by:
>>>>
>>>> Show off your parallel programming skills.
>>>> Enter the Intel(R) Threading Challenge 2010.
>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.net Dev2Dev email is sponsored by:
>>>
>>> Show off your parallel programming skills.
>>> Enter the Intel(R) Threading Challenge 2010.
>>> http://p.sf.net/sfu/intel-thread-sfd
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-02 16:42
FromMichael Gogins
SubjectRe: [Cs-dev] Holdup on Windows installers
The problem appears to have been completely resolved by simply
compiling everything -- Csound, third-party dependencies that build
with MinGW, and QuteCsound -- with the version of MinGW that installs
with Qt. This is gcc version 4.4.0 from Qt/MinGW, whereas the version
I was using before was gcc version 4.5.0 from Twilight Dragon Media.

I had chosen TDM because it was easy to install and had more up to
date OpenMP support, but obviously there are problems.

The current Qt/MinGW compiler uses dw2 exception handling, whereas the
TDM compiler uses setjump-longjump exception handling.

If no further major problems turn up, I should be able to upload the
Windows installer before this weekend.

Regards,
Mike

On Wed, Sep 1, 2010 at 6:53 PM, Michael Gogins  wrote:
> I am switching to use MinGW with gcc 4.4.0 that comes with Qt 2010.04.
> We'll see...
>
> Mike
>
> On Wed, Sep 1, 2010 at 3:18 PM, Michael Gogins  wrote:
>> I got past some of the FLTK problems by ensuring correct link options,
>> but I still can't finish a performance and then restart in QuteCsound.
>>
>> Also, there are problems with Python and, I expect, other stuff.
>>
>> So, there are enough problems with the new compiler and getting
>> executables to work together than I am going to try reverting the
>> compiler now.
>>
>> On Wed, Sep 1, 2010 at 2:03 PM, Michael Gogins  wrote:
>>> There is still a problem with FLTK.
>>>
>>> Repeat: there have been two problems, one with PortAudio and one with
>>> FLTK. The PortAudio problem is solved but the FLTK problem remains. I
>>> configured FLTK to build with the correct options but I need to make
>>> sure they are actually being used.
>>>
>>> On Wed, Sep 1, 2010 at 12:47 PM, andy fillebrown
>>>  wrote:
>>>> Sweet!  Thank you for figuring this out.  Does this mean we won't have
>>>> to remove fluidOpcodes.dll, virtual.dll, and widgets.dll to get
>>>> QuteCsound to run correctly, or is it unrelated?
>>>>
>>>> Cheers,
>>>> ~ andy.f
>>>>
>>>>
>>>>
>>>> On Wed, Sep 1, 2010 at 11:36 AM, Michael Gogins
>>>>  wrote:
>>>>> I solved the problem.
>>>>>
>>>>> The cause is that PortAudio contains C++ code, but the rtpa module was
>>>>> being compiled as C code, lacking the MinGW libraries required to
>>>>> handle exceptions that are thrown from multi-threaded code in DLLs.
>>>>> The result was that when the PortAudio module was unloaded, there was
>>>>> a segmentation fault.
>>>>>
>>>>> I fixed the problem by creating a shim rtpa.cpp file that #includes
>>>>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>>>>> compiled and linked instead of rtpa.c. There is no longer a
>>>>> segmentation fault when the rtpa module is unloaded, and Csound can be
>>>>> stopped and restarted in QuteCsound.
>>>>>
>>>>> Regards,
>>>>> Mike
>>>>>
>>>>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>>>>  wrote:
>>>>>> rtpa.c has indeed not changed.
>>>>>>
>>>>>> I will try reverting PortAudio. I have not yet tried reverting the
>>>>>> compiler. I have excluded FLTK as a cause of this problem. It happens
>>>>>> when FreeLibrary is called on the rtpa DLL handle.
>>>>>>
>>>>>> I can also try linking the PortAudio library statically.
>>>>>>
>>>>>> Regards,
>>>>>> Mike
>>>>>>
>>>>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>>>>  wrote:
>>>>>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>>>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>>>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing those
>>>>>>> 3 clears the problem up for QuteCsound.
>>>>>>>
>>>>>>> Cheers,
>>>>>>> ~ andy.f
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>>>>  wrote:
>>>>>>>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>>>>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>>>>> boundaries in multi-threaded code has been in flux for two years. I'm
>>>>>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>>>>>> compiler and see if that helps.
>>>>>>>>
>>>>>>>> Unloading libraries has also been an issue, I may just omit that step
>>>>>>>> on Windows and see what happens.
>>>>>>>>
>>>>>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>>>>>> Csound with the same options for threading and exception handling.
>>>>>>>>
>>>>>>>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>>>>>>>> all plugins and modules that link with FLTK are removed from the path
>>>>>>>> (though I hope I didn't miss anyway).
>>>>>>>>
>>>>>>>> On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
>>>>>>>>> I'm not sure that is the case. I think it's Csound calling the FLTK function.
>>>>>>>>>
>>>>>>>>> ----- Original Message -----
>>>>>>>>> From: Felipe Sateler 
>>>>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>>>>> To: Developer discussions 
>>>>>>>>>
>>>>>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>>>>>
>>>>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>>>>  wrote:
>>>>>>>>>> > Looks to me like the fltk threading issue reported earlier.
>>>>>>>>>> >
>>>>>>>>>> > Cheers,
>>>>>>>>>> > ~andy.f
>>>>>>>>>> >
>>>>>>>>>> >
>>>>>>>>>> >
>>>>>>>>>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>>>> >  wrote:
>>>>>>>>>> >> I've run into a serious roadblock on preparing the Csound
>>>>>>>>>> 5.12 windows
>>>>>>>>>> >> installer.
>>>>>>>>>> >>
>>>>>>>>>> >> The module loading  and module unloading code causes segmentation
>>>>>>>>>> >> violations with some libraries including tclcsound.dll and
>>>>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>>>>>> And that means
>>>>>>>>>> >> QuteCsound and other hosts do not work.
>>>>>>>>>> >>
>>>>>>>>>> >> The problem appears to be exhibited in this stack trace and
>>>>>>>>>> seems to
>>>>>>>>>> >> have something to do with thread local storage in MinGW. I am using
>>>>>>>>>> >> the Twilight Dragon Media build of MinGW but I will try the regular
>>>>>>>>>> >> build of MinGW now.
>>>>>>>>>> >>
>>>>>>>>>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>>>>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>> >> #4  0x77c597a0 in
>>>>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>> >> #5  0x6f080000 in ?? ()
>>>>>>>>>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>> >> #7  0x6f082920 in __tlregdtor () from
>>>>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>> >> #9  0x00000000 in ?? ()
>>>>>>>>>> >>
>>>>>>>>>> >>
>>>>>>>>>> >> Any hints, anyone?
>>>>>>>>>> >>
>>>>>>>>>> >> Regards,
>>>>>>>>>> >> Mike
>>>>>>>>>> >>
>>>>>>>>>> >>
>>>>>>>>>> >> --
>>>>>>>>>> >> Michael Gogins
>>>>>>>>>> >> Irreducible Productions
>>>>>>>>>> >> http://www.michael-gogins.com
>>>>>>>>>> >> Michael dot Gogins at gmail dot com
>>>>>>>>>> >>
>>>>>>>>>> >> --------------------------------------------------------------
>>>>>>>>>> ----------------
>>>>>>>>>> >> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>> >>
>>>>>>>>>> >> Show off your parallel programming skills.
>>>>>>>>>> >> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> >> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> >> _______________________________________________
>>>>>>>>>> >> Csound-devel mailing list
>>>>>>>>>> >> Csound-devel@lists.sourceforge.net
>>>>>>>>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>> >>
>>>>>>>>>> >
>>>>>>>>>> > ---------------------------------------------------------------
>>>>>>>>>> ---------------
>>>>>>>>>> > This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>> >
>>>>>>>>>> > Show off your parallel programming skills.
>>>>>>>>>> > Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> > http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> > _______________________________________________
>>>>>>>>>> > Csound-devel mailing list
>>>>>>>>>> > Csound-devel@lists.sourceforge.net
>>>>>>>>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>> >
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>>
>>>>>>>>>> Saludos,
>>>>>>>>>> Felipe Sateler
>>>>>>>>>>
>>>>>>>>>> -----------------------------------------------------------------
>>>>>>>>>> -------------
>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>
>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>>>>> National University of Ireland, Maynooth
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>
>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Michael Gogins
>>>>>>>> Irreducible Productions
>>>>>>>> http://www.michael-gogins.com
>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>
>>>>>>> Show off your parallel programming skills.
>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>
>>>>> Show off your parallel programming skills.
>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF.net Dev2Dev email is sponsored by:
>>>>
>>>> Show off your parallel programming skills.
>>>> Enter the Intel(R) Threading Challenge 2010.
>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-02 16:56
FromAndres Cabrera
SubjectRe: [Cs-dev] Holdup on Windows installers
Hi Michael,

Would the current QuteCsound packages be incompatible with this
release? Would we need to do anything different when building
QuteCsound on Windows from now on?

Cheers,
Andrés

On Thu, Sep 2, 2010 at 4:42 PM, Michael Gogins  wrote:
> The problem appears to have been completely resolved by simply
> compiling everything -- Csound, third-party dependencies that build
> with MinGW, and QuteCsound -- with the version of MinGW that installs
> with Qt. This is gcc version 4.4.0 from Qt/MinGW, whereas the version
> I was using before was gcc version 4.5.0 from Twilight Dragon Media.
>
> I had chosen TDM because it was easy to install and had more up to
> date OpenMP support, but obviously there are problems.
>
> The current Qt/MinGW compiler uses dw2 exception handling, whereas the
> TDM compiler uses setjump-longjump exception handling.
>
> If no further major problems turn up, I should be able to upload the
> Windows installer before this weekend.
>
> Regards,
> Mike
>
> On Wed, Sep 1, 2010 at 6:53 PM, Michael Gogins  wrote:
>> I am switching to use MinGW with gcc 4.4.0 that comes with Qt 2010.04.
>> We'll see...
>>
>> Mike
>>
>> On Wed, Sep 1, 2010 at 3:18 PM, Michael Gogins  wrote:
>>> I got past some of the FLTK problems by ensuring correct link options,
>>> but I still can't finish a performance and then restart in QuteCsound.
>>>
>>> Also, there are problems with Python and, I expect, other stuff.
>>>
>>> So, there are enough problems with the new compiler and getting
>>> executables to work together than I am going to try reverting the
>>> compiler now.
>>>
>>> On Wed, Sep 1, 2010 at 2:03 PM, Michael Gogins  wrote:
>>>> There is still a problem with FLTK.
>>>>
>>>> Repeat: there have been two problems, one with PortAudio and one with
>>>> FLTK. The PortAudio problem is solved but the FLTK problem remains. I
>>>> configured FLTK to build with the correct options but I need to make
>>>> sure they are actually being used.
>>>>
>>>> On Wed, Sep 1, 2010 at 12:47 PM, andy fillebrown
>>>>  wrote:
>>>>> Sweet!  Thank you for figuring this out.  Does this mean we won't have
>>>>> to remove fluidOpcodes.dll, virtual.dll, and widgets.dll to get
>>>>> QuteCsound to run correctly, or is it unrelated?
>>>>>
>>>>> Cheers,
>>>>> ~ andy.f
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Sep 1, 2010 at 11:36 AM, Michael Gogins
>>>>>  wrote:
>>>>>> I solved the problem.
>>>>>>
>>>>>> The cause is that PortAudio contains C++ code, but the rtpa module was
>>>>>> being compiled as C code, lacking the MinGW libraries required to
>>>>>> handle exceptions that are thrown from multi-threaded code in DLLs.
>>>>>> The result was that when the PortAudio module was unloaded, there was
>>>>>> a segmentation fault.
>>>>>>
>>>>>> I fixed the problem by creating a shim rtpa.cpp file that #includes
>>>>>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>>>>>> compiled and linked instead of rtpa.c. There is no longer a
>>>>>> segmentation fault when the rtpa module is unloaded, and Csound can be
>>>>>> stopped and restarted in QuteCsound.
>>>>>>
>>>>>> Regards,
>>>>>> Mike
>>>>>>
>>>>>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>>>>>  wrote:
>>>>>>> rtpa.c has indeed not changed.
>>>>>>>
>>>>>>> I will try reverting PortAudio. I have not yet tried reverting the
>>>>>>> compiler. I have excluded FLTK as a cause of this problem. It happens
>>>>>>> when FreeLibrary is called on the rtpa DLL handle.
>>>>>>>
>>>>>>> I can also try linking the PortAudio library statically.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Mike
>>>>>>>
>>>>>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>>>>>  wrote:
>>>>>>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>>>>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>>>>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing those
>>>>>>>> 3 clears the problem up for QuteCsound.
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> ~ andy.f
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>>>>>  wrote:
>>>>>>>>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>>>>>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>>>>>> boundaries in multi-threaded code has been in flux for two years. I'm
>>>>>>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>>>>>>> compiler and see if that helps.
>>>>>>>>>
>>>>>>>>> Unloading libraries has also been an issue, I may just omit that step
>>>>>>>>> on Windows and see what happens.
>>>>>>>>>
>>>>>>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>>>>>>> Csound with the same options for threading and exception handling.
>>>>>>>>>
>>>>>>>>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>>>>>>>>> all plugins and modules that link with FLTK are removed from the path
>>>>>>>>> (though I hope I didn't miss anyway).
>>>>>>>>>
>>>>>>>>> On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
>>>>>>>>>> I'm not sure that is the case. I think it's Csound calling the FLTK function.
>>>>>>>>>>
>>>>>>>>>> ----- Original Message -----
>>>>>>>>>> From: Felipe Sateler 
>>>>>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>>>>>> To: Developer discussions 
>>>>>>>>>>
>>>>>>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>>>>>>
>>>>>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>>>>>  wrote:
>>>>>>>>>>> > Looks to me like the fltk threading issue reported earlier.
>>>>>>>>>>> >
>>>>>>>>>>> > Cheers,
>>>>>>>>>>> > ~andy.f
>>>>>>>>>>> >
>>>>>>>>>>> >
>>>>>>>>>>> >
>>>>>>>>>>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>>>>> >  wrote:
>>>>>>>>>>> >> I've run into a serious roadblock on preparing the Csound
>>>>>>>>>>> 5.12 windows
>>>>>>>>>>> >> installer.
>>>>>>>>>>> >>
>>>>>>>>>>> >> The module loading  and module unloading code causes segmentation
>>>>>>>>>>> >> violations with some libraries including tclcsound.dll and
>>>>>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>>>>>>> And that means
>>>>>>>>>>> >> QuteCsound and other hosts do not work.
>>>>>>>>>>> >>
>>>>>>>>>>> >> The problem appears to be exhibited in this stack trace and
>>>>>>>>>>> seems to
>>>>>>>>>>> >> have something to do with thread local storage in MinGW. I am using
>>>>>>>>>>> >> the Twilight Dragon Media build of MinGW but I will try the regular
>>>>>>>>>>> >> build of MinGW now.
>>>>>>>>>>> >>
>>>>>>>>>>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>>>>>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>> >> #4  0x77c597a0 in
>>>>>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>> >> #5  0x6f080000 in ?? ()
>>>>>>>>>>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>> >> #7  0x6f082920 in __tlregdtor () from
>>>>>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>> >> #9  0x00000000 in ?? ()
>>>>>>>>>>> >>
>>>>>>>>>>> >>
>>>>>>>>>>> >> Any hints, anyone?
>>>>>>>>>>> >>
>>>>>>>>>>> >> Regards,
>>>>>>>>>>> >> Mike
>>>>>>>>>>> >>
>>>>>>>>>>> >>
>>>>>>>>>>> >> --
>>>>>>>>>>> >> Michael Gogins
>>>>>>>>>>> >> Irreducible Productions
>>>>>>>>>>> >> http://www.michael-gogins.com
>>>>>>>>>>> >> Michael dot Gogins at gmail dot com
>>>>>>>>>>> >>
>>>>>>>>>>> >> --------------------------------------------------------------
>>>>>>>>>>> ----------------
>>>>>>>>>>> >> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>> >>
>>>>>>>>>>> >> Show off your parallel programming skills.
>>>>>>>>>>> >> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>> >> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>> >> _______________________________________________
>>>>>>>>>>> >> Csound-devel mailing list
>>>>>>>>>>> >> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>> >>
>>>>>>>>>>> >
>>>>>>>>>>> > ---------------------------------------------------------------
>>>>>>>>>>> ---------------
>>>>>>>>>>> > This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>> >
>>>>>>>>>>> > Show off your parallel programming skills.
>>>>>>>>>>> > Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>> > http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>> > _______________________________________________
>>>>>>>>>>> > Csound-devel mailing list
>>>>>>>>>>> > Csound-devel@lists.sourceforge.net
>>>>>>>>>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>> >
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>>
>>>>>>>>>>> Saludos,
>>>>>>>>>>> Felipe Sateler
>>>>>>>>>>>
>>>>>>>>>>> -----------------------------------------------------------------
>>>>>>>>>>> -------------
>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>
>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>>>>>> National University of Ireland, Maynooth
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>
>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Michael Gogins
>>>>>>>>> Irreducible Productions
>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>
>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Michael Gogins
>>>>>>> Irreducible Productions
>>>>>>> http://www.michael-gogins.com
>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>
>>>>>> Show off your parallel programming skills.
>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>
>>>>> Show off your parallel programming skills.
>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 


Andrés

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/list

Date2010-09-02 17:27
FromMichael Gogins
SubjectRe: [Cs-dev] Holdup on Windows installers
The current QuteCsound releases should be OK since I have switched to
building Csound with the exact same compiler used by the complete Qt
installation.

You should not have to make any changes to your code or build system.

I did find one bug that prevented Csound from working properly in
QuteCsound, but that bug was caused by QuteCsound resetting the Csound
message callback to null. That in turn caused a segment fault when
QuteCsound destroys Csound and Csound tries to print messages as it
takes itself apart. Rather than monkey with QuteCsound code, I changed
csound.c to reset to the default message callback when someone tries
to set the message callback to null. There are other possible
solutions, but that seems OK for now.

At any rate, I am much relieved, and I suspect you may be as well.

Regards,
Mike

On Thu, Sep 2, 2010 at 11:56 AM, Andres Cabrera  wrote:
> Hi Michael,
>
> Would the current QuteCsound packages be incompatible with this
> release? Would we need to do anything different when building
> QuteCsound on Windows from now on?
>
> Cheers,
> Andrés
>
> On Thu, Sep 2, 2010 at 4:42 PM, Michael Gogins  wrote:
>> The problem appears to have been completely resolved by simply
>> compiling everything -- Csound, third-party dependencies that build
>> with MinGW, and QuteCsound -- with the version of MinGW that installs
>> with Qt. This is gcc version 4.4.0 from Qt/MinGW, whereas the version
>> I was using before was gcc version 4.5.0 from Twilight Dragon Media.
>>
>> I had chosen TDM because it was easy to install and had more up to
>> date OpenMP support, but obviously there are problems.
>>
>> The current Qt/MinGW compiler uses dw2 exception handling, whereas the
>> TDM compiler uses setjump-longjump exception handling.
>>
>> If no further major problems turn up, I should be able to upload the
>> Windows installer before this weekend.
>>
>> Regards,
>> Mike
>>
>> On Wed, Sep 1, 2010 at 6:53 PM, Michael Gogins  wrote:
>>> I am switching to use MinGW with gcc 4.4.0 that comes with Qt 2010.04.
>>> We'll see...
>>>
>>> Mike
>>>
>>> On Wed, Sep 1, 2010 at 3:18 PM, Michael Gogins  wrote:
>>>> I got past some of the FLTK problems by ensuring correct link options,
>>>> but I still can't finish a performance and then restart in QuteCsound.
>>>>
>>>> Also, there are problems with Python and, I expect, other stuff.
>>>>
>>>> So, there are enough problems with the new compiler and getting
>>>> executables to work together than I am going to try reverting the
>>>> compiler now.
>>>>
>>>> On Wed, Sep 1, 2010 at 2:03 PM, Michael Gogins  wrote:
>>>>> There is still a problem with FLTK.
>>>>>
>>>>> Repeat: there have been two problems, one with PortAudio and one with
>>>>> FLTK. The PortAudio problem is solved but the FLTK problem remains. I
>>>>> configured FLTK to build with the correct options but I need to make
>>>>> sure they are actually being used.
>>>>>
>>>>> On Wed, Sep 1, 2010 at 12:47 PM, andy fillebrown
>>>>>  wrote:
>>>>>> Sweet!  Thank you for figuring this out.  Does this mean we won't have
>>>>>> to remove fluidOpcodes.dll, virtual.dll, and widgets.dll to get
>>>>>> QuteCsound to run correctly, or is it unrelated?
>>>>>>
>>>>>> Cheers,
>>>>>> ~ andy.f
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Sep 1, 2010 at 11:36 AM, Michael Gogins
>>>>>>  wrote:
>>>>>>> I solved the problem.
>>>>>>>
>>>>>>> The cause is that PortAudio contains C++ code, but the rtpa module was
>>>>>>> being compiled as C code, lacking the MinGW libraries required to
>>>>>>> handle exceptions that are thrown from multi-threaded code in DLLs.
>>>>>>> The result was that when the PortAudio module was unloaded, there was
>>>>>>> a segmentation fault.
>>>>>>>
>>>>>>> I fixed the problem by creating a shim rtpa.cpp file that #includes
>>>>>>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>>>>>>> compiled and linked instead of rtpa.c. There is no longer a
>>>>>>> segmentation fault when the rtpa module is unloaded, and Csound can be
>>>>>>> stopped and restarted in QuteCsound.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Mike
>>>>>>>
>>>>>>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>>>>>>  wrote:
>>>>>>>> rtpa.c has indeed not changed.
>>>>>>>>
>>>>>>>> I will try reverting PortAudio. I have not yet tried reverting the
>>>>>>>> compiler. I have excluded FLTK as a cause of this problem. It happens
>>>>>>>> when FreeLibrary is called on the rtpa DLL handle.
>>>>>>>>
>>>>>>>> I can also try linking the PortAudio library statically.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Mike
>>>>>>>>
>>>>>>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>>>>>>  wrote:
>>>>>>>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>>>>>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>>>>>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing those
>>>>>>>>> 3 clears the problem up for QuteCsound.
>>>>>>>>>
>>>>>>>>> Cheers,
>>>>>>>>> ~ andy.f
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>>>>>>  wrote:
>>>>>>>>>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>>>>>>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>>>>>>> boundaries in multi-threaded code has been in flux for two years. I'm
>>>>>>>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>>>>>>>> compiler and see if that helps.
>>>>>>>>>>
>>>>>>>>>> Unloading libraries has also been an issue, I may just omit that step
>>>>>>>>>> on Windows and see what happens.
>>>>>>>>>>
>>>>>>>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>>>>>>>> Csound with the same options for threading and exception handling.
>>>>>>>>>>
>>>>>>>>>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>>>>>>>>>> all plugins and modules that link with FLTK are removed from the path
>>>>>>>>>> (though I hope I didn't miss anyway).
>>>>>>>>>>
>>>>>>>>>> On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
>>>>>>>>>>> I'm not sure that is the case. I think it's Csound calling the FLTK function.
>>>>>>>>>>>
>>>>>>>>>>> ----- Original Message -----
>>>>>>>>>>> From: Felipe Sateler 
>>>>>>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>>>>>>> To: Developer discussions 
>>>>>>>>>>>
>>>>>>>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>>>>>>>
>>>>>>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>>>>>>  wrote:
>>>>>>>>>>>> > Looks to me like the fltk threading issue reported earlier.
>>>>>>>>>>>> >
>>>>>>>>>>>> > Cheers,
>>>>>>>>>>>> > ~andy.f
>>>>>>>>>>>> >
>>>>>>>>>>>> >
>>>>>>>>>>>> >
>>>>>>>>>>>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>>>>>> >  wrote:
>>>>>>>>>>>> >> I've run into a serious roadblock on preparing the Csound
>>>>>>>>>>>> 5.12 windows
>>>>>>>>>>>> >> installer.
>>>>>>>>>>>> >>
>>>>>>>>>>>> >> The module loading  and module unloading code causes segmentation
>>>>>>>>>>>> >> violations with some libraries including tclcsound.dll and
>>>>>>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>>>>>>>> And that means
>>>>>>>>>>>> >> QuteCsound and other hosts do not work.
>>>>>>>>>>>> >>
>>>>>>>>>>>> >> The problem appears to be exhibited in this stack trace and
>>>>>>>>>>>> seems to
>>>>>>>>>>>> >> have something to do with thread local storage in MinGW. I am using
>>>>>>>>>>>> >> the Twilight Dragon Media build of MinGW but I will try the regular
>>>>>>>>>>>> >> build of MinGW now.
>>>>>>>>>>>> >>
>>>>>>>>>>>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>>>>>>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>>> >> #4  0x77c597a0 in
>>>>>>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>>> >> #5  0x6f080000 in ?? ()
>>>>>>>>>>>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>>> >> #7  0x6f082920 in __tlregdtor () from
>>>>>>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>>> >> #9  0x00000000 in ?? ()
>>>>>>>>>>>> >>
>>>>>>>>>>>> >>
>>>>>>>>>>>> >> Any hints, anyone?
>>>>>>>>>>>> >>
>>>>>>>>>>>> >> Regards,
>>>>>>>>>>>> >> Mike
>>>>>>>>>>>> >>
>>>>>>>>>>>> >>
>>>>>>>>>>>> >> --
>>>>>>>>>>>> >> Michael Gogins
>>>>>>>>>>>> >> Irreducible Productions
>>>>>>>>>>>> >> http://www.michael-gogins.com
>>>>>>>>>>>> >> Michael dot Gogins at gmail dot com
>>>>>>>>>>>> >>
>>>>>>>>>>>> >> --------------------------------------------------------------
>>>>>>>>>>>> ----------------
>>>>>>>>>>>> >> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>> >>
>>>>>>>>>>>> >> Show off your parallel programming skills.
>>>>>>>>>>>> >> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>> >> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>> >> _______________________________________________
>>>>>>>>>>>> >> Csound-devel mailing list
>>>>>>>>>>>> >> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>> >>
>>>>>>>>>>>> >
>>>>>>>>>>>> > ---------------------------------------------------------------
>>>>>>>>>>>> ---------------
>>>>>>>>>>>> > This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>> >
>>>>>>>>>>>> > Show off your parallel programming skills.
>>>>>>>>>>>> > Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>> > http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>> > _______________________________________________
>>>>>>>>>>>> > Csound-devel mailing list
>>>>>>>>>>>> > Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>> >
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>>
>>>>>>>>>>>> Saludos,
>>>>>>>>>>>> Felipe Sateler
>>>>>>>>>>>>
>>>>>>>>>>>> -----------------------------------------------------------------
>>>>>>>>>>>> -------------
>>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>
>>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>>>>>>> National University of Ireland, Maynooth
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>
>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Michael Gogins
>>>>>>>>>> Irreducible Productions
>>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>
>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>
>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Michael Gogins
>>>>>>>> Irreducible Productions
>>>>>>>> http://www.michael-gogins.com
>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Michael Gogins
>>>>>>> Irreducible Productions
>>>>>>> http://www.michael-gogins.com
>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>
>>>>>>> Show off your parallel programming skills.
>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>
>>>>>> Show off your parallel programming skills.
>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> --
>
>
> Andrés
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-02 17:31
FromAndres Cabrera
SubjectRe: [Cs-dev] Holdup on Windows installers
Hi,

Thanks Michael. I think I did that because under certain circumstances
QuteCsound was receiving messages from Csound after the Csound thread
had joined, which caused problems for example if a tab had been closed
and it's associated data was no longer available. Not sure if that
change actually fixed it, but thanks for fixing it on the Csound side.

Good to know I don't have extra work... =)

Cheers,
Andrés

On Thu, Sep 2, 2010 at 5:27 PM, Michael Gogins  wrote:
> The current QuteCsound releases should be OK since I have switched to
> building Csound with the exact same compiler used by the complete Qt
> installation.
>
> You should not have to make any changes to your code or build system.
>
> I did find one bug that prevented Csound from working properly in
> QuteCsound, but that bug was caused by QuteCsound resetting the Csound
> message callback to null. That in turn caused a segment fault when
> QuteCsound destroys Csound and Csound tries to print messages as it
> takes itself apart. Rather than monkey with QuteCsound code, I changed
> csound.c to reset to the default message callback when someone tries
> to set the message callback to null. There are other possible
> solutions, but that seems OK for now.
>
> At any rate, I am much relieved, and I suspect you may be as well.
>
> Regards,
> Mike
>
> On Thu, Sep 2, 2010 at 11:56 AM, Andres Cabrera  wrote:
>> Hi Michael,
>>
>> Would the current QuteCsound packages be incompatible with this
>> release? Would we need to do anything different when building
>> QuteCsound on Windows from now on?
>>
>> Cheers,
>> Andrés
>>
>> On Thu, Sep 2, 2010 at 4:42 PM, Michael Gogins  wrote:
>>> The problem appears to have been completely resolved by simply
>>> compiling everything -- Csound, third-party dependencies that build
>>> with MinGW, and QuteCsound -- with the version of MinGW that installs
>>> with Qt. This is gcc version 4.4.0 from Qt/MinGW, whereas the version
>>> I was using before was gcc version 4.5.0 from Twilight Dragon Media.
>>>
>>> I had chosen TDM because it was easy to install and had more up to
>>> date OpenMP support, but obviously there are problems.
>>>
>>> The current Qt/MinGW compiler uses dw2 exception handling, whereas the
>>> TDM compiler uses setjump-longjump exception handling.
>>>
>>> If no further major problems turn up, I should be able to upload the
>>> Windows installer before this weekend.
>>>
>>> Regards,
>>> Mike
>>>
>>> On Wed, Sep 1, 2010 at 6:53 PM, Michael Gogins  wrote:
>>>> I am switching to use MinGW with gcc 4.4.0 that comes with Qt 2010.04.
>>>> We'll see...
>>>>
>>>> Mike
>>>>
>>>> On Wed, Sep 1, 2010 at 3:18 PM, Michael Gogins  wrote:
>>>>> I got past some of the FLTK problems by ensuring correct link options,
>>>>> but I still can't finish a performance and then restart in QuteCsound.
>>>>>
>>>>> Also, there are problems with Python and, I expect, other stuff.
>>>>>
>>>>> So, there are enough problems with the new compiler and getting
>>>>> executables to work together than I am going to try reverting the
>>>>> compiler now.
>>>>>
>>>>> On Wed, Sep 1, 2010 at 2:03 PM, Michael Gogins  wrote:
>>>>>> There is still a problem with FLTK.
>>>>>>
>>>>>> Repeat: there have been two problems, one with PortAudio and one with
>>>>>> FLTK. The PortAudio problem is solved but the FLTK problem remains. I
>>>>>> configured FLTK to build with the correct options but I need to make
>>>>>> sure they are actually being used.
>>>>>>
>>>>>> On Wed, Sep 1, 2010 at 12:47 PM, andy fillebrown
>>>>>>  wrote:
>>>>>>> Sweet!  Thank you for figuring this out.  Does this mean we won't have
>>>>>>> to remove fluidOpcodes.dll, virtual.dll, and widgets.dll to get
>>>>>>> QuteCsound to run correctly, or is it unrelated?
>>>>>>>
>>>>>>> Cheers,
>>>>>>> ~ andy.f
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Sep 1, 2010 at 11:36 AM, Michael Gogins
>>>>>>>  wrote:
>>>>>>>> I solved the problem.
>>>>>>>>
>>>>>>>> The cause is that PortAudio contains C++ code, but the rtpa module was
>>>>>>>> being compiled as C code, lacking the MinGW libraries required to
>>>>>>>> handle exceptions that are thrown from multi-threaded code in DLLs.
>>>>>>>> The result was that when the PortAudio module was unloaded, there was
>>>>>>>> a segmentation fault.
>>>>>>>>
>>>>>>>> I fixed the problem by creating a shim rtpa.cpp file that #includes
>>>>>>>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>>>>>>>> compiled and linked instead of rtpa.c. There is no longer a
>>>>>>>> segmentation fault when the rtpa module is unloaded, and Csound can be
>>>>>>>> stopped and restarted in QuteCsound.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Mike
>>>>>>>>
>>>>>>>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>>>>>>>  wrote:
>>>>>>>>> rtpa.c has indeed not changed.
>>>>>>>>>
>>>>>>>>> I will try reverting PortAudio. I have not yet tried reverting the
>>>>>>>>> compiler. I have excluded FLTK as a cause of this problem. It happens
>>>>>>>>> when FreeLibrary is called on the rtpa DLL handle.
>>>>>>>>>
>>>>>>>>> I can also try linking the PortAudio library statically.
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Mike
>>>>>>>>>
>>>>>>>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>>>>>>>  wrote:
>>>>>>>>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>>>>>>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>>>>>>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing those
>>>>>>>>>> 3 clears the problem up for QuteCsound.
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>> ~ andy.f
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>>>>>>>  wrote:
>>>>>>>>>>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>>>>>>>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>>>>>>>> boundaries in multi-threaded code has been in flux for two years. I'm
>>>>>>>>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>>>>>>>>> compiler and see if that helps.
>>>>>>>>>>>
>>>>>>>>>>> Unloading libraries has also been an issue, I may just omit that step
>>>>>>>>>>> on Windows and see what happens.
>>>>>>>>>>>
>>>>>>>>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>>>>>>>>> Csound with the same options for threading and exception handling.
>>>>>>>>>>>
>>>>>>>>>>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>>>>>>>>>>> all plugins and modules that link with FLTK are removed from the path
>>>>>>>>>>> (though I hope I didn't miss anyway).
>>>>>>>>>>>
>>>>>>>>>>> On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
>>>>>>>>>>>> I'm not sure that is the case. I think it's Csound calling the FLTK function.
>>>>>>>>>>>>
>>>>>>>>>>>> ----- Original Message -----
>>>>>>>>>>>> From: Felipe Sateler 
>>>>>>>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>>>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>>>>>>>> To: Developer discussions 
>>>>>>>>>>>>
>>>>>>>>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>> > Looks to me like the fltk threading issue reported earlier.
>>>>>>>>>>>>> >
>>>>>>>>>>>>> > Cheers,
>>>>>>>>>>>>> > ~andy.f
>>>>>>>>>>>>> >
>>>>>>>>>>>>> >
>>>>>>>>>>>>> >
>>>>>>>>>>>>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>>>>>>> >  wrote:
>>>>>>>>>>>>> >> I've run into a serious roadblock on preparing the Csound
>>>>>>>>>>>>> 5.12 windows
>>>>>>>>>>>>> >> installer.
>>>>>>>>>>>>> >>
>>>>>>>>>>>>> >> The module loading  and module unloading code causes segmentation
>>>>>>>>>>>>> >> violations with some libraries including tclcsound.dll and
>>>>>>>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>>>>>>>>> And that means
>>>>>>>>>>>>> >> QuteCsound and other hosts do not work.
>>>>>>>>>>>>> >>
>>>>>>>>>>>>> >> The problem appears to be exhibited in this stack trace and
>>>>>>>>>>>>> seems to
>>>>>>>>>>>>> >> have something to do with thread local storage in MinGW. I am using
>>>>>>>>>>>>> >> the Twilight Dragon Media build of MinGW but I will try the regular
>>>>>>>>>>>>> >> build of MinGW now.
>>>>>>>>>>>>> >>
>>>>>>>>>>>>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>>>>>>>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>>>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>>>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>>>> >> #4  0x77c597a0 in
>>>>>>>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>>>> >> #5  0x6f080000 in ?? ()
>>>>>>>>>>>>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>>>> >> #7  0x6f082920 in __tlregdtor () from
>>>>>>>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>>>> >> #9  0x00000000 in ?? ()
>>>>>>>>>>>>> >>
>>>>>>>>>>>>> >>
>>>>>>>>>>>>> >> Any hints, anyone?
>>>>>>>>>>>>> >>
>>>>>>>>>>>>> >> Regards,
>>>>>>>>>>>>> >> Mike
>>>>>>>>>>>>> >>
>>>>>>>>>>>>> >>
>>>>>>>>>>>>> >> --
>>>>>>>>>>>>> >> Michael Gogins
>>>>>>>>>>>>> >> Irreducible Productions
>>>>>>>>>>>>> >> http://www.michael-gogins.com
>>>>>>>>>>>>> >> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>> >>
>>>>>>>>>>>>> >> --------------------------------------------------------------
>>>>>>>>>>>>> ----------------
>>>>>>>>>>>>> >> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>> >>
>>>>>>>>>>>>> >> Show off your parallel programming skills.
>>>>>>>>>>>>> >> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>>> >> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>>> >> _______________________________________________
>>>>>>>>>>>>> >> Csound-devel mailing list
>>>>>>>>>>>>> >> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>> >>
>>>>>>>>>>>>> >
>>>>>>>>>>>>> > ---------------------------------------------------------------
>>>>>>>>>>>>> ---------------
>>>>>>>>>>>>> > This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>> >
>>>>>>>>>>>>> > Show off your parallel programming skills.
>>>>>>>>>>>>> > Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>>> > http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>>> > _______________________________________________
>>>>>>>>>>>>> > Csound-devel mailing list
>>>>>>>>>>>>> > Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>> >
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>>
>>>>>>>>>>>>> Saludos,
>>>>>>>>>>>>> Felipe Sateler
>>>>>>>>>>>>>
>>>>>>>>>>>>> -----------------------------------------------------------------
>>>>>>>>>>>>> -------------
>>>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>>>>>>>> National University of Ireland, Maynooth
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>
>>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Michael Gogins
>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>
>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>
>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Michael Gogins
>>>>>>>>> Irreducible Productions
>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Michael Gogins
>>>>>>>> Irreducible Productions
>>>>>>>> http://www.michael-gogins.com
>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>
>>>>>>> Show off your parallel programming skills.
>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.net Dev2Dev email is sponsored by:
>>>
>>> Show off your parallel programming skills.
>>> Enter the Intel(R) Threading Challenge 2010.
>>> http://p.sf.net/sfu/intel-thread-sfd
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> --
>>
>>
>> Andrés
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 


Andrés

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cs

Date2010-09-02 18:00
Fromandy fillebrown
SubjectRe: [Cs-dev] Holdup on Windows installers
This is great news!  Thank you again.  This will make things much
easier on the QuteCsound side of things.

Cheers,
~ andy.f



On Thu, Sep 2, 2010 at 11:42 AM, Michael Gogins
 wrote:
> The problem appears to have been completely resolved by simply
> compiling everything -- Csound, third-party dependencies that build
> with MinGW, and QuteCsound -- with the version of MinGW that installs
> with Qt. This is gcc version 4.4.0 from Qt/MinGW, whereas the version
> I was using before was gcc version 4.5.0 from Twilight Dragon Media.
>
> I had chosen TDM because it was easy to install and had more up to
> date OpenMP support, but obviously there are problems.
>
> The current Qt/MinGW compiler uses dw2 exception handling, whereas the
> TDM compiler uses setjump-longjump exception handling.
>
> If no further major problems turn up, I should be able to upload the
> Windows installer before this weekend.
>
> Regards,
> Mike
>
> On Wed, Sep 1, 2010 at 6:53 PM, Michael Gogins  wrote:
>> I am switching to use MinGW with gcc 4.4.0 that comes with Qt 2010.04.
>> We'll see...
>>
>> Mike
>>
>> On Wed, Sep 1, 2010 at 3:18 PM, Michael Gogins  wrote:
>>> I got past some of the FLTK problems by ensuring correct link options,
>>> but I still can't finish a performance and then restart in QuteCsound.
>>>
>>> Also, there are problems with Python and, I expect, other stuff.
>>>
>>> So, there are enough problems with the new compiler and getting
>>> executables to work together than I am going to try reverting the
>>> compiler now.
>>>
>>> On Wed, Sep 1, 2010 at 2:03 PM, Michael Gogins  wrote:
>>>> There is still a problem with FLTK.
>>>>
>>>> Repeat: there have been two problems, one with PortAudio and one with
>>>> FLTK. The PortAudio problem is solved but the FLTK problem remains. I
>>>> configured FLTK to build with the correct options but I need to make
>>>> sure they are actually being used.
>>>>
>>>> On Wed, Sep 1, 2010 at 12:47 PM, andy fillebrown
>>>>  wrote:
>>>>> Sweet!  Thank you for figuring this out.  Does this mean we won't have
>>>>> to remove fluidOpcodes.dll, virtual.dll, and widgets.dll to get
>>>>> QuteCsound to run correctly, or is it unrelated?
>>>>>
>>>>> Cheers,
>>>>> ~ andy.f
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Sep 1, 2010 at 11:36 AM, Michael Gogins
>>>>>  wrote:
>>>>>> I solved the problem.
>>>>>>
>>>>>> The cause is that PortAudio contains C++ code, but the rtpa module was
>>>>>> being compiled as C code, lacking the MinGW libraries required to
>>>>>> handle exceptions that are thrown from multi-threaded code in DLLs.
>>>>>> The result was that when the PortAudio module was unloaded, there was
>>>>>> a segmentation fault.
>>>>>>
>>>>>> I fixed the problem by creating a shim rtpa.cpp file that #includes
>>>>>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>>>>>> compiled and linked instead of rtpa.c. There is no longer a
>>>>>> segmentation fault when the rtpa module is unloaded, and Csound can be
>>>>>> stopped and restarted in QuteCsound.
>>>>>>
>>>>>> Regards,
>>>>>> Mike
>>>>>>
>>>>>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>>>>>  wrote:
>>>>>>> rtpa.c has indeed not changed.
>>>>>>>
>>>>>>> I will try reverting PortAudio. I have not yet tried reverting the
>>>>>>> compiler. I have excluded FLTK as a cause of this problem. It happens
>>>>>>> when FreeLibrary is called on the rtpa DLL handle.
>>>>>>>
>>>>>>> I can also try linking the PortAudio library statically.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Mike
>>>>>>>
>>>>>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>>>>>  wrote:
>>>>>>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>>>>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>>>>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing those
>>>>>>>> 3 clears the problem up for QuteCsound.
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> ~ andy.f
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>>>>>  wrote:
>>>>>>>>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>>>>>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>>>>>> boundaries in multi-threaded code has been in flux for two years. I'm
>>>>>>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>>>>>>> compiler and see if that helps.
>>>>>>>>>
>>>>>>>>> Unloading libraries has also been an issue, I may just omit that step
>>>>>>>>> on Windows and see what happens.
>>>>>>>>>
>>>>>>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>>>>>>> Csound with the same options for threading and exception handling.
>>>>>>>>>
>>>>>>>>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>>>>>>>>> all plugins and modules that link with FLTK are removed from the path
>>>>>>>>> (though I hope I didn't miss anyway).
>>>>>>>>>
>>>>>>>>> On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
>>>>>>>>>> I'm not sure that is the case. I think it's Csound calling the FLTK function.
>>>>>>>>>>
>>>>>>>>>> ----- Original Message -----
>>>>>>>>>> From: Felipe Sateler 
>>>>>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>>>>>> To: Developer discussions 
>>>>>>>>>>
>>>>>>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>>>>>>
>>>>>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>>>>>  wrote:
>>>>>>>>>>> > Looks to me like the fltk threading issue reported earlier.
>>>>>>>>>>> >
>>>>>>>>>>> > Cheers,
>>>>>>>>>>> > ~andy.f
>>>>>>>>>>> >
>>>>>>>>>>> >
>>>>>>>>>>> >
>>>>>>>>>>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>>>>> >  wrote:
>>>>>>>>>>> >> I've run into a serious roadblock on preparing the Csound
>>>>>>>>>>> 5.12 windows
>>>>>>>>>>> >> installer.
>>>>>>>>>>> >>
>>>>>>>>>>> >> The module loading  and module unloading code causes segmentation
>>>>>>>>>>> >> violations with some libraries including tclcsound.dll and
>>>>>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>>>>>>> And that means
>>>>>>>>>>> >> QuteCsound and other hosts do not work.
>>>>>>>>>>> >>
>>>>>>>>>>> >> The problem appears to be exhibited in this stack trace and
>>>>>>>>>>> seems to
>>>>>>>>>>> >> have something to do with thread local storage in MinGW. I am using
>>>>>>>>>>> >> the Twilight Dragon Media build of MinGW but I will try the regular
>>>>>>>>>>> >> build of MinGW now.
>>>>>>>>>>> >>
>>>>>>>>>>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>>>>>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>> >> #4  0x77c597a0 in
>>>>>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>> >> #5  0x6f080000 in ?? ()
>>>>>>>>>>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>> >> #7  0x6f082920 in __tlregdtor () from
>>>>>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>> >> #9  0x00000000 in ?? ()
>>>>>>>>>>> >>
>>>>>>>>>>> >>
>>>>>>>>>>> >> Any hints, anyone?
>>>>>>>>>>> >>
>>>>>>>>>>> >> Regards,
>>>>>>>>>>> >> Mike
>>>>>>>>>>> >>
>>>>>>>>>>> >>
>>>>>>>>>>> >> --
>>>>>>>>>>> >> Michael Gogins
>>>>>>>>>>> >> Irreducible Productions
>>>>>>>>>>> >> http://www.michael-gogins.com
>>>>>>>>>>> >> Michael dot Gogins at gmail dot com
>>>>>>>>>>> >>
>>>>>>>>>>> >> --------------------------------------------------------------
>>>>>>>>>>> ----------------
>>>>>>>>>>> >> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>> >>
>>>>>>>>>>> >> Show off your parallel programming skills.
>>>>>>>>>>> >> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>> >> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>> >> _______________________________________________
>>>>>>>>>>> >> Csound-devel mailing list
>>>>>>>>>>> >> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>> >>
>>>>>>>>>>> >
>>>>>>>>>>> > ---------------------------------------------------------------
>>>>>>>>>>> ---------------
>>>>>>>>>>> > This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>> >
>>>>>>>>>>> > Show off your parallel programming skills.
>>>>>>>>>>> > Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>> > http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>> > _______________________________________________
>>>>>>>>>>> > Csound-devel mailing list
>>>>>>>>>>> > Csound-devel@lists.sourceforge.net
>>>>>>>>>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>> >
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>>
>>>>>>>>>>> Saludos,
>>>>>>>>>>> Felipe Sateler
>>>>>>>>>>>
>>>>>>>>>>> -----------------------------------------------------------------
>>>>>>>>>>> -------------
>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>
>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>>>>>> National University of Ireland, Maynooth
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>
>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Michael Gogins
>>>>>>>>> Irreducible Productions
>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>
>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Michael Gogins
>>>>>>> Irreducible Productions
>>>>>>> http://www.michael-gogins.com
>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>
>>>>>> Show off your parallel programming skills.
>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>
>>>>> Show off your parallel programming skills.
>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-02 18:01
FromMichael Gogins
SubjectRe: [Cs-dev] Holdup on Windows installers
I don't think your change really did fix it. We will see if mine did.
If not we can change the Csound code to print no messages if the
callback is null. That is more work and slightly less efficient and
may not be best in all cases but should certainly work in this case.

Regards,
Mike

On Thu, Sep 2, 2010 at 12:31 PM, Andres Cabrera  wrote:
> Hi,
>
> Thanks Michael. I think I did that because under certain circumstances
> QuteCsound was receiving messages from Csound after the Csound thread
> had joined, which caused problems for example if a tab had been closed
> and it's associated data was no longer available. Not sure if that
> change actually fixed it, but thanks for fixing it on the Csound side.
>
> Good to know I don't have extra work... =)
>
> Cheers,
> Andrés
>
> On Thu, Sep 2, 2010 at 5:27 PM, Michael Gogins  wrote:
>> The current QuteCsound releases should be OK since I have switched to
>> building Csound with the exact same compiler used by the complete Qt
>> installation.
>>
>> You should not have to make any changes to your code or build system.
>>
>> I did find one bug that prevented Csound from working properly in
>> QuteCsound, but that bug was caused by QuteCsound resetting the Csound
>> message callback to null. That in turn caused a segment fault when
>> QuteCsound destroys Csound and Csound tries to print messages as it
>> takes itself apart. Rather than monkey with QuteCsound code, I changed
>> csound.c to reset to the default message callback when someone tries
>> to set the message callback to null. There are other possible
>> solutions, but that seems OK for now.
>>
>> At any rate, I am much relieved, and I suspect you may be as well.
>>
>> Regards,
>> Mike
>>
>> On Thu, Sep 2, 2010 at 11:56 AM, Andres Cabrera  wrote:
>>> Hi Michael,
>>>
>>> Would the current QuteCsound packages be incompatible with this
>>> release? Would we need to do anything different when building
>>> QuteCsound on Windows from now on?
>>>
>>> Cheers,
>>> Andrés
>>>
>>> On Thu, Sep 2, 2010 at 4:42 PM, Michael Gogins  wrote:
>>>> The problem appears to have been completely resolved by simply
>>>> compiling everything -- Csound, third-party dependencies that build
>>>> with MinGW, and QuteCsound -- with the version of MinGW that installs
>>>> with Qt. This is gcc version 4.4.0 from Qt/MinGW, whereas the version
>>>> I was using before was gcc version 4.5.0 from Twilight Dragon Media.
>>>>
>>>> I had chosen TDM because it was easy to install and had more up to
>>>> date OpenMP support, but obviously there are problems.
>>>>
>>>> The current Qt/MinGW compiler uses dw2 exception handling, whereas the
>>>> TDM compiler uses setjump-longjump exception handling.
>>>>
>>>> If no further major problems turn up, I should be able to upload the
>>>> Windows installer before this weekend.
>>>>
>>>> Regards,
>>>> Mike
>>>>
>>>> On Wed, Sep 1, 2010 at 6:53 PM, Michael Gogins  wrote:
>>>>> I am switching to use MinGW with gcc 4.4.0 that comes with Qt 2010.04.
>>>>> We'll see...
>>>>>
>>>>> Mike
>>>>>
>>>>> On Wed, Sep 1, 2010 at 3:18 PM, Michael Gogins  wrote:
>>>>>> I got past some of the FLTK problems by ensuring correct link options,
>>>>>> but I still can't finish a performance and then restart in QuteCsound.
>>>>>>
>>>>>> Also, there are problems with Python and, I expect, other stuff.
>>>>>>
>>>>>> So, there are enough problems with the new compiler and getting
>>>>>> executables to work together than I am going to try reverting the
>>>>>> compiler now.
>>>>>>
>>>>>> On Wed, Sep 1, 2010 at 2:03 PM, Michael Gogins  wrote:
>>>>>>> There is still a problem with FLTK.
>>>>>>>
>>>>>>> Repeat: there have been two problems, one with PortAudio and one with
>>>>>>> FLTK. The PortAudio problem is solved but the FLTK problem remains. I
>>>>>>> configured FLTK to build with the correct options but I need to make
>>>>>>> sure they are actually being used.
>>>>>>>
>>>>>>> On Wed, Sep 1, 2010 at 12:47 PM, andy fillebrown
>>>>>>>  wrote:
>>>>>>>> Sweet!  Thank you for figuring this out.  Does this mean we won't have
>>>>>>>> to remove fluidOpcodes.dll, virtual.dll, and widgets.dll to get
>>>>>>>> QuteCsound to run correctly, or is it unrelated?
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> ~ andy.f
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Sep 1, 2010 at 11:36 AM, Michael Gogins
>>>>>>>>  wrote:
>>>>>>>>> I solved the problem.
>>>>>>>>>
>>>>>>>>> The cause is that PortAudio contains C++ code, but the rtpa module was
>>>>>>>>> being compiled as C code, lacking the MinGW libraries required to
>>>>>>>>> handle exceptions that are thrown from multi-threaded code in DLLs.
>>>>>>>>> The result was that when the PortAudio module was unloaded, there was
>>>>>>>>> a segmentation fault.
>>>>>>>>>
>>>>>>>>> I fixed the problem by creating a shim rtpa.cpp file that #includes
>>>>>>>>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>>>>>>>>> compiled and linked instead of rtpa.c. There is no longer a
>>>>>>>>> segmentation fault when the rtpa module is unloaded, and Csound can be
>>>>>>>>> stopped and restarted in QuteCsound.
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Mike
>>>>>>>>>
>>>>>>>>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>>>>>>>>  wrote:
>>>>>>>>>> rtpa.c has indeed not changed.
>>>>>>>>>>
>>>>>>>>>> I will try reverting PortAudio. I have not yet tried reverting the
>>>>>>>>>> compiler. I have excluded FLTK as a cause of this problem. It happens
>>>>>>>>>> when FreeLibrary is called on the rtpa DLL handle.
>>>>>>>>>>
>>>>>>>>>> I can also try linking the PortAudio library statically.
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>> Mike
>>>>>>>>>>
>>>>>>>>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>>>>>>>>  wrote:
>>>>>>>>>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>>>>>>>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>>>>>>>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing those
>>>>>>>>>>> 3 clears the problem up for QuteCsound.
>>>>>>>>>>>
>>>>>>>>>>> Cheers,
>>>>>>>>>>> ~ andy.f
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>>>>>>>>  wrote:
>>>>>>>>>>>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>>>>>>>>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>>>>>>>>> boundaries in multi-threaded code has been in flux for two years. I'm
>>>>>>>>>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>>>>>>>>>> compiler and see if that helps.
>>>>>>>>>>>>
>>>>>>>>>>>> Unloading libraries has also been an issue, I may just omit that step
>>>>>>>>>>>> on Windows and see what happens.
>>>>>>>>>>>>
>>>>>>>>>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>>>>>>>>>> Csound with the same options for threading and exception handling.
>>>>>>>>>>>>
>>>>>>>>>>>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>>>>>>>>>>>> all plugins and modules that link with FLTK are removed from the path
>>>>>>>>>>>> (though I hope I didn't miss anyway).
>>>>>>>>>>>>
>>>>>>>>>>>> On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
>>>>>>>>>>>>> I'm not sure that is the case. I think it's Csound calling the FLTK function.
>>>>>>>>>>>>>
>>>>>>>>>>>>> ----- Original Message -----
>>>>>>>>>>>>> From: Felipe Sateler 
>>>>>>>>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>>>>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>>>>>>>>> To: Developer discussions 
>>>>>>>>>>>>>
>>>>>>>>>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>> > Looks to me like the fltk threading issue reported earlier.
>>>>>>>>>>>>>> >
>>>>>>>>>>>>>> > Cheers,
>>>>>>>>>>>>>> > ~andy.f
>>>>>>>>>>>>>> >
>>>>>>>>>>>>>> >
>>>>>>>>>>>>>> >
>>>>>>>>>>>>>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>>>>>>>> >  wrote:
>>>>>>>>>>>>>> >> I've run into a serious roadblock on preparing the Csound
>>>>>>>>>>>>>> 5.12 windows
>>>>>>>>>>>>>> >> installer.
>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>> >> The module loading  and module unloading code causes segmentation
>>>>>>>>>>>>>> >> violations with some libraries including tclcsound.dll and
>>>>>>>>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>>>>>>>>>> And that means
>>>>>>>>>>>>>> >> QuteCsound and other hosts do not work.
>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>> >> The problem appears to be exhibited in this stack trace and
>>>>>>>>>>>>>> seems to
>>>>>>>>>>>>>> >> have something to do with thread local storage in MinGW. I am using
>>>>>>>>>>>>>> >> the Twilight Dragon Media build of MinGW but I will try the regular
>>>>>>>>>>>>>> >> build of MinGW now.
>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>>>>>>>>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>>>>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>>>>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>>>>> >> #4  0x77c597a0 in
>>>>>>>>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>>>>> >> #5  0x6f080000 in ?? ()
>>>>>>>>>>>>>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>>>>> >> #7  0x6f082920 in __tlregdtor () from
>>>>>>>>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>>>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>>>>> >> #9  0x00000000 in ?? ()
>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>> >> Any hints, anyone?
>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>> >> Regards,
>>>>>>>>>>>>>> >> Mike
>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>> >> --
>>>>>>>>>>>>>> >> Michael Gogins
>>>>>>>>>>>>>> >> Irreducible Productions
>>>>>>>>>>>>>> >> http://www.michael-gogins.com
>>>>>>>>>>>>>> >> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>> >> --------------------------------------------------------------
>>>>>>>>>>>>>> ----------------
>>>>>>>>>>>>>> >> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>> >> Show off your parallel programming skills.
>>>>>>>>>>>>>> >> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>>>> >> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>>>> >> _______________________________________________
>>>>>>>>>>>>>> >> Csound-devel mailing list
>>>>>>>>>>>>>> >> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>> >
>>>>>>>>>>>>>> > ---------------------------------------------------------------
>>>>>>>>>>>>>> ---------------
>>>>>>>>>>>>>> > This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>>> >
>>>>>>>>>>>>>> > Show off your parallel programming skills.
>>>>>>>>>>>>>> > Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>>>> > http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>>>> > _______________________________________________
>>>>>>>>>>>>>> > Csound-devel mailing list
>>>>>>>>>>>>>> > Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>> >
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Saludos,
>>>>>>>>>>>>>> Felipe Sateler
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> -----------------------------------------------------------------
>>>>>>>>>>>>>> -------------
>>>>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>
>>>>>>>>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>>>>>>>>> National University of Ireland, Maynooth
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>
>>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>
>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Michael Gogins
>>>>>>>>>> Irreducible Productions
>>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Michael Gogins
>>>>>>>>> Irreducible Productions
>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>
>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Michael Gogins
>>>>>>> Irreducible Productions
>>>>>>> http://www.michael-gogins.com
>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF.net Dev2Dev email is sponsored by:
>>>>
>>>> Show off your parallel programming skills.
>>>> Enter the Intel(R) Threading Challenge 2010.
>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>> Andrés
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.net Dev2Dev email is sponsored by:
>>>
>>> Show off your parallel programming skills.
>>> Enter the Intel(R) Threading Challenge 2010.
>>> http://p.sf.net/sfu/intel-thread-sfd
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> --
>
>
> Andrés
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-02 18:14
From"Caecos"
SubjectRe: [Cs-dev] Holdup on Windows installers
It will be great to have Csound for the weekend so I can experiment the
floating version whit Cecilia4 on Windows since Cecilia4 run perfectly with
Csound 5.12.4 on Mac.

Thanks for your work,

Marc

-----Message d'origine-----
De : Michael Gogins [mailto:michael.gogins@gmail.com] 
Envoyé : 2 septembre 2010 11:43
À : Developer discussions
Objet : Re: [Cs-dev] Holdup on Windows installers

The problem appears to have been completely resolved by simply
compiling everything -- Csound, third-party dependencies that build
with MinGW, and QuteCsound -- with the version of MinGW that installs
with Qt. This is gcc version 4.4.0 from Qt/MinGW, whereas the version
I was using before was gcc version 4.5.0 from Twilight Dragon Media.

I had chosen TDM because it was easy to install and had more up to
date OpenMP support, but obviously there are problems.

The current Qt/MinGW compiler uses dw2 exception handling, whereas the
TDM compiler uses setjump-longjump exception handling.

If no further major problems turn up, I should be able to upload the
Windows installer before this weekend.

Regards,
Mike

On Wed, Sep 1, 2010 at 6:53 PM, Michael Gogins 
wrote:
> I am switching to use MinGW with gcc 4.4.0 that comes with Qt 2010.04.
> We'll see...
>
> Mike
>
> On Wed, Sep 1, 2010 at 3:18 PM, Michael Gogins 
wrote:
>> I got past some of the FLTK problems by ensuring correct link options,
>> but I still can't finish a performance and then restart in QuteCsound.
>>
>> Also, there are problems with Python and, I expect, other stuff.
>>
>> So, there are enough problems with the new compiler and getting
>> executables to work together than I am going to try reverting the
>> compiler now.
>>
>> On Wed, Sep 1, 2010 at 2:03 PM, Michael Gogins 
wrote:
>>> There is still a problem with FLTK.
>>>
>>> Repeat: there have been two problems, one with PortAudio and one with
>>> FLTK. The PortAudio problem is solved but the FLTK problem remains. I
>>> configured FLTK to build with the correct options but I need to make
>>> sure they are actually being used.
>>>
>>> On Wed, Sep 1, 2010 at 12:47 PM, andy fillebrown
>>>  wrote:
>>>> Sweet!  Thank you for figuring this out.  Does this mean we won't have
>>>> to remove fluidOpcodes.dll, virtual.dll, and widgets.dll to get
>>>> QuteCsound to run correctly, or is it unrelated?
>>>>
>>>> Cheers,
>>>> ~ andy.f
>>>>
>>>>
>>>>
>>>> On Wed, Sep 1, 2010 at 11:36 AM, Michael Gogins
>>>>  wrote:
>>>>> I solved the problem.
>>>>>
>>>>> The cause is that PortAudio contains C++ code, but the rtpa module was
>>>>> being compiled as C code, lacking the MinGW libraries required to
>>>>> handle exceptions that are thrown from multi-threaded code in DLLs.
>>>>> The result was that when the PortAudio module was unloaded, there was
>>>>> a segmentation fault.
>>>>>
>>>>> I fixed the problem by creating a shim rtpa.cpp file that #includes
>>>>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>>>>> compiled and linked instead of rtpa.c. There is no longer a
>>>>> segmentation fault when the rtpa module is unloaded, and Csound can be
>>>>> stopped and restarted in QuteCsound.
>>>>>
>>>>> Regards,
>>>>> Mike
>>>>>
>>>>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>>>>  wrote:
>>>>>> rtpa.c has indeed not changed.
>>>>>>
>>>>>> I will try reverting PortAudio. I have not yet tried reverting the
>>>>>> compiler. I have excluded FLTK as a cause of this problem. It happens
>>>>>> when FreeLibrary is called on the rtpa DLL handle.
>>>>>>
>>>>>> I can also try linking the PortAudio library statically.
>>>>>>
>>>>>> Regards,
>>>>>> Mike
>>>>>>
>>>>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>>>>  wrote:
>>>>>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>>>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>>>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing
those
>>>>>>> 3 clears the problem up for QuteCsound.
>>>>>>>
>>>>>>> Cheers,
>>>>>>> ~ andy.f
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>>>>  wrote:
>>>>>>>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>>>>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>>>>> boundaries in multi-threaded code has been in flux for two years.
I'm
>>>>>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>>>>>> compiler and see if that helps.
>>>>>>>>
>>>>>>>> Unloading libraries has also been an issue, I may just omit that
step
>>>>>>>> on Windows and see what happens.
>>>>>>>>
>>>>>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>>>>>> Csound with the same options for threading and exception handling.
>>>>>>>>
>>>>>>>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>>>>>>>> all plugins and modules that link with FLTK are removed from the
path
>>>>>>>> (though I hope I didn't miss anyway).
>>>>>>>>
>>>>>>>> On Tue, Aug 31, 2010 at 4:47 PM,   wrote:
>>>>>>>>> I'm not sure that is the case. I think it's Csound calling the
FLTK function.
>>>>>>>>>
>>>>>>>>> ----- Original Message -----
>>>>>>>>> From: Felipe Sateler 
>>>>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>>>>> To: Developer discussions 
>>>>>>>>>
>>>>>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>>>>>
>>>>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>>>>  wrote:
>>>>>>>>>> > Looks to me like the fltk threading issue reported earlier.
>>>>>>>>>> >
>>>>>>>>>> > Cheers,
>>>>>>>>>> > ~andy.f
>>>>>>>>>> >
>>>>>>>>>> >
>>>>>>>>>> >
>>>>>>>>>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>>>> >  wrote:
>>>>>>>>>> >> I've run into a serious roadblock on preparing the Csound
>>>>>>>>>> 5.12 windows
>>>>>>>>>> >> installer.
>>>>>>>>>> >>
>>>>>>>>>> >> The module loading  and module unloading code causes
segmentation
>>>>>>>>>> >> violations with some libraries including tclcsound.dll and
>>>>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>>>>>> And that means
>>>>>>>>>> >> QuteCsound and other hosts do not work.
>>>>>>>>>> >>
>>>>>>>>>> >> The problem appears to be exhibited in this stack trace and
>>>>>>>>>> seems to
>>>>>>>>>> >> have something to do with thread local storage in MinGW. I am
using
>>>>>>>>>> >> the Twilight Dragon Media build of MinGW but I will try the
regular
>>>>>>>>>> >> build of MinGW now.
>>>>>>>>>> >>
>>>>>>>>>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>>>>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>> >> #4  0x77c597a0 in
>>>>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>> >> #5  0x6f080000 in ?? ()
>>>>>>>>>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>> >> #7  0x6f082920 in __tlregdtor () from
>>>>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>> >> #9  0x00000000 in ?? ()
>>>>>>>>>> >>
>>>>>>>>>> >>
>>>>>>>>>> >> Any hints, anyone?
>>>>>>>>>> >>
>>>>>>>>>> >> Regards,
>>>>>>>>>> >> Mike
>>>>>>>>>> >>
>>>>>>>>>> >>
>>>>>>>>>> >> --
>>>>>>>>>> >> Michael Gogins
>>>>>>>>>> >> Irreducible Productions
>>>>>>>>>> >> http://www.michael-gogins.com
>>>>>>>>>> >> Michael dot Gogins at gmail dot com
>>>>>>>>>> >>
>>>>>>>>>> >> --------------------------------------------------------------
>>>>>>>>>> ----------------
>>>>>>>>>> >> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>> >>
>>>>>>>>>> >> Show off your parallel programming skills.
>>>>>>>>>> >> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> >> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> >> _______________________________________________
>>>>>>>>>> >> Csound-devel mailing list
>>>>>>>>>> >> Csound-devel@lists.sourceforge.net
>>>>>>>>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>> >>
>>>>>>>>>> >
>>>>>>>>>> > ---------------------------------------------------------------
>>>>>>>>>> ---------------
>>>>>>>>>> > This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>> >
>>>>>>>>>> > Show off your parallel programming skills.
>>>>>>>>>> > Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> > http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> > _______________________________________________
>>>>>>>>>> > Csound-devel mailing list
>>>>>>>>>> > Csound-devel@lists.sourceforge.net
>>>>>>>>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>> >
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>>
>>>>>>>>>> Saludos,
>>>>>>>>>> Felipe Sateler
>>>>>>>>>>
>>>>>>>>>> -----------------------------------------------------------------
>>>>>>>>>> -------------
>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>
>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>>>>> National University of Ireland, Maynooth
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
----------------------------------------------------------------------------
--
>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>
>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Michael Gogins
>>>>>>>> Irreducible Productions
>>>>>>>> http://www.michael-gogins.com
>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>
>>>>>>>>
----------------------------------------------------------------------------
--
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>>
----------------------------------------------------------------------------
--
>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>
>>>>>>> Show off your parallel programming skills.
>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>>
----------------------------------------------------------------------------
--
>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>
>>>>> Show off your parallel programming skills.
>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>>
----------------------------------------------------------------------------
--
>>>> This SF.net Dev2Dev email is sponsored by:
>>>>
>>>> Show off your parallel programming skills.
>>>> Enter the Intel(R) Threading Challenge 2010.
>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

----------------------------------------------------------------------------
--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-02 23:14
FromVictor Lazzarini
SubjectRe: [Cs-dev] Holdup on Windows installers
Well done, great job. I bet it took a lot of work to get there.
Thanks, Mike.

Victor
On 2 Sep 2010, at 17:27, Michael Gogins wrote:

> The current QuteCsound releases should be OK since I have switched to
> building Csound with the exact same compiler used by the complete Qt
> installation.
>
> You should not have to make any changes to your code or build system.
>
> I did find one bug that prevented Csound from working properly in
> QuteCsound, but that bug was caused by QuteCsound resetting the Csound
> message callback to null. That in turn caused a segment fault when
> QuteCsound destroys Csound and Csound tries to print messages as it
> takes itself apart. Rather than monkey with QuteCsound code, I changed
> csound.c to reset to the default message callback when someone tries
> to set the message callback to null. There are other possible
> solutions, but that seems OK for now.
>
> At any rate, I am much relieved, and I suspect you may be as well.
>
> Regards,
> Mike
>
> On Thu, Sep 2, 2010 at 11:56 AM, Andres Cabrera  
>  wrote:
>> Hi Michael,
>>
>> Would the current QuteCsound packages be incompatible with this
>> release? Would we need to do anything different when building
>> QuteCsound on Windows from now on?
>>
>> Cheers,
>> Andrés
>>
>> On Thu, Sep 2, 2010 at 4:42 PM, Michael Gogins > > wrote:
>>> The problem appears to have been completely resolved by simply
>>> compiling everything -- Csound, third-party dependencies that build
>>> with MinGW, and QuteCsound -- with the version of MinGW that  
>>> installs
>>> with Qt. This is gcc version 4.4.0 from Qt/MinGW, whereas the  
>>> version
>>> I was using before was gcc version 4.5.0 from Twilight Dragon Media.
>>>
>>> I had chosen TDM because it was easy to install and had more up to
>>> date OpenMP support, but obviously there are problems.
>>>
>>> The current Qt/MinGW compiler uses dw2 exception handling, whereas  
>>> the
>>> TDM compiler uses setjump-longjump exception handling.
>>>
>>> If no further major problems turn up, I should be able to upload the
>>> Windows installer before this weekend.
>>>
>>> Regards,
>>> Mike
>>>
>>> On Wed, Sep 1, 2010 at 6:53 PM, Michael Gogins >> > wrote:
>>>> I am switching to use MinGW with gcc 4.4.0 that comes with Qt  
>>>> 2010.04.
>>>> We'll see...
>>>>
>>>> Mike
>>>>
>>>> On Wed, Sep 1, 2010 at 3:18 PM, Michael Gogins >>> > wrote:
>>>>> I got past some of the FLTK problems by ensuring correct link  
>>>>> options,
>>>>> but I still can't finish a performance and then restart in  
>>>>> QuteCsound.
>>>>>
>>>>> Also, there are problems with Python and, I expect, other stuff.
>>>>>
>>>>> So, there are enough problems with the new compiler and getting
>>>>> executables to work together than I am going to try reverting the
>>>>> compiler now.
>>>>>
>>>>> On Wed, Sep 1, 2010 at 2:03 PM, Michael Gogins >>>> > wrote:
>>>>>> There is still a problem with FLTK.
>>>>>>
>>>>>> Repeat: there have been two problems, one with PortAudio and  
>>>>>> one with
>>>>>> FLTK. The PortAudio problem is solved but the FLTK problem  
>>>>>> remains. I
>>>>>> configured FLTK to build with the correct options but I need to  
>>>>>> make
>>>>>> sure they are actually being used.
>>>>>>
>>>>>> On Wed, Sep 1, 2010 at 12:47 PM, andy fillebrown
>>>>>>  wrote:
>>>>>>> Sweet!  Thank you for figuring this out.  Does this mean we  
>>>>>>> won't have
>>>>>>> to remove fluidOpcodes.dll, virtual.dll, and widgets.dll to get
>>>>>>> QuteCsound to run correctly, or is it unrelated?
>>>>>>>
>>>>>>> Cheers,
>>>>>>> ~ andy.f
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Sep 1, 2010 at 11:36 AM, Michael Gogins
>>>>>>>  wrote:
>>>>>>>> I solved the problem.
>>>>>>>>
>>>>>>>> The cause is that PortAudio contains C++ code, but the rtpa  
>>>>>>>> module was
>>>>>>>> being compiled as C code, lacking the MinGW libraries  
>>>>>>>> required to
>>>>>>>> handle exceptions that are thrown from multi-threaded code in  
>>>>>>>> DLLs.
>>>>>>>> The result was that when the PortAudio module was unloaded,  
>>>>>>>> there was
>>>>>>>> a segmentation fault.
>>>>>>>>
>>>>>>>> I fixed the problem by creating a shim rtpa.cpp file that  
>>>>>>>> #includes
>>>>>>>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>>>>>>>> compiled and linked instead of rtpa.c. There is no longer a
>>>>>>>> segmentation fault when the rtpa module is unloaded, and  
>>>>>>>> Csound can be
>>>>>>>> stopped and restarted in QuteCsound.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Mike
>>>>>>>>
>>>>>>>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>>>>>>>  wrote:
>>>>>>>>> rtpa.c has indeed not changed.
>>>>>>>>>
>>>>>>>>> I will try reverting PortAudio. I have not yet tried  
>>>>>>>>> reverting the
>>>>>>>>> compiler. I have excluded FLTK as a cause of this problem.  
>>>>>>>>> It happens
>>>>>>>>> when FreeLibrary is called on the rtpa DLL handle.
>>>>>>>>>
>>>>>>>>> I can also try linking the PortAudio library statically.
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Mike
>>>>>>>>>
>>>>>>>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>>>>>>>  wrote:
>>>>>>>>>> The 3 plugins that are problematic for QuteCsound are  
>>>>>>>>>> virtual.dll,
>>>>>>>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>>>>>>>> fluidOpcodes.dll does anything with fltk.  Regardless,  
>>>>>>>>>> removing those
>>>>>>>>>> 3 clears the problem up for QuteCsound.
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>> ~ andy.f
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>>>>>>>  wrote:
>>>>>>>>>>> I'm pretty sure there is an interaction with FLTK. In GCC  
>>>>>>>>>>> and MinGW
>>>>>>>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>>>>>>>> boundaries in multi-threaded code has been in flux for two  
>>>>>>>>>>> years. I'm
>>>>>>>>>>> beginning to wonder why it ever worked. I'm going to  
>>>>>>>>>>> revert the
>>>>>>>>>>> compiler and see if that helps.
>>>>>>>>>>>
>>>>>>>>>>> Unloading libraries has also been an issue, I may just  
>>>>>>>>>>> omit that step
>>>>>>>>>>> on Windows and see what happens.
>>>>>>>>>>>
>>>>>>>>>>> Note that at this point I am building FLTK itself,  
>>>>>>>>>>> PortAudio, and
>>>>>>>>>>> Csound with the same options for threading and exception  
>>>>>>>>>>> handling.
>>>>>>>>>>>
>>>>>>>>>>> The same exception happens in tclcsound.dll and in  
>>>>>>>>>>> rtpa.dll even if
>>>>>>>>>>> all plugins and modules that link with FLTK are removed  
>>>>>>>>>>> from the path
>>>>>>>>>>> (though I hope I didn't miss anyway).
>>>>>>>>>>>
>>>>>>>>>>> On Tue, Aug 31, 2010 at 4:47 PM,   
>>>>>>>>>>>  wrote:
>>>>>>>>>>>> I'm not sure that is the case. I think it's Csound  
>>>>>>>>>>>> calling the FLTK function.
>>>>>>>>>>>>
>>>>>>>>>>>> ----- Original Message -----
>>>>>>>>>>>> From: Felipe Sateler 
>>>>>>>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>>>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>>>>>>>> To: Developer discussions >>>>>>>>>>> >
>>>>>>>>>>>>
>>>>>>>>>>>>> What suprises me is that rtpa wants to call code from  
>>>>>>>>>>>>> fltk.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>> Looks to me like the fltk threading issue reported  
>>>>>>>>>>>>>> earlier.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>> ~andy.f
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>> I've run into a serious roadblock on preparing the  
>>>>>>>>>>>>>>> Csound
>>>>>>>>>>>>> 5.12 windows
>>>>>>>>>>>>>>> installer.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The module loading  and module unloading code causes  
>>>>>>>>>>>>>>> segmentation
>>>>>>>>>>>>>>> violations with some libraries including tclcsound.dll  
>>>>>>>>>>>>>>> and
>>>>>>>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re- 
>>>>>>>>>>>>> startable.
>>>>>>>>>>>>> And that means
>>>>>>>>>>>>>>> QuteCsound and other hosts do not work.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The problem appears to be exhibited in this stack  
>>>>>>>>>>>>>>> trace and
>>>>>>>>>>>>> seems to
>>>>>>>>>>>>>>> have something to do with thread local storage in  
>>>>>>>>>>>>>>> MinGW. I am using
>>>>>>>>>>>>>>> the Twilight Dragon Media build of MinGW but I will  
>>>>>>>>>>>>>>> try the regular
>>>>>>>>>>>>>>> build of MinGW now.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/ 
>>>>>>>>>>>>>>> Fl_Repeat_Button.H:33
>>>>>>>>>>>>>>> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>>>>>> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>>>>>> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>>>>>> #4  0x77c597a0 in
>>>>>>>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>>>>>> #5  0x6f080000 in ?? ()
>>>>>>>>>>>>>>> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>>>>>> #7  0x6f082920 in __tlregdtor () from
>>>>>>>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>>>>>> #9  0x00000000 in ?? ()
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Any hints, anyone?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>> Mike
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> --------------------------------------------------------------
>>>>>>>>>>>>> ----------------
>>>>>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound- 
>>>>>>>>>>>>>>> devel
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ---------------------------------------------------------------
>>>>>>>>>>>>> ---------------
>>>>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>>
>>>>>>>>>>>>> Saludos,
>>>>>>>>>>>>> Felipe Sateler
>>>>>>>>>>>>>
>>>>>>>>>>>>> -----------------------------------------------------------------
>>>>>>>>>>>>> -------------
>>>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>>>>>>>> National University of Ireland, Maynooth
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>
>>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Michael Gogins
>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>
>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>
>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Michael Gogins
>>>>>>>>> Irreducible Productions
>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Michael Gogins
>>>>>>>> Irreducible Productions
>>>>>>>> http://www.michael-gogins.com
>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>
>>>>>>> Show off your parallel programming skills.
>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.net Dev2Dev email is sponsored by:
>>>
>>> Show off your parallel programming skills.
>>> Enter the Intel(R) Threading Challenge 2010.
>>> http://p.sf.net/sfu/intel-thread-sfd
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> --
>>
>>
>> Andrés
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> -- 
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-03 00:19
FromMichael Gogins
SubjectRe: [Cs-dev] Holdup on Windows installers
It's all because of renovating my apartment. Too many things had
changed, including the compiler version and my own computer, by the
time I got around to it.

Regards,
Mike

On Thu, Sep 2, 2010 at 6:14 PM, Victor Lazzarini
 wrote:
> Well done, great job. I bet it took a lot of work to get there.
> Thanks, Mike.
>
> Victor
> On 2 Sep 2010, at 17:27, Michael Gogins wrote:
>
>> The current QuteCsound releases should be OK since I have switched to
>> building Csound with the exact same compiler used by the complete Qt
>> installation.
>>
>> You should not have to make any changes to your code or build system.
>>
>> I did find one bug that prevented Csound from working properly in
>> QuteCsound, but that bug was caused by QuteCsound resetting the Csound
>> message callback to null. That in turn caused a segment fault when
>> QuteCsound destroys Csound and Csound tries to print messages as it
>> takes itself apart. Rather than monkey with QuteCsound code, I changed
>> csound.c to reset to the default message callback when someone tries
>> to set the message callback to null. There are other possible
>> solutions, but that seems OK for now.
>>
>> At any rate, I am much relieved, and I suspect you may be as well.
>>
>> Regards,
>> Mike
>>
>> On Thu, Sep 2, 2010 at 11:56 AM, Andres Cabrera
>>  wrote:
>>> Hi Michael,
>>>
>>> Would the current QuteCsound packages be incompatible with this
>>> release? Would we need to do anything different when building
>>> QuteCsound on Windows from now on?
>>>
>>> Cheers,
>>> Andrés
>>>
>>> On Thu, Sep 2, 2010 at 4:42 PM, Michael Gogins >> > wrote:
>>>> The problem appears to have been completely resolved by simply
>>>> compiling everything -- Csound, third-party dependencies that build
>>>> with MinGW, and QuteCsound -- with the version of MinGW that
>>>> installs
>>>> with Qt. This is gcc version 4.4.0 from Qt/MinGW, whereas the
>>>> version
>>>> I was using before was gcc version 4.5.0 from Twilight Dragon Media.
>>>>
>>>> I had chosen TDM because it was easy to install and had more up to
>>>> date OpenMP support, but obviously there are problems.
>>>>
>>>> The current Qt/MinGW compiler uses dw2 exception handling, whereas
>>>> the
>>>> TDM compiler uses setjump-longjump exception handling.
>>>>
>>>> If no further major problems turn up, I should be able to upload the
>>>> Windows installer before this weekend.
>>>>
>>>> Regards,
>>>> Mike
>>>>
>>>> On Wed, Sep 1, 2010 at 6:53 PM, Michael Gogins >>> > wrote:
>>>>> I am switching to use MinGW with gcc 4.4.0 that comes with Qt
>>>>> 2010.04.
>>>>> We'll see...
>>>>>
>>>>> Mike
>>>>>
>>>>> On Wed, Sep 1, 2010 at 3:18 PM, Michael Gogins >>>> > wrote:
>>>>>> I got past some of the FLTK problems by ensuring correct link
>>>>>> options,
>>>>>> but I still can't finish a performance and then restart in
>>>>>> QuteCsound.
>>>>>>
>>>>>> Also, there are problems with Python and, I expect, other stuff.
>>>>>>
>>>>>> So, there are enough problems with the new compiler and getting
>>>>>> executables to work together than I am going to try reverting the
>>>>>> compiler now.
>>>>>>
>>>>>> On Wed, Sep 1, 2010 at 2:03 PM, Michael Gogins >>>>> > wrote:
>>>>>>> There is still a problem with FLTK.
>>>>>>>
>>>>>>> Repeat: there have been two problems, one with PortAudio and
>>>>>>> one with
>>>>>>> FLTK. The PortAudio problem is solved but the FLTK problem
>>>>>>> remains. I
>>>>>>> configured FLTK to build with the correct options but I need to
>>>>>>> make
>>>>>>> sure they are actually being used.
>>>>>>>
>>>>>>> On Wed, Sep 1, 2010 at 12:47 PM, andy fillebrown
>>>>>>>  wrote:
>>>>>>>> Sweet!  Thank you for figuring this out.  Does this mean we
>>>>>>>> won't have
>>>>>>>> to remove fluidOpcodes.dll, virtual.dll, and widgets.dll to get
>>>>>>>> QuteCsound to run correctly, or is it unrelated?
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> ~ andy.f
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Sep 1, 2010 at 11:36 AM, Michael Gogins
>>>>>>>>  wrote:
>>>>>>>>> I solved the problem.
>>>>>>>>>
>>>>>>>>> The cause is that PortAudio contains C++ code, but the rtpa
>>>>>>>>> module was
>>>>>>>>> being compiled as C code, lacking the MinGW libraries
>>>>>>>>> required to
>>>>>>>>> handle exceptions that are thrown from multi-threaded code in
>>>>>>>>> DLLs.
>>>>>>>>> The result was that when the PortAudio module was unloaded,
>>>>>>>>> there was
>>>>>>>>> a segmentation fault.
>>>>>>>>>
>>>>>>>>> I fixed the problem by creating a shim rtpa.cpp file that
>>>>>>>>> #includes
>>>>>>>>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>>>>>>>>> compiled and linked instead of rtpa.c. There is no longer a
>>>>>>>>> segmentation fault when the rtpa module is unloaded, and
>>>>>>>>> Csound can be
>>>>>>>>> stopped and restarted in QuteCsound.
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Mike
>>>>>>>>>
>>>>>>>>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>>>>>>>>  wrote:
>>>>>>>>>> rtpa.c has indeed not changed.
>>>>>>>>>>
>>>>>>>>>> I will try reverting PortAudio. I have not yet tried
>>>>>>>>>> reverting the
>>>>>>>>>> compiler. I have excluded FLTK as a cause of this problem.
>>>>>>>>>> It happens
>>>>>>>>>> when FreeLibrary is called on the rtpa DLL handle.
>>>>>>>>>>
>>>>>>>>>> I can also try linking the PortAudio library statically.
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>> Mike
>>>>>>>>>>
>>>>>>>>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>>>>>>>>  wrote:
>>>>>>>>>>> The 3 plugins that are problematic for QuteCsound are
>>>>>>>>>>> virtual.dll,
>>>>>>>>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>>>>>>>>> fluidOpcodes.dll does anything with fltk.  Regardless,
>>>>>>>>>>> removing those
>>>>>>>>>>> 3 clears the problem up for QuteCsound.
>>>>>>>>>>>
>>>>>>>>>>> Cheers,
>>>>>>>>>>> ~ andy.f
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>>>>>>>>  wrote:
>>>>>>>>>>>> I'm pretty sure there is an interaction with FLTK. In GCC
>>>>>>>>>>>> and MinGW
>>>>>>>>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>>>>>>>>> boundaries in multi-threaded code has been in flux for two
>>>>>>>>>>>> years. I'm
>>>>>>>>>>>> beginning to wonder why it ever worked. I'm going to
>>>>>>>>>>>> revert the
>>>>>>>>>>>> compiler and see if that helps.
>>>>>>>>>>>>
>>>>>>>>>>>> Unloading libraries has also been an issue, I may just
>>>>>>>>>>>> omit that step
>>>>>>>>>>>> on Windows and see what happens.
>>>>>>>>>>>>
>>>>>>>>>>>> Note that at this point I am building FLTK itself,
>>>>>>>>>>>> PortAudio, and
>>>>>>>>>>>> Csound with the same options for threading and exception
>>>>>>>>>>>> handling.
>>>>>>>>>>>>
>>>>>>>>>>>> The same exception happens in tclcsound.dll and in
>>>>>>>>>>>> rtpa.dll even if
>>>>>>>>>>>> all plugins and modules that link with FLTK are removed
>>>>>>>>>>>> from the path
>>>>>>>>>>>> (though I hope I didn't miss anyway).
>>>>>>>>>>>>
>>>>>>>>>>>> On Tue, Aug 31, 2010 at 4:47 PM,
>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>> I'm not sure that is the case. I think it's Csound
>>>>>>>>>>>>> calling the FLTK function.
>>>>>>>>>>>>>
>>>>>>>>>>>>> ----- Original Message -----
>>>>>>>>>>>>> From: Felipe Sateler 
>>>>>>>>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>>>>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>>>>>>>>> To: Developer discussions >>>>>>>>>>>> >
>>>>>>>>>>>>>
>>>>>>>>>>>>>> What suprises me is that rtpa wants to call code from
>>>>>>>>>>>>>> fltk.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>> Looks to me like the fltk threading issue reported
>>>>>>>>>>>>>>> earlier.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>> ~andy.f
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>> I've run into a serious roadblock on preparing the
>>>>>>>>>>>>>>>> Csound
>>>>>>>>>>>>>> 5.12 windows
>>>>>>>>>>>>>>>> installer.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> The module loading  and module unloading code causes
>>>>>>>>>>>>>>>> segmentation
>>>>>>>>>>>>>>>> violations with some libraries including tclcsound.dll
>>>>>>>>>>>>>>>> and
>>>>>>>>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-
>>>>>>>>>>>>>> startable.
>>>>>>>>>>>>>> And that means
>>>>>>>>>>>>>>>> QuteCsound and other hosts do not work.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> The problem appears to be exhibited in this stack
>>>>>>>>>>>>>>>> trace and
>>>>>>>>>>>>>> seems to
>>>>>>>>>>>>>>>> have something to do with thread local storage in
>>>>>>>>>>>>>>>> MinGW. I am using
>>>>>>>>>>>>>>>> the Twilight Dragon Media build of MinGW but I will
>>>>>>>>>>>>>>>> try the regular
>>>>>>>>>>>>>>>> build of MinGW now.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/
>>>>>>>>>>>>>>>> Fl_Repeat_Button.H:33
>>>>>>>>>>>>>>>> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>>>>>>> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>>>>>>> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>>>>>>>>>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>>>>>>>> #4  0x77c597a0 in
>>>>>>>>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>>>>>>> #5  0x6f080000 in ?? ()
>>>>>>>>>>>>>>>> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>>>>>>> #7  0x6f082920 in __tlregdtor () from
>>>>>>>>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>>>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>>>>>>>>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>>>>>>>> #9  0x00000000 in ?? ()
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Any hints, anyone?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>>> Mike
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> --------------------------------------------------------------
>>>>>>>>>>>>>> ----------------
>>>>>>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-
>>>>>>>>>>>>>>>> devel
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ---------------------------------------------------------------
>>>>>>>>>>>>>> ---------------
>>>>>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Saludos,
>>>>>>>>>>>>>> Felipe Sateler
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> -----------------------------------------------------------------
>>>>>>>>>>>>>> -------------
>>>>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>
>>>>>>>>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>>>>>>>>> National University of Ireland, Maynooth
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>>
>>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>>
>>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Michael Gogins
>>>>>>>>>> Irreducible Productions
>>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Michael Gogins
>>>>>>>>> Irreducible Productions
>>>>>>>>> http://www.michael-gogins.com
>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>
>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Michael Gogins
>>>>>>> Irreducible Productions
>>>>>>> http://www.michael-gogins.com
>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF.net Dev2Dev email is sponsored by:
>>>>
>>>> Show off your parallel programming skills.
>>>> Enter the Intel(R) Threading Challenge 2010.
>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>> Andrés
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.net Dev2Dev email is sponsored by:
>>>
>>> Show off your parallel programming skills.
>>> Enter the Intel(R) Threading Challenge 2010.
>>> http://p.sf.net/sfu/intel-thread-sfd
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>> ------------------------------------------------------------------------------
>> This SF.net Dev2Dev email is sponsored by:
>>
>> Show off your parallel programming skills.
>> Enter the Intel(R) Threading Challenge 2010.
>> http://p.sf.net/sfu/intel-thread-sfd
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-09-03 01:41
FromOlivier Bélanger
SubjectRe: [Cs-dev] Holdup on Windows installers
AttachmentsNone  None  
Nice, Cecilia4 uses crossfm opcodes added in Csound 5.12!

Olivier

2010/9/2 Caecos <mddemers@hotmail.com>
It will be great to have Csound for the weekend so I can experiment the
floating version whit Cecilia4 on Windows since Cecilia4 run perfectly with
Csound 5.12.4 on Mac.

Thanks for your work,

Marc

-----Message d'origine-----
De : Michael Gogins [mailto:michael.gogins@gmail.com]
Envoyé : 2 septembre 2010 11:43
À : Developer discussions
Objet : Re: [Cs-dev] Holdup on Windows installers

The problem appears to have been completely resolved by simply
compiling everything -- Csound, third-party dependencies that build
with MinGW, and QuteCsound -- with the version of MinGW that installs
with Qt. This is gcc version 4.4.0 from Qt/MinGW, whereas the version
I was using before was gcc version 4.5.0 from Twilight Dragon Media.

I had chosen TDM because it was easy to install and had more up to
date OpenMP support, but obviously there are problems.

The current Qt/MinGW compiler uses dw2 exception handling, whereas the
TDM compiler uses setjump-longjump exception handling.

If no further major problems turn up, I should be able to upload the
Windows installer before this weekend.

Regards,
Mike

On Wed, Sep 1, 2010 at 6:53 PM, Michael Gogins <michael.gogins@gmail.com>
wrote:
> I am switching to use MinGW with gcc 4.4.0 that comes with Qt 2010.04.
> We'll see...
>
> Mike
>
> On Wed, Sep 1, 2010 at 3:18 PM, Michael Gogins <michael.gogins@gmail.com>
wrote:
>> I got past some of the FLTK problems by ensuring correct link options,
>> but I still can't finish a performance and then restart in QuteCsound.
>>
>> Also, there are problems with Python and, I expect, other stuff.
>>
>> So, there are enough problems with the new compiler and getting
>> executables to work together than I am going to try reverting the
>> compiler now.
>>
>> On Wed, Sep 1, 2010 at 2:03 PM, Michael Gogins <michael.gogins@gmail.com>
wrote:
>>> There is still a problem with FLTK.
>>>
>>> Repeat: there have been two problems, one with PortAudio and one with
>>> FLTK. The PortAudio problem is solved but the FLTK problem remains. I
>>> configured FLTK to build with the correct options but I need to make
>>> sure they are actually being used.
>>>
>>> On Wed, Sep 1, 2010 at 12:47 PM, andy fillebrown
>>> <andy.fillebrown@gmail.com> wrote:
>>>> Sweet!  Thank you for figuring this out.  Does this mean we won't have
>>>> to remove fluidOpcodes.dll, virtual.dll, and widgets.dll to get
>>>> QuteCsound to run correctly, or is it unrelated?
>>>>
>>>> Cheers,
>>>> ~ andy.f
>>>>
>>>>
>>>>
>>>> On Wed, Sep 1, 2010 at 11:36 AM, Michael Gogins
>>>> <michael.gogins@gmail.com> wrote:
>>>>> I solved the problem.
>>>>>
>>>>> The cause is that PortAudio contains C++ code, but the rtpa module was
>>>>> being compiled as C code, lacking the MinGW libraries required to
>>>>> handle exceptions that are thrown from multi-threaded code in DLLs.
>>>>> The result was that when the PortAudio module was unloaded, there was
>>>>> a segmentation fault.
>>>>>
>>>>> I fixed the problem by creating a shim rtpa.cpp file that #includes
>>>>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>>>>> compiled and linked instead of rtpa.c. There is no longer a
>>>>> segmentation fault when the rtpa module is unloaded, and Csound can be
>>>>> stopped and restarted in QuteCsound.
>>>>>
>>>>> Regards,
>>>>> Mike
>>>>>
>>>>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>>>> <michael.gogins@gmail.com> wrote:
>>>>>> rtpa.c has indeed not changed.
>>>>>>
>>>>>> I will try reverting PortAudio. I have not yet tried reverting the
>>>>>> compiler. I have excluded FLTK as a cause of this problem. It happens
>>>>>> when FreeLibrary is called on the rtpa DLL handle.
>>>>>>
>>>>>> I can also try linking the PortAudio library statically.
>>>>>>
>>>>>> Regards,
>>>>>> Mike
>>>>>>
>>>>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>>>> <andy.fillebrown@gmail.com> wrote:
>>>>>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>>>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>>>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing
those
>>>>>>> 3 clears the problem up for QuteCsound.
>>>>>>>
>>>>>>> Cheers,
>>>>>>> ~ andy.f
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>>>> <michael.gogins@gmail.com> wrote:
>>>>>>>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>>>>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>>>>> boundaries in multi-threaded code has been in flux for two years.
I'm
>>>>>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>>>>>> compiler and see if that helps.
>>>>>>>>
>>>>>>>> Unloading libraries has also been an issue, I may just omit that
step
>>>>>>>> on Windows and see what happens.
>>>>>>>>
>>>>>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>>>>>> Csound with the same options for threading and exception handling.
>>>>>>>>
>>>>>>>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>>>>>>>> all plugins and modules that link with FLTK are removed from the
path
>>>>>>>> (though I hope I didn't miss anyway).
>>>>>>>>
>>>>>>>> On Tue, Aug 31, 2010 at 4:47 PM,  <Victor.Lazzarini@nuim.ie> wrote:
>>>>>>>>> I'm not sure that is the case. I think it's Csound calling the
FLTK function.
>>>>>>>>>
>>>>>>>>> ----- Original Message -----
>>>>>>>>> From: Felipe Sateler <fsateler@gmail.com>
>>>>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>>>>> To: Developer discussions <csound-devel@lists.sourceforge.net>
>>>>>>>>>
>>>>>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>>>>>
>>>>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>>>> <andy.fillebrown@gmail.com> wrote:
>>>>>>>>>> > Looks to me like the fltk threading issue reported earlier.
>>>>>>>>>> >
>>>>>>>>>> > Cheers,
>>>>>>>>>> > ~andy.f
>>>>>>>>>> >
>>>>>>>>>> >
>>>>>>>>>> >
>>>>>>>>>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>>>> > <michael.gogins@gmail.com> wrote:
>>>>>>>>>> >> I've run into a serious roadblock on preparing the Csound
>>>>>>>>>> 5.12 windows
>>>>>>>>>> >> installer.
>>>>>>>>>> >>
>>>>>>>>>> >> The module loading  and module unloading code causes
segmentation
>>>>>>>>>> >> violations with some libraries including tclcsound.dll and
>>>>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>>>>>> And that means
>>>>>>>>>> >> QuteCsound and other hosts do not work.
>>>>>>>>>> >>
>>>>>>>>>> >> The problem appears to be exhibited in this stack trace and
>>>>>>>>>> seems to
>>>>>>>>>> >> have something to do with thread local storage in MinGW. I am
using
>>>>>>>>>> >> the Twilight Dragon Media build of MinGW but I will try the
regular
>>>>>>>>>> >> build of MinGW now.
>>>>>>>>>> >>
>>>>>>>>>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>>>>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>> >> #4  0x77c597a0 in
>>>>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>> >> #5  0x6f080000 in ?? ()
>>>>>>>>>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>> >> #7  0x6f082920 in __tlregdtor () from
>>>>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>> >> #9  0x00000000 in ?? ()
>>>>>>>>>> >>
>>>>>>>>>> >>
>>>>>>>>>> >> Any hints, anyone?
>>>>>>>>>> >>
>>>>>>>>>> >> Regards,
>>>>>>>>>> >> Mike
>>>>>>>>>> >>
>>>>>>>>>> >>
>>>>>>>>>> >> --
>>>>>>>>>> >> Michael Gogins
>>>>>>>>>> >> Irreducible Productions
>>>>>>>>>> >> http://www.michael-gogins.com
>>>>>>>>>> >> Michael dot Gogins at gmail dot com
>>>>>>>>>> >>
>>>>>>>>>> >> --------------------------------------------------------------
>>>>>>>>>> ----------------
>>>>>>>>>> >> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>> >>
>>>>>>>>>> >> Show off your parallel programming skills.
>>>>>>>>>> >> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> >> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> >> _______________________________________________
>>>>>>>>>> >> Csound-devel mailing list
>>>>>>>>>> >> Csound-devel@lists.sourceforge.net
>>>>>>>>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>> >>
>>>>>>>>>> >
>>>>>>>>>> > ---------------------------------------------------------------
>>>>>>>>>> ---------------
>>>>>>>>>> > This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>> >
>>>>>>>>>> > Show off your parallel programming skills.
>>>>>>>>>> > Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> > http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> > _______________________________________________
>>>>>>>>>> > Csound-devel mailing list
>>>>>>>>>> > Csound-devel@lists.sourceforge.net
>>>>>>>>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>> >
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>>
>>>>>>>>>> Saludos,
>>>>>>>>>> Felipe Sateler
>>>>>>>>>>
>>>>>>>>>> -----------------------------------------------------------------
>>>>>>>>>> -------------
>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>
>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>>>>> National University of Ireland, Maynooth
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
----------------------------------------------------------------------------
--
>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>
>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Michael Gogins
>>>>>>>> Irreducible Productions
>>>>>>>> http://www.michael-gogins.com
>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>
>>>>>>>>
----------------------------------------------------------------------------
--
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>>
----------------------------------------------------------------------------
--
>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>
>>>>>>> Show off your parallel programming skills.
>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>>
----------------------------------------------------------------------------
--
>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>
>>>>> Show off your parallel programming skills.
>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>>
----------------------------------------------------------------------------
--
>>>> This SF.net Dev2Dev email is sponsored by:
>>>>
>>>> Show off your parallel programming skills.
>>>> Enter the Intel(R) Threading Challenge 2010.
>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>



--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

----------------------------------------------------------------------------
--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2010-09-03 05:24
From"Marc D. Demers"
SubjectRe: [Cs-dev] Holdup on Windows installers
AttachmentsNone  None  
Cecilia4 (source version) is working fine with Csound 5.12.1-d. Only the module windows does not always display correctly.

Marc


 





Date: Thu, 2 Sep 2010 20:41:00 -0400
From: olivier.belanger@umontreal.ca
To: csound-devel@lists.sourceforge.net
Subject: Re: [Cs-dev] Holdup on Windows installers

Nice, Cecilia4 uses crossfm opcodes added in Csound 5.12!

Olivier

2010/9/2 Caecos <mddemers@hotmail.com>
It will be great to have Csound for the weekend so I can experiment the
floating version whit Cecilia4 on Windows since Cecilia4 run perfectly with
Csound 5.12.4 on Mac.

Thanks for your work,

Marc

-----Message d'origine-----
De : Michael Gogins [mailto:michael.gogins@gmail.com]
Envoyé : 2 septembre 2010 11:43
À : Developer discussions
Objet : Re: [Cs-dev] Holdup on Windows installers

The problem appears to have been completely resolved by simply
compiling everything -- Csound, third-party dependencies that build
with MinGW, and QuteCsound -- with the version of MinGW that installs
with Qt. This is gcc version 4.4.0 from Qt/MinGW, whereas the version
I was using before was gcc version 4.5.0 from Twilight Dragon Media.

I had chosen TDM because it was easy to install and had more up to
date OpenMP support, but obviously there are problems.

The current Qt/MinGW compiler uses dw2 exception handling, whereas the
TDM compiler uses setjump-longjump exception handling.

If no further major problems turn up, I should be able to upload the
Windows installer before this weekend.

Regards,
Mike

On Wed, Sep 1, 2010 at 6:53 PM, Michael Gogins <michael.gogins@gmail.com>
wrote:
> I am switching to use MinGW with gcc 4.4.0 that comes with Qt 2010.04.
> We'll see...
>
> Mike
>
> On Wed, Sep 1, 2010 at 3:18 PM, Michael Gogins <michael.gogins@gmail.com>
wrote:
>> I got past some of the FLTK problems by ensuring correct link options,
>> but I still can't finish a performance and then restart in QuteCsound.
>>
>> Also, there are problems with Python and, I expect, other stuff.
>>
>> So, there are enough problems with the new compiler and getting
>> executables to work together than I am going to try reverting the
>> compiler now.
>>
>> On Wed, Sep 1, 2010 at 2:03 PM, Michael Gogins <michael.gogins@gmail.com>
wrote:
>>> There is still a problem with FLTK.
>>>
>>> Repeat: there have been two problems, one with PortAudio and one with
>>> FLTK. The PortAudio problem is solved but the FLTK problem remains. I
>>> configured FLTK to build with the correct options but I need to make
>>> sure they are actually being used.
>>>
>>> On Wed, Sep 1, 2010 at 12:47 PM, andy fillebrown
>>> <andy.fillebrown@gmail.com> wrote:
>>>> Sweet!  Thank you for figuring this out.  Does this mean we won't have
>>>> to remove fluidOpcodes.dll, virtual.dll, and widgets.dll to get
>>>> QuteCsound to run correctly, or is it unrelated?
>>>>
>>>> Cheers,
>>>> ~ andy.f
>>>>
>>>>
>>>>
>>>> On Wed, Sep 1, 2010 at 11:36 AM, Michael Gogins
>>>> <michael.gogins@gmail.com> wrote:
>>>>> I solved the problem.
>>>>>
>>>>> The cause is that PortAudio contains C++ code, but the rtpa module was
>>>>> being compiled as C code, lacking the MinGW libraries required to
>>>>> handle exceptions that are thrown from multi-threaded code in DLLs.
>>>>> The result was that when the PortAudio module was unloaded, there was
>>>>> a segmentation fault.
>>>>>
>>>>> I fixed the problem by creating a shim rtpa.cpp file that #includes
>>>>> rtpa.c, and modifying SConstruct so that for MinGW, rtpa.cpp is
>>>>> compiled and linked instead of rtpa.c. There is no longer a
>>>>> segmentation fault when the rtpa module is unloaded, and Csound can be
>>>>> stopped and restarted in QuteCsound.
>>>>>
>>>>> Regards,
>>>>> Mike
>>>>>
>>>>> On Wed, Sep 1, 2010 at 10:30 AM, Michael Gogins
>>>>> <michael.gogins@gmail.com> wrote:
>>>>>> rtpa.c has indeed not changed.
>>>>>>
>>>>>> I will try reverting PortAudio. I have not yet tried reverting the
>>>>>> compiler. I have excluded FLTK as a cause of this problem. It happens
>>>>>> when FreeLibrary is called on the rtpa DLL handle.
>>>>>>
>>>>>> I can also try linking the PortAudio library statically.
>>>>>>
>>>>>> Regards,
>>>>>> Mike
>>>>>>
>>>>>> On Wed, Sep 1, 2010 at 6:55 AM, andy fillebrown
>>>>>> <andy.fillebrown@gmail.com> wrote:
>>>>>>> The 3 plugins that are problematic for QuteCsound are virtual.dll,
>>>>>>> widgets.dll, and fluidOpcodes.dll, although I'm not sure
>>>>>>> fluidOpcodes.dll does anything with fltk.  Regardless, removing
those
>>>>>>> 3 clears the problem up for QuteCsound.
>>>>>>>
>>>>>>> Cheers,
>>>>>>> ~ andy.f
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Aug 31, 2010 at 5:46 PM, Michael Gogins
>>>>>>> <michael.gogins@gmail.com> wrote:
>>>>>>>> I'm pretty sure there is an interaction with FLTK. In GCC and MinGW
>>>>>>>> and TDM MinGW, the code for handling exceptions across image
>>>>>>>> boundaries in multi-threaded code has been in flux for two years.
I'm
>>>>>>>> beginning to wonder why it ever worked. I'm going to revert the
>>>>>>>> compiler and see if that helps.
>>>>>>>>
>>>>>>>> Unloading libraries has also been an issue, I may just omit that
step
>>>>>>>> on Windows and see what happens.
>>>>>>>>
>>>>>>>> Note that at this point I am building FLTK itself, PortAudio, and
>>>>>>>> Csound with the same options for threading and exception handling.
>>>>>>>>
>>>>>>>> The same exception happens in tclcsound.dll and in rtpa.dll even if
>>>>>>>> all plugins and modules that link with FLTK are removed from the
path
>>>>>>>> (though I hope I didn't miss anyway).
>>>>>>>>
>>>>>>>> On Tue, Aug 31, 2010 at 4:47 PM,  <Victor.Lazzarini@nuim.ie> wrote:
>>>>>>>>> I'm not sure that is the case. I think it's Csound calling the
FLTK function.
>>>>>>>>>
>>>>>>>>> ----- Original Message -----
>>>>>>>>> From: Felipe Sateler <fsateler@gmail.com>
>>>>>>>>> Date: Tuesday, August 31, 2010 6:42 pm
>>>>>>>>> Subject: Re: [Cs-dev] Holdup on Windows installers
>>>>>>>>> To: Developer discussions <csound-devel@lists.sourceforge.net>
>>>>>>>>>
>>>>>>>>>> What suprises me is that rtpa wants to call code from fltk.
>>>>>>>>>>
>>>>>>>>>> On Tue, Aug 31, 2010 at 13:34, andy fillebrown
>>>>>>>>>> <andy.fillebrown@gmail.com> wrote:
>>>>>>>>>> > Looks to me like the fltk threading issue reported earlier.
>>>>>>>>>> >
>>>>>>>>>> > Cheers,
>>>>>>>>>> > ~andy.f
>>>>>>>>>> >
>>>>>>>>>> >
>>>>>>>>>> >
>>>>>>>>>> > On Tue, Aug 31, 2010 at 1:25 PM, Michael Gogins
>>>>>>>>>> > <michael.gogins@gmail.com> wrote:
>>>>>>>>>> >> I've run into a serious roadblock on preparing the Csound
>>>>>>>>>> 5.12 windows
>>>>>>>>>> >> installer.
>>>>>>>>>> >>
>>>>>>>>>> >> The module loading  and module unloading code causes
segmentation
>>>>>>>>>> >> violations with some libraries including tclcsound.dll and
>>>>>>>>>> rtpa.dll.>> This in turn causes Csound not to be re-startable.
>>>>>>>>>> And that means
>>>>>>>>>> >> QuteCsound and other hosts do not work.
>>>>>>>>>> >>
>>>>>>>>>> >> The problem appears to be exhibited in this stack trace and
>>>>>>>>>> seems to
>>>>>>>>>> >> have something to do with thread local storage in MinGW. I am
using
>>>>>>>>>> >> the Twilight Dragon Media build of MinGW but I will try the
regular
>>>>>>>>>> >> build of MinGW now.
>>>>>>>>>> >>
>>>>>>>>>> >> #0  ?? () at C:/utah/opt/fltk-1.1.10/FL/Fl_Repeat_Button.H:33
>>>>>>>>>> >> #1  0x6f082ee8 in __mingwthr_run_key_dtors ()
>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>> >> #2  0x6f082f26 in __mingw_TLScallback ()
>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>> >> #3  0x6f082943 in __dyn_tls_dtor@12 ()
>>>>>>>>>> >>   from D:\utah\home\mkg\csound\head\rtpa.dll
>>>>>>>>>> >> #4  0x77c597a0 in
>>>>>>>>>> ntdll!RtlQueryInformationActiveActivationContext ()
>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>> >> #5  0x6f080000 in ?? ()
>>>>>>>>>> >> #6  0x77c9d9a4 in ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>> >> #7  0x6f082920 in __tlregdtor () from
>>>>>>>>>> D:\utah\home\mkg\csound\head\rtpa.dll>> #8  0x77c99a29 in
>>>>>>>>>> ntdll!AlpcMaxAllowedMessageLength ()
>>>>>>>>>> >>   from C:\Windows\system32\ntdll.dll
>>>>>>>>>> >> #9  0x00000000 in ?? ()
>>>>>>>>>> >>
>>>>>>>>>> >>
>>>>>>>>>> >> Any hints, anyone?
>>>>>>>>>> >>
>>>>>>>>>> >> Regards,
>>>>>>>>>> >> Mike
>>>>>>>>>> >>
>>>>>>>>>> >>
>>>>>>>>>> >> --
>>>>>>>>>> >> Michael Gogins
>>>>>>>>>> >> Irreducible Productions
>>>>>>>>>> >> http://www.michael-gogins.com
>>>>>>>>>> >> Michael dot Gogins at gmail dot com
>>>>>>>>>> >>
>>>>>>>>>> >> --------------------------------------------------------------
>>>>>>>>>> ----------------
>>>>>>>>>> >> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>> >>
>>>>>>>>>> >> Show off your parallel programming skills.
>>>>>>>>>> >> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> >> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> >> _______________________________________________
>>>>>>>>>> >> Csound-devel mailing list
>>>>>>>>>> >> Csound-devel@lists.sourceforge.net
>>>>>>>>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>> >>
>>>>>>>>>> >
>>>>>>>>>> > ---------------------------------------------------------------
>>>>>>>>>> ---------------
>>>>>>>>>> > This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>> >
>>>>>>>>>> > Show off your parallel programming skills.
>>>>>>>>>> > Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> > http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> > _______________________________________________
>>>>>>>>>> > Csound-devel mailing list
>>>>>>>>>> > Csound-devel@lists.sourceforge.net
>>>>>>>>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>> >
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>>
>>>>>>>>>> Saludos,
>>>>>>>>>> Felipe Sateler
>>>>>>>>>>
>>>>>>>>>> -----------------------------------------------------------------
>>>>>>>>>> -------------
>>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>>
>>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
>>>>>>>>> National University of Ireland, Maynooth
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
----------------------------------------------------------------------------
--
>>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>>
>>>>>>>>> Show off your parallel programming skills.
>>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Michael Gogins
>>>>>>>> Irreducible Productions
>>>>>>>> http://www.michael-gogins.com
>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>
>>>>>>>>
----------------------------------------------------------------------------
--
>>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>>
>>>>>>>> Show off your parallel programming skills.
>>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>>
----------------------------------------------------------------------------
--
>>>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>>>
>>>>>>> Show off your parallel programming skills.
>>>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>>
----------------------------------------------------------------------------
--
>>>>> This SF.net Dev2Dev email is sponsored by:
>>>>>
>>>>> Show off your parallel programming skills.
>>>>> Enter the Intel(R) Threading Challenge 2010.
>>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>>
----------------------------------------------------------------------------
--
>>>> This SF.net Dev2Dev email is sponsored by:
>>>>
>>>> Show off your parallel programming skills.
>>>> Enter the Intel(R) Threading Challenge 2010.
>>>> http://p.sf.net/sfu/intel-thread-sfd
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>



--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

----------------------------------------------------------------------------
--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-devel