[mythtv-users] segfault when mythvideo scan while fetching metadata

Mike Holden mikeholden99+mythtv at gmail.com
Thu Dec 7 05:46:02 UTC 2023

On Wed, 27 Sept 2023 at 11:50, Ryan Patterson <ryan.goat at gmail.com> wrote:

> This bug gets me every couple months.
> 1. Do a mythvideo "scan for changes" that discovers new videos.
> 2. Do a second scan while the list of new videos is being processed for
> metadata look up.
> 3. Segmentation fault every time.
> I haven't looked at the code but I assume it is something like this:
> There is a pointer to a dynamically allocated object that holds the list of
> discovered videos.  The second scan deletes any existing object and creates
> a new one.  But the metadata lookup continues trying to access the old
> (deleted) object.
I have also occasionally seen this. Seems to be some kind of race
condition, as it doesn't always happen, but my observation is exactly the
same as yours - instigating a second scan (either full scan, or single file
lookup with W) while the first is in progress.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20231207/d0e3ba0e/attachment.htm>

More information about the mythtv-users mailing list