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

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

    <bug>
          <bug_id>35192</bug_id>
          
          <creation_ts>2018-07-28 23:54:20 +0300</creation_ts>
          <short_desc>Рандомный фриз ядра</short_desc>
          <delta_ts>2018-07-28 23:54:20 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>xorg-server</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Speccyfighter">zxwarior</reporter>
          <assigned_to name="Valery Inozemtsev">shrek</assigned_to>
          <cc>shrek</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>173043</commentid>
    <comment_count>0</comment_count>
    <who name="Speccyfighter">zxwarior</who>
    <bug_when>2018-07-28 23:54:20 +0300</bug_when>
    <thetext>Подробнее:

На

$ grep &apos;model name&apos; /proc/cpuinfo | sort -u
model name      : Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz

$ lspci -knn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 5500 [8086:1616] (rev 09)

$ glxinfo | grep &apos;OpenGL renderer string&apos;
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2) x86/MMX/SSE2

после установки дистрибутива, если драйвер intel не указан явно в файле
/etc/X11/xorg.conf.d/10-monitor.conf
то автоматом используется драйвер modesetting.
По-умолчанию этот файл отсутствует.
Если используется драйвер modesetting, наблюдается рандомное зависание ядра.
Если зависание ядра совпадёт с моментом сохранения файла пользователя, содержимое файла исчезнет. Как пример использовался ежесекундный сброс дата-время:

while true; do date +%Y%m%d-%T &gt; current-datetime.txt; sleep 1; done;

После зависания ядра содержимое файла current-datetime.txt исчезло.

Также зависание ядра совпало со сбросом сообщений в логи kernel/info и syslog/messages, в результате чего оба лог файла в конце были забиты по 170 байт нулями:

# ls -l --time-style=full-iso /mnt/sda11/var/log/kernel/info
-rw-r----- 1 root adm 165011 2018-07-14 03:16:04.341604054 +0300 /mnt/sda11/var/log/kernel/info

# hexdump -C /mnt/sda11/var/log/kernel/info | tail -n5
000283e0  6f 63 69 61 74 65 64 0a  00 00 00 00 00 00 00 00  |ociated.........|
000283f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00028490  00 00 00                                          |...|
00028493

# ls -l --time-style=full-iso /mnt/sda11/var/log/syslog/messages
-rw-r----- 1 root adm 308875 2018-07-14 03:16:04.341604054 +0300 /mnt/sda11/var/log/syslog/messages

# hexdump -C /mnt/sda11/var/log/syslog/messages | tail -n5
0004b5d0  74 63 2f 63 72 6f 6e 2e  68 6f 75 72 6c 79 29 0a  |tc/cron.hourly).|
0004b5e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
0004b680  00 00 00 00 00 00 00 00  00 00 00                 |...........|
0004b68b

и оба лог-файла из текстовых превратились в бинарные.
По счастливой случайности, содержимое этих лог-файлов не обнулилось.

Но если драйвер intel указан явно

$ cat /etc/X11/xorg.conf.d/10-monitor.conf
Section &quot;Device&quot;
 Identifier &quot;Intel Graphics&quot;
 Driver &quot;intel&quot;
EndSection

Section &quot;Monitor&quot;
    Identifier &quot;Monitor0&quot;
EndSection

то поднимается не modesetting, а intel драйвер и рандомного фриза ядра не наблюдается.


Фриз ядра по вине драйвера modesetting_drv.so подтверждали здесь:
https://forum.altlinux.org/index.php?topic=36177.msg328991#msg328991
https://forum.altlinux.org/index.php?topic=36177.msg329015#msg329015


Фриз ядра смотрелся в теме Xfce c Sysv
отсюда (Ответ #563)
https://forum.altlinux.org/index.php?topic=36177.msg328938#msg328938
и до сюда (Ответ #589)
https://forum.altlinux.org/index.php?topic=36177.msg329048#msg329048</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>