Project: chromium Issues People Development process History Sign in
New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 4 users
Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Sep 2010
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug
M-6

Restricted
  • Only users with EditIssue permission may comment.



Sign in to add a comment
Segmentation fault just after launching with new Ubuntu font installed
Reported by r2d2.art...@gmail.com, Aug 5 2010 Back to list
Chrome Version       : Chromium 6.0.480.0 Ubuntu 10.04
URLs (if applicable) : N/A
Other browsers tested: N/A
What steps will reproduce the problem?
1. Run chromium-browser from terminal

What is the expected result?
A segmentation fault occurs

What happens instead?
The browser should launch

Please provide any additional information below. Attach a screenshot if
possible.
The browser just won't open. I've tried deleting my settings, but it just recreates the defaults and then crashes. However, it can be run from another user.

Running a debug, here are the results:
//
$ gdb /usr/lib/chromium-browser/chromium-browser 
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 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 "i486-linux-gnu".
Para las instrucciones de informe de errores, vea:
<http://www.gnu.org/software/gdb/bugs/>...
Leyendo símbolos desde /usr/lib/chromium-browser/chromium-browser...Leyendo símbolos desde /usr/lib/debug/usr/lib/chromium-browser/chromium-browser...hecho.
hecho.
(gdb) run
Starting program: /usr/lib/chromium-browser/chromium-browser 
[Thread debugging using libthread_db enabled]
[Nuevo Thread 0xb7e17b70 (LWP 12080)]
[Nuevo Thread 0xb7616b70 (LWP 12081)]
[Nuevo Thread 0xb6c12b70 (LWP 12082)]
[Nuevo Thread 0xb6411b70 (LWP 12083)]
[Nuevo Thread 0xb5c10b70 (LWP 12084)]
[Nuevo Thread 0xb540fb70 (LWP 12085)]
[Nuevo Thread 0xb4c0eb70 (LWP 12086)]
[Nuevo Thread 0xb440db70 (LWP 12087)]
[Nuevo Thread 0xb3c0cb70 (LWP 12088)]
[Nuevo Thread 0xb3bebb70 (LWP 12089)]
[Nuevo Thread 0xb33eab70 (LWP 12090)]
[Nuevo Thread 0xb2bd5b70 (LWP 12091)]
[Thread 0xb2bd5b70 (LWP 12091) terminado]
Attempting to load the system libmoon 
[Nuevo Thread 0xb2bd5b70 (LWP 12094)]
[Thread 0xb2bd5b70 (LWP 12094) terminado]
[Nuevo Thread 0xb2bd5b70 (LWP 12098)]
[Nuevo Thread 0x431fb70 (LWP 12099)]

Program received signal SIGSEGV, Segmentation fault.
sk_atomic_inc (addr=0x4) at third_party/skia/src/ports/SkThread_pthread.cpp:12
12	third_party/skia/src/ports/SkThread_pthread.cpp: No existe el archivo o directorio.
	in third_party/skia/src/ports/SkThread_pthread.cpp
(gdb)
//
(some of the strings are in Spanish, sorry about that)
No matter if I reinstall it, it won't open from my user.
 
Labels: Crash FeedbackRequested OS-Linux Mstone-X
Please try a newer build first.

In gdb, you need to type the bt and get the entire backtrace.

Also when you report the version number, please include the revision number as well.
Here's the backtrace:
(gdb) backtrace 
#0  sk_atomic_inc (addr=0x4)
    at third_party/skia/src/ports/SkThread_pthread.cpp:12
#1  0x0880a21c in SkRefCnt::ref (this=0xbfffdd6c, tf=0x0, font_family=..., 
    font_size=8, style=1) at ./third_party/skia/include/core/SkRefCnt.h:50
#2  Font (this=0xbfffdd6c, tf=0x0, font_family=..., font_size=8, style=1)
    at gfx/font_skia.cc:78
#3  0x0880a2c3 in gfx::Font::DeriveFont (this=0xaad7440, size_delta=0, style=1)
    at gfx/font_skia.cc:165
#4  0x0870efe0 in ResourceBundle::LoadFontsIfNecessary (this=0xa7f8770)
    at app/resource_bundle.cc:175
#5  0x0870f73a in ResourceBundle::GetFont (this=0xa7f8770, 
    style=ResourceBundle::BaseFont) at app/resource_bundle.cc:193
#6  0x083e4d74 in TabRendererGtk::InitResources ()
    at chrome/browser/gtk/tabs/tab_renderer_gtk.cc:1079
#7  0x083e62df in TabRendererGtk::GetMinimumUnselectedSize ()
    at chrome/browser/gtk/tabs/tab_renderer_gtk.cc:421
#8  0x083e6972 in TabRendererGtk::GetStandardSize ()
    at chrome/browser/gtk/tabs/tab_renderer_gtk.cc:440
#9  0x08143565 in TabStripGtk (this=0xaaaf120, model=0xa8087bc, 
    window=0xaac7dd0) at chrome/browser/gtk/tabs/tab_strip_gtk.cc:694
#10 0x080ff406 in BrowserWindowGtk::InitWidgets (this=0xaac7dd0)
    at chrome/browser/gtk/browser_window_gtk.cc:1545
#11 0x08102ae8 in BrowserWindowGtk (this=0xaac7dd0, browser=0xa808780)
    at chrome/browser/gtk/browser_window_gtk.cc:375
#12 0x083c7e14 in BrowserWindow::CreateBrowserWindow (browser=0xa808780)
    at chrome/browser/gtk/browser_window_factory_gtk.cc:12
#13 0x0830d39f in Browser::CreateBrowserWindow (this=0xa808780)
    at chrome/browser/browser.cc:351
#14 0x0830ef84 in Browser::Create (profile=0xa7fe100)
    at chrome/browser/browser.cc:298
#15 0x08320d0d in BrowserInit::LaunchWithProfile::OpenTabsInBrowser (
    this=0xbfffe32c, browser=0x0, process_startup=true, tabs=...)
    at chrome/browser/browser_init.cc:742
#16 0x0832100f in BrowserInit::LaunchWithProfile::OpenURLsInBrowser (
    this=0xbfffe32c, browser=0x0, process_startup=true, urls=...)
    at chrome/browser/browser_init.cc:727
#17 0x0832172d in BrowserInit::LaunchWithProfile::ProcessLaunchURLs (
    this=0xbfffe32c, process_startup=true, urls_to_open=...)
    at chrome/browser/browser_init.cc:674
#18 0x0832210a in BrowserInit::LaunchWithProfile::Launch (this=0xbfffe32c, 
    profile=0xa7fe100, process_startup=false)
    at chrome/browser/browser_init.cc:535
#19 0x08322ac4 in BrowserInit::LaunchBrowser (this=0xbfffe81c, 
    command_line=..., profile=0xa7fe100, cur_dir=..., process_startup=false, 
    return_code=0xbfffe850) at chrome/browser/browser_init.cc:399
#20 0x08322eed in BrowserInit::ProcessCmdLineImpl (command_line=..., 
    cur_dir=..., process_startup=true, profile=0xa7fe100, 
    return_code=0xbfffe850, browser_init=0xbfffe81c)
    at chrome/browser/browser_init.cc:1051
#21 0x08074a01 in BrowserInit::Start (parameters=...)
    at ./chrome/browser/browser_init.h:47
#22 BrowserMain (parameters=...) at chrome/browser/browser_main.cc:1324
#23 0x0806f9cb in ChromeMain (argc=1, argv=0xbffff494)
    at chrome/app/chrome_dll_main.cc:899
#24 0x0806fb52 in main (argc=1, argv=0xbffff494)
    at chrome/app/chrome_exe_main_gtk.cc:50
(gdb)

How do I find the revision number if I can't load the program?
Labels: -Area-Undefined -FeedbackRequested -Mstone-X Area-Internals Mstone-7
Status: Available
dpkg -l chromium-browser ?

It looks like a font issue. SkTypeface::CreateFromName() is returning NULL. If it works for other users on the same computer, then you might have some custom settings in ~/.fonts.conf or ~/.fonts
dpkg says I'm running chromium-browser 6.0.486.0~svn2

Let me check about the fonts; I recently installed a new font, but don't remeber which one...
I wonder if there's anything we can do here. In CreateFont we try a fallback and if that doesn't work we force a crash with an error message telling you what font it failed to find.
I found the problem, and it's not on chromium-browser. The guilty is the new UbuntuBeta font, which for some reason crashes Chromium.

Thank you for your help.
I found the problem, and it's not on chromium-browser. The guilty is the new UbuntuBeta font, which for some reason crashes Chromium.

Thank you for your help.
Comment 8 by evan@chromium.org, Aug 7 2010
Labels: -Mstone-7 Mstone-6
Status: Assigned
Summary: Segmentation fault just after launching with new Ubuntu font installed (was: NULL)
Probably need to fix this sooner rather than later.
Comment 9 by agl@chromium.org, Aug 9 2010
Is this because the Ubuntu font becomes the default, but doesn't include a bold version? I think that would trigger this. (To see, note that app/resource_bundle.cc:175 is in the call stack.)
Comment 10 by Deleted ...@, Aug 10 2010
Correct, only Regular was available until yesterday (2010-08-09).  Since then, Regular/Italic/Bold/BoldItalic are available.  So it's probably down to Chromium making the presumption that a bold variant is available and not checking before attempting to use it.
Comment 11 by f...@sofaraway.org, Aug 27 2010
Also reported here: https://bugs.launchpad.net/bugs/623868

Comment 12 by f...@sofaraway.org, Sep 13 2010
could we do something to prevent the crash? ubuntu 10.10 is in beta freeze and i'm still getting several crash reports a day for this.
Comment 13 by agl@chromium.org, Sep 13 2010
I thought that this would go away when the bold version of the font was included. If not, then I'd probably need the font package in question to fix it.
Comment 14 by f...@sofaraway.org, Sep 13 2010
I don't have it myself, but apparently, a lot of people have it, maybe it's an old copy but anyway, a crash loading a random font is not good.

I'll try to get of copy of those crashy fonts (yet i think they were private at that point, not sure though)
Comment 15 by Deleted ...@, Sep 13 2010
For other people's reference:

  https://wiki.ubuntu.com/Ubuntu_Font_Family#Howto

fta: do you have contact information for any of the people reporting the crashes.  Are they the same machines repeatedly?

I wonder what version of the Font Family they are running.  In theory there are ~1,000 accounts with access to the phased beta font packages so far and the updates via the PPA mean (again in theory) that there /shouldn't/ be stale/superseded versions floating around.

Of course the people getting the crashes might not be getting the .ttf files via the PPA...  Hmmm.
Comment 16 by agl@chromium.org, Sep 16 2010
Status: WontFix
I've tried installing several versions of this font and can't make anything crash. The code referenced in the bug report has changed around a fair bit also, so the crash may have been cleaned up during that.
If you can't make it crash, then it should be marked as Fixed and not as WontFix
Comment 18 by agl@chromium.org, Sep 16 2010
@r2d2.art2005 I don't really disagree, but the description for "WontFix" includes "Cannot reproduce" so I picked that. I admit that "WontFix" is a bad name for this case.
Labels: -Crash bulkmove Stability-Crash
Chrome Version       : Chromium 6.0.480.0 Ubuntu 10.04
URLs (if applicable) : N/A
Other browsers tested: N/A
What steps will reproduce the problem?
1. Run chromium-browser from terminal

What is the expected result?
A segmentation fault occurs

What happens instead?
The browser should launch

Please provide any additional information below. Attach a screenshot if
possible.
The browser just won't open. I've tried deleting my settings, but it just recreates the defaults and then crashes. However, it can be run from another user.

Running a debug, here are the results:
//
$ gdb /usr/lib/chromium-browser/chromium-browser 
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type &quot;show copying&quot;
and &quot;show warranty&quot; for details.
This GDB was configured as &quot;i486-linux-gnu&quot;.
Para las instrucciones de informe de errores, vea:
&lt;http://www.gnu.org/software/gdb/bugs/&gt;...
Leyendo símbolos desde /usr/lib/chromium-browser/chromium-browser...Leyendo símbolos desde /usr/lib/debug/usr/lib/chromium-browser/chromium-browser...hecho.
hecho.
(gdb) run
Starting program: /usr/lib/chromium-browser/chromium-browser 
[Thread debugging using libthread_db enabled]
[Nuevo Thread 0xb7e17b70 (LWP 12080)]
[Nuevo Thread 0xb7616b70 (LWP 12081)]
[Nuevo Thread 0xb6c12b70 (LWP 12082)]
[Nuevo Thread 0xb6411b70 (LWP 12083)]
[Nuevo Thread 0xb5c10b70 (LWP 12084)]
[Nuevo Thread 0xb540fb70 (LWP 12085)]
[Nuevo Thread 0xb4c0eb70 (LWP 12086)]
[Nuevo Thread 0xb440db70 (LWP 12087)]
[Nuevo Thread 0xb3c0cb70 (LWP 12088)]
[Nuevo Thread 0xb3bebb70 (LWP 12089)]
[Nuevo Thread 0xb33eab70 (LWP 12090)]
[Nuevo Thread 0xb2bd5b70 (LWP 12091)]
[Thread 0xb2bd5b70 (LWP 12091) terminado]
Attempting to load the system libmoon 
[Nuevo Thread 0xb2bd5b70 (LWP 12094)]
[Thread 0xb2bd5b70 (LWP 12094) terminado]
[Nuevo Thread 0xb2bd5b70 (LWP 12098)]
[Nuevo Thread 0x431fb70 (LWP 12099)]

Program received signal SIGSEGV, Segmentation fault.
sk_atomic_inc (addr=0x4) at third_party/skia/src/ports/SkThread_pthread.cpp:12
12	third_party/skia/src/ports/SkThread_pthread.cpp: No existe el archivo o directorio.
	in third_party/skia/src/ports/SkThread_pthread.cpp
(gdb)
//
(some of the strings are in Spanish, sorry about that)
No matter if I reinstall it, it won't open from my user.
Project Member Comment 20 by bugdroid1@chromium.org, Oct 13 2012
Labels: Restrict-AddIssueComment-Commit
This issue has been closed for some time. No one will pay attention to new comments.
If you are seeing this bug or have new data, please click New Issue to start a new bug.
Project Member Comment 21 by bugdroid1@chromium.org, Mar 10 2013
Labels: -Area-Internals -Mstone-6 Cr-Internals M-6
Project Member Comment 22 by bugdroid1@chromium.org, Mar 13 2013
Labels: -Restrict-AddIssueComment-Commit Restrict-AddIssueComment-EditIssue
Sign in to add a comment