Csound Csound-dev Csound-tekno Search About

[Csnd] csound6~ in Pd

Date2017-10-18 10:07
FromAlbert Graef
Subject[Csnd] csound6~ in Pd
Running Csound version 6.09.1 on Linux (Manjaro), trying to create a csound6~ object crashes vanilla Pd 0.48.0 with this terminal output:

virtual_keyboard real time MIDI plugin for Csound
Two passes with the same argument (-alloca-hoisting) attempted to be registered!
backtrace() returned 4 addresses
/usr/lib/libcsound64.so.6.0(+0x40474) [0x7fcc24b33474]
/usr/lib/libc.so.6(+0x34920) [0x7fcc2a474920]
/usr/lib/libLLVM-3.5.so(+0x652550) [0x7fcc27cd4550]
/usr/lib/csound/plugins64-6.0/libfaustcsound.so(+0x16b7854) [0x7fcc1502e854]
Csound tidy up: Segmentation fault
Segmentation fault (core dumped)

Any idea what's going wrong there?

Other (language) externals are running fine in Pd, so this issue seems to be Csound-specific. It's also not specific to vanilla Pd, since I'm getting exactly the same thing with Purr Data a.k.a. Pd-l2ork 2.x. Has anyone used this external in the latest Csound version, with any Pd version, on any platform?

TIA,
Albert

--
Dr. Albert Gr"af
Computer Music Research Group, JGU Mainz, Germany
Email:  aggraef@gmail.com
WWW:    https://plus.google.com/+AlbertGraef
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-10-18 10:16
FromVictor Lazzarini
SubjectRe: [Csnd] csound6~ in Pd
Looks like there is a problem with the faust plugins, originating from LLVM possibly.

Try moving the file out of the directory it is in and then trying to load it again.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 18 Oct 2017, at 10:07, Albert Graef  wrote:
> 
> Running Csound version 6.09.1 on Linux (Manjaro), trying to create a csound6~ object crashes vanilla Pd 0.48.0 with this terminal output:
> 
> virtual_keyboard real time MIDI plugin for Csound
> Two passes with the same argument (-alloca-hoisting) attempted to be registered!
> backtrace() returned 4 addresses
> /usr/lib/libcsound64.so.6.0(+0x40474) [0x7fcc24b33474]
> /usr/lib/libc.so.6(+0x34920) [0x7fcc2a474920]
> /usr/lib/libLLVM-3.5.so(+0x652550) [0x7fcc27cd4550]
> /usr/lib/csound/plugins64-6.0/libfaustcsound.so(+0x16b7854) [0x7fcc1502e854]
> Csound tidy up: Segmentation fault
> Segmentation fault (core dumped)
> 
> Any idea what's going wrong there?
> 
> Other (language) externals are running fine in Pd, so this issue seems to be Csound-specific. It's also not specific to vanilla Pd, since I'm getting exactly the same thing with Purr Data a.k.a. Pd-l2ork 2.x. Has anyone used this external in the latest Csound version, with any Pd version, on any platform?
> 
> TIA,
> Albert
> 
> -- 
> Dr. Albert Gr"af
> Computer Music Research Group, JGU Mainz, Germany
> Email:  aggraef@gmail.com
> WWW:    https://plus.google.com/+AlbertGraef
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-10-18 10:30
FromAlbert Graef
SubjectRe: [Csnd] csound6~ in Pd
Yep right, looks like my Pure and Faust loaders can't coexist with csound6~ in Pd if Csound's faust opcodes are loaded. Maybe some LLVM global data gets initialized twice in that case?

Well, this is a kind of a bummer, but no real showstopper. Thanks for the heads up!

On Wed, Oct 18, 2017 at 11:16 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
Looks like there is a problem with the faust plugins, originating from LLVM possibly.

Try moving the file out of the directory it is in and then trying to load it again.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 18 Oct 2017, at 10:07, Albert Graef <aggraef@gmail.com> wrote:
>
> Running Csound version 6.09.1 on Linux (Manjaro), trying to create a csound6~ object crashes vanilla Pd 0.48.0 with this terminal output:
>
> virtual_keyboard real time MIDI plugin for Csound
> Two passes with the same argument (-alloca-hoisting) attempted to be registered!
> backtrace() returned 4 addresses
> /usr/lib/libcsound64.so.6.0(+0x40474) [0x7fcc24b33474]
> /usr/lib/libc.so.6(+0x34920) [0x7fcc2a474920]
> /usr/lib/libLLVM-3.5.so(+0x652550) [0x7fcc27cd4550]
> /usr/lib/csound/plugins64-6.0/libfaustcsound.so(+0x16b7854) [0x7fcc1502e854]
> Csound tidy up: Segmentation fault
> Segmentation fault (core dumped)
>
> Any idea what's going wrong there?
>
> Other (language) externals are running fine in Pd, so this issue seems to be Csound-specific. It's also not specific to vanilla Pd, since I'm getting exactly the same thing with Purr Data a.k.a. Pd-l2ork 2.x. Has anyone used this external in the latest Csound version, with any Pd version, on any platform?
>
> TIA,
> Albert
>
> --
> Dr. Albert Gr"af
> Computer Music Research Group, JGU Mainz, Germany
> Email:  aggraef@gmail.com
> WWW:    https://plus.google.com/+AlbertGraef
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



--
Dr. Albert Gr"af
Computer Music Research Group, JGU Mainz, Germany
Email:  aggraef@gmail.com
WWW:    https://plus.google.com/+AlbertGraef
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-10-18 10:42
FromVictor Lazzarini
SubjectRe: [Csnd] csound6~ in Pd
Looks like LLVM is not exactly re-entrant then.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 18 Oct 2017, at 10:30, Albert Graef  wrote:
> 
> Yep right, looks like my Pure and Faust loaders can't coexist with csound6~ in Pd if Csound's faust opcodes are loaded. Maybe some LLVM global data gets initialized twice in that case?
> 
> Well, this is a kind of a bummer, but no real showstopper. Thanks for the heads up!
> 
> On Wed, Oct 18, 2017 at 11:16 AM, Victor Lazzarini  wrote:
> Looks like there is a problem with the faust plugins, originating from LLVM possibly.
> 
> Try moving the file out of the directory it is in and then trying to load it again.
> 
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
> 
> > On 18 Oct 2017, at 10:07, Albert Graef  wrote:
> >
> > Running Csound version 6.09.1 on Linux (Manjaro), trying to create a csound6~ object crashes vanilla Pd 0.48.0 with this terminal output:
> >
> > virtual_keyboard real time MIDI plugin for Csound
> > Two passes with the same argument (-alloca-hoisting) attempted to be registered!
> > backtrace() returned 4 addresses
> > /usr/lib/libcsound64.so.6.0(+0x40474) [0x7fcc24b33474]
> > /usr/lib/libc.so.6(+0x34920) [0x7fcc2a474920]
> > /usr/lib/libLLVM-3.5.so(+0x652550) [0x7fcc27cd4550]
> > /usr/lib/csound/plugins64-6.0/libfaustcsound.so(+0x16b7854) [0x7fcc1502e854]
> > Csound tidy up: Segmentation fault
> > Segmentation fault (core dumped)
> >
> > Any idea what's going wrong there?
> >
> > Other (language) externals are running fine in Pd, so this issue seems to be Csound-specific. It's also not specific to vanilla Pd, since I'm getting exactly the same thing with Purr Data a.k.a. Pd-l2ork 2.x. Has anyone used this external in the latest Csound version, with any Pd version, on any platform?
> >
> > TIA,
> > Albert
> >
> > --
> > Dr. Albert Gr"af
> > Computer Music Research Group, JGU Mainz, Germany
> > Email:  aggraef@gmail.com
> > WWW:    https://plus.google.com/+AlbertGraef
> > Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> 
> 
> 
> -- 
> Dr. Albert Gr"af
> Computer Music Research Group, JGU Mainz, Germany
> Email:  aggraef@gmail.com
> WWW:    https://plus.google.com/+AlbertGraef
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-10-18 10:59
FromVictor Lazzarini
SubjectRe: [Csnd] csound6~ in Pd
I was just looking at the code, and at opcode dlib loading time (when this seems to be crashing) there
is nothing specifically happening in terms of LLVM initialisation in Csound. All Csound does is look
for the dlib entry point to add the opcode to the list in Csound. Any explicit initialisation etc only happens
when Csound runs an orchestra containing the opcodes.

There must be something else happening in llvm (or libfaust).

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 18 Oct 2017, at 10:42, Victor Lazzarini  wrote:
> 
> Looks like LLVM is not exactly re-entrant then.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952 
> 
>> On 18 Oct 2017, at 10:30, Albert Graef  wrote:
>> 
>> Yep right, looks like my Pure and Faust loaders can't coexist with csound6~ in Pd if Csound's faust opcodes are loaded. Maybe some LLVM global data gets initialized twice in that case?
>> 
>> Well, this is a kind of a bummer, but no real showstopper. Thanks for the heads up!
>> 
>> On Wed, Oct 18, 2017 at 11:16 AM, Victor Lazzarini  wrote:
>> Looks like there is a problem with the faust plugins, originating from LLVM possibly.
>> 
>> Try moving the file out of the directory it is in and then trying to load it again.
>> 
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 18 Oct 2017, at 10:07, Albert Graef  wrote:
>>> 
>>> Running Csound version 6.09.1 on Linux (Manjaro), trying to create a csound6~ object crashes vanilla Pd 0.48.0 with this terminal output:
>>> 
>>> virtual_keyboard real time MIDI plugin for Csound
>>> Two passes with the same argument (-alloca-hoisting) attempted to be registered!
>>> backtrace() returned 4 addresses
>>> /usr/lib/libcsound64.so.6.0(+0x40474) [0x7fcc24b33474]
>>> /usr/lib/libc.so.6(+0x34920) [0x7fcc2a474920]
>>> /usr/lib/libLLVM-3.5.so(+0x652550) [0x7fcc27cd4550]
>>> /usr/lib/csound/plugins64-6.0/libfaustcsound.so(+0x16b7854) [0x7fcc1502e854]
>>> Csound tidy up: Segmentation fault
>>> Segmentation fault (core dumped)
>>> 
>>> Any idea what's going wrong there?
>>> 
>>> Other (language) externals are running fine in Pd, so this issue seems to be Csound-specific. It's also not specific to vanilla Pd, since I'm getting exactly the same thing with Purr Data a.k.a. Pd-l2ork 2.x. Has anyone used this external in the latest Csound version, with any Pd version, on any platform?
>>> 
>>> TIA,
>>> Albert
>>> 
>>> --
>>> Dr. Albert Gr"af
>>> Computer Music Research Group, JGU Mainz, Germany
>>> Email:  aggraef@gmail.com
>>> WWW:    https://plus.google.com/+AlbertGraef
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> 
>> 
>> 
>> -- 
>> Dr. Albert Gr"af
>> Computer Music Research Group, JGU Mainz, Germany
>> Email:  aggraef@gmail.com
>> WWW:    https://plus.google.com/+AlbertGraef
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-10-18 11:29
FromAlbert Graef
SubjectRe: [Csnd] csound6~ in Pd
Yep, I suspect a bad interaction between libfaust and the Pure runtime. Will have to look into that some time.

On Wed, Oct 18, 2017 at 11:59 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
I was just looking at the code, and at opcode dlib loading time (when this seems to be crashing) there
is nothing specifically happening in terms of LLVM initialisation in Csound. All Csound does is look
for the dlib entry point to add the opcode to the list in Csound. Any explicit initialisation etc only happens
when Csound runs an orchestra containing the opcodes.

There must be something else happening in llvm (or libfaust).

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 18 Oct 2017, at 10:42, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>
> Looks like LLVM is not exactly re-entrant then.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 18 Oct 2017, at 10:30, Albert Graef <aggraef@gmail.com> wrote:
>>
>> Yep right, looks like my Pure and Faust loaders can't coexist with csound6~ in Pd if Csound's faust opcodes are loaded. Maybe some LLVM global data gets initialized twice in that case?
>>
>> Well, this is a kind of a bummer, but no real showstopper. Thanks for the heads up!
>>
>> On Wed, Oct 18, 2017 at 11:16 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
>> Looks like there is a problem with the faust plugins, originating from LLVM possibly.
>>
>> Try moving the file out of the directory it is in and then trying to load it again.
>>
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>>> On 18 Oct 2017, at 10:07, Albert Graef <aggraef@gmail.com> wrote:
>>>
>>> Running Csound version 6.09.1 on Linux (Manjaro), trying to create a csound6~ object crashes vanilla Pd 0.48.0 with this terminal output:
>>>
>>> virtual_keyboard real time MIDI plugin for Csound
>>> Two passes with the same argument (-alloca-hoisting) attempted to be registered!
>>> backtrace() returned 4 addresses
>>> /usr/lib/libcsound64.so.6.0(+0x40474) [0x7fcc24b33474]
>>> /usr/lib/libc.so.6(+0x34920) [0x7fcc2a474920]
>>> /usr/lib/libLLVM-3.5.so(+0x652550) [0x7fcc27cd4550]
>>> /usr/lib/csound/plugins64-6.0/libfaustcsound.so(+0x16b7854) [0x7fcc1502e854]
>>> Csound tidy up: Segmentation fault
>>> Segmentation fault (core dumped)
>>>
>>> Any idea what's going wrong there?
>>>
>>> Other (language) externals are running fine in Pd, so this issue seems to be Csound-specific. It's also not specific to vanilla Pd, since I'm getting exactly the same thing with Purr Data a.k.a. Pd-l2ork 2.x. Has anyone used this external in the latest Csound version, with any Pd version, on any platform?
>>>
>>> TIA,
>>> Albert
>>>
>>> --
>>> Dr. Albert Gr"af
>>> Computer Music Research Group, JGU Mainz, Germany
>>> Email:  aggraef@gmail.com
>>> WWW:    https://plus.google.com/+AlbertGraef
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>>
>>
>>
>> --
>> Dr. Albert Gr"af
>> Computer Music Research Group, JGU Mainz, Germany
>> Email:  aggraef@gmail.com
>> WWW:    https://plus.google.com/+AlbertGraef
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



--
Dr. Albert Gr"af
Computer Music Research Group, JGU Mainz, Germany
Email:  aggraef@gmail.com
WWW:    https://plus.google.com/+AlbertGraef
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here