Closed Bug 377203 Opened 17 years ago Closed 1 month ago

crash [@ libobjc.A.dylib][@ CHBrowserListener::OnLocationChange], often at startup

Categories

(Camino Graveyard :: General, defect)

PowerPC
macOS
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: alqahira, Assigned: froodian)

Details

(Keywords: crash)

Crash Data

Attachments

(2 files, 2 obsolete files)

Attached file Talkback report
A large number of our recent libobjc crashes in Talkback have this sort of stack.  Mostly at/around startup (based on "Since Last Crash"), but a few with some larger SLC times.

There's only one with any "useful" comment:

TB30162322x - "starting new nightly build with previously opened windows and GrowlCamino 1.0 installed"

TB30116804x
TB30481143x -- not at startup
TB30161823x
TB30163419x
TB30217029x
TB30237461x
TB30237576x
TB30655789x
TB30501215x -- not at startup
TB30556065x -- not at startup
TB30729718x -- not at startup
My gut feeling from the stacks is that GrowlCamino is not involved; these all appear to be during the creation of an empty window, which doesn't sound like something that would go through GrowlCamino code paths.
Attached patch Patch? (obsolete) — Splinter Review
This is kind of a shot in the dark, but I do know that |stringWithUTF8String| causes a crash if it gets sent NULL, and it seems like a good idea to make sure we're actually put something in spec regardless.
Assignee: nobody → froodian
Status: NEW → ASSIGNED
Attachment #261337 - Flags: review?(stuart.morgan)
Comment on attachment 261337 [details] [diff] [review]
Patch?

That line bothered me when I looked at this as well, but since it's not actually possible for GetSpec to fail as far as I can tell, it's really unlikely to be the issue (plus I would expect to see stringWithUTF8String: on the stack).

I'm fine with bullet-proofing it anyway, but I think the right way to do it is to check for spec.get() being NULL rather that checking the return value from GetSpec, since that's what we are actually trying to prevent.
Attachment #261337 - Flags: review?(stuart.morgan) → review-
Attached patch Bullet-proofing, v2 (obsolete) — Splinter Review
Attachment #261337 - Attachment is obsolete: true
Attachment #261602 - Flags: review?(stuart.morgan)
Comment on attachment 261602 [details] [diff] [review]
Bullet-proofing, v2

>+  if (strbuff == NULL)

if (!strbuff)

r=me with that change.
Attachment #261602 - Flags: review?(stuart.morgan) → review+
Attachment #261602 - Attachment is obsolete: true
Attachment #261603 - Flags: superreview?(mikepinkerton)
Comment on attachment 261603 [details] [diff] [review]
Bullet-proofing, v2.1

sr=pink, what's the result of returning error_failure here when we weren't before? will that someties cause us to not change the url bar because gecko terminates a page load early, etc etc?
Attachment #261603 - Flags: superreview?(mikepinkerton) → superreview+
Ian, was this ever checked in, or had pink's questions never been resolved?
We should watch 1.6 talkback, and see if this is still showing up.
(In reply to comment #8)
> Ian, was this ever checked in, or had pink's questions never been resolved?

It was never checked in. I don't know if anyone ever answered pink's question or not, but I'm guessing not.

(In reply to comment #9)
> We should watch 1.6 talkback, and see if this is still showing up.

Smokey did a search (and I'm still in the process of doing one myself) and found nothing that looks like this bug in either 1.6 or 2.0.

Do we still want to do anything about this?
(In reply to comment #10)
> (In reply to comment #8)
> > Ian, was this ever checked in, or had pink's questions never been resolved?
> 
> It was never checked in. I don't know if anyone ever answered pink's question
> or not, but I'm guessing not.
> 
> (In reply to comment #9)
> > We should watch 1.6 talkback, and see if this is still showing up.
> 
> Smokey did a search (and I'm still in the process of doing one myself) and
> found nothing that looks like this bug in either 1.6 or 2.0.
> 
> Do we still want to do anything about this?

and there is nothing on crash-stats

WFM?
Stuart, is it worth checking the equivalent of this patch in, or just WFMing this bug?  There's nothing related to CHBL::OnLocationChange in Breakpad for the last 4 weeks (and the only CHBL-related crash is your simulated crash from bug 512730).

Note, fwiw, that bug 441733 swapped the order of a bunch of pieces of this function (see http://hg.mozilla.org/camino/diff/b50671eb0e00/src/embedding/CHBrowserListener.mm), so that we get the spec and make an NSString from it before checking aRequest and the status.
We should figure out if returning failure is really the right thing before we land anything.
OS: Mac OS X → Windows XP
Crash Signature: [@ libobjc.A.dylib] [@ CHBrowserListener::OnLocationChange]
OS: Windows XP → Mac OS X
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: