[haiku-bugs] Re: [Haiku] #12699: Various crashes in BHttpRequest's crypto

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Sat, 26 Mar 2016 17:51:56 -0000

#12699: Various crashes in BHttpRequest's crypto
--------------------------------+----------------------------
   Reporter:  ttcoder           |      Owner:  axeld
       Type:  bug               |     Status:  new
   Priority:  normal            |  Milestone:  R1
  Component:  Kits/Network Kit  |    Version:  R1/Development
 Resolution:                    |   Keywords:
 Blocked By:                    |   Blocking:
Has a Patch:  0                 |   Platform:  All
--------------------------------+----------------------------

Comment (by ttcoder):

 Digging for more reports, I only found that one -- luckily it's the one I
 wanted, as it's most representative: from memory, most of Dane's crashes
 are in the BCertificate dtor indeed.

 This is really Dane's ticket not mine, I don't have much of a dog in this
 fight as I'm mostly unable to reproduce this crash :-j .. But with the
 information you gave me pulkomandy I have renewed motivation to try out
 new things in the next build I'll send him:

 - I'll take your advice and review my code for usage of Stop() in
 BUrlRequest/BHttpRequest, I didn't know it was necessary to call it before
 delete'ing, gotta fix that
 - I'll check out the source for the B* classes (especially BUrlContext)
 for ownership transfer and the like. Currently I assume I remain owner for
 all objects and delete them all myself in TtsUpdaterWin
 - I might also use leak_checker.sh/malloc-debug, IIRC it also reports
 double-delete cases and lots more

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

Other related posts: