From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugtrack@alsa-project.org Subject: [ALSA - lib 0001571]: Segfaults when trying to specify the preamble values (iec958 plugin) Date: Thu, 17 Nov 2005 01:51:32 +0100 Message-ID: <6d40b3f4e6168362126e41a6152468d2@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [85.132.177.35]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 4E0CE1D1 for ; Thu, 17 Nov 2005 01:51:32 +0100 (MET) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org The following issue has been SUBMITTED. ====================================================================== ====================================================================== Reported By: nboullis Assigned To: ====================================================================== Project: ALSA - lib Issue ID: 1571 Category: 1_pcm - digital audio Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 11-17-2005 01:51 CET Last Modified: 11-17-2005 01:51 CET ====================================================================== Summary: Segfaults when trying to specify the preamble values (iec958 plugin) Description: When I try to specify the preamble values for the iec958 plugin (see the attached .asoundrc file for an example), I get segfaults with all applications that try to use the corresponding device. If I simply comment out the 3 preamble lines, the application runs fine (well, not with the null output, but with a real S/PDIF device) but I get no sound since I'm not using the correct preamble values. (This is with version 1.0.10.) Here is a backtrace I got with valgrind (using xmms as the application): ==15761== ==15761== Thread 5: ==15761== Invalid read of size 4 ==15761== at 0x1CADD3F7: snd_config_iterator_first (conf.c:3146) ==15761== by 0x1CB373BB: _snd_pcm_iec958_open (pcm_iec958.c:623) ==15761== by 0x1CAF9CB6: snd_pcm_open_conf (pcm.c:2070) ==15761== by 0x1CAFA61A: snd_pcm_open_slave (pcm.c:2187) ==15761== by 0x1CB1A32C: _snd_pcm_plug_open (pcm_plug.c:1140) ==15761== by 0x1CAF9CB6: snd_pcm_open_conf (pcm.c:2070) ==15761== by 0x1CAFA2BD: snd_pcm_open_noupdate (pcm.c:2102) ==15761== by 0x1CAFA376: snd_pcm_open (pcm.c:2123) ==15761== by 0x1CAB0E18: (within /usr/lib/xmms/Output/libALSA.so) ==15761== by 0x1CAB09D1: alsa_open (in /usr/lib/xmms/Output/libALSA.so) ==15761== by 0x1CBB0469: (within /usr/lib/xmms/Input/libmpg123.so) ==15761== by 0x1BAFFB62: start_thread (in /lib/tls/libpthread-0.60.so) ==15761== Address 0x4 is not stack'd, malloc'd or (recently) free'd Hope this helps. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 11-17-05 01:51 nboullis New Issue 11-17-05 01:51 nboullis File Added: .asoundrc ====================================================================== ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click