Opened 14 years ago
Closed 14 years ago
Last modified 14 years ago
#10668 closed Bug Report - Crash (fixed)
mythtranscode segfault [patch]
| Reported by: | Owned by: | danielk | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.25.1 |
| Component: | MythTV - Recording | Version: | 0.25-fixes |
| Severity: | medium | Keywords: | mythtranscode crash segfault |
| Cc: | Ticket locked: | no |
Description
I recently upgraded my 0.21-fixed myth environment to 0.25-fixes. I'm chasing down several problems, once of which is that my newly transcoded content looks terrible (it's very blocky and seems to frequently corrupt a bit on scene changes) and that mythtranscode refuses to respect the sampling rate I set for audio transcode.
Anyway, in trying to troubleshoot these issues by running mythtranscode manually, I ran into an immediate and easily reproducible segfault. (Command, output and backtrace attached)
The source of the crash is ultimately at dtvrecorder.cpp:35 in the LOC preprocessor macro which dereferences tvrec without verifying that it's not NULL. (In the case of a transcode, it's explicitly NULL, leading to the crash in DTVRecorder::ResetForNewFile())
I'm far too unfamiliar with myth's codebase to understand the proper way to fix the problem, but a simple workaround is to validate tvrec first, which seems to at least allow me to run mythtranscode manually so I can get about finding the source of my other issues.
Very simple patch attached. (Hopefully in a useful format)
Attachments (3)
Change History (6)
by , 14 years ago
| Attachment: | mythtranscode-run.txt added |
|---|
comment:1 by , 14 years ago
| Component: | MythTV - Mythtranscode → MythTV - Recording |
|---|---|
| Milestone: | unknown → 0.25.1 |
| Owner: | set to |
| Status: | new → accepted |
comment:2 by , 14 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |

manual command and output