Csound Csound-dev Csound-tekno Search About

[Cs-dev] segfaults using csoundapi~

Date2005-05-17 16:05
From"gerard van dongen"
Subject[Cs-dev] segfaults using csoundapi~
I am a little mystified by this one, since I got it working before. Now it  
is segfaulting.

the example csd runs fine directly in csound.

csound was build with this :

scons buildPDClass=1 buildJavaWrapper=0 usePortAudio=0 useJack=0 useFLTK=0

Any ideas are welcome.


Here is the gdb output


csoundapi~ 1.0
  A PD csound class using the Csound 5.00 API
(c) V Lazzarini, 2005

Localisation of messages is disabled, using default language.
time resolution is 0.500 ns
csapi_demo.csd
ALSA real-time audio module for Csound by Istvan Varga
0dBFS level = 32768.0
Csound version 5.00 beta (float samples) May 15 2005
libsndfile-1.0.10
UnifiedCSD:  csapi_demo.csd
STARTING FILE
Creating options
Creating orchestra
Creating /tmp/file3kF3k2.orc (0x829db08)
Creating score
orchname:  /tmp/file3kF3k2.orc
scorename: /tmp/fileKEFh86.sco

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210361328 (LWP 6904)]
csoundQueryGlobalVariableNoCheck (csound=0x82951d8, name=0xb5aa7c5e  
"_oscbnk_globals") at Engine/namedins.c:975
975     Engine/namedins.c: No such file or directory.
         in Engine/namedins.c
(gdb) bt
#0  csoundQueryGlobalVariableNoCheck (csound=0x82951d8, name=0xb5aa7c5e  
"_oscbnk_globals") at Engine/namedins.c:975
#1  0xb5aa79d1 in csoundModuleInit (csound=0x82951d8) at  
Opcodes/oscbnk.c:2582
#2  0xb5b9dbe6 in csoundInitModules (csound_=0x82951d8) at  
Top/csmodule.c:329
#3  0xb5b4e4f9 in csoundCompile (csound_=0x82951d8, argc=3,  
argv=0x828aaa0) at Top/main.c:319
#4  0xb5b230bf in csoundapi_new (s=0x828aec0, argc=1, argv=0x8109988) at  
frontends/csoundapi_tilde/csoundapi_tilde.c:156
#5  0x080a11fa in pd_typedmess ()
#6  0x0828aec0 in ?? ()
#7  0x00000001 in ?? ()
#8  0x08109988 in mstack.0 ()
#9  0x00000000 in ?? ()
#10 0x00000000 in ?? ()
#11 0x00000000 in ?? ()
#12 0x00000000 in ?? ()
#13 0x00000000 in ?? ()
#14 0x00000000 in ?? ()
#15 0x00000000 in ?? ()
#16 0x00000000 in ?? ()
#17 0x00000000 in ?? ()
#18 0x00000000 in ?? ()
#19 0x00000000 in ?? ()
#20 0xbfaf6410 in ?? ()
#21 0xbfaf6430 in ?? ()
#22 0x00000000 in ?? ()
#23 0x00000000 in ?? ()
#24 0x00000000 in ?? ()
#25 0x00000000 in ?? ()
#26 0x00000000 in ?? ()
#27 0x00000000 in ?? ()
#28 0x00000000 in ?? ()
#29 0x00000000 in ?? ()
#30 0x00000000 in ?? ()
#31 0xbfaf6448 in ?? ()
#32 0xb7ec7ff4 in ?? () from /lib/libc.so.6
#33 0xbfaf647c in ?? ()
#34 0x00000000 in ?? ()
#35 0x00000003 in ?? ()
#36 0xb7e145a4 in _IO_setb (f=0x8109988, b=0x3 
, eb=0x3
, a=Cannot access memory at address 0x15 ) at genops.c:394 Previous frame inner to this frame (corrupt stack?) ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net

Date2005-05-17 16:54
FromVictor Lazzarini
SubjectRe: [Cs-dev] segfaults using csoundapi~
This is news to me. Yesterday afternoon it was working. Last night
I got a fresh CVS and it was working on OSX.

I'll try it now.

Victor

At 16:05 17/05/2005, you wrote:
>I am a little mystified by this one, since I got it working before. Now it
>is segfaulting.
>
>the example csd runs fine directly in csound.
>
>csound was build with this :
>
>scons buildPDClass=1 buildJavaWrapper=0 usePortAudio=0 useJack=0 useFLTK=0
>
>Any ideas are welcome.
>
>
>Here is the gdb output
>
>
>csoundapi~ 1.0
>  A PD csound class using the Csound 5.00 API
>(c) V Lazzarini, 2005
>
>Localisation of messages is disabled, using default language.
>time resolution is 0.500 ns
>csapi_demo.csd
>ALSA real-time audio module for Csound by Istvan Varga
>0dBFS level = 32768.0
>Csound version 5.00 beta (float samples) May 15 2005
>libsndfile-1.0.10
>UnifiedCSD:  csapi_demo.csd
>STARTING FILE
>Creating options
>Creating orchestra
>Creating /tmp/file3kF3k2.orc (0x829db08)
>Creating score
>orchname:  /tmp/file3kF3k2.orc
>scorename: /tmp/fileKEFh86.sco
>
>Program received signal SIGSEGV, Segmentation fault.
>[Switching to Thread -1210361328 (LWP 6904)]
>csoundQueryGlobalVariableNoCheck (csound=0x82951d8, name=0xb5aa7c5e
>"_oscbnk_globals") at Engine/namedins.c:975
>975     Engine/namedins.c: No such file or directory.
>         in Engine/namedins.c
>(gdb) bt
>#0  csoundQueryGlobalVariableNoCheck (csound=0x82951d8, name=0xb5aa7c5e
>"_oscbnk_globals") at Engine/namedins.c:975
>#1  0xb5aa79d1 in csoundModuleInit (csound=0x82951d8) at
>Opcodes/oscbnk.c:2582
>#2  0xb5b9dbe6 in csoundInitModules (csound_=0x82951d8) at
>Top/csmodule.c:329
>#3  0xb5b4e4f9 in csoundCompile (csound_=0x82951d8, argc=3,
>argv=0x828aaa0) at Top/main.c:319
>#4  0xb5b230bf in csoundapi_new (s=0x828aec0, argc=1, argv=0x8109988) at
>frontends/csoundapi_tilde/csoundapi_tilde.c:156
>#5  0x080a11fa in pd_typedmess ()
>#6  0x0828aec0 in ?? ()
>#7  0x00000001 in ?? ()
>#8  0x08109988 in mstack.0 ()
>#9  0x00000000 in ?? ()
>#10 0x00000000 in ?? ()
>#11 0x00000000 in ?? ()
>#12 0x00000000 in ?? ()
>#13 0x00000000 in ?? ()
>#14 0x00000000 in ?? ()
>#15 0x00000000 in ?? ()
>#16 0x00000000 in ?? ()
>#17 0x00000000 in ?? ()
>#18 0x00000000 in ?? ()
>#19 0x00000000 in ?? ()
>#20 0xbfaf6410 in ?? ()
>#21 0xbfaf6430 in ?? ()
>#22 0x00000000 in ?? ()
>#23 0x00000000 in ?? ()
>#24 0x00000000 in ?? ()
>#25 0x00000000 in ?? ()
>#26 0x00000000 in ?? ()
>#27 0x00000000 in ?? ()
>#28 0x00000000 in ?? ()
>#29 0x00000000 in ?? ()
>#30 0x00000000 in ?? ()
>#31 0xbfaf6448 in ?? ()
>#32 0xb7ec7ff4 in ?? () from /lib/libc.so.6
>#33 0xbfaf647c in ?? ()
>#34 0x00000000 in ?? ()
>#35 0x00000003 in ?? ()
>#36 0xb7e145a4 in _IO_setb (f=0x8109988, b=0x3 
bounds>, eb=0x3
, a=Cannot access memory at >address 0x15 >) at genops.c:394 >Previous frame inner to this frame (corrupt stack?) > > >------------------------------------------------------- >This SF.Net email is sponsored by Oracle Space Sweepstakes >Want to be the first software developer in space? >Enter now for the Oracle Space Sweepstakes! >http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net

Date2005-05-17 19:15
FromIstvan Varga
SubjectRe: [Cs-dev] segfaults using csoundapi~
gerard van dongen wrote:

> #0  csoundQueryGlobalVariableNoCheck (csound=0x82951d8, name=0xb5aa7c5e  
> "_oscbnk_globals") at Engine/namedins.c:975
> #1  0xb5aa79d1 in csoundModuleInit (csound=0x82951d8) at  
> Opcodes/oscbnk.c:2582

It seems that the build is inconsistent (that is, not all files are up to date),
because oscbnk.c calls csound->CreateGlobalVariable (and not QueryGlobalVariableNoCheck)
at line 2582, but somehow gets a pointer to the wrong function. Perhaps the
csoundapi~ object was linked against an older version of libcsound with a different
API signature. A clean rebuild should solve this.


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-05-18 10:24
From"gerard van dongen"
SubjectRe: [Cs-dev] segfaults using csoundapi~
On Tue, 17 May 2005 17:54:48 +0200, Victor Lazzarini  
 wrote:

> This is news to me. Yesterday afternoon it was working. Last night
> I got a fresh CVS and it was working on OSX.
>
> I'll try it now.
>
> Victor
>

As Istvan pointed out, my source was unclean and confused.
After doing a clean rebuild the symptoms changed.
pd was aborting.
So I also upgraded to the pd devel branch. And that helped.

As it turned out my csoundapi.pd file got a little corrupted somewhere  
along the way.
And when I was able to open it there were a number of wrong connections.  
Message-outlets connected to the dac~ object. Basically the patch didn't  
make much sense anymore.

So pd-0.38-test8 had some bugs in it that are probably fixed in the  
current release.

But now for a reproducable bug:

I get a segfault trying to send score events to a csoundapi~ instance when  
it didn't succesfully open the csd file.

Not sure where that should be checked in libcsound or in csoundapi~


G


