← Back to team overview

desktop-packages team mailing list archive

[Bug 1405209] Re: Thunderbird crashes on IMAP search for folder in NS_MsgHashIfNecessary.

 

When debugging it's sometime useful to have two similar situations, one
that works and one that fails.

We have that here.

Two machines :

* same brand (Asus) but not same model
* affected one is Ubuntu 12.04, working one is Ubuntu 14.04
* same WiFi network
* same Thunderbird version (from their regular Ubuntu packages, details below)
* accessing same IMAP provider, same IMAP account
* nothing changed recently on either (only location and thus wifi changed yesterday)
* working one has a thundebird profile with 9 "mail servers", failing one has 2 (including "local folders").
* one crashes when connecting to IMAP, one works.


Any hint appreciated. Thank you for your attention.


Working machine:

LC_ALL=C apt-cache policy thunderbird

thunderbird:
  Installed: 1:31.3.0+build1-0ubuntu0.14.04.1
  Candidate: 1:31.3.0+build1-0ubuntu0.14.04.1
  Version table:
 *** 1:31.3.0+build1-0ubuntu0.14.04.1 0
        500 http://fr.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
        100 /var/lib/dpkg/status
     1:24.4.0+build1-0ubuntu1 0
        500 http://fr.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/1405209

Title:
  Thunderbird crashes on IMAP search for folder in
  NS_MsgHashIfNecessary.

Status in thunderbird package in Ubuntu:
  New

