Bug 225361

Summary: kile crashes when inserting ' when automatic brackets are used
Product: [Applications] kile Reporter: Christian Trippe <christiandehne>
Component: generalAssignee: Michel Ludwig <michel.ludwig>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 2.0.84   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: kilerc which triggers the bug

Description Christian Trippe 2010-02-03 10:57:42 UTC
Application: kile (2.0.84)
KDE Platform Version: 4.3.98 (KDE 4.3.98 (KDE 4.4 RC3)) "release 216"
Qt Version: 4.6.1
Operating System: Linux 2.6.31.8-0.1-default i686
Distribution: "openSUSE 11.2 (i586)"

-- Information about the crash:
I have Kile configured to use automatic brackets

configure Kile -> Editor -> Edit -> Automatic brackets

Every time when I try to type ' kile crashes.  (I always see first '', but then Kile crashes.)

This works fine with kate.

kile-2.0.84.svn1055245-14.38.i586


 -- Backtrace:
Application: Kile (kile), signal: Aborted
[Current thread is 1 (Thread 0xb4850760 (LWP 6535))]

Thread 2 (Thread 0xb2887b70 (LWP 6536)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb6444d95 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb51acb77 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0xb52881a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#3  0xb51acbbf in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0xb52881a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#4  0xb64406e5 in start_thread () from /lib/libpthread.so.0
#5  0xb6440600 in ?? () from /lib/libpthread.so.0

Thread 1 (Thread 0xb4850760 (LWP 6535)):
[KCrash Handler]
#6  0xffffe430 in __kernel_vsyscall ()
#7  0xb56dc0cf in raise () from /lib/libc.so.6
#8  0xb56dd9e7 in abort () from /lib/libc.so.6
#9  0xb58f003f in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#10 0xb58edd53 in ?? () from /usr/lib/libstdc++.so.6
#11 0xb58edd8f in std::terminate() () from /usr/lib/libstdc++.so.6
#12 0xb58ede2a in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#13 0xb65c2bd0 in QEventLoop::exec (this=0xbfa3fb74, flags=...) at kernel/qeventloop.cpp:214
#14 0xb65c6bf0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#15 0xb5a5a354 in QApplication::exec () at kernel/qapplication.cpp:3577
#16 0x0820d493 in main (argc=1, argv=0xbfa40244) at /usr/src/debug/kile-trunk-r1055245/src/main.cpp:167

Possible duplicates by query: bug 225346, bug 225298, bug 225250, bug 225209, bug 225190.

Reported using DrKonqi
Comment 1 Michel Ludwig 2010-02-06 22:25:57 UTC
I'm sorry but I have been unable to reproduce this issue with the latest SVN version of kdelibs and Kile.

Can you maybe install some debug packages so that we could get a more meaningful backtrace?
Comment 2 Christian Trippe 2010-02-07 14:24:57 UTC
Thanks for your response.

(In reply to comment #1)
> I'm sorry but I have been unable to reproduce this issue with the latest SVN
> version of kdelibs and Kile.
> 
I tried now with a new user and could not reproduce it either.
However if I copy my kilerc to the new user I can reproduce it. I will attach my kilerc.

I also noticed that it usually does not crash if I type ' in normal mode but it crashes nearly every time if I am in math mode .

So please try something like $K_l'


Sorry that I did not check these facts before.


> Can you maybe install some debug packages so that we could get a more
> meaningful backtrace?

I was not really successful here. I hoped I had the most useful debug packages already installed as DrKonqi claimed that my backtrace was good. However I installed a few more. Now I get the following when runing kile in gdb when typing $K_l' (and waiting a bit hitting return)

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

Program received signal SIGABRT, Aborted.
0xffffe430 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5ed90cf in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0xb5eda9e7 in abort () at abort.c:88
#3  0xb60ed03f in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:93
#4  0xb60ead53 in __cxxabiv1::__terminate (handler=0xb60ecef0 <__gnu_cxx::__verbose_terminate_handler()>)
    at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:38
#5  0xb60ead8f in std::terminate () at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48
#6  0xb60eae2a in __cxxabiv1::__cxa_rethrow () at ../../../../libstdc++-v3/libsupc++/eh_throw.cc:116
#7  0xb6dbfbd0 in QEventLoop::exec (this=0xbfffe9d4, flags=...) at kernel/qeventloop.cpp:214
#8  0xb6dc3bf0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#9  0xb6257354 in QApplication::exec () at kernel/qapplication.cpp:3577
#10 0x0820d493 in main (argc=1, argv=0xbffff0a4) at /usr/src/debug/kile-trunk-r1055245/src/main.cpp:167
Comment 3 Christian Trippe 2010-02-07 14:25:58 UTC
Created attachment 40585 [details]
kilerc which triggers the bug
Comment 4 Michel Ludwig 2010-02-09 14:25:26 UTC
Another thing, did you have automatic spell checking activated when inserting the quotes?

If so, then this could be bug 225867.
Comment 5 Christian Trippe 2010-02-09 19:19:03 UTC
(In reply to comment #4)
> Another thing, did you have automatic spell checking activated when inserting
> the quotes?

Yes, I have it enabled. Without automatic spell checking I am unable to reproduce the crash.
Comment 6 Michel Ludwig 2010-02-10 11:05:22 UTC
Ok, this is bug 225867 then. Thanks.

*** This bug has been marked as a duplicate of bug 225867 ***