Opened 14 years ago

Closed 14 years ago

#801 closed defect (fixed)

Mythbackend crash while generating thumbnails + bt, log

Reported by: jr@… Owned by: danielk
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

This has happened twice to me now, the first time I just deleted the file causing the crash, but since it's happened again I figured I should get off my lazy arse and generate a backtrace. Both times the file has been from my firewire connection. Everytime I hit refresh in mythweb recorded programs it crashes the slave backend that does the firewire recording. I am also pretty sure it causes the backend to crash when it generates the thumbnail after the recording finishes, because my backend went down hard last night right after this program was finished.

Starting program: /usr/bin/mythbackend -v all,nodatabase,noosd,nocommflag,nojobq                                                                ueue
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 28299)]
2005-12-13 07:56:39.114 Using runtime prefix = /usr
2005-12-13 07:56:45.820 New DB connection, total: 1
2005-12-13 07:56:45.826 Enabling Settings Cache.
2005-12-13 07:56:45.827 Clearing Settings Cache.
2005-12-13 07:56:45.828 Current Schema Version: 1119
Running as a slave backend.
2005-12-13 07:56:45.834 mythbackend: MythBackend started as a slave backend
[New Thread 32769 (LWP 28302)]
[New Thread 16386 (LWP 28303)]
2005-12-13 07:56:48.682 New DB connection, total: 2
2005-12-13 07:56:48.686 FireWireChannel: internal channel changer only supported                                                                 by DCT-6200 and SA3250HD models
2005-12-13 07:56:48.695 External channel change: /usr/local/bin/6200ch 353
2005-12-13 07:56:49.247 Waiting for External Tuning program to exit
rom1394_1 warning: read failed: 0x0000fffff0000414
error reading config rom directory for node 1
2005-12-13 07:56:50.249 ret_pid(0) child(28304) status(0x0)
2005-12-13 07:56:51.254 ret_pid(28304) child(28304) status(0x0)
2005-12-13 07:56:51.254 External Tuning program no longer running
2005-12-13 07:56:51.254 External Tuning program exited with no error
[New Thread 32771 (LWP 28305)]
2005-12-13 07:56:52.613 TVRec(1): SetFlags(RunMainLoop,) -> RunMainLoop,
2005-12-13 07:56:52.613 TVRec(1): ClearFlags(ExitPlayer,FinishRecording,) -> Run                                                                MainLoop,
[New Thread 49156 (LWP 28306)]
2005-12-13 07:56:53.974 DVB#0 Opening DVB channel
2005-12-13 07:56:53.974 DVB#0 Using DVB card 0, with frontend 'pcHDTV HD3000 HDT                                                                V'.
2005-12-13 07:56:53.974 DVB#0 SetChannelByString(11_1)
2005-12-13 07:56:53.976 New DB connection, total: 3
2005-12-13 07:56:53.978 DVB#0 Frequency: 117025000 Modulation: QPSK
2005-12-13 07:56:53.979 DVB#0 Old Params: freq(0) type(ATSC)
2005-12-13 07:56:53.979 DVB#0 New Params: freq(117025000) type(ATSC)
2005-12-13 07:56:53.979 dvbchannel.cpp:wait_for_backend: Status:
2005-12-13 07:56:53.979 DVB#0 DVBChannel::Tune: Frequency tuning successful.
2005-12-13 07:56:53.979 DVB#0 Tuned to frequency for channel 11_1.
[New Thread 65541 (LWP 28308)]
2005-12-13 07:56:55.385 TVRec(2): SetFlags(RunMainLoop,) -> RunMainLoop,
2005-12-13 07:56:55.385 TVRec(2): ClearFlags(ExitPlayer,FinishRecording,) -> Run                                                                MainLoop,
[New Thread 81926 (LWP 28309)]
[New Thread 98311 (LWP 28310)]
2005-12-13 07:56:58.199 mythbackend version: 0.19.20051208-1 www.mythtv.org
2005-12-13 07:56:58.200 Enabled verbose msgs: all nodatabase noosd nocommflag no                                                                jobqueue
2005-12-13 07:56:58.200 AutoExpire: Found 2 recorders w/max rate of 277 MiB/min
2005-12-13 07:56:58.201 AutoExpire: Required Free Space: 2.2 GB w/freq: 5 min
[New Thread 114696 (LWP 28311)]
[New Thread 131081 (LWP 28312)]
2005-12-13 07:57:01.037 mythbackend: Running housekeeping thread
[New Thread 147466 (LWP 28313)]
[New Thread 163851 (LWP 28314)]
[New Thread 180236 (LWP 28315)]
2005-12-13 07:57:06.315 Connecting to master server: 192.168.1.108:6543
2005-12-13 07:57:06.330 Connected successfully
2005-12-13 07:57:06.330 TVRec(1): SetFlags(CancelNextRecording,) -> RunMainLoop,                                                                CancelNextRecording,
2005-12-13 07:57:06.330 TVRec(2): SetFlags(CancelNextRecording,) -> RunMainLoop,                                                                CancelNextRecording,
2005-12-13 07:57:06.331 write -> 14 647     ANN SlaveBackend ploppy.301tc.local                                                                 127.0.0.1[]:[][]:[][]:[][]:[]...
2005-12-13 07:57:06.895 read  <- 14 2       OK
[New Thread 196621 (LWP 28316)]
2005-12-13 07:57:08.371 read  <- 14 16      QUERY_FREE_SPACE
2005-12-13 07:57:08.371 write -> 14 35      0[]:[]742268928[]:[]0[]:[]464912384
2005-12-13 07:57:08.387 read  <- 14 594     QUERY_PIXMAP_LASTMODIFIED[]:[]Arrest                                                                ed Development[]:[]Key Decisi...
2005-12-13 07:57:08.396 Local file path: /mnt/store//1111_20051212203000.mpg
2005-12-13 07:57:08.397 write -> 14 24      Tue Dec 13 07:24:03 2005
2005-12-13 07:57:08.415 read  <- 14 16      QUERY_FREE_SPACE
2005-12-13 07:57:08.416 write -> 14 35      0[]:[]742268928[]:[]0[]:[]464912384
2005-12-13 07:57:09.452 read  <- 14 594     QUERY_PIXMAP_LASTMODIFIED[]:[]Arrest                                                                ed Development[]:[]Key Decisi...
2005-12-13 07:57:09.452 Local file path: /mnt/store//1111_20051212203000.mpg
2005-12-13 07:57:09.452 write -> 14 24      Tue Dec 13 07:24:03 2005
2005-12-13 07:57:11.770 read  <- 14 589     QUERY_PIXMAP_LASTMODIFIED[]:[]Arrest                                                                ed Development[]:[]Prison Bre...
2005-12-13 07:57:11.770 Local file path: /mnt/store//1111_20051212195900.mpg
2005-12-13 07:57:11.778 write -> 14 24      Mon Dec 12 20:28:29 2005
2005-12-13 07:57:11.833 read  <- 14 579     QUERY_GENPIXMAP[]:[]Arrested Develop                                                                ment[]:[]Prison Break-In[]:[]...
2005-12-13 07:57:11.833 Local file path: /mnt/store//1111_20051212195900.mpg
2005-12-13 07:57:11.836 RingBuf(/mnt/store//1111_20051212195900.mpg): OpenFile(/                                                                mnt/store//1111_20051212195900.mpg, 0)
2005-12-13 07:57:13.596 AutoExpire: Found 2 recorders w/max rate of 277 MiB/min
2005-12-13 07:57:13.596 AutoExpire: Required Free Space: 2.2 GB w/freq: 5 min
[Thread 196621 (LWP 28316) exited]
2005-12-13 07:57:16.848 AutoExpire: Adding Programs to 'Do Not Expire' List
2005-12-13 07:57:16.850     1111 @ Mon Dec 12 19:59:00 2005 in use by flagger on                                                                 yoshi
2005-12-13 07:57:16.850     2353 @ Mon Dec 12 19:59:00 2005 in use by Preview on                                                                 ploppy.301tc.local
2005-12-13 07:57:16.850     1111 @ Mon Dec 12 19:59:00 2005 in use by flagger on                                                                 ploppy.301tc.local
mpegts_add_stream: at pid 0x31 with type 2
mpegts_add_stream: stream #0, has id 0x31 and codec MPEG2VIDEO, type Video at 0x                                                                629c40
mpegts_add_stream: at pid 0x34 with type 129
mpegts_add_stream: stream #1, has id 0x34 and codec AC3, type Audio at 0x62b340
0: start_time: 3942.290 duration: 166.582
1: start_time: 3942.233 duration: 166.579
stream: start_time: 43802.587 duration: 1851.548 bitrate=12411 kb/s
2005-12-13 07:57:58.375 AFD: Stream #0, has id 0x49 codec id MPEG2VIDEO, type Vi                                                                deo at 0x0x629c40
2005-12-13 07:57:58.376 detectInterlace(Detect Scan, Detect Scan, 59.9401, 720)                                                                 ->Progressive Scan
2005-12-13 07:57:58.376 Interlaced: Progressive Scan  video_height: 720  fps: 59                                                                .9401
2005-12-13 07:57:58.376 AFD: Looking for decoder for MPEG2VIDEO
2005-12-13 07:57:58.376 AFD: Opened codec 0x62ae30, id(MPEG2VIDEO) type(Video)
2005-12-13 07:57:58.376 AFD: Stream #1, has id 0x52 codec id AC3, type Audio at                                                                 0x0x62b340
2005-12-13 07:57:58.376 AFD: Looking for decoder for AC3
2005-12-13 07:57:58.378 AFD: Opened codec 0x62b410, id(AC3) type(Audio)
2005-12-13 07:57:58.379 AFD: Audio Track #1 is A/V stream #1 and has 2 channels                                                                 in the English language(6647399).
2005-12-13 07:57:58.379 RingBuf:CalcReadAheadThresh(39258 KB) -> threshhold(750                                                                 KB) readblocksize(250 KB)
2005-12-13 07:57:58.379 AFD: Selected track 1: English AC3 2ch (A/V Stream #1)
2005-12-13 07:57:58.379 AFD: Initializing audio parms from audio track #1
2005-12-13 07:57:58.379 AFD: Audio format changed
                        from id(NONE)    -1Hz -1ch 256bps    ; id(NONE)    -1Hz                                                                 -1ch  16bps
                        to   id( AC3) 48000Hz  2ch  16bps pt ; id( AC3) 48000Hz                                                                  2ch  16bps pt
2005-12-13 07:57:58.379 Resyncing position map. posmapStarted = 0 livetv(0) watc                                                                hingRec(0)
2005-12-13 07:58:01.230 Position map filled from DB to: 110947
2005-12-13 07:58:01.231 SyncPositionMap prerecorded, from DB: 7555 entries
2005-12-13 07:58:01.231 SyncPositionMap, new totframes: 110947, new length: 1850                                                                , posMap size: 7555
Input #0, mpegts, from '/mnt/store//1111_20051212195900.mpg':
  Duration: 00:30:51.5, start: 43802.586789, bitrate: 12411 kb/s
  Stream #0.0[0x31], 1/90000, 59.94 fps: Video: mpeg2video, yuv420p, 1280x720, 1                                                                001/60000, 38810 kb/s
  Stream #0.1[0x34](eng), 1/90000: Audio: ac3, 48000 Hz, stereo, 448 kb/s
2005-12-13 07:58:01.231 AFD: Position map found
2005-12-13 07:58:01.231 AFD: Successfully opened decoder for file: "/mnt/store//                                                                1111_20051212195900.mpg". novideo(0)
2005-12-13 07:58:01.235 VideoOutputNull()
2005-12-13 07:58:01.242 Image size. dispxoff 0, dispyoff: 0, dispwoff: 0, dispho                                                                ff: 0
2005-12-13 07:58:01.242 Image size. imgx 0, imgy: 0, imgw: 1280, imgh: 720
2005-12-13 07:58:01.244 Created data @0x2aaab51b4010->0x2aaab5305812
2005-12-13 07:58:01.247 Created data @0x2aaab5306010->0x2aaab5457812
2005-12-13 07:58:01.248 Created data @0x2aaab5458010->0x2aaab55a9812
2005-12-13 07:58:01.250 Created data @0x2aaab55aa010->0x2aaab56fb812
2005-12-13 07:58:01.253 Created data @0x2aaab56fc010->0x2aaab584d812
2005-12-13 07:58:01.255 Created data @0x2aaab584e010->0x2aaab599f812
2005-12-13 07:58:01.257 Created data @0x2aaab59a0010->0x2aaab5af1812
2005-12-13 07:58:01.259 Created data @0x2aaab5af2010->0x2aaab5c43812
2005-12-13 07:58:01.262 Created data @0x2aaab5c44010->0x2aaab5d95812
2005-12-13 07:58:01.264 Created data @0x2aaab5d96010->0x2aaab5ee7812
2005-12-13 07:58:01.266 Created data @0x2aaab5ee8010->0x2aaab6039812
2005-12-13 07:58:01.268 Created data @0x2aaab603a010->0x2aaab618b812
2005-12-13 07:58:01.271 Created data @0x2aaab618c010->0x2aaab62dd812
2005-12-13 07:58:01.273 Created data @0x2aaab62de010->0x2aaab642f812
2005-12-13 07:58:01.275 Created data @0x2aaab6430010->0x2aaab6581812
2005-12-13 07:58:01.278 Created data @0x2aaab6582010->0x2aaab66d3812
2005-12-13 07:58:01.280 Created data @0x2aaab66d4010->0x2aaab6825812
2005-12-13 07:58:01.281 Created data @0x2aaab6826010->0x2aaab6977812
2005-12-13 07:58:01.284 Created data @0x2aaab6978010->0x2aaab6ac9812
2005-12-13 07:58:01.287 Created data @0x2aaab6aca010->0x2aaab6c1b812
2005-12-13 07:58:01.289 Created data @0x2aaab6c1c010->0x2aaab6d6d812
2005-12-13 07:58:01.290 Created data @0x2aaab6d6e010->0x2aaab6ebf812
2005-12-13 07:58:01.293 Created data @0x2aaab6ec0010->0x2aaab7011812
2005-12-13 07:58:01.295 Created data @0x2aaab7012010->0x2aaab7163812
2005-12-13 07:58:01.297 Created data @0x2aaab7164010->0x2aaab72b5812
2005-12-13 07:58:01.300 Created data @0x2aaab72b6010->0x2aaab7407812
2005-12-13 07:58:01.302 Created data @0x2aaab7408010->0x2aaab7559812
2005-12-13 07:58:01.304 Created data @0x2aaab755a010->0x2aaab76ab812
2005-12-13 07:58:01.306 Created data @0x2aaab76ac010->0x2aaab77fd812
2005-12-13 07:58:01.309 Created data @0x2aaab77fe010->0x2aaab794f812
2005-12-13 07:58:01.311 Created data @0x2aaab7950010->0x2aaab7aa1812
2005-12-13 07:58:01.313 Created data @0x2aaab7aa2010->0x2aaab7bf3812
2005-12-13 07:58:01.313 Image size. dispxoff 0, dispyoff: 0, dispwoff: 0, dispho                                                                ff: 0
2005-12-13 07:58:01.313 Image size. imgx 0, imgy: 0, imgw: 1280, imgh: 720
2005-12-13 07:58:01.313 NVP: ClearAfterSeek()
2005-12-13 07:58:01.353 AFD: DoFastForward(7191, do flush)
2005-12-13 07:58:01.365 DecorderBase::DoFastForward(7191, do flush)
2005-12-13 07:58:01.365 AFD: SeekReset(0, do flush)
2005-12-13 07:58:01.365 AFD: SeekReset() flushing
2005-12-13 07:58:01.365 VideoBuffers::DiscardFrames(): AAAAAAAAAAAAAAAAAAAAAAAAA                                                                AAAAAL
2005-12-13 07:58:01.365 VideoBuffers::DiscardFrames(): AAAAAAAAAAAAAAAAAAAAAAAAA                                                                AAAAAA -- done()
2005-12-13 07:58:01.366 NVP: ClearAfterSeek()
2005-12-13 07:58:01.415 ~VideoOutputNull()
2005-12-13 07:58:01.444 MainServer: Failed to make preview image.
2005-12-13 07:58:01.444 write -> 14 3       BAD
2005-12-13 07:58:01.453 read  <- 14 16      QUERY_FREE_SPACE
2005-12-13 07:58:01.453 write -> 14 35      0[]:[]742268928[]:[]0[]:[]464912384
2005-12-13 07:58:01.469 read  <- 14 41      QUERY_REMOTEENCODER 1[]:[]GET_MAX_BI                                                                TRATE
2005-12-13 07:58:01.469 write -> 14 14      0[]:[]19400000
2005-12-13 07:58:01.493 read  <- 14 589     QUERY_PIXMAP_LASTMODIFIED[]:[]Arrest                                                                ed Development[]:[]Prison Bre...
2005-12-13 07:58:01.493 Local file path: /mnt/store//1111_20051212195900.mpg
2005-12-13 07:58:01.493 write -> 14 24      Mon Dec 12 20:28:29 2005
2005-12-13 07:58:01.509 read  <- 14 16      QUERY_FREE_SPACE
2005-12-13 07:58:01.509 write -> 14 35      0[]:[]742268928[]:[]0[]:[]464912384
2005-12-13 07:58:01.526 read  <- 14 41      QUERY_REMOTEENCODER 2[]:[]GET_MAX_BI                                                                TRATE
2005-12-13 07:58:01.526 write -> 14 14      0[]:[]19400000
2005-12-13 07:58:21.279 AutoExpire: Adding Programs to 'Do Not Expire' List
2005-12-13 07:58:21.284     1111 @ Mon Dec 12 19:59:00 2005 in use by flagger on                                                                 yoshi
2005-12-13 07:58:21.284     2353 @ Mon Dec 12 19:59:00 2005 in use by Preview on                                                                 ploppy.301tc.local
2005-12-13 07:58:21.284     1111 @ Mon Dec 12 19:59:00 2005 in use by flagger on                                                                 ploppy.301tc.local
2005-12-13 07:58:21.285 AutoExpire: ExpireLiveTV(10000)
2005-12-13 07:58:21.292 AutoExpire: SendDeleteMessages. Nothing to expire.
2005-12-13 07:58:21.364 read  <- 14 408     QUERY_PIXMAP_LASTMODIFIED[]:[] []:[]                                                                 []:[] []:[] []:[]1111[]:[] [...
2005-12-13 07:58:21.365 write -> 14 24      Tue Dec 13 07:24:03 2005
2005-12-13 07:58:21.408 read  <- 14 408     QUERY_PIXMAP_LASTMODIFIED[]:[] []:[]                                                                 []:[] []:[] []:[]2353[]:[] [...
2005-12-13 07:58:21.409 write -> 14 3       BAD
2005-12-13 07:58:21.440 read  <- 14 398     QUERY_GENPIXMAP[]:[] []:[] []:[] []:                                                                [] []:[]2353[]:[] []:[] []:[]...
2005-12-13 07:58:21.441 RingBuf(/mnt/store/2353_20051212195900.mpg): OpenFile(/m                                                                nt/store/2353_20051212195900.mpg, 0)
mpegts_add_stream: at pid 0xa4 with type 129
mpegts_add_stream: stream #0, has id 0xa4 and codec AC3, type Audio at 0x624d70
mpegts_add_stream: at pid 0xa1 with type 2
mpegts_add_stream: stream #1, has id 0xa1 and codec MPEG2VIDEO, type Video at 0x                                                                67c210
av_remove_stream 0xa1
av_remove_stream: no change to cur_st
av_remove_stream: removing... s->nb_streams=2 i=1
av_remove_stream: mpegts_remove_stream
mpegts_remove_stream 0xa1
closing filter for pid 0xa1
av_remove_stream: renumbering streams
av_remove_stream 0xa4
av_remove_stream: no change to cur_st
av_remove_stream: removing... s->nb_streams=1 i=0
av_remove_stream: mpegts_remove_stream
mpegts_remove_stream 0xa4
closing filter for pid 0xa4
av_remove_stream: renumbering streams
mpegts_add_stream: at pid 0x101 with type 2
mpegts_add_stream: stream #0, has id 0x101 and codec MPEG2VIDEO, type Video at 0                                                                x67c520
mpegts_add_stream: at pid 0x102 with type 129
mpegts_add_stream: stream #1, has id 0x102 and codec AC3, type Audio at 0x6560d0

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 180236 (LWP 28315)]
0x00002aaaab9df2c1 in av_find_stream_info (ic=0x653130) at utils.c:2098
2098    utils.c: No such file or directory.
        in utils.c
Current language:  auto; currently c
(gdb) thread apply all bt full

Thread 13 (Thread 180236 (LWP 28315)):
#0  0x00002aaaab9df2c1 in av_find_stream_info (ic=0x653130) at utils.c:2098
        i = 2
        count = 59
        ret = 0
        read_size = 492364
        st = (AVStream *) 0x67c210
        pkt1 = {pts = 93255, dts = 93255,
  data = 0x675ee0 "\vwN²\032 Cþ!\006¾¸a\002ÔC§Éõ7T\234Ó¢åýÕI\206¿\032¥óø\213\237                                                                >S­òWn_W¦\226»\231ïÐp{]óå4«¾­JÂ`]U¹\206æÛõ0Ý%¥MSÚÄ\vQ\016\177Ï\234\035V\234ý,çÊ                                                                 ÜL\225íwÏ\237µ~ÕSçé_¹}\tSêTÓ)¦\231K§Ï\225>\205Ió÷*\237>|ùô'Ó\237>Ìú\030Êï\224\23                                                                1o\\ @&ð¸n", size = 1280, stream_index = 1, flags = 1, duration = 2880,
  destruct = 0x2aaaab9dca57 <av_destruct_packet_nofree>, priv = 0x0,
  pos = 585620}
        pkt = (AVPacket *) 0x739000
        pktl = (AVPacketList *) 0x61e570
        ppktl = (AVPacketList **) 0x739040
        last_dts = {3626991672, 3627024808,
  -9223372036854775808 <repeats 18 times>}
        duration_sum = {86400, 81081, 9223372036854775807 <repeats 18 times>}
        duration_count = {30, 27, 0 <repeats 18 times>}
#1  0x00002aaaab27c209 in AvFormatDecoder::OpenFile (this=0x61d9b0,
---Type <return> to continue, or q <return> to quit---
    rbuffer=0x626f50, novideo=false, testbuf=0x2aaab455c310 "G@¡\020")
    at avformatdecoder.cpp:627
        fmt = (AVInputFormat *) 0x2aaaabb16040
        err = 0
        ret = 6415872
        filename = 0x61c420 "/mnt/store/2353_20051212195900.mpg"
        probe = {filename = 0x61c420 "/mnt/store/2353_20051212195900.mpg",
  buf = 0x2aaab455c310 "G@¡\020", buf_size = 2048}
#2  0x00002aaaab254479 in NuppelVideoPlayer::OpenFile (this=0x655200,
    skipDsp=false, retries=0, allow_libmpeg2=false)
    at NuppelVideoPlayer.cpp:737
        testbuf = "G@¡\020\000\000\001à\000\000\204À\0237`»ÐA\027`»\211ßÿÿÿÿÿÿÿÿ                                                                ÿ\000\000\001³,\001à$$\237#\201\020\021\021\022\022\022\023\023\023\023\024\024\                                                                024\024\024\025\025\025\025\025\025\026\026\026\026\026\026\026\027\027\027\027\                                                                027\027\027\027\030\030\030\031\030\030\030\031\032\032\032\032\031\033\033\033\                                                                033\033\034\034\034\034\036\036\036\037\037!\000\000\001µ\024\202\000\001\000\00                                                                0\000\000\000\000\001¸Å\236\214\000\000\000\001\000\000\217ÿø\000\000\000\001µ\2                                                                17ÿû\230\000\000\000\000\000\000\000\000\000\001²SAUD\004â±\200\200²\217&\000\00                                                                0\001²\003\201\020¬\004\004Kñd\000\000\000\000\000\001²G\000¡\021SAUD\001\000\00                                                                1\000"...
        ret = 10922
        disable_video_decoding = false
#3  0x00002aaaab26359a in NuppelVideoPlayer::GetScreenGrab (this=0x655200,
---Type <return> to continue, or q <return> to quit---
    secondsin=120, bufflen=@0x2aaab455d7bc, vw=@0x2aaab455d7b8,
    vh=@0x2aaab455d7b4, ar=@0x2aaab455d7b0) at NuppelVideoPlayer.cpp:3820
        data = (unsigned char *) 0x0
        frame = (VideoFrame *) 0x0
        retbuf = {data = {0x0, 0x0, 0x0, 0x0}, linesize = {0, 0, 0, 0}}
        number = 0
        oldnumber = 0
        outputbuf = (unsigned char *) 0x0
        orig = {data = {0x0, 0x0, 0x0, 0x0}, linesize = {0, 0, 0, 0}}
#4  0x00002aaaab4ec398 in PreviewGenerator::GetScreenGrab (pginfo=0x61af20,
    filename=@0x2aaab455d970, secondsin=120, bufferlen=@0x2aaab455d7bc,
    video_width=@0x2aaab455d7b8, video_height=@0x2aaab455d7b4,
    video_aspect=@0x2aaab455d7b0) at previewgenerator.cpp:348
        retbuf = 0x0
        rbuf = (RingBuffer *) 0x626f50
        nvp = (NuppelVideoPlayer *) 0x655200
#5  0x00000000004276ce in EncoderLink::GetScreenGrab (this=0x60f980,
    pginfo=0x61af20, filename=@0x2aaab455d970, secondsin=120,
    bufferlen=@0x2aaab455d7bc, video_width=@0x2aaab455d7b8,
    video_height=@0x2aaab455d7b4, video_aspect=@0x2aaab455d7b0)
    at encoderlink.cpp:880
No locals.
#6  0x0000000000451a68 in MainServer::HandleGenPreviewPixmap (this=0x615a60,
---Type <return> to continue, or q <return> to quit---
    slist=@0x2aaab455de40, pbs=0x61aa00) at mainserver.cpp:3111
        qurl = <incomplete type>
        elink = (EncoderLink *) 0x60f980
        iter = {node = 0x5db150}
        width = 0
        height = 0
        secondsin = 120
        pbssock = (struct QSocket *) 0x6140b0
        filename = {static null = {
    static null = <same as static member of an already seen type>,
    d = 0x5af440, static shared_null = 0x5af440}, d = 0x623c20,
  static shared_null = 0x5af440}
        aspect = 0
        data = (unsigned char *) 0x2aaab455d9a0 "àÙU´ª*"
        pginfo = (ProgramInfo *) 0x61af20
        len = 0
#7  0x00000000004384fe in MainServer::ProcessRequestWork (this=0x615a60,
    sock=0x6140b0) at mainserver.cpp:432
        listline = {<QValueList<QString>> = {sh = 0x61b0d0}, <No data fields>}
        line = {static null = {
    static null = <same as static member of an already seen type>,
    d = 0x5af440, static shared_null = 0x5af440}, d = 0x61a180,
  static shared_null = 0x5af440}
---Type <return> to continue, or q <return> to quit---
        tokens = {<QValueList<QString>> = {sh = 0x626490}, <No data fields>}
        command = {static null = {
    static null = <same as static member of an already seen type>,
    d = 0x5af440, static shared_null = 0x5af440}, d = 0x61a180,
  static shared_null = 0x5af440}
        pbs = (class PlaybackSock *) 0x61aa00
#8  0x0000000000436e62 in MainServer::ProcessRequest (this=0x615a60,
    sock=0x6140b0) at mainserver.cpp:255
No locals.
#9  0x00000000004601c4 in ProcessRequestThread::run (this=0x6146d0)
    at mainserver.cpp:91
No locals.
#10 0x00002aaaad8317ad in QThreadInstance::start ()
   from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#11 0x00002aaaae17fbb9 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#12 0x00002aaaae17fc63 in pthread_start_thread_event ()
   from /lib/libpthread.so.0
No symbol table info available.
#13 0x00002aaaae846f33 in clone () from /lib/libc.so.6
No symbol table info available.
#14 0x00010102464c457f in ?? ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#15 0x0000000000000000 in ?? ()
No symbol table info available.

Thread 12 (Thread 163851 (LWP 28314)):
#0  0x00002aaaae18266c in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00002aaaae181ea0 in __pthread_wait_for_restart_signal ()
   from /lib/libpthread.so.0
No symbol table info available.
#2  0x00002aaaae17ef1a in pthread_cond_wait@GLIBC_2.2.5 ()
   from /lib/libpthread.so.0
No symbol table info available.
#3  0x00002aaaadae7b97 in QWaitCondition::wait ()
   from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#4  0x00000000004601a3 in ProcessRequestThread::run (this=0x613f90)
    at mainserver.cpp:86
No locals.
#5  0x00002aaaad8317ad in QThreadInstance::start ()
   from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#6  0x00002aaaae17fbb9 in pthread_start_thread () from /lib/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#7  0x00002aaaae17fc63 in pthread_start_thread_event ()
   from /lib/libpthread.so.0
No symbol table info available.
#8  0x00002aaaae846f33 in clone () from /lib/libc.so.6
No symbol table info available.
#9  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 11 (Thread 147466 (LWP 28313)):
#0  0x00002aaaae18266c in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00002aaaae181ea0 in __pthread_wait_for_restart_signal ()
   from /lib/libpthread.so.0
No symbol table info available.
#2  0x00002aaaae17ef1a in pthread_cond_wait@GLIBC_2.2.5 ()
   from /lib/libpthread.so.0
No symbol table info available.
#3  0x00002aaaadae7b97 in QWaitCondition::wait ()
   from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#4  0x00000000004601a3 in ProcessRequestThread::run (this=0x604930)
    at mainserver.cpp:86
---Type <return> to continue, or q <return> to quit---
No locals.
#5  0x00002aaaad8317ad in QThreadInstance::start ()
   from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#6  0x00002aaaae17fbb9 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x00002aaaae17fc63 in pthread_start_thread_event ()
   from /lib/libpthread.so.0
No symbol table info available.
#8  0x00002aaaae846f33 in clone () from /lib/libc.so.6
No symbol table info available.
#9  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 10 (Thread 131081 (LWP 28312)):
#0  0x00002aaaae18266c in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00002aaaae181ea0 in __pthread_wait_for_restart_signal ()
   from /lib/libpthread.so.0
No symbol table info available.
#2  0x00002aaaae17ef1a in pthread_cond_wait@GLIBC_2.2.5 ()
   from /lib/libpthread.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#3  0x00002aaaadae7b97 in QWaitCondition::wait ()
   from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#4  0x00000000004601a3 in ProcessRequestThread::run (this=0x614c70)
    at mainserver.cpp:86
No locals.
#5  0x00002aaaad8317ad in QThreadInstance::start ()
   from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#6  0x00002aaaae17fbb9 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x00002aaaae17fc63 in pthread_start_thread_event ()
   from /lib/libpthread.so.0
No symbol table info available.
#8  0x00002aaaae846f33 in clone () from /lib/libc.so.6
No symbol table info available.
#9  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 9 (Thread 114696 (LWP 28311)):
#0  0x00002aaaae18266c in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00002aaaae181ea0 in __pthread_wait_for_restart_signal ()
---Type <return> to continue, or q <return> to quit---
   from /lib/libpthread.so.0
No symbol table info available.
#2  0x00002aaaae17ef1a in pthread_cond_wait@GLIBC_2.2.5 ()
   from /lib/libpthread.so.0
No symbol table info available.
#3  0x00002aaaadae7b97 in QWaitCondition::wait ()
   from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#4  0x00000000004601a3 in ProcessRequestThread::run (this=0x6149d0)
    at mainserver.cpp:86
No locals.
#5  0x00002aaaad8317ad in QThreadInstance::start ()
   from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#6  0x00002aaaae17fbb9 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x00002aaaae17fc63 in pthread_start_thread_event ()
   from /lib/libpthread.so.0
No symbol table info available.
#8  0x00002aaaae846f33 in clone () from /lib/libc.so.6
No symbol table info available.
#9  0x0000000000000000 in ?? ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---

Thread 8 (Thread 98311 (LWP 28310)):
#0  0x00002aaaae81ba05 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00002aaaae81b8a2 in sleep () from /lib/libc.so.6
No symbol table info available.
#2  0x00002aaaab12e468 in JobQueue::ProcessQueue (this=0x614fa0)
    at jobqueue.cpp:475
        queueStartTimeStr = {static null = {
    static null = <same as static member of an already seen type>,
    d = 0x5af440, static shared_null = 0x5af440}, d = 0x61aa90,
  static shared_null = 0x5af440}
        queueStartTime = 0
        atMax = false
        status = 4
        hostname = {static null = {
    static null = <same as static member of an already seen type>,
    d = 0x5af440, static shared_null = 0x5af440}, d = 0x61c080,
  static shared_null = 0x5af440}
        maxJobs = 1
        queueEndTimeStr = {static null = {
    static null = <same as static member of an already seen type>,
    d = 0x5af440, static shared_null = 0x5af440}, d = 0x61a880,
---Type <return> to continue, or q <return> to quit---
  static shared_null = 0x5af440}
        message = {static null = {
    static null = <same as static member of an already seen type>,
    d = 0x5af440, static shared_null = 0x5af440}, d = 0x61e8c0,
  static shared_null = 0x5af440}
        tmpStr = {static null = {
    static null = <same as static member of an already seen type>,
    d = 0x5af440, static shared_null = 0x5af440}, d = 0x652340,
  static shared_null = 0x5af440}
        inTimeWindow = true
        type = 2
        id = 1828
        jobStatus = {sh = 0x619db0}
        curQTime = {ds = 28688419}
        starttime = {d = {jd = 2453717}, t = {ds = 71940000}}
        flags = 0
        sleepTime = 60
        curTime = 758
        startedJobAlready = false
        chanid = {static null = {
    static null = <same as static member of an already seen type>,
    d = 0x5af440, static shared_null = 0x5af440}, d = 0x61e9a0,
  static shared_null = 0x5af440}
---Type <return> to continue, or q <return> to quit---
        startts = {static null = {
    static null = <same as static member of an already seen type>,
    d = 0x5af440, static shared_null = 0x5af440}, d = 0x61aac0,
  static shared_null = 0x5af440}
        cmds = 0
        queueEndTime = 2359
        jobs = {sh = 0x607f00}
#3  0x00002aaaab1296ae in JobQueue::RunQueueProcesser (this=0x614fa0)
    at jobqueue.cpp:138
No locals.
#4  0x00002aaaab1296cd in JobQueue::QueueProcesserThread (param=0x614fa0)
    at jobqueue.cpp:144
        jobqueue = (class JobQueue *) 0x614fa0
#5  0x00002aaaae17fbb9 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6  0x00002aaaae17fc63 in pthread_start_thread_event ()
   from /lib/libpthread.so.0
No symbol table info available.
#7  0x00002aaaae846f33 in clone () from /lib/libc.so.6
No symbol table info available.
#8  0x0000000000000000 in ?? ()
No symbol table info available.

---Type <return> to continue, or q <return> to quit---
Thread 7 (Thread 81926 (LWP 28309)):
#0  0x00002aaaae81ba05 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00002aaaae81b8a2 in sleep () from /lib/libc.so.6
No symbol table info available.
#2  0x0000000000415f5a in AutoExpire::Sleep (this=0x60f630, sleepTime=60)
    at autoexpire.cpp:280
        minSleep = 5
        timeExpended = 0
#3  0x0000000000415efc in AutoExpire::RunExpirer (this=0x60f630)
    at autoexpire.cpp:265
        curTime = {ds = 28701285}
        timer = {ds = 28701268}
#4  0x0000000000419569 in AutoExpire::ExpirerThread (param=0x60f630)
    at autoexpire.cpp:463
        expirer = (AutoExpire *) 0x60f630
#5  0x00002aaaae17fbb9 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6  0x00002aaaae17fc63 in pthread_start_thread_event ()
   from /lib/libpthread.so.0
No symbol table info available.
#7  0x00002aaaae846f33 in clone () from /lib/libc.so.6
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#8  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 6 (Thread 65541 (LWP 28308)):
#0  0x00002aaaae185d95 in nanosleep () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00002aaaae1825e4 in __pthread_timedsuspend_new ()
   from /lib/libpthread.so.0
No symbol table info available.
#2  0x00002aaaae17f162 in pthread_cond_timedwait@GLIBC_2.2.5 ()
   from /lib/libpthread.so.0
No symbol table info available.
#3  0x00002aaaadae7a03 in QWaitCondition::wait ()
   from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#4  0x00002aaaab3987d2 in TVRec::RunTV (this=0x6100c0) at tv_rec.cpp:1219
        lock = {mtx = 0x6101e8}
        timeout = 106
#5  0x00002aaaab39792b in TVRec::EventThread (param=0x6100c0)
    at tv_rec.cpp:1065
        thetv = (class TVRec *) 0x6100c0
#6  0x00002aaaae17fbb9 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#7  0x00002aaaae17fc63 in pthread_start_thread_event ()
   from /lib/libpthread.so.0
No symbol table info available.
#8  0x00002aaaae846f33 in clone () from /lib/libc.so.6
No symbol table info available.
#9  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 5 (Thread 49156 (LWP 28306)):
#0  0x00002aaaae185d95 in nanosleep () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00002aaaae1825e4 in __pthread_timedsuspend_new ()
   from /lib/libpthread.so.0
No symbol table info available.
#2  0x00002aaaae17f162 in pthread_cond_timedwait@GLIBC_2.2.5 ()
   from /lib/libpthread.so.0
No symbol table info available.
#3  0x00002aaaadae7a03 in QWaitCondition::wait ()
   from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#4  0x00002aaaab4cea07 in EITScanner::RunEventLoop (this=0x60d6a0)
    at eitscanner.cpp:137
        t = {m_timer = {ds = 0}}
---Type <return> to continue, or q <return> to quit---
        eitCount = 0
#5  0x00002aaaab4cdfb7 in EITScanner::SpawnEventLoop (param=0x60d6a0)
    at eitscanner.cpp:76
        scanner = (class EITScanner *) 0x60d6a0
#6  0x00002aaaae17fbb9 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x00002aaaae17fc63 in pthread_start_thread_event ()
   from /lib/libpthread.so.0
No symbol table info available.
#8  0x00002aaaae846f33 in clone () from /lib/libc.so.6
No symbol table info available.
#9  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 4 (Thread 32771 (LWP 28305)):
#0  0x00002aaaae185d95 in nanosleep () from /lib/libpthread.so.0
No symbol table info available.
#1  0x00002aaaae1825e4 in __pthread_timedsuspend_new ()
   from /lib/libpthread.so.0
No symbol table info available.
#2  0x00002aaaae17f162 in pthread_cond_timedwait@GLIBC_2.2.5 ()
   from /lib/libpthread.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#3  0x00002aaaadae7a03 in QWaitCondition::wait ()
   from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#4  0x00002aaaab3987d2 in TVRec::RunTV (this=0x5fdf50) at tv_rec.cpp:1219
        lock = {mtx = 0x5fe078}
        timeout = 118
#5  0x00002aaaab39792b in TVRec::EventThread (param=0x5fdf50)
    at tv_rec.cpp:1065
        thetv = (class TVRec *) 0x5fdf50
#6  0x00002aaaae17fbb9 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x00002aaaae17fc63 in pthread_start_thread_event ()
   from /lib/libpthread.so.0
No symbol table info available.
#8  0x00002aaaae846f33 in clone () from /lib/libc.so.6
No symbol table info available.
#9  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 3 (Thread 16386 (LWP 28303)):
#0  0x00002aaaae81ba05 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1  0x00002aaaae81b8a2 in sleep () from /lib/libc.so.6
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#2  0x000000000047fb93 in HouseKeeper::RunHouseKeeping (this=0x5fb8a0)
    at housekeeper.cpp:233
        period = 0
        maxhr = 6281536
        minhr = 10922
        dbTag = {static null = {
    static null = <same as static member of an already seen type>,
    d = 0x5af440, static shared_null = 0x5af440}, d = 0x5fbf60,
  static shared_null = 0x5af440}
#3  0x0000000000480755 in HouseKeeper::doHouseKeepingThread (param=0x5fb8a0)
    at housekeeper.cpp:312
        hkeeper = (HouseKeeper *) 0x5fb8a0
#4  0x00002aaaae17fbb9 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#5  0x00002aaaae17fc63 in pthread_start_thread_event ()
   from /lib/libpthread.so.0
No symbol table info available.
#6  0x00002aaaae846f33 in clone () from /lib/libc.so.6
No symbol table info available.
#7  0x0000000000000000 in ?? ()
No symbol table info available.

---Type <return> to continue, or q <return> to quit---
Thread 2 (Thread 32769 (LWP 28302)):
#0  0x00002aaaae83f0c2 in poll () from /lib/libc.so.6
No symbol table info available.
#1  0x00002aaaae1801bc in __pthread_manager () from /lib/libpthread.so.0
No symbol table info available.

#2  0x00002aaaae180ae0 in __pthread_manager_event () from /lib/libpthread.so.0
No symbol table info available.
#3  0x00002aaaae846f33 in clone () from /lib/libc.so.6
No symbol table info available.

#4  0x0000000000001ff0 in ?? ()
No symbol table info available.
#5  0x0000000000000cb1 in ?? ()
No symbol table info available.
#6  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 1 (Thread 16384 (LWP 28299)):
#0  0x00002aaaae840b56 in select () from /lib/libc.so.6
No symbol table info available.

#1  0x00002aaaad7ef2b7 in QEventLoop::processEvents ()
   from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#2  0x00002aaaad84d4a5 in QEventLoop::enterLoop ()
---Type <return> to continue, or q <return> to quit---
   from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.

#3  0x00002aaaad84d402 in QEventLoop::exec () from /usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.

#4  0x000000000043389b in main (argc=3, argv=0x7fffffb70e88) at main.cpp:559
        a = <incomplete type>
        testsched = false
        ismaster = false
        fatal_error = false
        runsched = true
        binname = {static null = {
    static null = <same as static member of an already seen type>,
    d = 0x5af440, static shared_null = 0x5af440}, d = 0x5e2a70,
  static shared_null = 0x5af440}
        nosched = false

        nojobqueue = false
        noexpirer = false
        port = 6543
        masterip = {static null = {
    static null = <same as static member of an already seen type>,
    d = 0x5af440, static shared_null = 0x5af440}, d = 0x5fc780,
  static shared_null = 0x5af440}
        printsched = false
---Type <return> to continue, or q <return> to quit---
        daemonize = false
        resched = false
        printexpire = false
        pidfs = <incomplete type>
        statusport = 6544
        myip = {static null = {
    static null = <same as static member of an already seen type>,

    d = 0x5af440, static shared_null = 0x5af440}, d = 0x5f9fd0,
  static shared_null = 0x5af440}
0x00002aaaab9df2c1      2098    in utils.c
(gdb)

Attachments (1)

utils.diff (515 bytes) - added by jwestfall@… 14 years ago.
patch that fixes the issue for jwestfall

Download all attachments as: .zip

Change History (10)

comment:1 Changed 14 years ago by danielk

Milestone: 0.19
Owner: changed from Isaac Richards to danielk
Version: head

comment:2 Changed 14 years ago by danielk

Does this happen when you generate a preview by browsing the recording in mythfrontend?

Can you play these recordings in the frontend, assuming you disable previews?

comment:3 Changed 14 years ago by jr@…

Yep, it would crash the backed whether I tried from mythweb or mythfrontend. I did this several times till I was satisfied that it was definately handing on this one file.

I deleted the recording =(, it was actually the wrong channel. My firewire screwed up changing the channel which was a first for me. I never tried to play it in mythtv, mostly because I never thought of disabling previews, but it did play fine in mplayer.

comment:4 Changed 14 years ago by danielk

Milestone: 0.19unknown
Resolution: invalid
Status: newclosed

Ok, without the recording we won't be able to diagnose the problem. My best guess is that this is due to the firewire recorder not properly processing the file and leaving some junk in there that ffmpeg crashes on. When you get another one of these files please reopen the ticket so we can address this.

comment:5 Changed 14 years ago by anonymous

Resolution: invalid
Status: closedreopened

Finally got another one using r8337. Same behavior as before, except it wasn't generated from a faulty channel change on the firewire. It got the right channel this time, but the program wasn't broadcast in HD, just SD. I disabled thumbnail previews and it plays fine in mythtv. I can reliably crash the backend now by just having it generate thumbnails from either the frontend or mythweb.

Same error in av_find_stream_info, let me know what else you need, will keep the file around this time.

comment:6 Changed 14 years ago by jwestfall@…

I got this same issue today with a firewire recorded program and I think I see whats going on.

av_find_stream_info will segfault if there is a stream change within the mpegts packets its using to find the stream info. When a stream change happens the following trace happens

==15109==    at 0x401B009: free (vg_replace_malloc.c:235)
==15109==    by 0x4927C87: av_free (mem.c:128)
==15109==    by 0x48BDF1E: flush_packet_queue (utils.c:1161)
==15109==    by 0x48BDFA4: av_read_frame_flush (utils.c:1195)
==15109==    by 0x48AAC3D: pmt_cb (mpegts.c:642)
==15109==    by 0x48AA1A4: write_section_data (mpegts.c:263)
==15109==    by 0x48AC488: handle_packet (mpegts.c:1523)
==15109==    by 0x48AC71C: handle_packets (mpegts.c:1604)
==15109==    by 0x48AD31F: mpegts_read_packet (mpegts.c:1892)
==15109==    by 0x48BCCAD: av_read_packet (utils.c:702)
==15109==    by 0x48BDA41: av_read_frame_internal (utils.c:1021)
==15109==    by 0x48C04AC: av_find_stream_info (utils.c:2066)

flush_packet_queue() frees all AVPackets on ic->packet_buffer, but av_find_stream_info() has its own pointer (*ppktl) that points to the last AVPacket on ci->packet_buffer. The segfault is triggered next time av_find_stream_info() tries to append a packet to ic->packet_buffer using *ppktl.

Changed 14 years ago by jwestfall@…

Attachment: utils.diff added

patch that fixes the issue for jwestfall

comment:7 Changed 14 years ago by jwestfall@…

can you give the utils.diff patch a test. It resolved the issue for me.

comment:8 Changed 14 years ago by jr@…

The patch seems to have fixed it for me, it no longer crashed and it generated a correct thumbnail to boot. Thanks!

comment:9 Changed 14 years ago by danielk

Resolution: fixed
Status: reopenedclosed

(In [8398]) Fixes #801, by applying patch from jwestfall at surrealistic dt net

This prevents avlib from crashing when a stream change occurs during the stream detection rutine. This can occur with default settings with the firewire or dbox2 recorders and could happen with the hdtvrecorder if you turn off 'wait-for-keyframe' and a stream change occurs within a couple milliseconds of the recording start.

Note: See TracTickets for help on using tickets.