Shipped Firefox doesn't start after Ubuntu upgrade from 10.04 to 12.04 (amd64)

Asked by Osvaldas Balandis

Shipped (apt-get install) Firefox doesn't start after Ubuntu upgrade from 10.04 to 12.04 (amd64).
When starting in terminal firefox ends with message:
  Segmentation fault (core dumped)

Reinstalled (apt-get remove --purge) firefox several times. Finally reinstalled even Unity and GNOME.
No progress.

Build (dpkg-buildpackage) from shipped (apt-get source) finished with library dependency check error.
Alternative build from mozilla source repository (nighty) - starts with no problems.

Is there any other way to repair firefox install from Ubuntu distribution channels?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu firefox Edit question
Assignee:
No assignee Edit question
Solved by:
Osvaldas Balandis
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you please give the output of:

lsb_release -a; uname -a; apt-cache policy firefox

Thanks

Revision history for this message
Osvaldas Balandis (orakulaz) said :
#2

Yes, sure:

osvaldas@babilonas24:~$ lsb_release -a; uname -a; apt-cache policy firefox
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
Linux babilonas24 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
firefox:
  Installed: 12.0+build1-0ubuntu0.12.04.1
  Candidate: 12.0+build1-0ubuntu0.12.04.1
  Version table:
 *** 12.0+build1-0ubuntu0.12.04.1 0
        500 http://lt.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+build1-0ubuntu4 0
        500 http://lt.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

What id output if you run:

firefox

In terminal?

Revision history for this message
Osvaldas Balandis (orakulaz) said :
#4

osvaldas@babilonas24:~$ firefox
Segmentation fault (core dumped)

Even more diagnostics:

osvaldas@babilonas24:~$ firefox --debug
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/lib/firefox/firefox...Reading symbols from /usr/lib/debug/usr/lib/firefox/firefox...done.
done.
(gdb) run
Starting program: /usr/lib/firefox/firefox
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x0000000000621646 in ?? ()
(gdb) backtrace
#0 0x0000000000621646 in ?? ()
#1 0x00007ffff44ced33 in ~pair (this=0x7fffffffbd30, __in_chrg=<optimized out>) at /usr/include/c++/4.6/bits/stl_pair.h:87
#2 operator[] (__k=..., this=0x7ffff6c52610) at /usr/include/c++/4.6/bits/stl_map.h:453
#3 base::StatisticsRecorder::RegisterOrDeleteDuplicate (histogram=0x7ffff6c2a160) at /build/buildd/firefox-12.0+build1/build-tree/mozilla/ipc/chromium/src/base/histogram.cc:1044
#4 0x00007ffff44cf3f2 in base::LinearHistogram::FactoryGet (name=..., minimum=1, maximum=100, bucket_count=12, flags=base::Histogram::kUmaTargetedHistogramFlag)
    at /build/buildd/firefox-12.0+build1/build-tree/mozilla/ipc/chromium/src/base/histogram.cc:809
#5 0x00007ffff42b9e0f in HistogramGet (result=0x7fffffffbe38, histogramType=<optimized out>, bucketCount=12, max=100, min=1, name=<optimized out>)
    at /build/buildd/firefox-12.0+build1/build-tree/mozilla/toolkit/components/telemetry/Telemetry.cpp:182
#6 (anonymous namespace)::HistogramGet (name=<optimized out>, min=1, max=100, bucketCount=12, histogramType=<optimized out>, result=0x7fffffffbe38)
    at /build/buildd/firefox-12.0+build1/build-tree/mozilla/toolkit/components/telemetry/Telemetry.cpp:162
#7 0x00007ffff42b9ea5 in (anonymous namespace)::GetHistogramByEnumId (id=mozilla::Telemetry::EARLY_GLUESTARTUP_HARD_FAULTS, ret=0x7fffffffbe78)
    at /build/buildd/firefox-12.0+build1/build-tree/mozilla/toolkit/components/telemetry/Telemetry.cpp:205
#8 0x00007ffff42ba14e in Accumulate (aSample=0, aHistogram=<optimized out>) at /build/buildd/firefox-12.0+build1/build-tree/mozilla/toolkit/components/telemetry/Telemetry.cpp:782
#9 mozilla::Telemetry::Accumulate (aHistogram=<optimized out>, aSample=0) at /build/buildd/firefox-12.0+build1/build-tree/mozilla/toolkit/components/telemetry/Telemetry.cpp:776
#10 0x0000555555555f38 in main (argc=1, argv=0x7fffffffe0e8) at /build/buildd/firefox-12.0+build1/build-tree/mozilla/browser/app/nsBrowserApp.cpp:283
(gdb)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Try:

mv ~/.mozilla/firefox ~/.mozilla/firefox_old

Then run the browser, is it ok?

Revision history for this message
Osvaldas Balandis (orakulaz) said :
#6

Nope - still got segfault.

But later on I found the problem, because another crash on startup - appearently had the same problem with the chromium-browser. Message in the terminal was somehow more informative:

osvaldas@babilonas24:~$ chromium-browser
/usr/lib/chromium-browser/chromium-browser: symbol lookup error: /usr/lib/chromium-browser/chromium-browser: undefined symbol: FT_Get_Advance

Searched internet and found solution for this problem: http://code.google.com/p/chromium/issues/detail?id=18239
Had old version libfreetype.so in the /usr/local/lib too. Removed it and successfully fired both browsers.

Thank you for the support.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

All I can suggest is report a bug