Bug#917269: kinit: Crashes when navigating to home directory in dolphin

2018-12-26 Thread Bernhard Übelacker
Control: forwarded 917269 https://bugs.kde.org/show_bug.cgi?id=400638
Control: tags 917269 + fixed-upstream


Dear Maintainer, hello Braun Gábor,
I did a quick query in the upstream bugtracker and received
this result [1], where the user seems to even use debian
testing also, because the function address offsets do match.

Following the duplicates we find [2] and [3], the latter
has an example file attached that produces the same crash
as you reported.

A local rebuilt package with that upstream patch [4]
applied shows no crash anymore when browsing to that
folder containing the example file.

Kind regards,
Bernhard

[1] https://bugs.kde.org/show_bug.cgi?id=401791
[2] https://bugs.kde.org/show_bug.cgi?id=400638
[3] https://bugs.kde.org/show_bug.cgi?id=402522
[4] 
https://cgit.kde.org/ffmpegthumbs.git/commit/?id=b8223de8e65de6de08f2e29a398f0922fa282bbb



Bug#917269: kinit: Crashes when navigating to home directory in dolphin

2018-12-25 Thread Bernhard Übelacker
Control: reassign 917269 ffmpegthumbs 4:17.08.3-1


Dear Maintainer, hello Braun Gábor,
some informations on where and how to retrieve the debug symbol packages
is described in [1]. Maybe with them you can confirm my findings which
are just based on the offsets of the function addresses.

To reproduce one seems to need a video file with less than 5 MB,
or it will not be taken as source for the folder thumbnail, which
contains that video [2]. With that information you may be able to
identify the causing file.

Even worse it seems it needs that special video file as
I did not receive the crash.
But I guess this crash happens in moviedecoder.cpp, line 202,
because "m_pFormatContext->streams[m_VideoStream]" contains
for some reason an invalid pointer.

Maybe you can also add the output of the "mediainfo" tool to
that bug, if the file causing it got identified.


Kind regards,
Bernhard



[1] https://wiki.debian.org/HowToGetABacktrace
[2] https://bugs.kde.org/show_bug.cgi?id=238690


(gdb) bt
#0  0x7f4e4a6654f4 in ffmpegthumbnailer::MovieDecoder::seek 
(this=this@entry=0x7fffa2933d00, timeInSeconds=) at 
./ffmpegthumbnailer/moviedecoder.cpp:202
#1  0x7f4e4a66720a in 
ffmpegthumbnailer::VideoThumbnailer::generateThumbnail 
(this=this@entry=0x555aa55aae58, 
videoFile="/home/benutzer/test/test/test2.mov", imageWriter=..., image=...) at 
./ffmpegthumbnailer/videothumbnailer.cpp:105
#2  0x7f4e4a667359 in 
ffmpegthumbnailer::VideoThumbnailer::generateThumbnail 
(this=this@entry=0x555aa55aae58, 
videoFile="/home/benutzer/test/test/test2.mov", image=...) at 
./ffmpegthumbnailer/videothumbnailer.cpp:141
#3  0x7f4e4a664793 in FFMpegThumbnailer::create (this=0x555aa55aae40, 
path="/home/benutzer/test/test/test2.mov", width=, img=...) at 
./ffmpegthumbnailer.cpp:46
#4  0x7f4e5c0ade80 in ThumbnailProtocol::createSubThumbnail 
(this=this@entry=0x7fffa29343c0, thumbnail=..., 
filePath="/home/benutzer/test/test/test2.mov", 
segmentWidth=segmentWidth@entry=108, segmentHeight=segmentHeight@entry=68) at 
./thumbnail/thumbnail.cpp:719
#5  0x7f4e5c0ae458 in ThumbnailProtocol::drawSubThumbnail 
(this=this@entry=0x7fffa29343c0, p=..., 
filePath="/home/benutzer/test/test/test2.mov", width=width@entry=108, 
height=height@entry=68, xPos=xPos@entry=128, yPos=76, frameWidth=3) at 
./thumbnail/thumbnail.cpp:751
#6  0x7f4e5c0aeb30 in ThumbnailProtocol::thumbForDirectory 
(this=this@entry=0x7fffa29343c0, 
directory="thumbnail:/home/benutzer/test/test") at ./thumbnail/thumbnail.cpp:557
#7  0x7f4e5c0b0041 in ThumbnailProtocol::get (this=0x7fffa29343c0, 
url="thumbnail:/home/benutzer/test/test") at ./thumbnail/thumbnail.cpp:225
#8  0x7f4e57135df6 in KIO::SlaveBase::dispatch (this=0x7fffa29343c0, 
command=67, data="\000\000\000\"thumbnail:/home/benutzer/test/test" = {...}) at 
./src/core/slavebase.cpp:1119
#9  0x7f4e57131196 in KIO::SlaveBase::dispatchLoop 
(this=this@entry=0x7fffa29343c0) at ./src/core/slavebase.cpp:318
#10 0x7f4e5c0ad08d in kdemain (argc=, argv=) 
at ./thumbnail/thumbnail.cpp:130
#11 0x555aa4fc7e1c in launch (argc=4, _name=0x555aa5380d68 
"/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so", args=, cwd=, envc=0, envs=, reset_env=false, 
tty=0x0, avoid_loops=false, startup_id_str=0x555aa4fcb187 "0") at 
./src/kdeinit/kinit.cpp:706
#12 0x555aa4fc8eea in handle_launcher_request (sock=8, who=) 
at ./src/kdeinit/kinit.cpp:1146
#13 0x555aa4fc98fb in handle_requests (waitForPid=0) at 
./src/kdeinit/kinit.cpp:1339
#14 0x555aa4fc4645 in main (argc=argc@entry=5, 
argv=argv@entry=0x7fffa2934bd8) at ./src/kdeinit/kinit.cpp:1785
#15 0x7f4e5b26409b in __libc_start_main (main=0x555aa4fc3c70 , argc=5, argv=0x7fffa2934bd8, init=, fini=, rtld_fini=, stack_end=0x7fffa2934bc8) at 
../csu/libc-start.c:308
#16 0x555aa4fc52ca in _start () at ./src/kdeinit/kinit.cpp:802


(gdb) disassemble /m 0x7f4e4a665490,0x7f4e4a665510
Dump of assembler code from 0x7f4e4a665490 to 0x7f4e4a665510:
...
198 }
199
200 int ret = av_seek_frame(m_pFormatContext, -1, timestamp, 0);
   0x7f4e4a6654b8 :  mov
0x8(%rdi),%rdi
   0x7f4e4a6654c3 :  mov
$0x0,%edx
   0x7f4e4a6654c8 :  mov
$0x,%esi
   0x7f4e4a6654cd :  test   
%rax,%rax
   0x7f4e4a6654d0 :  cmovns 
%rax,%rdx
   0x7f4e4a6654d4 :  xor
%ecx,%ecx
   0x7f4e4a6654d6 :  callq  
0x7f4e4a664280 

201 if (ret >= 0) {
   0x7f4e4a6654db :  test   
%eax,%eax
   0x7f4e4a6654dd :  js 
0x7f4e4a66555a 

202 
avcodec_flush_buffers(m_pFormatContext->streams[m_VideoStream]->codec);
   0x7f4e4a6654df :  mov
0x8(%rbx),%rax
   0x7f4e4a6654e3 :  movslq 
(%rbx),%rdx
   0x7f4e4a6654e6 :  mov
$0xc8,%r12d
   0x7f4e4a6654ec :  mov
0x30(%rax),%rax
   0x7f4e4a6654f0 :  mov
(%rax,%rdx,8),%rax
=> 0x7f4e4a6654f4 : mov
0x8(%rax),%rdi
   0x7f4e4a6654f8 : callq  
0x7f4e4a664130 
   0x7f4e4a6654fd : nopl   
(%rax)

203  

Bug#917269: kinit: Crashes when navigating to home directory in dolphin

2018-12-25 Thread Braun Gábor
Package: kinit
Version: 5.51.0-1
Severity: normal

Dear Maintainer,

Navigating to my home directory in Dolphin, a drkonqi message appears
"A(z) kdeinit5 váratlanul bezárult"
(meaning: kdeinit5 unexpectedly stopped) with buttons to report the bug and
restart the application.  Clicking on the button for reporting the bug,
a window with two tabs appears, and in th active tab the following message:
"Sajnáljuk, de a(z) kdeinit5 váratlanul eállt.
Nem jelentheti a hibát, mivel kdeinit5 nem adott meg gibajelentési címet."
Translated: Sorry, kdeiinit5 stopped unexpectedly.
The bug cannot be reported as kdeinit5 does not provide an address for it.

Selecting the other tab, a backtrace appears, see below, with the remark that 
it is not useful.
Clicking on the appropriate link, a window appears claiming that the debugging 
information for
the following files are missing:

/usr/bin/kdeinit5
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
/usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
/usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5

I was unable to find the packages with the debugging symbols, e.g.,
I have not found a package named kinit-dbg or kinit-dbgsym.

This whole thing happens only with my home directory, and besides the drkonqi 
message
everything else seems to function correctly.

To summarize the problems:
1) There is a spurious drkonqi crash message.
2) Drkonqi claims that there is no address to report bugs of kdeinit5.
3) I haven't found the packages with debugging symbols.

Best wishes,

Gábor

Backtrace:

Application: kdeinit5 (kdeinit5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc5760d3780 (LWP 4547))]

Thread 3 (Thread 0x7fc56a1dc700 (LWP 4550)):
#0  0x7fc579ebdbd9 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x7fc5783a5e46 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x7fc5783a5f6c in g_main_context_iteration () from 
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x7fc57a24cd2b in 
QEventDispatcherGlib::processEvents(QFlags) () 
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x7fc57a1f9d0b in 
QEventLoop::exec(QFlags) () from 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x7fc57a0490c6 in QThread::exec() () from 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x7fc575690545 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x7fc57a052c97 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x7fc579db0fa3 in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#9  0x7fc579ec888f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 2 (Thread 0x7fc571856700 (LWP 4548)):
#0  0x7fc579ebdbd9 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x7fc57aa6fcf7 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x7fc57aa7191a in xcb_wait_for_event () from 
/usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x7fc5721a1519 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x7fc57a052c97 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x7fc579db0fa3 in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#6  0x7fc579ec888f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7fc5760d3780 (LWP 4547)):
[KCrash Handler]
#6  0x7fc5632d44f4 in ?? () from 
/usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
#7  0x7fc5632d620a in ?? () from 
/usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
#8  0x7fc5632d6359 in ?? () from 
/usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
#9  0x7fc5632d3793 in ?? () from 
/usr/lib/x86_64-linux-gnu/qt5/plugins/ffmpegthumbs.so
#10 0x7fc57ae53e80 in ?? () from 
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#11 0x7fc57ae54458 in ?? () from 
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#12 0x7fc57ae54b30 in ?? () from 
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#13 0x7fc57ae56041 in ?? () from 
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#14 0x7fc575cdedf6 in KIO::SlaveBase::dispatch(int, QByteArray const&) () 
from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#15 0x7fc575cda196 in KIO::SlaveBase::dispatchLoop() () from 
/usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#16 0x7fc57ae5308d in kdemain () from 
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#17 0x56107a404e1c in ?? ()
#18 0x56107a405eea in ?? ()
#19 0x56107a4068fb in ?? ()
#20 0x56107a401645 in ?? ()
#21 0x7fc579df309b in __libc_start_main () from 
/lib/x86_64-linux-gnu/libc.so.6
#22 0x56107a4022ca in _start ()
[Inferior 1 (process 4547) detached]


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=hu_HU.UTF-8, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8),