Version 1.6.2 segfaults when reading from an empty drive
Posted: Mon Dec 06, 2010 5:31 am
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":
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.
$ 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"
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.