Project

General

Profile

Actions

Bug #2353

closed

Segfault mit MPV plugin

Added by HelAu about 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
High
Assignee:
Start date:
03/21/2016
Due date:
% Done:

0%

Estimated time:

Description

Bei Verwendung des MPV plugins kann es zu segfaults kommen:

Thread 1 (Thread 0x7fd724c0d740 (LWP 21622)):
#0  0x00007fd722f4b78a in strlen () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007fd722f4b4ae in strdup () from /lib64/libc.so.6
No symbol table info available.
#2  0x0000000000568603 in cString::operator= (this=0x7ffe7a2a6d40, String=0x7 <error: Cannot access memory at address 0x7>) at tools.c:1060
No locals.
#3  0x000000000051a1c4 in cMarks::Load (this=0x7ffe7a2a6ce0, RecordingFileName=0x7 <error: Cannot access memory at address 0x7>, FramesPerSecond=1.7835769814869e-321, IsPesRecording=9) at recording.c:2069
        MutexLock = {mutex = 0x7ffe7a2a6d10, locked = true}
#4  0x00007fd712574383 in cFlatDisplayReplay::UpdateInfo (this=0x113dc9f0) at displayreplay.c:253
        hasMarks = false
        i = 0
        mediaPath = <error reading variable: Cannot access memory at address 0xffffffffffffffe8>
        marks = {<cConfig<cMark>> = {<cList<cMark>> = {<cListBase> = {_vptr.cListBase = 0x7dd890 <vtable for cMarks+16>, objects = 0x0, lastObject = 0x0, count = 0}, <No data fields>}, fileName = 0x0, allowComments = false}, <cMutex> = {mutex = {__data = {__lock = 1, __count = 0, __owner = 21622, __nusers = 1, __kind = 2, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = "\001\000\000\000\000\000\000\000vT\000\000\001\000\000\000\002", '\000' <repeats 22 times>, __align = 1}, locked = 1}, recordingFileName = {_vptr.cString = 0x7e5a10 <vtable for cString+16>, s = 0x0}, fileName = {_vptr.cString = 0x7e5a10 <vtable for cString+16>, s = 0x0}, framesPerSecond = 0, isPesRecording = false, nextUpdate = 0, lastFileTime = 0, lastChange = 0}
        index = 0x0
        recsizecutted = 0
        cutinoffset = 0
        filesize = {0 <repeats 55958 times>, 140561984392272, 0, 0, 140561984392192, 341128, 125, 1, 316405856, 341136, 140561981127221, 2, 16, 64, 2, 0, 48, 0, 0, 472446402651, 0, 0, 532575944823, 337032, 140561984392192, 16, 0, 322890176, 316405856, 341128, 140561981136222, 281479271677962, 1, 2, 16, 64, 2, 0, 48, 0, 0, 472446402651, 0, 0, 532575944823, 337032, 140561984392192, 16, 0, 322890176, 316405856, 341128, 140561981136222, 140730948470000, 1, 16, 140561872790289, 0, 1, 0, 0, 322890176, 140561916939246, 0, 4096, 140561984392272, 4294967296, 316410096, 140561984392192, 341128, 125, 1, 316405856, 341136, 140561981127221, 140728898420738, 16, 64, 2, 0, 48, 0, 0, 472446402651, 0, 0, 532575944823, 337032, 140561984392192, 16, 0, 322890176, 316405856, 341128, 140561981136222, 281479271677962, 1, 16, 140561872790289, 0, 1, 0, 0, 322890176, 140561916939246, 0, 4096, 316410152, 4294967296, 316410096, 316405920, 316405972, 4096, 0, 0, 140730948470432, 1, 140730948470512, 0, 0, 316405920, 316405972, 4096, 0, 0, 140730948470512, 1, 140730948470592, 80, 0, 140730948470608, 0, 15464036806540190720, 1, 1, 316405856, 316405880, 0, 0, 1, 140561916927377, 281479271677962, 15464036806540190720, 316405856, 316405856, 140561984392272, 316405880, 284683312, 322890160, 428816, 323231296, 140561984392192, 87680, 0, 140562004704441, 0, 140561916940289, 4294967296, 18446744073709551615, 316410152, 4955890688, 316410096, 316405920, 316405972, 4096, 0, 0, 140730948470848, 1, 140730948470928, 80, 0, 140730948470944, 0, 0, 1, 18446744073709551615, 0, 0, 0, 0, 24, 15464036806540190720, 0, 15464036806540190720, 316405856, 316405856, 140561984392272, 316405880, 289709328, 322890160...}
        rc = 0
        cutinframe = 0
        filebuf = {st_dev = 0, st_ino = 0, st_nlink = 0, st_mode = 0, st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 0, st_blksize = 0, st_blocks = 0, st_atim = {tv_sec = 0, tv_nsec = 0}, st_mtim = {tv_sec = 0, tv_nsec = 0}, st_ctim = {tv_sec = 0, tv_nsec = 0}, __glibc_reserved = {0, 0, 0}}
        mediaWidth = 0
        mediaHeight = 0
        pScraper = 0x0
        cuttedLength = 0
        imax = 0
        filename = {_vptr.cString = 0x1142eef8, s = 0x0}
        fontAscender = 40
        fontSecsAscender = 28
        topSecs = 12
        cutted = {_vptr.cString = 0x7e5a10 <vtable for cString+16>, s = 0x0}
        iscutted = false
#5  0x00007fd712573b71 in cFlatDisplayReplay::SetCurrent (this=0x113dc9f0, Current=0x11430da0 "0:00:05") at displayreplay.c:215

Ursache dafür dürfte sein dass recording nicht initialisiert wird, dieser patch könnte helfen:
--- displayreplay.c.org 2016-03-21 12:35:38.233607889 +0100
+++ displayreplay.c     2016-03-21 12:34:52.401607770 +0100
@@ -5,6 +5,7 @@
     labelHeight = fontHeight + fontSmlHeight;
     current = "";
     total = "";
+    recording = NULL;

     modeOnly = ModeOnly;
     dimmActive = false;

Actions

Also available in: Atom PDF