[mythtv] Searching for music directories gets into an infinite loop

Mitko Haralanov voidtrance at comcast.net
Tue May 22 22:03:40 UTC 2007

Hi, I originally sent this to the user's list but it does feel like
this could be a pretty narly bug so I wanted the devs to weigh in too.

I just setup autofs on my Myth box to mount a directory from my server
where all my music is stored.
Somehow, I got mythfrontend to get into this state where it searches
for music directories on the filesystem and the search algorithm gets
into an infinite loop.

Before I explain the bug, here is some info:
mythbackend version: 0.20.20070327-1 www.mythtv.org
mythfrontend version: 0.20.20070327-1 www.mythtv.org

Here is what happened:
The frontend started its search through the filesystem and at some
point got to the /proc directory. It started going through the PID
subdirectories and since each process subdirectory contains a symbolic
link to the /, mythfrontend got itself into an infinite loop going
through /proc/<PID>/root/proc/<PID>/root/proc/<PID>... You get my
drift, right?

Now, I have 34394 entries in my music_directories mysql table none of
which seem to point to any dictories that actually have music files in

While I am sending this email to let the developers know of this, I
also wanted to ask whether I can safely delete all entries from that

Thank you!
Mitko Haralanov
voidtrance at comcast dot net

More information about the mythtv-dev mailing list