<?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>124554</bug_id>
          
          <creation_ts>2006-03-30 12:30:34 +0000</creation_ts>
          <short_desc>crashes viewing search results on fudforum</short_desc>
          <delta_ts>2006-04-16 20:25:58 +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 xml</component>
          <version>3.5</version>
          <rep_platform>unspecified</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>morhekil</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>maksim</cc>
    
    <cc>torquil</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>426080</commentid>
    <comment_count>0</comment_count>
    <who name="">morhekil</who>
    <bug_when>2006-03-30 12:30:34 +0000</bug_when>
    <thetext>Version:           3.5.2 (using KDE 3.5.2, Gentoo)
Compiler:          gcc version 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9)
OS:                Linux (i686) release 2.6.15-suspend2-r8

Konqueror crashes when I&apos;m trying to view topics from search result on any fudforum-based messages boards.
How to reproduce:
1. Go to any fudforum-based message board, for example:
http://fudforum.org/forum/
http://www.symfony-project.com/forum/index.php
2. Click on &quot;Search&quot;, enter some search terms and click on &quot;Search&quot; button.
3. In the search results click on any topic to go directly to this topic&apos;s page.
Expected: topic&apos;s page with search terms highlighted.
Actual result: konqueror crashes.

You can also go directly by the following URL:
http://fudforum.org/forum/index.php?t=msg&amp;goto=30807&amp;&amp;srch=test#msg_30807
and it will crash konqueror.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>426087</commentid>
    <comment_count>1</comment_count>
    <who name="Tommi Tervo">tommi.tervo</who>
    <bug_when>2006-03-30 12:53:35 +0000</bug_when>
    <thetext>khtml (tokenizer): Finished loading an external script

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1235024192 (LWP 31525)]
0xb5f84541 in DOM::DocumentImpl::setCSSTarget (this=0x84b62c0, n=0x87304f0)
    at dom_docimpl.cpp:2200
2200            m_cssTarget-&gt;setChanged();
(gdb) bt
#0  0xb5f84541 in DOM::DocumentImpl::setCSSTarget (this=0x84b62c0, n=0x87304f0)
    at dom_docimpl.cpp:2200
#1  0xb5f2b0e7 in KHTMLPart::gotoAnchor (this=0x83294b0, name=@0xbfc9aa78)
    at khtml_part.cpp:2523
#2  0xb5f3056c in KHTMLPart::restoreScrollPosition (this=0x83294b0)
    at khtml_part.cpp:7111
#3  0xb5f51d83 in KHTMLPart::qt_invoke (this=0x83294b0, _id=86, _o=0xbfc9ab7c)
    at khtml_part.moc:571
#4  0xb6e36929 in QObject::activate_signal ()
   from /usr/share/qt3/lib/libqt-mt.so.3
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>429084</commentid>
    <comment_count>2</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2006-04-08 19:40:15 +0000</bug_when>
    <thetext>SVN commit 527561 by orlovich:

Do not crash if an old target got destroyed.
BUG:124554


 M  +11 -2     dom_docimpl.cpp  


--- branches/KDE/3.5/kdelibs/khtml/xml/dom_docimpl.cpp #527560:527561
@@ -388,6 +388,8 @@
     m_styleSheets-&gt;deref();
     if (m_addedStyleSheets)
         m_addedStyleSheets-&gt;deref();
+    if (m_cssTarget)
+        m_cssTarget-&gt;deref();
     if (m_focusNode)
         m_focusNode-&gt;deref();
     if ( m_hoverNode )
@@ -2196,11 +2198,18 @@
 
 void DocumentImpl::setCSSTarget(NodeImpl* n)
 {
-    if (m_cssTarget)
+    if (n == m_cssTarget)
+        return;
+
+    if (m_cssTarget) {
         m_cssTarget-&gt;setChanged();
+        m_cssTarget-&gt;deref();
+    }
     m_cssTarget = n;
-    if (n)
+    if (n) {
         n-&gt;setChanged();
+        n-&gt;ref();
+    }
 }
 
 void DocumentImpl::attachNodeIterator(NodeIteratorImpl *ni)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>431440</commentid>
    <comment_count>3</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2006-04-16 20:25:58 +0000</bug_when>
    <thetext>*** Bug 125579 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>