From: Takashi Iwai Subject: Re: AUDIO2000 and DShare plugin Date: Tue, 25 Apr 2006 18:55:07 +0200 Message-ID: References: <4.2.2.20060420160712.02ab55f8@192.168.1.6> <4.2.2.20060418153155.0514e5d0@192.168.1.6> <4.2.2.20060424092309.018063d8@192.168.1.6> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <4.2.2.20060424092309.018063d8@192.168.1.6> 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: James Stafford Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Mon, 24 Apr 2006 09:30:11 +0100, James Stafford wrote: > > > > > I tried with 1.0.11rc5 and still had the problem (I don't currently have > > > the hardware setup to try 1.0.11). > > > >OK, then please show the backtrace if possible. > > I tried 1.0.11 and also got the same seg fault. > > With pcm -Dplug:dshare_frontl running in one terminal, I used gdb to run > pcm -Dplug:dshare_frontr in another. > This is the output I got (using ALSA libs 1.0.11): > > Starting program: /home/james/audio2000/alsa-lib-1.0.11/test/pcm > -Dplug:dshare_frontr > [Thread debugging using libthread_db enabled] > [New Thread 16384 (LWP 1148)] > Playback device is plug:dshare_frontr > Stream parameters are 44100Hz, S16_LE, 1 channels > Sine wave rate is 440.0000Hz > Using transfer method: write > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 16384 (LWP 1148)] > 0x4003bc6c in snd_pcm_area_copy (dst_area=0xc, dst_offset=12000, > src_area=0x804d150, src_offset=0, samples=6000, > format=SND_PCM_FORMAT_S32_LE) at pcm.c:2537 > 2537 if (!dst_area->addr) Thanks for the back trace. It turned out to be a bug in dshare plugin. I fixed it on Hg repo. The fix patch is below, one-liner. Takashi diff -r f8249fa48b9c src/pcm/pcm_dshare.c --- a/src/pcm/pcm_dshare.c Tue Apr 25 17:32:48 2006 +0200 +++ b/src/pcm/pcm_dshare.c Tue Apr 25 18:52:52 2006 +0200 @@ -706,7 +706,6 @@ int snd_pcm_dshare_open(snd_pcm_t **pcmp snd_pcm_direct_semaphore_down(dshare, DIRECT_IPC_SEM_CLIENT); ret = snd_pcm_direct_open_secondary_client(&spcm, dshare, "dshare_client"); - ret = snd_pcm_hw_open_fd(&spcm, "dshare_client", dshare->hw_fd, 0, 0); if (ret < 0) goto _err; dshare->spcm = spcm; ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642