Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault when mythvideo scan while fetching metadata #836

Open
RyanGoat opened this issue Jan 6, 2024 · 0 comments
Open

segfault when mythvideo scan while fetching metadata #836

RyanGoat opened this issue Jan 6, 2024 · 0 comments

Comments

@RyanGoat
Copy link

RyanGoat commented Jan 6, 2024

  • Platform:
    debian 12.4
    Linux htpc 6.1.0-17-amd64 Added fix for Ticket 8182 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux

  • MythTV version:
    fixes/33

  • Package version:
    Compiled from source on 2 January 2024

  • Component:
    Frontend > Mythvideo

What steps will reproduce the bug?

  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 lookup.
  3. Segmentation fault every time.

How often does it reproduce? Is there a required condition?

Reproducible 100% every time.

What is the expected behaviour?

Second scan should not cause segmentation fault. It should add to the existing queue of videos being processed for metadata.

What do you see instead?

Segmentation fault.

Additional information

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant