<?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>9568</bug_id>
          
          <creation_ts>2006-06-24 20:13:56 -0700</creation_ts>
          <short_desc>assertion failure in Safari after quitting Drosera</short_desc>
          <delta_ts>2008-05-17 09:55:51 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></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="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Timothy Hatcher">timothy</assigned_to>
          <cc>timothy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47079</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-06-24 20:13:56 -0700</bug_when>
    <thetext>I was viewing Attachment 5712 from Bug 6574 with Drosera connected to Safari, then quit Drosera.  This, in turn, caused Safari+WebKit to crash.  I was using a locally-built r15024 WebKit.

Crash log:

Date/Time:      2006-06-24 22:09:24.550 -0500
OS Version:     10.4.6 (Build 8I127)
Report Version: 4

Command: Safari
Path:    /Applications/Safari.app/Contents/MacOS/Safari
Parent:  bash [279]

Version:        2.0.3 (417.9.3)
Build Version:  2
Project Name:   WebBrowser
Source Version: 4170903

PID:    28154
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_INVALID_ADDRESS (0x0001) at 0xbbadbeef

Thread 0 Crashed:
0   com.apple.WebKit         	0x003e1c80 -[WebScriptDebugServer removeListener:] + 104 (WebScriptDebugServer.m:161)
1   libobjc.A.dylib          	0x90a4b1f4 objc_msgSendv + 180
2   com.apple.Foundation     	0x92971c88 -[NSInvocation invoke] + 944
3   com.apple.Foundation     	0x9297174c -[NSConnection dispatchInvocation:] + 252
4   com.apple.Foundation     	0x9296f858 -[NSConnection handleRequest:sequence:] + 988
5   com.apple.Foundation     	0x9296f1cc -[NSConnection handlePortCoder:] + 496
6   com.apple.Foundation     	0x9296ef38 -[NSConcretePortCoder dispatch] + 100
7   com.apple.Foundation     	0x9296e918 __NSFireMachPort + 276
8   com.apple.CoreFoundation 	0x907f1820 __CFMachPortPerform + 176
9   com.apple.CoreFoundation 	0x907f1734 __CFRunLoopDoSource1 + 152
10  com.apple.CoreFoundation 	0x907e3e4c __CFRunLoopRun + 1556
11  com.apple.CoreFoundation 	0x907e347c CFRunLoopRunSpecific + 268
12  com.apple.HIToolbox      	0x9321d980 RunCurrentEventLoopInMode + 264
13  com.apple.HIToolbox      	0x9321d014 ReceiveNextEventCommon + 380
14  com.apple.HIToolbox      	0x9321ce80 BlockUntilNextEventMatchingListInMode + 96
15  com.apple.AppKit         	0x9371fe84 _DPSNextEvent + 384
16  com.apple.AppKit         	0x9371fb48 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
17  com.apple.Safari         	0x00006df4 0x1000 + 24052
18  com.apple.AppKit         	0x9371c08c -[NSApplication run] + 472
19  com.apple.AppKit         	0x9380cbfc NSApplicationMain + 452
20  com.apple.Safari         	0x0005cb98 0x1000 + 375704
21  com.apple.Safari         	0x0005ca40 0x1000 + 375360  </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47080</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-06-24 20:19:41 -0700</bug_when>
    <thetext>In my debug build, there was an assertion failure (which caused the crash):

ASSERTION FAILED: listenerCount &gt;= 1 (/Users/ddkilzer/Projects/Cocoa/WebKit/WebKit/DefaultDelegates/WebScriptDebugServer.m:161 -[WebScriptDebugServer removeListener:])
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47170</commentid>
    <comment_count>2</comment_count>
      <attachid>9030</attachid>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2006-06-25 17:07:18 -0700</bug_when>
    <thetext>Created attachment 9030
Fix

        Call switchToServerNamed:nil and not removeLister to make sure
        the server object is set to nil to prevent further removeListener calls.

        * Drosera/DebuggerDocument.m:
        (-[DebuggerDocument applicationTerminating:]):</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47190</commentid>
    <comment_count>3</comment_count>
      <attachid>9030</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-06-25 18:49:17 -0700</bug_when>
    <thetext>Comment on attachment 9030
Fix

OK, r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47191</commentid>
    <comment_count>4</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2006-06-25 19:12:28 -0700</bug_when>
    <thetext>Landed in r15042.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80730</commentid>
    <comment_count>5</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2008-05-17 09:55:51 -0700</bug_when>
    <thetext>Closing since Drosera has been replaced by the new Web Inspector debugger. Moving to the New Bugs component so the Drosera component can be closed and removed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>9030</attachid>
            <date>2006-06-25 17:07:18 -0700</date>
            <delta_ts>2006-06-25 18:49:17 -0700</delta_ts>
            <desc>Fix</desc>
            <filename>9568.patch</filename>
            <type>text/plain</type>
            <size>1339</size>
            <attacher name="Timothy Hatcher">timothy</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDE1MDQw
KQorKysgQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTMgQEAKKzIwMDYtMDYt
MjUgIFRpbW90aHkgSGF0Y2hlciAgPHRpbW90aHlAYXBwbGUuY29tPgorCisgICAgICAgIFJldmll
d2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIENhbGwgc3dpdGNoVG9TZXJ2ZXJOYW1l
ZDpuaWwgYW5kIG5vdCByZW1vdmVMaXN0ZXIgdG8gbWFrZSBzdXJlCisgICAgICAgIHRoZSBzZXJ2
ZXIgb2JqZWN0IGlzIHNldCB0byBuaWwgdG8gcHJldmVudCBmdXJ0aGVyIHJlbW92ZUxpc3RlbmVy
IGNhbGxzLgorCisgICAgICAgICogRHJvc2VyYS9EZWJ1Z2dlckRvY3VtZW50Lm06CisgICAgICAg
ICgtW0RlYnVnZ2VyRG9jdW1lbnQgYXBwbGljYXRpb25UZXJtaW5hdGluZzpdKToKKwogMjAwNi0w
Ni0yNSAgRGF2aWQgS2lsemVyICA8ZGRraWx6ZXJAa2lsemVyLm5ldD4KIAogICAgICAgICBSZXZp
ZXdlZCBieSBEYXJpbi4KSW5kZXg6IERyb3NlcmEvRGVidWdnZXJEb2N1bWVudC5tCj09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT0KLS0tIERyb3NlcmEvRGVidWdnZXJEb2N1bWVudC5tCShyZXZpc2lvbiAxNTAzNykKKysrIERy
b3NlcmEvRGVidWdnZXJEb2N1bWVudC5tCSh3b3JraW5nIGNvcHkpCkBAIC0yMTQsOCArMjE0LDcg
QEAgc3RhdGljIE5TU3RyaW5nICpEZWJ1Z2dlclN0ZXBJbnRvVG9vbGJhcgogLSAodm9pZClhcHBs
aWNhdGlvblRlcm1pbmF0aW5nOihOU05vdGlmaWNhdGlvbiAqKW5vdGlmaWN0aW9uCiB7CiAgICAg
aWYgKHNlcnZlciAmJiBbWyhOU0Rpc3RhbnRPYmplY3QgKilzZXJ2ZXIgY29ubmVjdGlvbkZvclBy
b3h5XSBpc1ZhbGlkXSkgewotICAgICAgICBpZiAoW1soTlNEaXN0YW50T2JqZWN0ICopc2VydmVy
IGNvbm5lY3Rpb25Gb3JQcm94eV0gaXNWYWxpZF0pCi0gICAgICAgICAgICBbc2VydmVyIHJlbW92
ZUxpc3RlbmVyOnNlbGZdOworICAgICAgICBbc2VsZiBzd2l0Y2hUb1NlcnZlck5hbWVkOm5pbF07
CiAgICAgICAgIC8vIGNhbGwgdGhlIHJ1bmxvb3AgZm9yIGEgd2hpbGUgdG8gbWFrZSBzdXJlIG91
ciByZW1vdmVMaXN0ZW5lcjogaXMgc2VudCB0byB0aGUgc2VydmVyCiAgICAgICAgIFtbTlNSdW5M
b29wIGN1cnJlbnRSdW5Mb29wXSBydW5VbnRpbERhdGU6W05TRGF0ZSBkYXRlV2l0aFRpbWVJbnRl
cnZhbFNpbmNlTm93OjAuMjVdXTsKICAgICB9Cg==
</data>
<flag name="review"
          id="2679"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>