New issue
Advanced search Search tips

Issue 657843 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 1
Type: Bug



Sign in to add a comment

typeface. Could not find any font: sans, sans in platform_font_linux.cc

Project Member Reported by ClusterFuzz, Oct 20 2016

Issue description

Detailed report: https://cluster-fuzz.appspot.com/testcase?key=4533073036443648

Fuzzer: meacer_extension_apis
Job Type: linux_msan_chrome
Platform Id: linux

Crash Type: CHECK failure
Crash Address: 
Crash State:
  typeface. Could not find any font: sans, sans in platform_font_linux.cc
  gfx::CreateSkTypeface
  gfx::PlatformFontLinux::PlatformFontLinux
  
Regressed: https://cluster-fuzz.appspot.com/revisions?job=linux_msan_chrome&range=320284:320471

Minimized Testcase (8.65 Kb): https://cluster-fuzz.appspot.com/download/AMIfv97uCDDo_gjXHKjkWMqTxUquyQSHQXkvUfPYh1NWTyHNNC0mFSvYfDGo_1F5bycnt8bnZplgnM7Kgsh-LR1WVdT7hwW8uZi27iQRFF0o7F2pZ0edUc0-E4ts30qzWirefazKwfot2VqXKL0NS-HZIlWVXgjgqA?testcase_id=4533073036443648

Issue filed automatically.

See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.
 

Comment 1 by ajha@chromium.org, Oct 21 2016

Cc: ajha@chromium.org
Components: Blink>Fonts
Labels: M-54
Owner: fmalita@chromium.org
Status: Assigned (was: Untriaged)
Suspected CLs	Stack does not contain enough information for Findit to run..

Based on the code search on 'platform_font_linux.cc' suspecting: https://codereview.chromium.org/2066323002.

fmalita@: Could you please take a look at this.

Thank you!

Cc: drott@chromium.org fmalita@chromium.org
Owner: bunge...@chromium.org
Check failed: typeface. Could not find any font: sans, sans

Font resolution/config problem?

https://codereview.chromium.org/2066323002 is just an API refactoring, it shouldn't have functional side effects.

Plus this doesn't look like a regression, I've rerun the CF bisect unsuccessfully.

Maybe the CF bot has font config issues?

Ben/Dominik, do you mind taking a look at this and see if it rings any bells?
It looks like gfx::{}::CreateSkTypeface uses 'sans' as a last resort font name. That in and of itself seems suspicious, as it should use nullptr as the very last resort font name, since there is no guarantee that the FontConfig configuration has a font pattern with 'sans' as a name.

That being said, the SkFontConfigInterface_direct implementation currently uses 'default' FontConfig instance, and it is know that this isn't entirely thread safe at start up but we've never seen an actual live issue with it yet. It's something that's known to need to be fixed.

Even after all of that, it really looks like FontConfig just isn't configured right somehow. This sort of error should only really happen if there are zero fonts available.

That's my first pass look at this, I'll have to take a better look later.

Comment 4 by drott@chromium.org, Oct 21 2016

Components: -Blink>Fonts UI>Browser
Project Member

Comment 5 by sheriffbot@chromium.org, Nov 22 2016

Labels: -Restrict-View-EditIssue
Removing EditIssue view restrictions from ClusterFuzz filed bugs. If you believe that this issue should still be restricted, please reapply the label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 6 by joone....@intel.com, Dec 20 2016

I saw this problem with the below build arguments:

use_ozone= true
ozone_platform_wayland= true
ozone_platform_x11 = true
ozone_auto_platforms = false
enable_package_mash_services = true


Project Member

Comment 7 by ClusterFuzz, Feb 10 2017

ClusterFuzz has detected this issue as fixed in range 449231:449250.

Detailed report: https://cluster-fuzz.appspot.com/testcase?key=4533073036443648

Fuzzer: meacer_extension_apis
Job Type: linux_msan_chrome
Platform Id: linux

Crash Type: CHECK failure
Crash Address: 
Crash State:
  typeface. Could not find any font: sans, sans in platform_font_linux.cc
  gfx::CreateSkTypeface
  gfx::PlatformFontLinux::PlatformFontLinux
  
Sanitizer: memory (MSAN)

Regressed: https://cluster-fuzz.appspot.com/revisions?job=linux_msan_chrome&range=319456:319527
Fixed: https://cluster-fuzz.appspot.com/revisions?job=linux_msan_chrome&range=449231:449250

Reproducer Testcase: https://cluster-fuzz.appspot.com/download/AMIfv97uCDDo_gjXHKjkWMqTxUquyQSHQXkvUfPYh1NWTyHNNC0mFSvYfDGo_1F5bycnt8bnZplgnM7Kgsh-LR1WVdT7hwW8uZi27iQRFF0o7F2pZ0edUc0-E4ts30qzWirefazKwfot2VqXKL0NS-HZIlWVXgjgqA?testcase_id=4533073036443648


See https://dev.chromium.org/Home/chromium-security/bugs/reproducing-clusterfuzz-bugs for more information.

If you suspect that the result above is incorrect, try re-doing that job on the test case report page.
Project Member

Comment 8 by ClusterFuzz, Feb 10 2017

Labels: ClusterFuzz-Verified
Status: Verified (was: Assigned)
ClusterFuzz testcase 4533073036443648 is verified as fixed, so closing issue.

If this is incorrect, please add ClusterFuzz-Wrong label and re-open the issue.

Sign in to add a comment