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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>33049</bug_id>
          
          <creation_ts>2009-12-30 03:48:36 -0800</creation_ts>
          <short_desc>WebCore::positionInParentBeforeNode ReadAV@NULL (98882320ea2b731f10f353b23849bd6a)</short_desc>
          <delta_ts>2009-12-31 02:32:39 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows Vista</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>32823</dup_id>
          
          <bug_file_loc>http://skypher.com/SkyLined/Repro/WebKit/Bug%2033049%20-%20WebCore..positionInParentBeforeNode%20ReadAV@NULL%20(98882320ea2b731f10f353b23849bd6a)/repro.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Berend-Jan Wever">skylined</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>enrica</cc>
    
    <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>175868</commentid>
    <comment_count>0</comment_count>
      <attachid>45652</attachid>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2009-12-30 03:48:36 -0800</bug_when>
    <thetext>Created attachment 45652
Repro

Id:          WebCore::positionInParentBeforeNode ReadAV@NULL (98882320ea2b731f10f353b23849bd6a)
Description: Attempt to read from NULL pointer (+0xC) in WebCore::positionInParentBeforeNode
Stack:
  WebCore::positionInParentBeforeNode
  WebCore::InsertTextCommand::input
  WebCore::TypingCommand::insertTextRunWithoutNewlines
  WebCore::TypingCommand::insertText
  WebCore::TypingCommand::doApply
  WebCore::EditCommand::apply
  WebCore::applyCommand
  WebCore::TypingCommand::insertText
  WebCore::TypingCommand::insertText
  WebCore::executeInsertText
  WebCore::Editor::Command::execute
  WebCore::Document::execCommand
  WebCore::DocumentInternal::execCommandCallback
  v8::internal::Builtin_HandleApiCall
  v8::internal::Invoke
  v8::internal::Execution::Call
  v8::Script::Run
  WebCore::V8Proxy::runScript
  WebCore::V8Proxy::evaluate
  WebCore::ScriptController::evaluate
  WebCore::ScriptController::executeScript
  WebCore::ScriptController::executeScript
  WebCore::ScriptController::executeIfJavaScriptURL
  WebCore::FrameLoader::changeLocation
  WebCore::RedirectScheduler::timerFired
  WebCore::Timer&lt;...&gt;::fired
  WebCore::ThreadTimers::sharedTimerFiredInternal
  MessageLoop::RunTask
  MessageLoop::DoWork
  base::MessagePumpDefault::Run
  MessageLoop::RunInternal
  MessageLoop::Run
  RendererMain

Event details

Processes	
   0    id: df8 create  name: chrome.exe
.  1    id: 9d4 child   name: chrome.exe
Threads	
. 12  Id: 9d4.51c Suspend: 1 Teb: 7ffdf000 Unfrozen &quot;Main Thread&quot;
  14  Id: 9d4.774 Suspend: 1 Teb: 7ffde000 Unfrozen
  15  Id: 9d4.930 Suspend: 1 Teb: 7ffdd000 Unfrozen &quot;Chrome_ChildIOThread&quot;
  16  Id: 9d4.a94 Suspend: 1 Teb: 7ffdc000 Unfrozen
ExceptionAddress	0248fbba (chrome_1c30000!WebCore::positionInParentBeforeNode+0x0000000a)
ExceptionCode	c0000005 (Access violation)
ExceptionFlags	00000000
NumberParameters	2
Parameter[0]	00000000
Parameter[1]	0000000c
Attempt to read from address 0000000c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>175869</commentid>
    <comment_count>1</comment_count>
      <attachid>45653</attachid>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2009-12-30 03:49:35 -0800</bug_when>
    <thetext>Created attachment 45653
Repro</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>175870</commentid>
    <comment_count>2</comment_count>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2009-12-30 03:51:17 -0800</bug_when>
    <thetext>I am also seeing this crash for this case:
Id:          WebCore::InsertTextCommand::prepareForTextInsertion ReadAV@NULL (1ac71298082910ad4b85996091be4ef8)
Description: Attempt to read from NULL pointer (+0x25) in WebCore::InsertTextCommand::prepareForTextInsertion
Stack:
  WebCore::InsertTextCommand::prepareForTextInsertion
  WebCore::InsertTextCommand::input
  WebCore::TypingCommand::insertTextRunWithoutNewlines
  WebCore::TypingCommand::insertText
  WebCore::TypingCommand::doApply
  WebCore::EditCommand::apply
  WebCore::applyCommand
  WebCore::TypingCommand::insertText
  WebCore::TypingCommand::insertText
  WebCore::executeInsertText
  WebCore::Editor::Command::execute
  WebCore::Document::execCommand
  WebCore::DocumentInternal::execCommandCallback
  v8::internal::Builtin_HandleApiCall
  v8::internal::Invoke
  v8::internal::Execution::Call
  v8::Script::Run
  WebCore::V8Proxy::runScript
  WebCore::V8Proxy::evaluate
  WebCore::ScriptController::evaluate
  WebCore::ScriptController::executeScript
  WebCore::ScriptController::executeScript
  WebCore::ScriptController::executeIfJavaScriptURL
  WebCore::FrameLoader::changeLocation
  WebCore::RedirectScheduler::timerFired
  WebCore::Timer&lt;...&gt;::fired
  WebCore::ThreadTimers::sharedTimerFiredInternal
  MessageLoop::RunTask
  MessageLoop::DoWork
  base::MessagePumpDefault::Run
  MessageLoop::RunInternal
  MessageLoop::Run
  RendererMain</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>176152</commentid>
    <comment_count>3</comment_count>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2009-12-31 00:55:00 -0800</bug_when>
    <thetext>http://skypher.com/SkyLined/Repro/WebKit/Bug%2033049%20-%20WebCore..positionInParentBeforeNode%20ReadAV@NULL%20(98882320ea2b731f10f353b23849bd6a)/repro2.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>176165</commentid>
    <comment_count>4</comment_count>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2009-12-31 02:32:39 -0800</bug_when>
    <thetext>Mike Moretti claims there is a problem with &quot;Undo&quot; after &quot;designmode off&quot;.
https://bugs.webkit.org/show_bug.cgi?id=32822
I am assuming this is a variation of that problem.

*** This bug has been marked as a duplicate of bug 32823 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>45652</attachid>
            <date>2009-12-30 03:48:36 -0800</date>
            <delta_ts>2009-12-30 03:48:36 -0800</delta_ts>
            <desc>Repro</desc>
            <filename>repro.html</filename>
            <type>text/html</type>
            <size>1265</size>
            <attacher name="Berend-Jan Wever">skylined</attacher>
            
              <data encoding="base64">PEJPRFk+PC9CT0RZPg0KPFNDUklQVD4NCmRvY3VtZW50LmV4ZWNDb21tYW5kKCJPdXRkZW50Iiwg
ZmFsc2UsIDI2MjE0MCk7DQpkb2N1bWVudC5kZXNpZ25Nb2RlID0gIm9uIjsNCmRvY3VtZW50LmV4
ZWNDb21tYW5kKCJTZWxlY3RBbGwiLCBmYWxzZSwgImh0dHBzOi8vd3d3LmV4YW1wbGUuY29tIik7
DQpkb2N1bWVudC5leGVjQ29tbWFuZCgiaW5zZXJ0aW1hZ2UiLCBmYWxzZSwgImRhdGE6aW1hZ2Uv
cG5nO2Jhc2U2NCxpVkJPUncwS0dya0pnZ2c9PSIpOw0KZG9jdW1lbnQuZXhlY0NvbW1hbmQoInNl
bGVjdGFsbCIsIGZhbHNlLCBOYU4pOw0KZG9jdW1lbnQuZXhlY0NvbW1hbmQoInN0cmlrZXRocm91
Z2giLCBmYWxzZSwgImdvcGhlcjovL3d3dy5leGFtcGxlLmNvbSIpOw0KZG9jdW1lbnQuZXhlY0Nv
bW1hbm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VuIik7DQpkb2N1bWVudC5l
eGVjQ29tbWFuZCgiSW5zZXJ0VGV4dCIsIGZhbHNlLCAiZnRwOi8vd3d3LmV4YW1wbGUuY29tIik7
DQo8L1NDUklQVD4=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>45653</attachid>
            <date>2009-12-30 03:49:35 -0800</date>
            <delta_ts>2009-12-30 03:49:35 -0800</delta_ts>
            <desc>Repro</desc>
            <filename>repro2.html</filename>
            <type>text/html</type>
            <size>807</size>
            <attacher name="Berend-Jan Wever">skylined</attacher>
            
              <data encoding="base64">PEJPRFk+PC9CT0RZPgo8U0NSSVBUPgpkb2N1bWVudC5leGVjQ29tbWFuZCgiT3V0ZGVudCIsIGZh
bHNlLCAyNjIxNDApOwpkb2N1bWVudC5kZXNpZ25Nb2RlID0gIm9uIjsKZG9jdW1lbnQuZXhlY0Nv
bW1hbmQoIlNlbGVjdEFsbCIsIGZhbHNlLCAiaHR0cHM6Ly93d3cuZXhhbXBsZS5jb20iKTsKZG9j
dW1lbnQuZXhlY0NvbW1hbmQoImluc2VydGltYWdlIiwgZmFsc2UsICJkYXRhOmltYWdlL3BuZzti
YXNlNjQsaVZCT1J3MEtHcmtKZ2dnPT0iKTsKZG9jdW1lbnQuZXhlY0NvbW1hbmQoInNlbGVjdGFs
bCIsIGZhbHNlLCBOYU4pOwpkb2N1bWVudC5leGVjQ29tbWFuZCgianVzdGlmeWZ1bGwiLCBmYWxz
ZSwgNDA5Mik7CmRvY3VtZW50LmV4ZWNDb21tYW5kKCJPdmVyV3JpdGUiLCBmYWxzZSwgNCk7CmRv
Y3VtZW50LmRlc2lnbk1vZGUgPSAib2ZmIjsKZG9jdW1lbnQuZXhlY0NvbW1hbmQoIlVuZG8iLCBm
YWxzZSwgImRhdGE6dGV4dC9odG1sO2NoYXJzZXQ9dXQwQSIpOwpkb2N1bWVudC5kZXNpZ25Nb2Rl
ID0gIm9uIjsKZG9jdW1lbnQuZXh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