Re: [AD] get_audio_stream_buffer

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Serge Semashko wrote:
Thanks for the hints, I have found a solution in gentoo forums and fixed this issue.

Would you care to share them with me, please? :)

Examining this bug in gdb reveals the following information:

(gdb) bt
#0 _mix_some_samples (buf=1086511624, seg=42190, issigned=1) at src/mixer.c:1107
#1  0x08198475 in oss_update (threaded=1) at src/unix/uoss.c:176

Okay, it does look like some form of corruption. This is the only place in oss_update that calls _mix_some_samples:
	 _mix_some_samples((unsigned long) oss_bufdata, 0, oss_signed);
As you can see, the segment passed is always 0, yet your backtrace shows 42190. And also, that memory address for the buffer looks dubious as well, being so high. I'd recommend running memtest86 or some other memory testing program.


(gdb) inspect bufinfo
$1 = {fragments = 2097151, fragstotal = 8, fragsize = 2048, bytes = -1536}

The fragments and bytes here look really bad as well. I'd likely guess your memory is going bad.

- Kitty Cat




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/