Commit ff039e80 authored by Thomas Schmitt's avatar Thomas Schmitt

Bug fix: SIGSEGV could happen if a track ended by reaching its fixed size...

Bug fix: SIGSEGV could happen if a track ended by reaching its fixed size while the track source still was willing to deliver bytes
parent e35995b8
#define Cdrskin_timestamP "2018.02.05.103650"
#define Cdrskin_timestamP "2018.08.08.152622"
......@@ -331,8 +331,31 @@ static int fifo_set_size(struct burn_source *source, off_t size)
static void fifo_free(struct burn_source *source)
struct burn_source_fifo *fs = source->data;
int wait_count;
static int wait_max = 30, wait_usleep = 100000;
burn_fifo_abort(fs, 0);
for (wait_count = 0; wait_count <= wait_max; wait_count++) {
if (fs->thread_is_valid <= 0)
if (wait_count < wait_max)
if (wait_count > wait_max) {
/* The shoveler thread might still be active. If so, it would
use invalid or inappropriate memory if the fifo would be
disposed now. A memory and resource leak is the better
option here.
libdax_msgs_submit(libdax_messenger, -1,
"Leaving burn_source_fifo object undisposed because it is possibly stuck but alive",
0, 0);
if (fs->inp != NULL)
......@@ -613,6 +613,7 @@ Range "scdbackup" : 0x00020000 to 0x0002ffff
0x000201a8 (FAILURE,HIGH) = SCSI command yielded driver problem
0x000201a9 (FAILURE,HIGH) = Implausible length from GET CONFIGURATION
0x000201aa (FAILURE,HIGH) = No CD-TEXT packs in file
0x000201ab (WARN,HIGH) = Leaving burn_source_fifo object undisposed
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment