[ecasound] segfaults with CVS ecasound when using LADSPA plugins

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [ecasound] segfaults with CVS ecasound when using LADSPA plugins
From: Tim Westbrook (iondiode_AT_yahoo.com)
Date: Mon Jan 28 2002 - 00:49:00 EET


Hello,
        Not sure if I am supposed to report problems with CVS versions but
this seemed sufficiently wierd.

        While playing around with the text-mode ecasound I started
seeing segfaults when processing files ( -i:file -o:newfile ). But
only when I added -el effects. This does not happen with -pn effects
or when the output is a soundcard. ( -o:alsa,sblive ). The oddest
part is that that the file is created fine, ecasound seems to crash
during the cleanup process

        The command I used to see this problem
          ecasound -d:0 -i:/data/samples/x.wav \
                     -o:/data/samples/ecatest.wav \
                     -el:identity_audio

        I have included below , some relevant output of ecasound and gdb. As
$Subject states I am using CVS version checked out last night.
         I was also seeing segfaults with when using LADSPA plugins with my
sound card as the output , but these went away after changing my
-b(uffer-size) to 4096. So these are probably issues with my crappy
soundcard :-(

        
-Tim

# ecasound -d:0 -i:/data/samples/x.wav -o:/data/samples/ecatest.wav
(eca-engine) *** profile begin ***
Loops faster than realtime: 84 (<23.2 msec)
Loops slower than realtime: 0 (>=23.2 msec)
Loops slower than realtime: 0 (>46.4 msec)
Loops exceeding all buffering: 0 (>185.8 msec)
Total loops: 84
Fastest/slowest/average loop time: 0.1/2.6/0.4 msec.
(eca-engine) *** profile end ***

# ecasound -d:0 -i:/data/samples/x.wav -o:/data/samples/ecatest.wav
-el:identity_audio
(eca-engine) *** profile begin ***
Loops faster than realtime: 84 (<23.2 msec)
Loops slower than realtime: 0 (>=23.2 msec)
Loops slower than realtime: 0 (>46.4 msec)
Loops exceeding all buffering: 0 (>185.8 msec)
Total loops: 84
Fastest/slowest/average loop time: 0.1/1.1/0.4 msec.
(eca-engine) *** profile end ***
Warning: DBC_CHECK failed - "impl_repp->lockref_rep == 0",
samplebuffer.cpp, 174.
Segmentation fault

# ecasound -d:0 -i:/data/samples/x.wav -o:alsa,sblive
-el:identity_audio
(eca-engine) *** profile begin ***
Loops faster than realtime: 204 (<5.8 msec)
Loops slower than realtime: 130 (>=5.8 msec)
Loops slower than realtime: 0 (>11.6 msec)
Loops exceeding all buffering: 0 (>17.4 msec)
Total loops: 334
Fastest/slowest/average loop time: 0.0/5.9/5.7 msec.
(eca-engine) *** profile end ***
Warning: DBC_CHECK failed - "impl_repp->lockref_rep == 0",
samplebuffer.cpp, 174.
(audioio-proxy-server) *** profile begin ***
Profile_full_rep: 0
Profile_no_processing_rep: 30
Profile_not_full_anymore_rep: 333
Profile_processing_rep: 0
Profile_read_xrun_danger_rep: 0
Profile_write_xrun_danger_rep: 0
Profile_rounds_total_rep: 363
Fastest/slowest/average loop time: 0.0/0.1/0.0 msec.
(audioio-proxy-server) *** profile end ***

# gdb /usr/bin/ecasound
GNU gdb Red Hat Linux 7.x (5.0rh-15) (MI_OUT)
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux"...
(gdb) r -d:255 -i:/data/samples/x.wav -o:/data/samples/ecatest.wav
-el:identity_audio
Starting program: /usr/bin/ecasound -d:255 -i:/data/samples/x.wav
-o:/data/samples/ecatest.wav -el:identity_audio
[New Thread 1024 (LWP 12088)]
[New Thread 2049 (LWP 12095)]
[New Thread 1026 (LWP 12096)]
****************************************************************************
* ecasound v2.1dev8 (C) 1997-2002 Kai Vehmanen
****************************************************************************
- [ Session created ]
------------------------------------------------------
(eca-session) Set debug level to: 255
- [ Chainsetup created (cmdline) ]
-----------------------------------------
(audioio-proxy-server) constructor
(eca-chainsetup) Rtcaps detected.
(resource-file) Loading file .
(resource-file) Loading file .
(resource-file) Loading file /usr/share/ecasound/ecasoundrc.
(resource-file) Loading file /root/.ecasound/ecasoundrc.
(eca-chainsetup-parser) Interpreting global option
"-i:/data/samples/x.wav".
(eca-chainsetup-parser) Interpreting global option
"-o:/data/samples/ecatest.wav".
(eca-chainsetup-parser) Interpreting global option
"-el:identity_audio".
(chain) constuctor: CHAIN
(eca-chainsetup) Chain "default" created.
(eca-chainsetup-parser) Interpreting object option
"-i:/data/samples/x.wav".
(eca-object-map) match (1): .wav to regexp wav$
(eca-object-factory) Object "-i:/data/samples/x.wav" created, type
"RIFF wave file". Has 2 parameter(s).
(eca-chainsetup-parser) adding file "/data/samples/x.wav".
(audioio-buffered-proxy) Proxy created for /data/samples/x.wav.
(eca-chainsetup) Assigning file to chains: default
(eca-chainsetup-parser) Interpreting object option
"-o:/data/samples/ecatest.wav".
(eca-object-map) match (1): .wav to regexp wav$
(eca-object-factory) Object "-o:/data/samples/ecatest.wav" created,
type "RIFF wave file". Has 2 parameter(s).
(eca-chainsetup-parser) adding file "/data/samples/ecatest.wav".
(audioio-buffered-proxy) Proxy created for /data/samples/ecatest.wav.
(eca-chainsetup) Assigning file to chains: default
(eca-chainsetup-parser) Interpreting object option
"-el:identity_audio".
(eca-object-map) match (1): identity_audio to regexp ^identity_audio$
(eca-object-factory) Creating LADSPA-plugin "Identity (Audio)"
(eca-object-factory) Setting parameters:
Adding chainop to chain default.
- [ Connecting chainsetup ]
------------------------------------------------
(eca-chainsetup) bmode-selection case-5
(eca-chainsetup) 'nonrt' buffering mode selected.
(eca-chainsetup) Set buffering parameters to:
--cut--
buffersize: 1024
raised_priority: 0
sched_priority: 50
double buffering: 0
double buffer size: 100000
max buffers: 1
--cut--
(eca-chainsetup) Switching to direct mode.
(audioio-buffered-proxy) destructor /data/samples/x.wav.
(audioio-buffered-proxy) destructor /data/samples/ecatest.wav.
(audioio-wave) data length 170372 bytes.
(eca-chainsetup) Audio object "/data/samples/x.wav", mode "read".
(audio-io) Format: s16_le, channels 1, srate 44100, interleaved.
(audioio-wave) data length 340744 bytes.
(eca-chainsetup) Audio object "/data/samples/ecatest.wav", mode
"read/write".
(audio-io) Format: s16_le, channels 2, srate 44100, interleaved.
- [ Chainsetup connected ]
-------------------------------------------------
(eca-controller) Connected chainsetup: "command-line-setup".
- [ Controller/Processing started ]
----------------------------------------
(eca-engine) Engine/Initializing
(samplebuffer) Buffer created, channels: 2, length-samples: 1024,
sample rate: 44100.
(eca-engine) Prefill loops: 8 (blocksize 1024).
(eca-engine) Input "/data/samples/x.wav": start position 0, number of
connected chain 1 .
(eca-engine) Output "/data/samples/ecatest.wav": start position 0,
number of connected chain 1 .
(samplebuffer) Buffer created, channels: 2, length-samples: 1024,
sample rate: 44100.
[New Thread 2051 (LWP 13565)]
(eca-controller) Engine-thread pid: 13565
(audiofx_ladspa) Instantiated 1 LADSPA plugin(s), each with 1 audio
input port(s) and 1 output port(s), to chain with 1 channel(s) and
srate of 44100.
(chain) Initialized chain default with 1 chainops and 0 gcontrollers.
Sbuf points to 134910176.
- [ Engine init - mixmode "simple" ]
---------------------------------------
(eca-engine) Start
(eca-engine) input not finished / stop
(eca-engine) Stop
(eca-engine) Signaling stop
- [ Controller/Processing finished ]
---------------------------------------
(eca-engine) ECA_ENGINE destructor!
(eca-engine) *** profile begin ***
Loops faster than realtime: 84 (<23.2 msec)
Loops slower than realtime: 0 (>=23.2 msec)
Loops slower than realtime: 0 (>46.4 msec)
Loops exceeding all buffering: 0 (>185.8 msec)
Total loops: 84
Fastest/slowest/average loop time: 0.1/2.2/0.4 msec.
(eca-engine) *** profile end ***
Warning: DBC_CHECK failed - "impl_repp->lockref_rep == 0",
samplebuffer.cpp, 174.
- [ Engine exiting ]
-------------------------------------------------------
Ackk1...
Ackk2...
ECA_CHAINSETUP destructor!
(eca-chainsetup) Deleting chain "default".
CHAIN destructor!

(eca-chainsetup) Deleting audio object "/data/samples/x.wav".
(audioio-wave) Closing file /data/samples/x.wav
(eca-chainsetup) Deleting audio object "/data/samples/ecatest.wav".
(audioio-wave) Closing file /data/samples/ecatest.wav
(audioio-wave) update_riff_datablock()
(audioio-wave) Wave data size 340776
(audioio-wave) data length 340744 bytes.
(audioio-proxy-server) destructor

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 12088)]
0x40486d44 in chunk_free (ar_ptr=0x4053a620, p=0x8079198) at
malloc.c:3252
3252 malloc.c: No such file or directory.
        in malloc.c