Bug description:
  # Context

  On a Ubuntu 12.04 machine used by several users (two main users),
  Thunderbird has been used for years on various WiFi networks. Each
  user has his Unix account, one thunderbird profile, using IMAP server.
  Users don't connect to same e-mail provider.

  Yesterday evening, we moved to a usual alternate location with its own
  wifi.

  # Observed behavior

  Now one user has thunderbird crashing whenever it searches for folders, and that happens at startup, before user has a change to click anywhere. Thundebird only shows a window, in status bar a message like "looking for folders" with a progress bar at about 10-15%, then crashes.
  The user can access their mailbox normally via a webmail supplied by the IMAP provider. Folder names look normal there.

  Other user is totally unaffected by the problem.

  Reproducible: always.

  Expected behavior it obvious: no crash, user can browse their folders.

  # Additional information

  * Safe mode does not change anything, whatever the boxes checked
  (addons, toolbars).

  * Cutting off internet access allows to start thunderbird without
  immediate crash.

  * Changing these settings to false (they were true) is not enough to prevent crashes on startup with network access.
  user_pref("mail.server.server1.login_at_startup", false);
  user_pref("mail.startup.enabledMailCheckOnce", false);

  * In preference, unticking "sync messages for this account" does not
  prevent crash on startup.

  # Debug information

  Thunderbird crash reporter worked. I clicked yes when offered and typed a short sentence. This way I have submitted 21 crash reports today.
  Following https://wiki.ubuntu.com/MozillaTeam/Bugs I got stack traces that I can attach.

  package is 1:31.3.0+build1-0ubuntu0.12.04.1

  I don't know if source matches http://dxr.mozilla.org/comm-
  central/source/mailnews/base/util/nsMsgUtils.cpp, but from the top of
  the stack tracs it looks like MsgHashIfNecessary() was supplied with
  an empty string, which may be the cause of crash.

  #0  NS_MsgHashIfNecessary (name=...) at /build/buildd/thunderbird-31.3.0+build1/mailnews/base/util/nsMsgUtils.cpp:446
          lastIndex = -1
          illegalCharacterIndex = <optimized out>
          hashedname = "\000`\271\377\377\377\177\000"
          keptLength = <optimized out>


  Crash ID: bp-0744c6e8-13b6-4ff1-85ea-083022141223
  Crash ID: bp-0f5ff99f-ae29-4300-b14c-5d3ec2141223
  Crash ID: bp-1bc04187-d16c-428c-b226-02fa42141223
  Crash ID: bp-1f928c7d-822b-43ad-9893-96c4f2141223
  Crash ID: bp-2cb3dc60-f364-4836-82a1-1a86f2141223
  Crash ID: bp-2e400b3c-aeac-48ec-8f18-33fbe2141223
  Crash ID: bp-33c39df8-2565-4af4-bc57-d2ced2141223
  Crash ID: bp-3e9b7666-1a2f-409e-beff-996e62141223
  Crash ID: bp-68e88235-dc96-4b01-a803-9808f2141223
  Crash ID: bp-71e10918-f8c5-41a6-a41f-91eca2141223
  Crash ID: bp-9ee0e84a-217a-417e-b78c-501d82141223
  Crash ID: bp-a173490f-5d76-4303-9e74-e72812141223
  Crash ID: bp-b4f12af0-eb61-43d2-9939-ac11a2141223
  Crash ID: bp-b5e9cf00-7da8-4dda-b172-964082141223
  Crash ID: bp-b96e3d2c-dbaf-473e-b628-ba4f12141223
  Crash ID: bp-bb1815ce-bd07-4809-9971-614ee2141223
  Crash ID: bp-c42a1d6c-102e-4eee-abc6-08f0d2141223
  Crash ID: bp-c9aa9ffc-183e-437d-b534-1a9c12141223
  Crash ID: bp-d916ad64-68ae-4823-8d38-4f3912141223
  Crash ID: bp-dc99e352-05ba-4819-95bc-0bd502141223
  Crash ID: bp-e2d83623-5d39-4480-add2-ea8d72141223


  lsb_release -rd

  Description:	Ubuntu 12.04.5 LTS
  Release:	12.04

  LC_ALL=C apt-cache policy thunderbird

  thunderbird:
    Installed: 1:31.3.0+build1-0ubuntu0.12.04.1
    Candidate: 1:31.3.0+build1-0ubuntu0.12.04.1
    Version table:
   *** 1:31.3.0+build1-0ubuntu0.12.04.1 0
          500 http://fr.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
          500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
          100 /var/lib/dpkg/status
       11.0.1+build1-0ubuntu2 0
          500 http://fr.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: thunderbird 1:31.3.0+build1-0ubuntu0.12.04.1
  ProcVersionSignature: Ubuntu 3.2.0-74.109-generic 3.2.64
  Uname: Linux 3.2.0-74-generic x86_64
  NonfreeKernelModules: nvidia
  AddonCompatCheckDisabled: False
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
  ApportVersion: 2.0.1-0ubuntu17.8
  Architecture: amd64
  ArecordDevices:
   **** List of CAPTURE Hardware Devices ****
   card 0: Intel [HDA Intel], device 0: ALC663 Analog [ALC663 Analog]
     Subdevices: 1/1
     Subdevice #0: subdevice #0
  BuildID: 20141128200729
  CRDA:
   country FR:
   	(2402 - 2482 @ 40), (N/A, 20)
   	(5170 - 5250 @ 40), (N/A, 20)
   	(5250 - 5330 @ 40), (N/A, 20), DFS
   	(5490 - 5710 @ 40), (N/A, 27), DFS
  Card0.Amixer.info:
   Card hw:0 'Intel'/'HDA Intel at 0xfbff8000 irq 48'
     Mixer name	: 'Realtek ALC663'
     Components	: 'HDA:10ec0663,10431463,00100001'
     Controls      : 29
     Simple ctrls  : 15
  Card1.Amixer.info:
   Card hw:1 'NVidia'/'HDA NVidia at 0xfde7c000 irq 16'
     Mixer name	: 'Nvidia GPU 0a HDMI/DP'
     Components	: 'HDA:10de000a,10de0101,00100100'
     Controls      : 24
     Simple ctrls  : 4
  Channel: Unavailable
  Date: Tue Dec 23 15:32:55 2014
  ForcedLayersAccel: False
  IfupdownConfig:
   auto lo
   iface lo inet loopback
  IncompatibleExtensions:
   English (GB) Language Pack - langpack-en-GB@xxxxxxxxxxxxxxxxxxxxxxx
   Français Language Pack - langpack-fr@xxxxxxxxxxxxxxxxxxxxxxx
   Thunderbird (default) - {972ce4c6-7e08-4474-a285-3208198ce6fd}
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120410)
  IpRoute:
   default via 192.168.47.1 dev wlan0  proto static 
   169.254.0.0/16 dev wlan0  scope link  metric 1000 
   192.168.47.0/24 dev wlan0  proto kernel  scope link  src 192.168.47.4  metric 2
  MarkForUpload: True
  MostRecentCrashID: bp-1f928c7d-822b-43ad-9893-96c4f2141223
  PrefSources: prefs.js
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=fr_FR.UTF-8
   SHELL=/bin/bash
  Profiles: Profile0 (Default) - LastVersion=31.3.0/20141128200729 (In use)
  RelatedPackageVersions:
   rhythmbox-mozilla 2.96-0ubuntu4.3
   totem-mozilla     3.0.1-0ubuntu21.1
  RfKill:
   0: phy0: Wireless LAN
   	Soft blocked: no
   	Hard blocked: no
  RunningIncompatibleAddons: True
  SourcePackage: thunderbird
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 09/09/2009
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 202
  dmi.board.asset.tag: ATN12345678901234567
  dmi.board.name: N71Vn
  dmi.board.vendor: ASUSTeK Computer Inc.
  dmi.board.version: 1.0
  dmi.chassis.asset.tag: ATN12345678901234567
  dmi.chassis.type: 10
  dmi.chassis.vendor: ASUSTeK Computer Inc.
  dmi.chassis.version: 1.0
  dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr202:bd09/09/2009:svnASUSTeKComputerInc.:pnN71Vn:pvr1.0:rvnASUSTeKComputerInc.:rnN71Vn:rvr1.0:cvnASUSTeKComputerInc.:ct10:cvr1.0:
  dmi.product.name: N71Vn
  dmi.product.version: 1.0
  dmi.sys.vendor: ASUSTeK Computer Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/1405209/+subscriptions


References