[mythtv-users] bug report - mythmusic

Jay Goldberg jay at ransdoc.com
Thu Nov 6 08:27:00 EST 2003


Hi Folks

I noticed an interesting mythmusic bug today -

If the music directory is not writeable by the user running mythfrontend
and you select 'Import CD' - MythMusic crashed with a segmentation violation
rather than displaying an error.

 From strace output:

1587  mkdir("/mnt/store/music/mozart/", 0775) = -1 EACCES (Permission denied)
1587  mkdir("/mnt/store/music/mozart/violin_concertos/", 0775) = -1 ENOENT (No such file or directory)
1587  open("/mnt/store/music/mozart/violin_concertos/1.mp3", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No such file or directory)

...it would seem that the return value for the mkdir command is not being
checked at all here.  Also:

1587  open("/dev/hdb", O_RDONLY|O_NONBLOCK) = 9
1587  ioctl(9, 0x5313, 0xbfffd4f0)      = 0
[lots more ioctl, read, etc etc]
1587  mremap(0x41887000, 282624, 290816, MREMAP_MAYMOVE) = 0x41887000
1587  mremap(0x41887000, 290816, 303104, MREMAP_MAYMOVE) = 0x41887000
1587  mremap(0x41887000, 303104, 307200, MREMAP_MAYMOVE) = 0x41887000
1587  mremap(0x41887000, 307200, 323584, MREMAP_MAYMOVE) = 0x41887000
1587  mremap(0x41887000, 323584, 327680, MREMAP_MAYMOVE) = 0x41887000
1587  mremap(0x41887000, 327680, 339968, MREMAP_MAYMOVE) = 0x41887000
1587  mremap(0x41887000, 339968, 344064, MREMAP_MAYMOVE) = 0x41887000
1587  mremap(0x41887000, 344064, 356352, MREMAP_MAYMOVE) = 0x41887000
1587  --- SIGSEGV (Segmentation fault) @ 0 (0) ---

..so it would appear that the import actually starts reading from CD and
crashes when it doesn't have anyplace to write.

	Cheers
		Jay

-- 
Jay Goldberg
H: jay at ransdoc.com




More information about the mythtv-users mailing list