<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>32247</bug_id>
          
          <creation_ts>2016-07-05 09:47:34 +0300</creation_ts>
          <short_desc>При старте браузера, при открытии новой вкладки и переходе по введенному URL получаем экран &quot;Опаньки&quot;</short_desc>
          <delta_ts>2017-01-25 10:51:53 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch p7</product>
          <component>chromium</component>
          <version>не указана</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Анатолий Кирсанов">kiav1976</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          
          
          <qa_contact name="qa-p7@altlinux.org">qa-p7</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>157562</commentid>
    <comment_count>0</comment_count>
    <who name="Анатолий Кирсанов">kiav1976</who>
    <bug_when>2016-07-05 09:47:34 +0300</bug_when>
    <thetext>Достаточно просто запустить Chromium, чтобы увидеть проблему.

KDesktop 7.0.5
chromium 38.0.2125.122-alt0.M70P.1
chromium-pepperflash 1.5.4-alt1

Это консольный вывод при запуске, открытии новой вкладки и попытке перехода на altlinux.ru

$ chromium 
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[6:6:0705/094513:ERROR:nss_util.cc(207)] Error initializing NSS without a persistent database: NSS error code: -8023
[6:6:0705/094513:FATAL:nss_util.cc(209)] nss_error=-8023, os_error=0
[8:8:0705/094513:ERROR:nss_util.cc(207)] Error initializing NSS without a persistent database: NSS error code: -8023
[8:8:0705/094513:FATAL:nss_util.cc(209)] nss_error=-8023, os_error=0
[10:10:0705/094522:ERROR:nss_util.cc(207)] Error initializing NSS without a persistent database: NSS error code: -8023                                                               
[10:10:0705/094522:FATAL:nss_util.cc(209)] nss_error=-8023, os_error=0                                                                                                               
[12:12:0705/094542:ERROR:nss_util.cc(207)] Error initializing NSS without a persistent database: NSS error code: -8023                                                               
[12:12:0705/094542:FATAL:nss_util.cc(209)] nss_error=-8023, os_error=0                                                                                                               
[14:14:0705/094546:ERROR:nss_util.cc(207)] Error initializing NSS without a persistent database: NSS error code: -8023                                                               
[14:14:0705/094546:FATAL:nss_util.cc(209)] nss_error=-8023, os_error=0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157563</commentid>
    <comment_count>1</comment_count>
    <who name="Анатолий Кирсанов">kiav1976</who>
    <bug_when>2016-07-05 14:33:29 +0300</bug_when>
    <thetext>Есть обходной путь - отключение песочницы. Чтобы этот способ работал всегда нужно в редакторе меню KDE чуть поправить команду запуска. Должно быть:

   chromium %U --no-sandbox

Описанная проблема исчезает. Для справки - в консоль при --no-sandbox выдается это:

$ chromium --no-sandbox
     
[8075:8075:0705/131740:ERROR:browser_main_loop.cc(162)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.                                                                                                                                                 
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[8151:8151:0705/131740:ERROR:renderer_main.cc(204)] Running without renderer sandbox
[8075:8075:0705/131740:ERROR:desktop_window_tree_host_x11.cc(1547)] Not implemented reached in void views::DesktopWindowTreeHostX11::MapWindow(ui::WindowShowState)
[8155:8155:0705/131740:ERROR:renderer_main.cc(204)] Running without renderer sandbox
[8170:8170:0705/131740:ERROR:renderer_main.cc(204)] Running without renderer sandbox

Решение предложили на форуме https://forum.altlinux.org/index.php?topic=36985.msg289576#msg289576</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157566</commentid>
    <comment_count>2</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2016-07-05 17:42:44 +0300</bug_when>
    <thetext>Покажите вывод

rpm -q libnss nss-utils
ulimit -n

и запустите chromium --enable-logging=stderr

Одним из вариантов запуска является поднятие лимитов /etc/security/limits.conf:
*             soft    nproc           4096
*             hard    nproc           4096</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157567</commentid>
    <comment_count>3</comment_count>
    <who name="Анатолий Кирсанов">kiav1976</who>
    <bug_when>2016-07-05 18:49:26 +0300</bug_when>
    <thetext>(In reply to comment #2)
&gt; Покажите вывод
&gt; 
&gt; rpm -q libnss nss-utils
&gt; ulimit -n
&gt; 
&gt; и запустите chromium --enable-logging=stderr

Без увеличения лимитов:

kiav@main ~ $ rpm -q libnss nss-utils
libnss-3.24.0-alt0.M70P.1
nss-utils-3.24.0-alt0.M70P.1
kiav@main ~ $ ulimit -n
1024
kiav@main ~ $ chromium --enable-logging=stderr
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[6:6:0705/184801:ERROR:nss_util.cc(207)] Error initializing NSS without a persistent database: NSS error code: -8023
[6:6:0705/184801:FATAL:nss_util.cc(209)] nss_error=-8023, os_error=0
[8:8:0705/184801:ERROR:nss_util.cc(207)] Error initializing NSS without a persistent database: NSS error code: -8023
[8:8:0705/184801:FATAL:nss_util.cc(209)] nss_error=-8023, os_error=0
[3680:3714:0705/184801:WARNING:file_descriptor_set_posix.cc(22)] FileDescriptorSet destroyed with unconsumed descriptors
[3680:3768:0705/184801:WARNING:nss_ssl_util.cc(364)] Unknown SSL error -12218 (SSL_ERROR_ENCRYPTION_FAILURE) mapped to net::ERR_SSL_PROTOCOL_ERROR
[3680:3768:0705/184801:WARNING:nss_ssl_util.cc(364)] Unknown SSL error -12218 (SSL_ERROR_ENCRYPTION_FAILURE) mapped to net::ERR_SSL_PROTOCOL_ERROR
[3680:3768:0705/184801:WARNING:nss_ssl_util.cc(364)] Unknown SSL error -12218 (SSL_ERROR_ENCRYPTION_FAILURE) mapped to net::ERR_SSL_PROTOCOL_ERROR
[3680:3714:0705/184801:WARNING:file_descriptor_set_posix.cc(22)] FileDescriptorSet destroyed with unconsumed descriptors
[3680:3768:0705/184805:WARNING:nss_ssl_util.cc(364)] Unknown SSL error -12218 (SSL_ERROR_ENCRYPTION_FAILURE) mapped to net::ERR_SSL_PROTOCOL_ERROR
[3680:3768:0705/184805:WARNING:nss_ssl_util.cc(364)] Unknown SSL error -12218 (SSL_ERROR_ENCRYPTION_FAILURE) mapped to net::ERR_SSL_PROTOCOL_ERROR                                   
[3680:3768:0705/184810:WARNING:nss_ssl_util.cc(364)] Unknown SSL error -12218 (SSL_ERROR_ENCRYPTION_FAILURE) mapped to net::ERR_SSL_PROTOCOL_ERROR</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157568</commentid>
    <comment_count>4</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2016-07-05 19:02:20 +0300</bug_when>
    <thetext>Откатите nss, с новой версией chromium плохо работает.

https://bugzilla.altlinux.org/show_bug.cgi?id=31829#c7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>161478</commentid>
    <comment_count>5</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2017-01-25 10:51:53 +0300</bug_when>
    <thetext>Проверьте, chromium теперь собирается с отдельной libnss. И укажите лимиты побольше:
subst &apos;s/nproc.*/nproc   4096/&apos; /etc/security/limits.d/50-defaults.conf
После чего перелогиньтесь.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>