<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 27 Sept 2023 at 11:50, Ryan Patterson <<a href="mailto:ryan.goat@gmail.com">ryan.goat@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">This bug gets me every couple months.<div>1. Do a mythvideo "scan for changes" that discovers new videos.</div><div>2. Do a second scan while the list of new videos is being processed for metadata look up.<br clear="all"><div><div dir="ltr" class="gmail_signature"><div>3. Segmentation fault every time.</div><div><br></div><div>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.</div><div dir="ltr"><br></div></div></div></div></div></blockquote><div><br></div><div>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.</div></div></div>