<?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>78618</bug_id>
          
          <creation_ts>2012-02-14 10:34:56 -0800</creation_ts>
          <short_desc>Crash when copying patch text when reviewing a patch</short_desc>
          <delta_ts>2012-02-14 11:14:38 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>78577</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>enrica</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>556394</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2012-02-14 10:34:56 -0800</bug_when>
    <thetext>I crash on Copy with TOT.

1. Open https://bugs.webkit.org/attachment.cgi?id=126895&amp;action=review
2. Select some lines in the Changelog to start adding a comment
3. Select a word in the changelog (green) text, like &quot;implicit&quot;
4. Hit Command-C for copy.

The web process crasehes:



Process:         WebProcess [47029]
Path:            /Volumes/VOLUME/*/WebKit2.framework/WebProcess.app/Contents/MacOS/WebProcess
Identifier:      com.apple.WebProcess
Version:         535+ (535.17+)
Code Type:       X86-64 (Native)
Parent Process:  Safari [47028]

Date/Time:       2012-02-14 10:31:54.862 -0800
OS Version:      Mac OS X 10.7.2 (11C73)
Report Version:  9

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000068

VM Regions Near 0x68:
--&gt; 
    __TEXT                 0000000109bb6000-0000000109bb7000 [    4K] r-x/rwx SM=COW  /Volumes/VOLUME/*/WebKit2.framework/WebProcess.app/Contents/MacOS/WebProcess

Application Specific Information:
objc[47029]: garbage collection is OFF
Bundle controller class:
BrowserBundleController
 

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.WebCore             	0x000000010c0afd4c WTF::RetainPtr&lt;__CFData const*&gt;::operator __CFData const* WTF::RetainPtr&lt;__CFData const*&gt;::*() const + 12 (RetainPtr.h:91)
1   com.apple.WebCore             	0x000000010cc87f3c WebCore::SharedBuffer::hasPlatformData() const + 28 (SharedBufferCF.cpp:64)
2   com.apple.WebCore             	0x000000010cc86709 WebCore::SharedBuffer::size() const + 25 (SharedBuffer.cpp:100)
3   com.apple.WebCore             	0x000000010cc8897b -[WebCoreSharedBufferData length] + 43 (SharedBufferMac.mm:84)
4   com.apple.CoreFoundation      	0x00007fff8c50ec66 CFDataGetLength + 118
5   com.apple.CoreFoundation      	0x00007fff8c5cd8d9 __CFPasteboardSetData + 57
6   com.apple.CoreFoundation      	0x00007fff8c5cd838 CFPasteboardSetData + 456
7   com.apple.AppKit              	0x00007fff90d1e1a8 -[NSPasteboard _setData:forType:index:usesPboardTypes:] + 369
8   com.apple.AppKit              	0x00007fff90d1b087 -[NSPasteboard setData:forType:] + 86
9   com.apple.WebCore             	0x000000010cfed8f1 WebCore::PlatformPasteboard::setBufferForType(WTF::PassRefPtr&lt;WebCore::SharedBuffer&gt;, WTF::String const&amp;) + 113 (PlatformPasteboardMac.mm:91)
10  com.apple.WebKit2             	0x0000000109fc2d45 WebKit::WebPlatformStrategies::setBufferForType(WTF::PassRefPtr&lt;WebCore::SharedBuffer&gt;, WTF::String const&amp;, WTF::String const&amp;) + 85 (WebPlatformStrategies.cpp:176)
11  com.apple.WebKit2             	0x0000000109fc2da7 non-virtual thunk to WebKit::WebPlatformStrategies::setBufferForType(WTF::PassRefPtr&lt;WebCore::SharedBuffer&gt;, WTF::String const&amp;, WTF::String const&amp;) + 55
12  com.apple.WebCore             	0x000000010c8ff253 WebCore::Pasteboard::writeSelectionForTypes(WTF::Vector&lt;WTF::String, 0ul&gt; const&amp;, WebCore::Range*, bool, WebCore::Frame*) + 5203 (PasteboardMac.mm:194)
13  com.apple.WebCore             	0x000000010c8ff6e4 WebCore::Pasteboard::writeSelection(WebCore::Range*, bool, WebCore::Frame*) + 84 (PasteboardMac.mm:207)
14  com.apple.WebCore             	0x000000010bd97df2 WebCore::Editor::copy() + 434 (Editor.cpp:1079)
15  com.apple.WebCore             	0x000000010bda9b88 _ZN7WebCoreL11executeCopyEPNS_5FrameEPNS_5EventENS_19EditorCommandSourceERKN3WTF6StringE + 40 (EditorCommand.cpp:285)
16  com.apple.WebCore             	0x000000010bda9040 WebCore::Editor::Command::execute(WTF::String const&amp;, WebCore::Event*) const + 208 (EditorCommand.cpp:1664)
17  com.apple.WebKit2             	0x0000000109f2b86e WebKit::WebPage::executeEditingCommand(WTF::String const&amp;, WTF::String const&amp;) + 142 (WebPage.cpp:545)
18  com.apple.WebKit2             	0x0000000109f2f111 WebKit::WebPage::executeEditCommand(WTF::String const&amp;) + 65 (WebPage.cpp:1413)
19  com.apple.WebKit2             	0x0000000109f5f337 void CoreIPC::callMemberFunction&lt;WebKit::WebPage, void (WebKit::WebPage::*)(WTF::String const&amp;), WTF::String&gt;(CoreIPC::Arguments1&lt;WTF::String&gt; const&amp;, WebKit::WebPage*, void (WebKit::WebPage::*)(WTF::String const&amp;)) + 135 (HandleMessage.h:20)
20  com.apple.WebKit2             	0x0000000109f5aa9a void CoreIPC::handleMessage&lt;Messages::WebPage::ExecuteEditCommand, WebKit::WebPage, void (WebKit::WebPage::*)(WTF::String const&amp;)&gt;(CoreIPC::ArgumentDecoder*, WebKit::WebPage*, void (WebKit::WebPage::*)(WTF::String const&amp;)) + 122 (HandleMessage.h:297)
21  com.apple.WebKit2             	0x0000000109f57a2b WebKit::WebPage::didReceiveWebPageMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*) + 2891 (WebPageMessageReceiver.cpp:253)
22  com.apple.WebKit2             	0x0000000109f3248d WebKit::WebPage::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*) + 301 (WebPage.cpp:2452)
23  com.apple.WebKit2             	0x0000000109fe34db WebKit::WebProcess::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*) + 923 (WebProcess.cpp:669)
24  com.apple.WebKit2             	0x0000000109e8240f WebKit::WebConnectionToUIProcess::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*) + 383 (WebConnectionToUIProcess.cpp:88)
25  com.apple.WebKit2             	0x0000000109e8245d non-virtual thunk to WebKit::WebConnectionToUIProcess::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*) + 61
26  com.apple.WebKit2             	0x0000000109d2ab1c CoreIPC::Connection::dispatchMessage(CoreIPC::Connection::Message&lt;CoreIPC::ArgumentDecoder&gt;&amp;) + 428 (Connection.cpp:692)
27  com.apple.WebKit2             	0x0000000109d2d3a3 CoreIPC::Connection::dispatchMessages() + 211 (Connection.cpp:720)
28  com.apple.WebKit2             	0x0000000109d34010 WTF::FunctionWrapper&lt;void (CoreIPC::Connection::*)()&gt;::operator()(CoreIPC::Connection*) + 112 (Functional.h:173)
29  com.apple.WebKit2             	0x0000000109d33f95 WTF::BoundFunctionImpl&lt;WTF::FunctionWrapper&lt;void (CoreIPC::Connection::*)()&gt;, void ()(CoreIPC::Connection*)&gt;::operator()() + 53 (Functional.h:373)
30  com.apple.WebCore             	0x000000010cbe9dcd WTF::Function&lt;void ()()&gt;::operator()() const + 141 (Functional.h:581)
31  com.apple.WebCore             	0x000000010cbe9ba3 WebCore::RunLoop::performWork() + 147 (RunLoop.cpp:66)
32  com.apple.WebCore             	0x000000010cbe8780 WebCore::RunLoop::performWork(void*) + 96 (RunLoopMac.mm:65)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>556395</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2012-02-14 10:35:18 -0800</bug_when>
    <thetext>&lt;rdar://problem/10861398&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>556423</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-02-14 11:14:38 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 78577 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>