Csound Csound-dev Csound-tekno Search About

[Cs-dev] Segfault on CSoundBlog CSD file

Date2010-11-07 09:03
FromErik de Castro Lopo
Subject[Cs-dev] Segfault on CSoundBlog CSD file
Hi all,

I grabbed this:

    http://www.thumbuki.com/TheCsoundBlog/message_from_another_planet.csd

and I'm running it with:

    csound -d -+rtaudio=alsa -o dac:hw:0,0 message_from_another_planet.csd

and I get no sound and a message that says "Csound tidy up: Segmentation fault".

This is csound 1:5.12.1~dfsg-5 from Debian on amd64.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-11-07 09:16
FromVictor Lazzarini
SubjectRe: [Cs-dev] Segfault on CSoundBlog CSD file
No such problem here on OSX, with last week's CVS checkout.

Victor
On 7 Nov 2010, at 09:03, Erik de Castro Lopo wrote:

> Hi all,
>
> I grabbed this:
>
>    http://www.thumbuki.com/TheCsoundBlog/message_from_another_planet.csd
>
> and I'm running it with:
>
>    csound -d -+rtaudio=alsa -o dac:hw:0,0  
> message_from_another_planet.csd
>
> and I get no sound and a message that says "Csound tidy up:  
> Segmentation fault".
>
> This is csound 1:5.12.1~dfsg-5 from Debian on amd64.
>
> Erik
> -- 
> ----------------------------------------------------------------------
> Erik de Castro Lopo
> http://www.mega-nerd.com/
>
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-11-07 11:48
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Segfault on CSoundBlog CSD file
Erik, coul dyou run under gdb )
> Hi all,
>
> I grabbed this:
>
>     http://www.thumbuki.com/TheCsoundBlog/message_from_another_planet.csd
>
> and I'm running it with:
>
>     csound -d -+rtaudio=alsa -o dac:hw:0,0 message_from_another_planet.csd
>
> and I get no sound and a message that says "Csound tidy up: Segmentation
> fault".
>
> This is csound 1:5.12.1~dfsg-5 from Debian on amd64.
>
> Erik
> --
> ----------------------------------------------------------------------
> Erik de Castro Lopo
> http://www.mega-nerd.com(or whatever) and send me the backtrace?  It may
be something we fixed or maye not

==John ff

>
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-11-07 22:49
FromErik de Castro Lopo
SubjectRe: [Cs-dev] Segfault on CSoundBlog CSD file
jpff@cs.bath.ac.uk wrote:

> Erik, could you run under gdb .


I'd be happy to if I could figure out how to build a Debian 
package with debug symbols. Unfortunately, the installed binaries
don't have debug symbols and I can't figure out how to build a
packge with debug info.

I looked at building csound in a chroot, but that simply doesn't
work. Running build-linux-double.sh failed with:

    Checking for C header file stdio.h... no
     *** Failed to compile a simple test program. The compiler is
     *** possibly not set up correctly, or is used with invalid flags.
     *** Check config.log to find out more about the error.

Looking on config.log I see:

    .sconf_temp/conftest_1.c:1: error: CPU you selected does not support
    x86-64 instruction set

probably as a result of -mtune=prescott.

However, I know that my machine does support the x86_64 instruction
set and that I have build x86_64 binaries of libflac, libogg, libvorbis
and libsndfile in this same chroot.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-11-07 23:20
FromFelipe Sateler
SubjectRe: [Cs-dev] Segfault on CSoundBlog CSD file
On Sun, Nov 7, 2010 at 19:49, Erik de Castro Lopo  wrote:
> jpff@cs.bath.ac.uk wrote:
>
>> Erik, could you run under gdb .
>
>
> I'd be happy to if I could figure out how to build a Debian
> package with debug symbols. Unfortunately, the installed binaries
> don't have debug symbols and I can't figure out how to build a
> packge with debug info.

This should work:

 DEB_BUILD_OPTIONS=nostrip dpkg-buildpackage

However, I don't know if the combination of -O3 and -g will prove useful.

>
> I looked at building csound in a chroot, but that simply doesn't
> work. Running build-linux-double.sh failed with:
>
>    Checking for C header file stdio.h... no
>     *** Failed to compile a simple test program. The compiler is
>     *** possibly not set up correctly, or is used with invalid flags.
>     *** Check config.log to find out more about the error.
>
> Looking on config.log I see:
>
>    .sconf_temp/conftest_1.c:1: error: CPU you selected does not support
>    x86-64 instruction set
>
> probably as a result of -mtune=prescott.
>
> However, I know that my machine does support the x86_64 instruction
> set and that I have build x86_64 binaries of libflac, libogg, libvorbis
> and libsndfile in this same chroot.

That script optimizes for (ie, it asks to build for) an atom
processor, which is not 64bit.


-- 

Saludos,
Felipe Sateler

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net

Date2010-11-08 00:21
FromErik de Castro Lopo
SubjectRe: [Cs-dev] Segfault on CSoundBlog CSD file
Felipe Sateler wrote:

> This should work:
> 
>  DEB_BUILD_OPTIONS=nostrip dpkg-buildpackage

Thanks Felipe. That worked.

Here's the backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7929372 in chnclear_opcode_perf (csound=0x603040, p=0x704f98) at OOps/bus.c:972
972         csoundSpinLock(lock);
(gdb) bt
#0  0x00007ffff7929372 in chnclear_opcode_perf (csound=0x603040, p=0x704f98) at OOps/bus.c:972
#1  0x00007ffff7976e23 in kperf (csound=) at Top/csound.c:1360
#2  csoundPerform (csound=) at Top/csound.c:1457
#3  0x0000000000401c08 in main (argc=2, argv=0x7fffffffe688) at frontends/csound/csound_main.c:136


>> > However, I know that my machine does support the x86_64 instruction
> > set and that I have build x86_64 binaries of libflac, libogg, libvorbis
> > and libsndfile in this same chroot.
> 
> That script optimizes for (ie, it asks to build for) an atom
> processor, which is not 64bit.

My comments were more general than that specific problem.

For most projects, you can download the sources and do:

     ./configure
     make

Most projects also have an INSTALL file containing instructions.

Csound doesn't use a standard configuration and build tool, and
the instructions in the INSTALL file point to

    http://csounds.com/manual/html/BuildingCsound.html

which provides the most complicated configuration instructions
I've ever seen for an open source project. Couldn't the vast
majority of the configuration options be automatically tested
for instead of making the user provide them?

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net