Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

TripAdvisor crashes Brave #5264

Closed
jonathansampson opened this issue Oct 30, 2016 · 11 comments
Closed

TripAdvisor crashes Brave #5264

jonathansampson opened this issue Oct 30, 2016 · 11 comments

Comments

@jonathansampson
Copy link
Collaborator

Did you search for similar issues before submitting this one? Yes

Describe the issue you encountered: Navigating to this page crashes Brave

Expected behavior: Brave does not crash

@jaydson
Copy link

jaydson commented Oct 30, 2016

Confirmed, it crashes on Linux too.
I'm running Brave 0.12.7 on Ubuntu 16.10.

First, Ubuntu freezes Brave, than it crashes.

The CPU behaviour during the crash:
screenshot from 2016-10-30 00-45-27

Here's the log (perhaps it can help):
brave crashed with SIGSEGV in strlen()

screenshot from 2016-10-30 00-53-58

@jonathansampson
Copy link
Collaborator Author

jonathansampson commented Oct 30, 2016

TripAdvisor issues an XHR to /MetaPlacementAjax, which passes back an HTML response. The onSuccess method of the XHR (uses MooTools) then inserts this HTML as the innerHTML of a <div> in the document.

Among the injected HTML is an image tag for an image on another domain: https://cache-graphicslib.viator.com. When Brave attempts to load this image, the crash occurs. You can confirm this by the following steps:

  1. Navigate to https://tripadvisor.com
  2. Press F12 and open Brave's console
  3. document.createElement('img').src = 'https://cache-graphicslib.viator.com/graphicslib/thumbs360x240/2855/SITours/kennedy-space-center-day-trip-with-transport-from-orlando-in-orlando-334028.jpg'

Upon running, you'll note that Brave crashes.

This repros even when all shields are down.

@BrendanEich
Copy link
Member

@aekeus can you find the crash report for @jonathansampson ?

/be

@privatzee
Copy link
Contributor

Just going to viator.com will crash. Adblock?

@jonathansampson
Copy link
Collaborator Author

@privatzee And it appears to crash even before the request is made, judging by my Fiddler sessions.

@privatzee
Copy link
Contributor

There were two webcompat cases where turning off cookie protection per the site (that zone privacy site and pinterest) didn't help, but turning off cookie protection globally was an effective workaround. But turning off ABP globally isn't a workaround here, nor turning off everything globally.

It crashes even on plain http, so an OCSP call isn't involved.

@jonathansampson Good catch, and I don't see anything going out with Wireshark either.

@privatzee
Copy link
Contributor

I turned off wifi and it still crashes.

Just got this, if it helps (w7x64):

Problem signature:
Problem Event Name: APPCRASH
Application Name: Brave.exe
Application Version: 1.4.20.0
Application Timestamp: 58101677
Fault Module Name: 4FB8.tmp.node
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 5812b784
Exception Code: c0000005
Exception Offset: 0000000000007ba3
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 1033
Additional Information 1: 6e69
Additional Information 2: 6e6975158d09333bc943cf4028b20019
Additional Information 3: c3a6
Additional Information 4: c3a622f8c91831a3176eb4ee8166b2cb
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt

@privatzee
Copy link
Contributor

privatzee commented Oct 30, 2016

Brave does not get as far as trying to resolve DNS.

On Windows:

  1. in cmd window: ipconfig /flushdns
  2. with Brave, go to http://viator.com and crash
  3. ipconfig /displaydns
  4. no entry for viator.com appears

And a P.S.: putting viator.com in the hosts file doesn't prevent crashing.

@privatzee
Copy link
Contributor

The crashing does not happen in Brave 0.12.3

@bbondy
Copy link
Member

bbondy commented Oct 31, 2016

Should be fixed here:
#5270

Data files will be updated within the day, as of 0.12.8 we are changing that frequency to every 2h btw. No need to get an updated version to get the new data file that will fix the problem.

@bbondy bbondy closed this as completed Oct 31, 2016
@aekeus
Copy link
Member

aekeus commented Oct 31, 2016

Confirmed sites no longer crashing from master after #5270

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants