<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>189201</bug_id>
          
          <creation_ts>2009-04-09 12:17:42 +0000</creation_ts>
          <short_desc>Konqueror crash on search (KHTMLFindBar::pattern)</short_desc>
          <delta_ts>2009-05-18 09:33:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>khtml</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dennis">groups</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>amitshah</cc>
    
    <cc>andresbajotierra</cc>
    
    <cc>auxsvr</cc>
    
    <cc>bugs.kde.org</cc>
    
    <cc>gerlosgm</cc>
    
    <cc>hashinclude</cc>
    
    <cc>hkBst</cc>
    
    <cc>ilveroluca</cc>
    
    <cc>kde</cc>
    
    <cc>kde</cc>
    
    <cc>oliver.henshaw</cc>
    
    <cc>remco.bloemen</cc>
    
    <cc>vtomasr5</cc>
    
    <cc>w.richert</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>10</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>740955</commentid>
    <comment_count>0</comment_count>
    <who name="Dennis">groups</who>
    <bug_when>2009-04-09 12:17:42 +0000</bug_when>
    <thetext>Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

Steps to reproduce:
- Go to http://www.howtoforge.com/how-to-compile-amarok-2-from-svn-on-k-x-ubuntu
- Press &quot;/&quot; (inline search)
- Try to find word &quot;phonon&quot;
Konqueror crashes on letter &apos;o&apos;

Application: Konqueror (konqueror), signal SIGSEGV
0x00007f41de52ddf1 in nanosleep () from /lib/libc.so.6
[Current thread is 0 (LWP 28918)]

Thread 3 (Thread 0x41f08950 (LWP 28919)):
#0  0x00007f41e0a53c3d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f41e0cc3017 in QWaitCondition::wait (this=&lt;value optimized out&gt;, mutex=0xbe6de0, time=30000) at thread/qwaitcondition_unix.cpp:85
#2  0x00007f41e0cb905b in QThreadPoolThread::run (this=0xacbf10) at concurrent/qthreadpool.cpp:140
#3  0x00007f41e0cc23c0 in QThreadPrivate::start (arg=0xacbf10) at thread/qthread_unix.cpp:189
#4  0x00007f41e0a4f080 in start_thread () from /lib/libpthread.so.0
#5  0x00007f41de55bccd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x42709950 (LWP 28920)):
#0  0x00007f41e0a53c3d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f41e0cc3017 in QWaitCondition::wait (this=&lt;value optimized out&gt;, mutex=0xbe6de0, time=30000) at thread/qwaitcondition_unix.cpp:85
#2  0x00007f41e0cb905b in QThreadPoolThread::run (this=0x16f0d30) at concurrent/qthreadpool.cpp:140
#3  0x00007f41e0cc23c0 in QThreadPrivate::start (arg=0x16f0d30) at thread/qthread_unix.cpp:189
#4  0x00007f41e0a4f080 in start_thread () from /lib/libpthread.so.0
#5  0x00007f41de55bccd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f41e3604760 (LWP 28918)):
[KCrash Handler]
#5  KHTMLFindBar::pattern (this=0x0) at /mnt/ram/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/khtml/find/khtmlfindbar.cpp:103
#6  0x00007f41d37c93b3 in KHTMLFind::activate (this=0x14f1990) at /mnt/ram/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/khtml/find/khtmlfind.cpp:231
#7  0x00007f41d37c941f in KHTMLFind::findTextNext (this=0x7fffeb74d020, reverse=false) at /mnt/ram/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/khtml/find/khtmlfind.cpp:277
#8  0x00007f41d3786bcc in KHTMLPart::pFindTextNextInThisFrame (this=&lt;value optimized out&gt;, reverse=false) at /mnt/ram/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/khtml/khtml_part.cpp:3051
#9  0x00007f41d37c9b86 in KHTMLFind::findTextNext (this=0xe00ad0, reverse=false) at /mnt/ram/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/khtml/find/khtmlfind.cpp:435
#10 0x00007f41d3786c1e in KHTMLPart::findTextNext (this=0xe06f60, reverse=false) at /mnt/ram/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/khtml/khtml_part.cpp:3046
#11 0x00007f41d3769a53 in KHTMLView::findAhead (this=0xdfc880, increase=true) at /mnt/ram/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/khtml/khtmlview.cpp:1916
#12 0x00007f41d376ecae in KHTMLView::keyPressEvent (this=0xdfc880, _ke=0x7fffeb74e0f0) at /mnt/ram/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/khtml/khtmlview.cpp:1705
#13 0x00007f41e00d0f80 in QWidget::event (this=0xdfc880, event=0x7fffeb74e0f0) at kernel/qwidget.cpp:7551
#14 0x00007f41e04526db in QFrame::event (this=0xdfc880, e=0x7fffeb74e0f0) at widgets/qframe.cpp:559
#15 0x00007f41e04d7cdd in QAbstractScrollArea::event (this=0xdfc880, e=0x7fffeb74e0f0) at widgets/qabstractscrollarea.cpp:918
#16 0x00007f41e04dafd3 in QScrollArea::event (this=0xdfc880, e=0x7fffeb74e0f0) at widgets/qscrollarea.cpp:314
#17 0x00007f41d376e786 in KHTMLView::event (this=0xdfc880, e=0x7fffeb74e0f0) at /mnt/ram/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/khtml/khtmlview.cpp:540
#18 0x00007f41e007f3df in QApplicationPrivate::notify_helper (this=0x6226a0, receiver=0xdfc880, e=0x7fffeb74e0f0) at kernel/qapplication.cpp:4084
#19 0x00007f41e0085ce3 in QApplication::notify (this=&lt;value optimized out&gt;, receiver=0xdfc880, e=0x7fffeb74e0f0) at kernel/qapplication.cpp:3690
#20 0x00007f41e1b65a34 in KApplication::notify (this=0x7fffeb74f1a0, receiver=0xdfc880, event=0x7fffeb74e0f0)
    at /mnt/ram/paludis/kde-base-kdelibs-scm/work/kdelibs-scm/kdeui/kernel/kapplication.cpp:307
#21 0x00007f41e0d9e203 in QCoreApplication::notifyInternal (this=0x7fffeb74f1a0, receiver=0xdfc880, event=0x7fffeb74e0f0) at kernel/qcoreapplication.cpp:598
#22 0x00007f41e007f51c in qt_sendSpontaneousEvent (receiver=0x605044, event=0x1) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#23 0x00007f41e0105af2 in QKeyMapper::sendKeyEvent (keyWidget=0xdfc880, grab=&lt;value optimized out&gt;, type=QEvent::KeyPress, code=79, modifiers=@0x7fffeb74e630, text=@0x7fffeb74e620, 
    autorepeat=&lt;value optimized out&gt;, count=1, nativeScanCode=32, nativeVirtualKey=111, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1675
#24 0x00007f41e0107a9b in QKeyMapperPrivate::translateKeyEvent (this=0x656710, keyWidget=0xdfc880, event=&lt;value optimized out&gt;, grab=false) at kernel/qkeymapper_x11.cpp:1645
#25 0x00007f41e00e422a in QApplication::x11ProcessEvent (this=0x7fffeb74f1a0, event=0x7fffeb74ed20) at kernel/qapplication_x11.cpp:3436
#26 0x00007f41e0108f85 in x11EventSourceDispatch (s=0x625f40, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#27 0x00007f41dcd6b1b3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#28 0x00007f41dcd6e4a5 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#29 0x00007f41dcd6e97b in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#30 0x00007f41e0dc6cdf in QEventDispatcherGlib::processEvents (this=0x604710, flags=&lt;value optimized out&gt;) at kernel/qeventdispatcher_glib.cpp:323
#31 0x00007f41e0108dbf in QGuiEventDispatcherGlib::processEvents (this=0x7fffeb74d020, flags=&lt;value optimized out&gt;) at kernel/qguieventdispatcher_glib.cpp:202
#32 0x00007f41e0d9d4e5 in QEventLoop::processEvents (this=&lt;value optimized out&gt;, flags=@0x7fffeb74eff0) at kernel/qeventloop.cpp:149
#33 0x00007f41e0d9d646 in QEventLoop::exec (this=0x7fffeb74f030, flags=@0x7fffeb74f040) at kernel/qeventloop.cpp:196
#34 0x00007f41e0d9f81c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#35 0x00007f41e32f1047 in kdemain (argc=&lt;value optimized out&gt;, argv=&lt;value optimized out&gt;) at /mnt/ram/paludis/kde-base-konqueror-scm/work/konqueror/apps/konqueror/src/konqmain.cpp:257
#36 0x0000000000400991 in main (argc=-344666080, argv=0x0) at /mnt/ram/paludis/kde-base-konqueror-scm/work/konqueror_build/apps/konqueror/src/konqueror_dummy.cpp:3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>741001</commentid>
    <comment_count>1</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2009-04-09 14:30:17 +0000</bug_when>
    <thetext>Here using:

Qt: 4.5.0 + qt-copy-patches-936035
KDE: 4.2.68 (KDE 4.2.68 (KDE 4.3 &gt;= 20090327))
kdelibs svn rev. 949645 / kdebase svn rev. 949645
on ArchLinux i686 - Kernel 2.6.28.8

I can reproduce the crash.

==4554==                                                                                                                           
==4554== Invalid read of size 4                                                                                                    
==4554==    at 0x9E89E3D: KHTMLFindBar::pattern() const (khtmlfindbar.cpp:103)                                                     
==4554==    by 0x9E86AAA: KHTMLFind::activate() (khtmlfind.cpp:231)                                                                
==4554==    by 0x9E88EE4: KHTMLFind::findTextNext(bool) (khtmlfind.cpp:277)                                                        
==4554==    by 0x9E1CE1C: KHTMLPart::pFindTextNextInThisFrame(bool) (khtml_part.cpp:3051)                                          
==4554==    by 0x9E88A84: KHTMLFind::findTextNext(bool) (khtmlfind.cpp:435)                                                        
==4554==    by 0x9E1CEA0: KHTMLPart::findTextNext(bool) (khtml_part.cpp:3046)                                                      
==4554==    by 0x9E0B493: KHTMLView::findAhead(bool) (khtmlview.cpp:1916)                                                          
==4554==    by 0x9E0BBDD: KHTMLView::keyPressEvent(QKeyEvent*) (khtmlview.cpp:1705)                                                
==4554==    by 0x4F67B7A: QWidget::event(QEvent*) (qwidget.cpp:7551)                                                               
==4554==    by 0x5328AB2: QFrame::event(QEvent*) (qframe.cpp:559)                                                                  
==4554==    by 0x53C1DCC: QAbstractScrollArea::event(QEvent*) (qabstractscrollarea.cpp:918)                                        
==4554==    by 0x53C6A5C: QScrollArea::event(QEvent*) (qscrollarea.cpp:314)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>741006</commentid>
    <comment_count>2</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2009-04-09 14:43:44 +0000</bug_when>
    <thetext>Just wondering, the &quot;/&quot; shortcut (&quot;Find as you type&quot;), is disabled on the menu. But you can call it manually pressing the &quot;/&quot; key</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>742178</commentid>
    <comment_count>3</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2009-04-12 15:51:41 +0000</bug_when>
    <thetext>*** Bug 189461 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>742369</commentid>
    <comment_count>4</comment_count>
    <who name="Hermann Schwarting">bugs.kde.org</who>
    <bug_when>2009-04-12 22:29:43 +0000</bug_when>
    <thetext>I experienced the same problem under 4.2.2 installed from Debian unstable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>743043</commentid>
    <comment_count>5</comment_count>
    <who name="Allan Sandfeld">kde</who>
    <bug_when>2009-04-14 21:02:17 +0000</bug_when>
    <thetext>Maybe inline &apos;/&apos; search should just be removed, since ordinary ctrl+f search is also incremental now. The duplicate code is just a source of bugs, and if we tie &apos;/&apos; to ordinary search the functionality is still there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>743940</commentid>
    <comment_count>6</comment_count>
    <who name="Tommi Tervo">tommi.tervo</who>
    <bug_when>2009-04-17 10:32:40 +0000</bug_when>
    <thetext>*** Bug 189857 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>746010</commentid>
    <comment_count>7</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2009-04-22 21:01:34 +0000</bug_when>
    <thetext>*** Bug 190346 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>748746</commentid>
    <comment_count>8</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2009-04-28 00:03:21 +0000</bug_when>
    <thetext>*** Bug 189564 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>748748</commentid>
    <comment_count>9</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2009-04-28 00:03:41 +0000</bug_when>
    <thetext>*** Bug 190851 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>749911</commentid>
    <comment_count>10</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2009-04-30 02:08:05 +0000</bug_when>
    <thetext>SVN commit 961356 by ggarand:

.fix crashes happening with the &quot;/&quot; gui less find-as-you-type
.harden the findbar code to prevent possible access to deleted bar

BUG: 189201


 M  +27 -20    khtmlfind.cpp  
 M  +7 -3      khtmlfind_p.h  
 M  +1 -1      khtmlfindbar.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=961356</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>749913</commentid>
    <comment_count>11</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2009-04-30 02:16:36 +0000</bug_when>
    <thetext>SVN commit 961362 by ggarand:

automatically merged revision 961356:
.fix crashes happening with the &quot;/&quot; gui less find-as-you-type
.harden the findbar code to prevent possible access to deleted bar

BUG: 189201

 M  +27 -20    khtmlfind.cpp  
 M  +7 -3      khtmlfind_p.h  
 M  +1 -1      khtmlfindbar.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=961362</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>751908</commentid>
    <comment_count>12</comment_count>
    <who name="gerlos">gerlosgm</who>
    <bug_when>2009-05-04 00:58:51 +0000</bug_when>
    <thetext>*** Bug 191541 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>752088</commentid>
    <comment_count>13</comment_count>
    <who name="Tommi Tervo">tommi.tervo</who>
    <bug_when>2009-05-04 15:09:08 +0000</bug_when>
    <thetext>*** Bug 191581 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>752539</commentid>
    <comment_count>14</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2009-05-05 16:29:56 +0000</bug_when>
    <thetext>*** Bug 191688 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>753697</commentid>
    <comment_count>15</comment_count>
    <who name="Pino Toscano">pino</who>
    <bug_when>2009-05-07 21:03:36 +0000</bug_when>
    <thetext>*** Bug 191946 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>759494</commentid>
    <comment_count>16</comment_count>
    <who name="Tommi Tervo">tommi.tervo</who>
    <bug_when>2009-05-18 09:33:32 +0000</bug_when>
    <thetext>*** Bug 193084 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>