<?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>78577</bug_id>
          
          <creation_ts>2012-02-13 23:07:41 -0800</creation_ts>
          <short_desc>REGRESSION (r107568-r107627): Crash when copying in WebCore::SharedBuffer::hasPlatformData()</short_desc>
          <delta_ts>2012-02-15 00:53:01 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://nightly.webkit.org/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin M. Dean">kevin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>dimitris.apostolou</cc>
    
    <cc>enrica</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>555981</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin M. Dean">kevin</who>
    <bug_when>2012-02-13 23:07:41 -0800</bug_when>
    <thetext>Seems selecting text on any web page and then copying via Command-C or the contextual menu causes the Web Process to crash. So for example on the nightly page, I double click February... Command-C... crash.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.WebCore             	0x0000000108884cf4 WebCore::SharedBuffer::hasPlatformData() const + 4
1   com.apple.WebCore             	0x00000001088844c1 WebCore::SharedBuffer::size() const + 17
2   com.apple.WebCore             	0x0000000108884ec4 -[WebCoreSharedBufferData length] + 20
3   com.apple.CoreFoundation      	0x00007fff971fb7f6 CFDataGetLength + 118
4   com.apple.CoreFoundation      	0x00007fff972ba619 __CFPasteboardSetData + 57
5   com.apple.CoreFoundation      	0x00007fff972ba578 CFPasteboardSetData + 456
6   com.apple.AppKit              	0x00007fff93f8cc54 -[NSPasteboard _setData:forType:index:usesPboardTypes:] + 369
7   com.apple.AppKit              	0x00007fff93f89b33 -[NSPasteboard setData:forType:] + 86
8   com.apple.WebKit2             	0x0000000107956227 WebKit::WebPlatformStrategies::setBufferForType(WTF::PassRefPtr&lt;WebCore::SharedBuffer&gt;, WTF::String const&amp;, WTF::String const&amp;) + 63
9   com.apple.WebCore             	0x00000001086e9b5c WebCore::Pasteboard::writeSelectionForTypes(WTF::Vector&lt;WTF::String, 0ul&gt; const&amp;, WebCore::Range*, bool, WebCore::Frame*) + 5308
10  com.apple.WebCore             	0x00000001086ea06f WebCore::Pasteboard::writeSelection(WebCore::Range*, bool, WebCore::Frame*) + 63
11  com.apple.WebCore             	0x0000000108159f6c WebCore::Editor::copy() + 540
12  com.apple.WebCore             	0x0000000107f65508 WebCore::ContextMenuController::contextMenuItemSelected(WebCore::ContextMenuItem*) + 856
13  com.apple.WebKit2             	0x00000001078f9adc WebKit::WebContextMenu::itemSelected(WebKit::WebContextMenuItemData const&amp;) + 58
14  com.apple.WebKit2             	0x000000010792b05c WebKit::WebPage::didSelectItemFromActiveContextMenu(WebKit::WebContextMenuItemData const&amp;) + 26
15  com.apple.WebKit2             	0x00000001079366f2 void CoreIPC::handleMessage&lt;Messages::WebPage::DidSelectItemFromActiveContextMenu, WebKit::WebPage, void (WebKit::WebPage::*)(WebKit::WebContextMenuItemData const&amp;)&gt;(CoreIPC::ArgumentDecoder*, WebKit::WebPage*, void (WebKit::WebPage::*)(WebKit::WebContextMenuItemData const&amp;)) + 83
16  com.apple.WebKit2             	0x00000001078f0389 WebKit::WebConnectionToUIProcess::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*) + 179
17  com.apple.WebKit2             	0x0000000107894da9 CoreIPC::Connection::dispatchMessage(CoreIPC::Connection::Message&lt;CoreIPC::ArgumentDecoder&gt;&amp;) + 175
18  com.apple.WebKit2             	0x00000001078962b5 CoreIPC::Connection::dispatchMessages() + 147
19  com.apple.WebCore             	0x0000000108846849 WebCore::RunLoop::performWork() + 89
20  com.apple.WebCore             	0x0000000108845fe7 WebCore::RunLoop::performWork(void*) + 71
21  com.apple.CoreFoundation      	0x00007fff971f76e1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
22  com.apple.CoreFoundation      	0x00007fff971f6f4d __CFRunLoopDoSources0 + 253
23  com.apple.CoreFoundation      	0x00007fff9721dd39 __CFRunLoopRun + 905
24  com.apple.CoreFoundation      	0x00007fff9721d676 CFRunLoopRunSpecific + 230
25  com.apple.HIToolbox           	0x00007fff8c29931f RunCurrentEventLoopInMode + 277
26  com.apple.HIToolbox           	0x00007fff8c2a05c9 ReceiveNextEventCommon + 355
27  com.apple.HIToolbox           	0x00007fff8c2a0456 BlockUntilNextEventMatchingListInMode + 62
28  com.apple.AppKit              	0x00007fff93a93f5d _DPSNextEvent + 659
29  com.apple.AppKit              	0x00007fff93a93861 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
30  com.apple.AppKit              	0x00007fff93a9019d -[NSApplication run] + 470
31  com.apple.WebCore             	0x000000010884628f WebCore::RunLoop::run() + 63
32  com.apple.WebKit2             	0x0000000107968376 WebKit::WebProcessMain(WebKit::CommandLine const&amp;) + 2538
33  com.apple.WebKit2             	0x000000010791e64f WebKitMain + 285
34  com.apple.WebProcess          	0x000000010784fe5f main + 219
35  com.apple.WebProcess          	0x000000010784fd7c start + 52</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>556424</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-02-14 11:14:38 -0800</bug_when>
    <thetext>*** Bug 78618 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>556426</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-02-14 11:15:36 -0800</bug_when>
    <thetext>&lt;rdar://problem/10859018&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>556456</commentid>
    <comment_count>3</comment_count>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-02-14 11:41:43 -0800</bug_when>
    <thetext>I&apos;m looking into it now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>556483</commentid>
    <comment_count>4</comment_count>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-02-14 12:18:48 -0800</bug_when>
    <thetext>I have a fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>556748</commentid>
    <comment_count>5</comment_count>
      <attachid>127073</attachid>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-02-14 16:25:41 -0800</bug_when>
    <thetext>Created attachment 127073
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>556759</commentid>
    <comment_count>6</comment_count>
    <who name="Enrica Casucci">enrica</who>
    <bug_when>2012-02-14 16:36:40 -0800</bug_when>
    <thetext>http://trac.webkit.org/changeset/107753</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>557000</commentid>
    <comment_count>7</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2012-02-15 00:53:01 -0800</bug_when>
    <thetext>*** Bug 78670 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>127073</attachid>
            <date>2012-02-14 16:25:41 -0800</date>
            <delta_ts>2012-02-14 16:30:51 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>crashcopy.txt</filename>
            <type>text/plain</type>
            <size>1518</size>
            <attacher name="Enrica Casucci">enrica</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDEwNzc0OCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE0IEBACisyMDEyLTAyLTE0ICBFbnJpY2Eg
Q2FzdWNjaSAgPGVucmljYUBhcHBsZS5jb20+CisKKyAgICAgICAgUkVHUkVTU0lPTiAocjEwNzU2
OC1yMTA3NjI3KTogQ3Jhc2ggd2hlbiBjb3B5aW5nIGluIFdlYkNvcmU6OlNoYXJlZEJ1ZmZlcjo6
aGFzUGxhdGZvcm1EYXRhKCkuCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3df
YnVnLmNnaT9pZD03ODU3NworCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgor
CisgICAgICAgICogcGxhdGZvcm0vbWFjL1BsYXRmb3JtUGFzdGVib2FyZE1hYy5tbToKKyAgICAg
ICAgKFdlYkNvcmU6OlBsYXRmb3JtUGFzdGVib2FyZDo6c2V0QnVmZmVyRm9yVHlwZSk6IE1pc3Np
bmcgbnVsbCBjaGVjayB3aGVuCisgICAgICAgIHNldHRpbmcgZGF0YSB0byB0aGUgTlNQYXN0ZWJv
YXJkLgorCiAyMDEyLTAyLTE0ICBNYXR0IExpbGVrICA8bXJsQGFwcGxlLmNvbT4KIAogICAgICAg
ICBEb24ndCBFTkFCTEVfREFTSEJPQVJEX1NVUFBPUlQgdW5jb25kaXRpb25hbGx5IG9uIGFsbCBN
YWM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review"
          id="129097"
          type_id="1"
          status="+"
          setter="mitz"
    />
          </attachment>
      

    </bug>

</bugzilla>