Version 1.6.2 segfaults when reading from an empty drive

The place to discuss linux version of MakeMKV
Post Reply
BitJam2
Posts: 53
Joined: Wed Sep 01, 2010 7:04 am

Version 1.6.2 segfaults when reading from an empty drive

Post by BitJam2 »

I think I can get version 1.6.2 (on 64-bit Linux) to reliably segfault if I do:

$ makemkvcon -r info disc:X

followed by:

$ makemkvcon --bindport=YYYYY stream disc:X

when the disc:X drive has no disc.

On my system the association between disc:X and /dev/srY is random. I log the output of "makemkvcon -r info" and here is what I get when I grep for "ASUS":

Code: Select all

DRV:0,1,1,28,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:0,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:0,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:0,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:1,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:1,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:1,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:1,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:1,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:1,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:1,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:1,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:0,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:0,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:0,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:1,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:1,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:1,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:0,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
DRV:0,1,1,12,"BD-ROM ASUS BR-04B2T 1.01","some movie title"
Notice the first digit is sometimes "0" and sometimes "1".

I *think* the order the drives appear in the pseudo-file you look at depends on how quickly the system finds them which in turn depends on whether they contain a disc or not.

I've already posted a Perl wrapper script that solves this problem.
Post Reply