[haiku-bugs] Re: [Haiku] #10924: Webpositive crashed WebCore::ResourceHandle::client()

  • From: "markh" <trac@xxxxxxxxxxxx>
  • Date: Sun, 28 Feb 2016 23:13:16 -0000

#10924: Webpositive crashed WebCore::ResourceHandle::client()
----------------------------------------+---------------------------------
   Reporter:  xray7224                  |      Owner:  pulkomandy
       Type:  bug                       |     Status:  new
   Priority:  normal                    |  Milestone:  R1
  Component:  Applications/WebPositive  |    Version:  R1/Development
 Resolution:                            |   Keywords:
 Blocked By:  11602                     |   Blocking:  12047, 12137, 12605
Has a Patch:  1                         |   Platform:  All
----------------------------------------+---------------------------------

Comment (by markh):

 I did some quick debugging to see what is going wrong and it does not seem
 to be a locking problem.
 In this case AuthenticationNeeded is called from HeadersReceived and it
 determines that it is an unknown authentication type and should be
 ignored. It then calls client->didFinishLoading() and returns. Apparently
 the call to client->didFinishLoading() destroys the ResourceHandle
 somewhere, which unsets m_resourceHandle. This then causes the call to
 m_resourceHandle->client() to fail. Checking if m_resourceHandle is still
 valid right before this call should fix it. Again, not sure if it is the
 right fix.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10924#comment:12>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: