From: Alexey Gladkov <legion@altlinux.ru>
To: ALT Linux Sisyphus mailing list <sisyphus@lists.altlinux.org>
Subject: [sisyphus] firefox or how to be red-eyed
Date: Sun, 3 Nov 2019 22:47:49 +0100
Message-ID: <20191103214749.732rcv6gpiqilbvp@localhost> (raw)
Приветствую!
Недавно я убил несколько дней на расследование почему у меня новый firefox
перешёл полурабочее состояние. Чтобы вы поняли масштаб развала симптомы
были: firefox грузился, страницы нормально, но в urlbar не работает
autocompletion, автоматическая подстановка http(s)?:// к домену, поиск из
urlbar тоже не работает ... возможно что-то ещё.
Расследование завело довольно глубоко.
Поиск не работал из-за того, что firefox не мог определить локаль системы.
В about:support было:
Application Settings
Requested Locales ["ru-RU"]
Available Locales ["en-US"]
App Locales ["und","en-US"]
Regional Preferences ["und","en-US"]
Default Locale "und"
Operating System
System Locales ["ru-RU"]
Regional Preferences ["ru-RU"]
Это приводило к тому, что firefox не видел ни одного поискового движка и
не мог ничего искать.
Ключевым моментом стали редкие сообщения в логе firefox:
Unix error 0 during operation makeDir on file /path/to/something (No
error information)
Правда они бывают не только про makeDir, но и про другие файловые
операции. Об этом нужно иногда догадываться т.к. операция может быть
DirectoryIterator или move. В этом сообщении 0 это errno.
А теперь собственно причина:
В модуле, который является мостом между JavaScript и libc сделано
следующее[1]:
// Open libc
var libc = new SharedAll.Library(
"libc",
"libc.so",
"libSystem.B.dylib",
"a.out"
);
На машине:
$ l /lib*/libc.so*
lrwxrwxrwx 1 root root 12 окт 10 17:46 /lib64/libc.so.6 -> libc-2.27.so
lrwxrwxrwx 1 root root 18 апр 28 2015 /lib64/libc.so.1 -> libc-musl-1.1.3.so
Если удалить пакет musl, то firefox "волшебным" образом начинает работать.
На эту особенность наступают периодически в разное время в разных
дистрибутивах. Симптомы, которые я наблюдал, упоминаются в разных
багзиллах и разных багах[2] мозиллы.
[1] https://hg.mozilla.org/releases/mozilla-release/file/tip/toolkit/components/osfile/modules/osfile_unix_allthreads.jsm#l48
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1042134#c31
--
Rgrds, legion
next reply other threads:[~2019-11-03 21:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-03 21:47 Alexey Gladkov [this message]
2019-11-04 7:05 ` Sergey
2019-11-04 8:46 ` Alexey Gladkov
2019-11-04 16:01 ` Шенцев Алексей
2019-11-04 16:23 ` Alexey Gladkov
2019-11-05 19:54 ` Шенцев Алексей
2019-11-04 16:48 ` Anton Farygin
2019-11-04 17:08 ` Alexey Gladkov
2019-11-04 20:56 ` [sisyphus] [JT] " Michael Shigorin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191103214749.732rcv6gpiqilbvp@localhost \
--to=legion@altlinux.ru \
--cc=sisyphus@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git