Bug 296400

Summary: Kile crashes right after start
Product: [Applications] kile Reporter: Tobias <tobias.preuss>
Component: generalAssignee: Michel Ludwig <michel.ludwig>
Status: VERIFIED FIXED    
Severity: crash CC: bas
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tobias 2012-03-19 23:42:24 UTC
Application: kile (2.9.60)
KDE Platform Version: 4.5.5 (KDE 4.5.5)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-30-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
I compiled the latest version of the source as available here git clone git://anongit.kde.org/kile. Commit hash of the repository: ade38ee8ca29d5f9d7a771d080401ac99c52c7cd

The crash can be reproduced every time.

-- Backtrace:
Application: Kile (kile), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f123a665760 (LWP 27165))]

Thread 4 (Thread 0x7f122bd68700 (LWP 27166)):
#0  0x00007f1234c947f3 in poll () from /lib/libc.so.6
#1  0x00007f123103f149 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f123103f8f5 in g_main_loop_run () from /lib/libglib-2.0.so.0
#3  0x00007f122c4ae824 in ?? () from /usr/lib/libgio-2.0.so.0
#4  0x00007f1231064ab4 in ?? () from /lib/libglib-2.0.so.0
#5  0x00007f123595f971 in start_thread () from /lib/libpthread.so.0
#6  0x00007f1234ca0f3d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f121d471700 (LWP 27167)):
#0  0x00007f1235963a9c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f1235beae3b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00000000005e893a in KileParser::ParserThread::run (this=0x1a74b40) at /home/john/Repositories/kile/src/parser/parserthread.cpp:168
#3  0x00007f1235bea27e in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f123595f971 in start_thread () from /lib/libpthread.so.0
#5  0x00007f1234ca0f3d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f121cc70700 (LWP 27168)):
#0  0x00007f1235963a9c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f1235beae3b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00000000005e893a in KileParser::ParserThread::run (this=0x1a6f630) at /home/john/Repositories/kile/src/parser/parserthread.cpp:168
#3  0x00007f1235bea27e in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f123595f971 in start_thread () from /lib/libpthread.so.0
#5  0x00007f1234ca0f3d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f123a665760 (LWP 27165)):
[KCrash Handler]
#6  KileTool::LivePreviewManager::isLivePreviewEnabledForCurrentDocument (this=0x0) at /home/john/Repositories/kile/src/livepreview.cpp:222
#7  0x00000000004c2821 in Kile::slotPerformCheck (this=0x1a737a0) at /home/john/Repositories/kile/src/kile.cpp:2737
#8  0x00000000004d44b8 in Kile::Kile (this=0x1a737a0, allowRestore=<value optimized out>, parent=<value optimized out>, name=<value optimized out>, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /home/john/Repositories/kile/src/kile.cpp:374
#9  0x00000000004db4ed in main (argc=<value optimized out>, argv=<value optimized out>) at /home/john/Repositories/kile/src/main.cpp:149

Reported using DrKonqi
Comment 1 Michel Ludwig 2012-03-20 22:10:43 UTC
Git commit 31fbdf00c7f3e3058d0dde516d2dadf0a3918b5d by Michel Ludwig.
Committed on 20/03/2012 at 23:09.
Pushed by mludwig into branch 'master'.

Protect calls to 'livePreviewManager()' by ifdef's in 'Kile::slotPerformCheck'

M  +5    -1    src/kile.cpp

http://commits.kde.org/kile/31fbdf00c7f3e3058d0dde516d2dadf0a3918b5d
Comment 2 Tobias 2012-03-21 09:33:18 UTC
I like to confirm that the bugfix works. Thank you Michel.
Comment 3 Bas van Schaik 2012-05-24 15:33:12 UTC
I think this bug might still exist (or might have returned).

I was running Kile from source, which used to work perfectly fine (including live preview!). Today, it suddenly stopped working: crash directly after starting it. I removed all of the Kile-related files and directories from $HOME/.kde, but that didn't help. Did a 'git pull' for both kile and okular and recompiled (after cleaning build directories, following http://sourceforge.net/apps/mediawiki/kile/index.php?title=Live_Preview) - still same result. Note that after cleaning my home directory, Kile would ask me whether I'd like to reload the "standard tool list" because of "the switch from KDE3 to KDE4". It doesn't matter whether I click "yes" or "no", result is the same: direct crash.

Backtrace is below, almost identical to the original bug report (hence, posted in the same report, rather than creating a new bug report).


-- Backtrace:
Application: Kile (kile), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fdc88397780 (LWP 26789))]

Thread 6 (Thread 0x7fdc72032700 (LWP 26790)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fdc8539659b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00000000005ccf6b in KileParser::ParserThread::run (this=0x1eda680) at /opt/kile-livepreview-git/src/kile/src/parser/parserthread.cpp:168
#3  0x00007fdc8539608b in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fdc813b7e9a in start_thread (arg=0x7fdc72032700) at pthread_create.c:308
#5  0x00007fdc83bf174d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fdc71831700 (LWP 26791)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fdc8539659b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00000000005ccf6b in KileParser::ParserThread::run (this=0x1eda0a0) at /opt/kile-livepreview-git/src/kile/src/parser/parserthread.cpp:168
#3  0x00007fdc8539608b in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fdc813b7e9a in start_thread (arg=0x7fdc71831700) at pthread_create.c:308
#5  0x00007fdc83bf174d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fdc6bbdf700 (LWP 26792)):
#0  0x00007fdc83be5d93 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fdc7f2e0ff6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fdc7f2e1124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fdc854c3bbf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fdc85493402 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007fdc85493657 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007fdc85393067 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007fdc8547317f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007fdc8539608b in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007fdc813b7e9a in start_thread (arg=0x7fdc6bbdf700) at pthread_create.c:308
#10 0x00007fdc83bf174d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fdc6acf9700 (LWP 26793)):
#0  0x00007fdc83be5d93 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fdc7f2e0ff6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fdc7f2e1124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fdc854c3bbf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fdc85493402 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007fdc85493657 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007fdc85393067 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007fdc8547317f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007fdc8539608b in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007fdc813b7e9a in start_thread (arg=0x7fdc6acf9700) at pthread_create.c:308
#10 0x00007fdc83bf174d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fdc699f1700 (LWP 26794)):
#0  0x00007fdc83beaab3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fdc85471621 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fdc8539608b in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fdc813b7e9a in start_thread (arg=0x7fdc699f1700) at pthread_create.c:308
#4  0x00007fdc83bf174d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fdc88397780 (LWP 26789)):
[KCrash Handler]
#6  KileTool::LivePreviewManager::isLivePreviewEnabledForCurrentDocument (this=0x0) at /opt/kile-livepreview-git/src/kile/src/livepreview.cpp:338
#7  0x00000000004c1f07 in Kile::slotPerformCheck (this=0x1ed8bc0) at /opt/kile-livepreview-git/src/kile/src/kile.cpp:2753
#8  0x00000000004caab0 in Kile::Kile (this=0x1ed8bc0, allowRestore=true, parent=0x0, name=<value optimized out>, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /opt/kile-livepreview-git/src/kile/src/kile.cpp:377
#9  0x000000000043c888 in main (argc=1, argv=0x7ffff1d2c5c8) at /opt/kile-livepreview-git/src/kile/src/main.cpp:149
Comment 4 Bas van Schaik 2012-05-28 09:34:30 UTC
For some mysterious reason I can no longer reproduce my own bug report, possibly due to an upgrade to KDE 4.8.3. Kile seems to work fine now.
Comment 5 Tobias 2012-05-28 13:37:19 UTC
I freshly compiled 3a65e8.. and Kile works fine for me. I am still running Ubuntu 10.10. with KDE 4.5.5.