[mythtv-users] Mythtranscode crashing on amd64 (Ubuntu 8.04) when cutlist present.

Stephen Hocking stephen.hocking at gmail.com
Thu Jun 26 03:08:44 UTC 2008


Hi all,

I record MPEG2 programs off various DVB-T tuners, and in the last few
SVN revisions, have been seeing mythtranscode fail with a malloc error
whenever cutlists are used. MPEG2 -> MPEG2 transcodes without cutlists
work just fine. I posted off a backtrace from the backend log to the
dev list, but it's in moderation becuase the dump is so large. The
first few lines look like this -

2008-06-25 10:35:50.107 Transcoding from /mythtv/store/1022_20080624013500.mpg t
o /mythtv/store/1022_20080624013500.mpg.tmp
2008-06-25 10:35:50.170 Connecting to backend server: 202.12.111.5:6543 (try 1 o
f 5)
2008-06-25 10:35:50.175 Using protocol version 40
2008-06-25 10:35:50.177 MainServer::HandleAnnounce Monitor
2008-06-25 10:35:50.182 adding: mmedia as a client (events: 0)
2008-06-25 10:35:50.185 MainServer::HandleAnnounce Monitor
2008-06-25 10:35:50.186 adding: mmedia as a client (events: 1)
2008-06-25 10:35:50.647 AFD: Opened codec 0x8adf20, id(MPEG2VIDEO) type(Video)
2008-06-25 10:35:50.652 AFD: codec MP3 has 2 channels
2008-06-25 10:35:50.653 AFD: Opened codec 0x8ae5b0, id(MP3) type(Audio)
2008-06-25 10:35:50.869 Honoring the cutlist while transcoding
2008-06-25 10:35:50.872 Cutlist        : 0-937,122053-150936
2008-06-25 10:35:50.873 Original Length: 150936 frames
2008-06-25 10:35:50.875 New Length     : 121116 frames
2008-06-25 10:35:50.878 Transcode: Looking for autodetect profile: Autodetect fr
om 576i
2008-06-25 10:35:50.912 New DB connection, total: 3
2008-06-25 10:35:50.915 Connected to database 'mythconverg' at host: mmedia.craf
tncomp.com
2008-06-25 10:35:51.002 SampleRate: Attempted to add a rate 32000 Hz, which is n
ot in the list of allowed rates.
2008-06-25 10:35:51.019 Transcode: Using autodetect profile: MPEG2
2008-06-25 10:35:51.036 Switching to MPEG-2 transcoder.
2008-06-25 10:35:51.069 Opening /mythtv/store/1022_20080624013500.mpg
2008-06-25 10:35:51.100 Input #0, mpegts, from '/mythtv/store/1022_2008062401350
0.mpg':
2008-06-25 10:35:51.102   Duration: 01:40:37.8, start: 70293.672900, bitrate: 59
90 kb/s
2008-06-25 10:35:51.103     Stream #0.0[0x200]: Video: mpeg2video, yuv420p, 720x
576 [PAR 64:45 DAR 16:9], 15000 kb/s, 25.00 tb(r)
2008-06-25 10:35:51.104     Stream #0.1[0x28a](eng): Audio: mp2, 48000 Hz, stere
o, 256 kb/s
2008-06-25 10:35:51.105     Stream #0.2[0x240](eng): Data: 0x0000
2008-06-25 10:35:51.106     Stream #0.3[0x1770]: Data: 0x0000
2008-06-25 10:35:51.108 Skipping unsupported codec 2 on stream 2
2008-06-25 10:35:51.109 Skipping unsupported codec 2 on stream 3
2008-06-25 10:35:51.124 #0 PTS:19:31:34.278 Delta: 0.0ms queue: 16
2008-06-25 10:35:51.127 #1 PTS:19:31:34.276 Delta: 2.47778ms queue: 2
2008-06-25 10:35:51.826 Converting frame #0 from B to I
2008-06-25 10:35:51.855 Converting frame #1 from B to I
*** glibc detected *** /usr/local/bin/mythtranscode: malloc(): memory corruption
: 0x0000000000baf130 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f32bcce0a14]
/lib/libc.so.6(__libc_malloc+0x90)[0x7f32bcce2360]
/usr/lib/libQtCore.so.4(_ZN7QString17fromLatin1_helperEPKci+0x72)[0x7f32bd7eedb2
]
/usr/local/bin/mythtranscode[0x42b32e]
/usr/local/bin/mythtranscode[0x42bac4]
/usr/local/bin/mythtranscode[0x43fdeb]
/usr/local/bin/mythtranscode[0x4179cb]
/lib/libc.so.6(__libc_start_main+0xf4)[0x7f32bcc8a1c4]
/usr/local/bin/mythtranscode(_ZN7QObject11qt_metacallEN11QMetaObject4CallEiPPv+0
x59)[0x408859]
======= Memory map: ========

Anyone else seeing anything similar?


    Stephen


More information about the mythtv-users mailing list