Was trying to write to a CDemu virtual CD. It works most of the times. But sometimes the daemon crashes randomly.
(gdb) bt
#0 mirage_track_get_sector_type (self=0x0) at ./mirage/track.c:329
#1 0x0000556f004e1a0e in cdemu_device_sao_recording_write_sectors (self=0x556f006af3c0 [CdemuDevice], start_address=<optimized out>, num_sectors=<optimized out>) at ./src/device-recording.c:947
#2 0x0000556f004dc3f8 in cdemu_device_execute_command (self=self@entry=0x556f006af3c0 [CdemuDevice], cdb=0x7f62f22cac30 "*") at ./src/device-commands.c:2881
#3 0x0000556f004ddaa8 in cdemu_device_io_handler (source=<optimized out>, condition=<optimized out>, self=0x556f006af3c0 [CdemuDevice]) at ./src/device-kernel-io.c:199
#4 0x00007f62f4c5f67f in g_main_dispatch (context=0x556f006dccb0) at ../../../glib/gmain.c:3454
#5 g_main_context_dispatch (context=context@entry=0x556f006dccb0) at ../../../glib/gmain.c:4172
#6 0x00007f62f4c5fa38 in g_main_context_iterate (context=0x556f006dccb0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4248
#7 0x00007f62f4c5fcef in g_main_loop_run (loop=0x556f006cbd10) at ../../../glib/gmain.c:4448
#8 0x0000556f004dd916 in cdemu_device_io_thread (self=0x556f006af3c0 [CdemuDevice]) at ./src/device-kernel-io.c:223
#9 0x00007f62f4c89cfd in g_thread_proxy (data=0x556f006b6b00) at ../../../glib/gthread.c:831
#10 0x00007f62f4868fd4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#11 0x00007f62f48e966c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Full gdb backtrace.
cdemu-client - 3.2.5-1
cdemu-daemon - 3.2.6-1
gcdemu - 3.2.6-1
gir1.2-mirage-3.2 - 3.2.6-1
image-analyzer - 3.2.5-1
libmirage11 - 3.2.6-1