On Fri, 26 Mar 2004, Yitao Duan wrote: > Hi, > > I am having trouble recording using Creative Labs Sound Blaster Audigy 2 > NX. The linux rec program worked fine. But whenever I use arecord (e.g. > arecord test.wav), I got Segmentation fault. I pinpointed the problem to > the function pcm_read in aplay.c. Specifically it was the line: > > r = readi_func(handle, data, count); > > that caused the fault. readi_func was called 3 times without problem. > But the 4th call will cause the fault. gdb showed that a NULL pointer > was encountered in function snd_pcm_rate_grab_next_period: rate->slave > was NULL. The following is a stack trace when the fault happened. > However, rate->slave was not NULL during the 3 normal readi_func calls > and I checked that the handle passed to readi_func was always the same. > What could happen that made the pointer NULL for the 4th call? I am > running 2.4.21-4.EL kernel and gcc 3.2.3. Any information will be highly > appreciated.
Try alsa-lib-1.0.4rc1. Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project, SuSE Labs ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel