- Electron version: 1.4.3
- Operating system: MacOS 10.11.6

When setCertificateVerifyProc is used, Electron will crash as soon as the callback method is called. Crash log is attached and I've created a very simple project to demonstrate how this can be reproduced: https://github.com/gregnolle/electron-cert-verify-demo

[Electron_2016-10-15-120129_Gregs-iMac.crash.txt](https://github.com/electron/electron/files/531093/Electron_2016-10-15-120129_Gregs-iMac.crash.txt)

atom/browser/atom_browser_context.cc
const std::string& partition, bool in_memory,
    const base::DictionaryValue& options)
    : brightray::BrowserContext(partition, in_memory),
      network_delegate_(new AtomNetworkDelegate),
      cookie_delegate_(new AtomCookieDelegate) {
  
  Browser* browser = Browser::Get();
  std::string name = RemoveWhitespace(browser->GetName());
  std::string user_agent;
  if (name == ATOM_PRODUCT_NAME) {
    user_agent = "Chrome/" CHROME_VERSION_STRING " "
                 ATOM_PRODUCT_NAME "/" ATOM_VERSION_STRING;
  } else {
    user_agent = base::StringPrintf(
        "%s/%s Chrome/%s " ATOM_PRODUCT_NAME "/" ATOM_VERSION_STRING,
        name.c_str(),
        browser->GetVersion().c_str(),
        CHROME_VERSION_STRING);
  }
  user_agent_ = content::BuildUserAgentFromProduct(user_agent);
  
  use_cache_ = true;
  options.GetBoolean("cache", &use_cache_);
  
  InitPrefs();
}
AtomBrowserContext::~AtomBrowserContext() {