(gdb) ba
#0 0x40486d44 in chunk_free (ar_ptr=0x4053a620, p=0x8079198) at
malloc.c:3252
#1 0x40486bf4 in __libc_free (mem=0x80791a0) at malloc.c:3154
#2 0x402c8ce6 in __builtin_delete (ptr=0x80791a0) from
/usr/lib/libecasound.so.8
#3 0x40372b01 in ATOMIC_INTEGER::~ATOMIC_INTEGER () at eval.c:41
#4 0x40152554 in AUDIO_IO_PROXY_SERVER::~AUDIO_IO_PROXY_SERVER () at
eval.c:41
#5 0x401bbae2 in ECA_CHAINSETUP::~ECA_CHAINSETUP () at eval.c:41
#6 0x4019807b in ECA_SESSION::~ECA_SESSION () at eval.c:41
#7 0x0804bfd9 in ecasound_clean_exit () at eval.c:41
#8 0x0804b1fc in main () at eval.c:41
#9 0x40422507 in __libc_start_main (main=0x804ab80 <main>, argc=5,
ubp_av=0xbffff964, init=0x804a360 <_init>, fini=0x805d304 <_fini>,
    rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffff95c) at
../sysdeps/generic/libc-start.c:129
(gdb)

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com

--
To unsubscribe send message 'unsubscribe' in the body of the
message to <ecasound-list-request_AT_wakkanet.fi>.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon Jan 28 2002 - 00:39:21 EET