Created attachment 399648 [details] proposed fix Version-Release number of selected component (if applicable): 0.9.8-1 How reproducible: 100% on my configuration Steps to Reproduce: 1. gdb -q --args ucview 2. run 3. start to record the video Actual results: Program received signal SIGSEGV, Segmentation fault. (gdb) l 189 long ucil_alsa_fill_audio_buffer( void *_data ) 190 { 191 alsa_data_t *data = _data; 192 long nread; 193 194 if( data->buff_fill >= ( sizeof( data->audio_buffer ) / sizeof( short ) - 1 ) ) 195 { 196 return 0; 197 } 198 (gdb) bt #0 ucil_alsa_fill_audio_buffer (_data=0x0) at ucil_alsa.c:194 #1 fetch_and_process_audio (vobj=0x96ae10, ...) at ucil_theora.c:480 #2 ucil_theora_encode_thread (vobj=<value optimized out>) at ucil_theora.c:659 #3 start_thread (arg=<value optimized out>) at pthread_create.c:297 #4 clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 Expected results: no crash Additional info: patch attached
Created attachment 399657 [details] proposed fix V2 now got the same crash on yet another ucil_alsa_*() function ... an amended patch attached
Created attachment 399664 [details] proposed fix V3 Oops, the same patch as V2, but this one can be compiled :-)
Comment on attachment 399664 [details] proposed fix V3 Still not perfect. With the patch applied, it crashes within theora_encode_YUVin() when the recording is stopped.
Created attachment 399694 [details] check the result of ucil_alsa_init()
Patch proposed upstream: https://bugs.launchpad.net/unicap/+bug/588658
libucil-0.9.8-2.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/libucil-0.9.8-2.fc12
libucil-0.9.8-2.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/libucil-0.9.8-2.fc13
*** Bug 599489 has been marked as a duplicate of this bug. ***
libucil-0.9.8-2.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update libucil'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/libucil-0.9.8-2.fc13
libucil-0.9.8-2.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update libucil'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/libucil-0.9.8-2.fc12
libucil-0.9.8-2.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.
libucil-0.9.8-2.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.