> At 16:05 17/05/2005, you wrote:
>> I am a little mystified by this one, since I got it working before. Now  
>> it
>> is segfaulting.
>>
>> the example csd runs fine directly in csound.
>>
>> csound was build with this :
>>
>> scons buildPDClass=1 buildJavaWrapper=0 usePortAudio=0 useJack=0  
>> useFLTK=0
>>
>> Any ideas are welcome.
>>
>>
>> Here is the gdb output
>>
>>
>> csoundapi~ 1.0
>>  A PD csound class using the Csound 5.00 API
>> (c) V Lazzarini, 2005
>>
>> Localisation of messages is disabled, using default language.
>> time resolution is 0.500 ns
>> csapi_demo.csd
>> ALSA real-time audio module for Csound by Istvan Varga
>> 0dBFS level = 32768.0
>> Csound version 5.00 beta (float samples) May 15 2005
>> libsndfile-1.0.10
>> UnifiedCSD:  csapi_demo.csd
>> STARTING FILE
>> Creating options
>> Creating orchestra
>> Creating /tmp/file3kF3k2.orc (0x829db08)
>> Creating score
>> orchname:  /tmp/file3kF3k2.orc
>> scorename: /tmp/fileKEFh86.sco
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> [Switching to Thread -1210361328 (LWP 6904)]
>> csoundQueryGlobalVariableNoCheck (csound=0x82951d8, name=0xb5aa7c5e
>> "_oscbnk_globals") at Engine/namedins.c:975
>> 975     Engine/namedins.c: No such file or directory.
>>         in Engine/namedins.c
>> (gdb) bt
>> #0  csoundQueryGlobalVariableNoCheck (csound=0x82951d8, name=0xb5aa7c5e
>> "_oscbnk_globals") at Engine/namedins.c:975
>> #1  0xb5aa79d1 in csoundModuleInit (csound=0x82951d8) at
>> Opcodes/oscbnk.c:2582
>> #2  0xb5b9dbe6 in csoundInitModules (csound_=0x82951d8) at
>> Top/csmodule.c:329
>> #3  0xb5b4e4f9 in csoundCompile (csound_=0x82951d8, argc=3,
>> argv=0x828aaa0) at Top/main.c:319
>> #4  0xb5b230bf in csoundapi_new (s=0x828aec0, argc=1, argv=0x8109988) at
>> frontends/csoundapi_tilde/csoundapi_tilde.c:156
>> #5  0x080a11fa in pd_typedmess ()
>> #6  0x0828aec0 in ?? ()
>> #7  0x00000001 in ?? ()
>> #8  0x08109988 in mstack.0 ()
>> #9  0x00000000 in ?? ()
>> #10 0x00000000 in ?? ()
>> #11 0x00000000 in ?? ()
>> #12 0x00000000 in ?? ()
>> #13 0x00000000 in ?? ()
>> #14 0x00000000 in ?? ()
>> #15 0x00000000 in ?? ()
>> #16 0x00000000 in ?? ()
>> #17 0x00000000 in ?? ()
>> #18 0x00000000 in ?? ()
>> #19 0x00000000 in ?? ()
>> #20 0xbfaf6410 in ?? ()
>> #21 0xbfaf6430 in ?? ()
>> #22 0x00000000 in ?? ()
>> #23 0x00000000 in ?? ()
>> #24 0x00000000 in ?? ()
>> #25 0x00000000 in ?? ()
>> #26 0x00000000 in ?? ()
>> #27 0x00000000 in ?? ()
>> #28 0x00000000 in ?? ()
>> #29 0x00000000 in ?? ()
>> #30 0x00000000 in ?? ()
>> #31 0xbfaf6448 in ?? ()
>> #32 0xb7ec7ff4 in ?? () from /lib/libc.so.6
>> #33 0xbfaf647c in ?? ()
>> #34 0x00000000 in ?? ()
>> #35 0x00000003 in ?? ()
>> #36 0xb7e145a4 in _IO_setb (f=0x8109988, b=0x3 
> bounds>, eb=0x3
, a=Cannot access memory at >> address 0x15 >> ) at genops.c:394 >> Previous frame inner to this frame (corrupt stack?) >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by Oracle Space Sweepstakes >> Want to be the first software developer in space? >> Enter now for the Oracle Space Sweepstakes! >> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click >> _______________________________________________ >> Csound-devel mailing list >> Csound-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/csound-devel > > Victor Lazzarini > Music Technology Laboratory > Music Department > National University of Ireland, Maynooth > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net

Date2005-05-18 11:01
FromVictor Lazzarini
SubjectRe: [Cs-dev] segfaults using csoundapi~
This I need to fix. I'll just make sure scoreEvents are only called
if everything is OK.

Thanks for all your bug reports. That's great!

Victor

At 10:24 18/05/2005, you wrote:
>On Tue, 17 May 2005 17:54:48 +0200, Victor Lazzarini
> wrote:
>
>>This is news to me. Yesterday afternoon it was working. Last night
>>I got a fresh CVS and it was working on OSX.
>>
>>I'll try it now.
>>
>>Victor
>
>As Istvan pointed out, my source was unclean and confused.
>After doing a clean rebuild the symptoms changed.
>pd was aborting.
>So I also upgraded to the pd devel branch. And that helped.
>
>As it turned out my csoundapi.pd file got a little corrupted somewhere
>along the way.
>And when I was able to open it there were a number of wrong connections.
>Message-outlets connected to the dac~ object. Basically the patch didn't
>make much sense anymore.
>
>So pd-0.38-test8 had some bugs in it that are probably fixed in the
>current release.
>
>But now for a reproducable bug:
>
>I get a segfault trying to send score events to a csoundapi~ instance when
>it didn't succesfully open the csd file.
>
>Not sure where that should be checked in libcsound or in csoundapi~
>
>
>G
>
>
>>At 16:05 17/05/2005, you wrote:
>>>I am a little mystified by this one, since I got it working before. Now
>>>it
>>>is segfaulting.
>>>
>>>the example csd runs fine directly in csound.
>>>
>>>csound was build with this :
>>>
>>>scons buildPDClass=1 buildJavaWrapper=0 usePortAudio=0 useJack=0
>>>useFLTK=0
>>>
>>>Any ideas are welcome.
>>>
>>>
>>>Here is the gdb output
>>>
>>>
>>>csoundapi~ 1.0
>>>  A PD csound class using the Csound 5.00 API
>>>(c) V Lazzarini, 2005
>>>
>>>Localisation of messages is disabled, using default language.
>>>time resolution is 0.500 ns
>>>csapi_demo.csd
>>>ALSA real-time audio module for Csound by Istvan Varga
>>>0dBFS level = 32768.0
>>>Csound version 5.00 beta (float samples) May 15 2005
>>>libsndfile-1.0.10
>>>UnifiedCSD:  csapi_demo.csd
>>>STARTING FILE
>>>Creating options
>>>Creating orchestra
>>>Creating /tmp/file3kF3k2.orc (0x829db08)
>>>Creating score
>>>orchname:  /tmp/file3kF3k2.orc
>>>scorename: /tmp/fileKEFh86.sco
>>>
>>>Program received signal SIGSEGV, Segmentation fault.
>>>[Switching to Thread -1210361328 (LWP 6904)]
>>>csoundQueryGlobalVariableNoCheck (csound=0x82951d8, name=0xb5aa7c5e
>>>"_oscbnk_globals") at Engine/namedins.c:975
>>>975     Engine/namedins.c: No such file or directory.
>>>         in Engine/namedins.c
>>>(gdb) bt
>>>#0  csoundQueryGlobalVariableNoCheck (csound=0x82951d8, name=0xb5aa7c5e
>>>"_oscbnk_globals") at Engine/namedins.c:975
>>>#1  0xb5aa79d1 in csoundModuleInit (csound=0x82951d8) at
>>>Opcodes/oscbnk.c:2582
>>>#2  0xb5b9dbe6 in csoundInitModules (csound_=0x82951d8) at
>>>Top/csmodule.c:329
>>>#3  0xb5b4e4f9 in csoundCompile (csound_=0x82951d8, argc=3,
>>>argv=0x828aaa0) at Top/main.c:319
>>>#4  0xb5b230bf in csoundapi_new (s=0x828aec0, argc=1, argv=0x8109988) at
>>>frontends/csoundapi_tilde/csoundapi_tilde.c:156
>>>#5  0x080a11fa in pd_typedmess ()
>>>#6  0x0828aec0 in ?? ()
>>>#7  0x00000001 in ?? ()
>>>#8  0x08109988 in mstack.0 ()
>>>#9  0x00000000 in ?? ()
>>>#10 0x00000000 in ?? ()
>>>#11 0x00000000 in ?? ()
>>>#12 0x00000000 in ?? ()
>>>#13 0x00000000 in ?? ()
>>>#14 0x00000000 in ?? ()
>>>#15 0x00000000 in ?? ()
>>>#16 0x00000000 in ?? ()
>>>#17 0x00000000 in ?? ()
>>>#18 0x00000000 in ?? ()
>>>#19 0x00000000 in ?? ()
>>>#20 0xbfaf6410 in ?? ()
>>>#21 0xbfaf6430 in ?? ()
>>>#22 0x00000000 in ?? ()
>>>#23 0x00000000 in ?? ()
>>>#24 0x00000000 in ?? ()
>>>#25 0x00000000 in ?? ()
>>>#26 0x00000000 in ?? ()
>>>#27 0x00000000 in ?? ()
>>>#28 0x00000000 in ?? ()
>>>#29 0x00000000 in ?? ()
>>>#30 0x00000000 in ?? ()
>>>#31 0xbfaf6448 in ?? ()
>>>#32 0xb7ec7ff4 in ?? () from /lib/libc.so.6
>>>#33 0xbfaf647c in ?? ()
>>>#34 0x00000000 in ?? ()
>>>#35 0x00000003 in ?? ()
>>>#36 0xb7e145a4 in _IO_setb (f=0x8109988, b=0x3 
>>bounds>, eb=0x3
, a=Cannot access memory at >>>address 0x15 >>>) at genops.c:394 >>>Previous frame inner to this frame (corrupt stack?) >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by Oracle Space Sweepstakes >>>Want to be the first software developer in space? >>>Enter now for the Oracle Space Sweepstakes! >>>http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click >>>_______________________________________________ >>>Csound-devel mailing list >>>Csound-devel@lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/csound-devel >> >>Victor Lazzarini >>Music Technology Laboratory >>Music Department >>National University of Ireland, Maynooth >> >>------------------------------------------------------- >>This SF.Net email is sponsored by Oracle Space Sweepstakes >>Want to be the first software developer in space? >>Enter now for the Oracle Space Sweepstakes! >>http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click >>_______________________________________________ >>Csound-devel mailing list >>Csound-devel@lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/csound-devel > > > > >------------------------------------------------------- >This SF.Net email is sponsored by Oracle Space Sweepstakes >Want to be the first software developer in space? >Enter now for the Oracle Space Sweepstakes! >http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net

Date2005-05-18 12:07
FromVictor Lazzarini
SubjectRe: [Cs-dev] segfaults using csoundapi~
I think it's all fixed now.

Victor
At 11:01 18/05/2005, you wrote:
>This I need to fix. I'll just make sure scoreEvents are only called
>if everything is OK.
>
>Thanks for all your bug reports. That's great!
>
>Victor
>
>At 10:24 18/05/2005, you wrote:
>>On Tue, 17 May 2005 17:54:48 +0200, Victor Lazzarini
>> wrote:
>>
>>>This is news to me. Yesterday afternoon it was working. Last night
>>>I got a fresh CVS and it was working on OSX.
>>>
>>>I'll try it now.
>>>
>>>Victor
>>
>>As Istvan pointed out, my source was unclean and confused.
>>After doing a clean rebuild the symptoms changed.
>>pd was aborting.
>>So I also upgraded to the pd devel branch. And that helped.
>>
>>As it turned out my csoundapi.pd file got a little corrupted somewhere
>>along the way.
>>And when I was able to open it there were a number of wrong connections.
>>Message-outlets connected to the dac~ object. Basically the patch didn't
>>make much sense anymore.
>>
>>So pd-0.38-test8 had some bugs in it that are probably fixed in the
>>current release.
>>
>>But now for a reproducable bug:
>>
>>I get a segfault trying to send score events to a csoundapi~ instance when
>>it didn't succesfully open the csd file.
>>
>>Not sure where that should be checked in libcsound or in csoundapi~
>>
>>
>>G
>>
>>
>>>At 16:05 17/05/2005, you wrote:
>>>>I am a little mystified by this one, since I got it working before. Now
>>>>it
>>>>is segfaulting.
>>>>
>>>>the example csd runs fine directly in csound.
>>>>
>>>>csound was build with this :
>>>>
>>>>scons buildPDClass=1 buildJavaWrapper=0 usePortAudio=0 useJack=0
>>>>useFLTK=0
>>>>
>>>>Any ideas are welcome.
>>>>
>>>>
>>>>Here is the gdb output
>>>>
>>>>
>>>>csoundapi~ 1.0
>>>>  A PD csound class using the Csound 5.00 API
>>>>(c) V Lazzarini, 2005
>>>>
>>>>Localisation of messages is disabled, using default language.
>>>>time resolution is 0.500 ns
>>>>csapi_demo.csd
>>>>ALSA real-time audio module for Csound by Istvan Varga
>>>>0dBFS level = 32768.0
>>>>Csound version 5.00 beta (float samples) May 15 2005
>>>>libsndfile-1.0.10
>>>>UnifiedCSD:  csapi_demo.csd
>>>>STARTING FILE
>>>>Creating options
>>>>Creating orchestra
>>>>Creating /tmp/file3kF3k2.orc (0x829db08)
>>>>Creating score
>>>>orchname:  /tmp/file3kF3k2.orc
>>>>scorename: /tmp/fileKEFh86.sco
>>>>
>>>>Program received signal SIGSEGV, Segmentation fault.
>>>>[Switching to Thread -1210361328 (LWP 6904)]
>>>>csoundQueryGlobalVariableNoCheck (csound=0x82951d8, name=0xb5aa7c5e
>>>>"_oscbnk_globals") at Engine/namedins.c:975
>>>>975     Engine/namedins.c: No such file or directory.
>>>>         in Engine/namedins.c
>>>>(gdb) bt
>>>>#0  csoundQueryGlobalVariableNoCheck (csound=0x82951d8, name=0xb5aa7c5e
>>>>"_oscbnk_globals") at Engine/namedins.c:975
>>>>#1  0xb5aa79d1 in csoundModuleInit (csound=0x82951d8) at
>>>>Opcodes/oscbnk.c:2582
>>>>#2  0xb5b9dbe6 in csoundInitModules (csound_=0x82951d8) at
>>>>Top/csmodule.c:329
>>>>#3  0xb5b4e4f9 in csoundCompile (csound_=0x82951d8, argc=3,
>>>>argv=0x828aaa0) at Top/main.c:319
>>>>#4  0xb5b230bf in csoundapi_new (s=0x828aec0, argc=1, argv=0x8109988) at
>>>>frontends/csoundapi_tilde/csoundapi_tilde.c:156
>>>>#5  0x080a11fa in pd_typedmess ()
>>>>#6  0x0828aec0 in ?? ()
>>>>#7  0x00000001 in ?? ()
>>>>#8  0x08109988 in mstack.0 ()
>>>>#9  0x00000000 in ?? ()
>>>>#10 0x00000000 in ?? ()
>>>>#11 0x00000000 in ?? ()
>>>>#12 0x00000000 in ?? ()
>>>>#13 0x00000000 in ?? ()
>>>>#14 0x00000000 in ?? ()
>>>>#15 0x00000000 in ?? ()
>>>>#16 0x00000000 in ?? ()
>>>>#17 0x00000000 in ?? ()
>>>>#18 0x00000000 in ?? ()
>>>>#19 0x00000000 in ?? ()
>>>>#20 0xbfaf6410 in ?? ()
>>>>#21 0xbfaf6430 in ?? ()
>>>>#22 0x00000000 in ?? ()
>>>>#23 0x00000000 in ?? ()
>>>>#24 0x00000000 in ?? ()
>>>>#25 0x00000000 in ?? ()
>>>>#26 0x00000000 in ?? ()
>>>>#27 0x00000000 in ?? ()
>>>>#28 0x00000000 in ?? ()
>>>>#29 0x00000000 in ?? ()
>>>>#30 0x00000000 in ?? ()
>>>>#31 0xbfaf6448 in ?? ()
>>>>#32 0xb7ec7ff4 in ?? () from /lib/libc.so.6
>>>>#33 0xbfaf647c in ?? ()
>>>>#34 0x00000000 in ?? ()
>>>>#35 0x00000003 in ?? ()
>>>>#36 0xb7e145a4 in _IO_setb (f=0x8109988, b=0x3 
>>>bounds>, eb=0x3
, a=Cannot access memory at >>>>address 0x15 >>>>) at genops.c:394 >>>>Previous frame inner to this frame (corrupt stack?) >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.Net email is sponsored by Oracle Space Sweepstakes >>>>Want to be the first software developer in space? >>>>Enter now for the Oracle Space Sweepstakes! >>>>http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click >>>>_______________________________________________ >>>>Csound-devel mailing list >>>>Csound-devel@lists.sourceforge.net >>>>https://lists.sourceforge.net/lists/listinfo/csound-devel >>> >>>Victor Lazzarini >>>Music Technology Laboratory >>>Music Department >>>National University of Ireland, Maynooth >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by Oracle Space Sweepstakes >>>Want to be the first software developer in space? >>>Enter now for the Oracle Space Sweepstakes! >>>http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click >>>_______________________________________________ >>>Csound-devel mailing list >>>Csound-devel@lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/csound-devel >> >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by Oracle Space Sweepstakes >>Want to be the first software developer in space? >>Enter now for the Oracle Space Sweepstakes! >>http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click >>_______________________________________________ >>Csound-devel mailing list >>Csound-devel@lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/csound-devel > >Victor Lazzarini >Music Technology Laboratory >Music Department >National University of Ireland, Maynooth > > >------------------------------------------------------- >This SF.Net email is sponsored by Oracle Space Sweepstakes >Want to be the first software developer in space? >Enter now for the Oracle Space Sweepstakes! >http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net