Opened 20 years ago
Closed 20 years ago
#196 closed patch (fixed)
6984 changes cause SEGV
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythtv | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
MythContextPrivate::mainWidow is left uninitialized when ScreenSaverControl::get() is called. The subsequent ScreenSaverX11::ScreenSaverX11() call invokes myth_system, which tries to fetch the main window to send the lirc stop event to; an access to random memory is made, the result of which is occasionally unpleasant.
Stuart Auchterlonie posted a backtrace to the -dev list which I won't reproduce here as it is easy enough to generate.
Attachments (1)
Change History (2)
Note:
See TracTickets
for help on using tickets.
(In [6986]) Closes #196.
Moving the screensaver stuff to Init() in [6984] did not fix the segmentation fault caused by [6977]. Looking deeper at the problem it looks like we need neither the lirc nor the joystick lock at that point. These are only needed once there is a MythMainWindow.
So this fix: