Bug 1851216 - kmod abort installing rawhide kernel
Summary: kmod abort installing rawhide kernel
Keywords:
Status: CLOSED DUPLICATE of bug 1809183
Alias: None
Product: Fedora
Classification: Fedora
Component: kmod
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: kmod development team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-25 19:22 UTC by Garry T. Williams
Modified: 2020-06-25 23:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-25 23:59:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Garry T. Williams 2020-06-25 19:22:55 UTC
Description of problem:

I am trying to install the rawhide kernel to test another problem that I want to report, but the install ends up looping with bash calling weak-modules --add-kernel over and over consuming a CPU and never finishing the kernel install.

The abrt servers are down, so I copied this out of /var:

{   "signal": 6
,   "executable": "/usr/bin/kmod"
,   "stacktrace":
      [ {   "crash_thread": true
        ,   "frames":
              [ {   "address": 139763600779813
                ,   "build_id": "7ca24d4dc3de9d62d9ad6bb25e5b70a3e57a342f"
                ,   "build_id_offset": 248357
                ,   "function_name": "raise"
                ,   "file_name": "/lib64/libc.so.6"
                }
              , {   "address": 139763600685205
                ,   "build_id": "7ca24d4dc3de9d62d9ad6bb25e5b70a3e57a342f"
                ,   "build_id_offset": 153749
                ,   "function_name": "abort"
                ,   "file_name": "/lib64/libc.so.6"
                }
              , {   "address": 139763600684905
                ,   "build_id": "7ca24d4dc3de9d62d9ad6bb25e5b70a3e57a342f"
                ,   "build_id_offset": 153449
                ,   "function_name": "_nl_load_domain.cold"
                ,   "file_name": "/lib64/libc.so.6"
                }
              , {   "address": 139763600748166
                ,   "build_id": "7ca24d4dc3de9d62d9ad6bb25e5b70a3e57a342f"
                ,   "build_id_offset": 216710
                ,   "function_name": ".annobin___GI___assert_fail.end"
                ,   "file_name": "/lib64/libc.so.6"
                }
              , {   "address": 94510574397772
                ,   "build_id": "3fe82dc1a1ab30d9fdc9a2fe8bc7de1e10f58148"
                ,   "build_id_offset": 39244
                ,   "function_name": "index_write"
                ,   "file_name": "/usr/bin/kmod"
                }
              , {   "address": 94510574414815
                ,   "build_id": "3fe82dc1a1ab30d9fdc9a2fe8bc7de1e10f58148"
                ,   "build_id_offset": 56287
                ,   "function_name": "output_builtin_alias_bin"
                ,   "file_name": "/usr/bin/kmod"
                }
              , {   "address": 94510574409852
                ,   "build_id": "3fe82dc1a1ab30d9fdc9a2fe8bc7de1e10f58148"
                ,   "build_id_offset": 51324
                ,   "function_name": "do_depmod"
                ,   "file_name": "/usr/bin/kmod"
                } ]
        } ]
}

Log of console dnf command.  I had to find the process pid that was spawning depmod constantly (bash) and kill it with -kill to stop the processing:

Running transaction
  Preparing        :                                                        1/1 
  Installing       : kernel-core-5.8.0-0.rc2.20200623gitdd0d718152e4.1.fc   1/3 
  Running scriptlet: kernel-core-5.8.0-0.rc2.20200623gitdd0d718152e4.1.fc   1/3 
  Installing       : kernel-modules-5.8.0-0.rc2.20200623gitdd0d718152e4.1   2/3 
  Running scriptlet: kernel-modules-5.8.0-0.rc2.20200623gitdd0d718152e4.1   2/3 
  Installing       : kernel-5.8.0-0.rc2.20200623gitdd0d718152e4.1.fc33.x8   3/3 
  Running scriptlet: kernel-core-5.8.0-0.rc2.20200623gitdd0d718152e4.1.fc   3/3 
/var/tmp/rpm-tmp.TKQAHF: line 4: 28562 Killed                  /usr/sbin/weak-modules --add-kernel 5.8.0-0.rc2.20200623gitdd0d718152e4.1.fc33.x86_64
warning: %posttrans(kernel-core-5.8.0-0.rc2.20200623gitdd0d718152e4.1.fc33.x86_64) scriptlet failed, exit status 137

Error in POSTTRANS scriptlet in rpm package kernel-core
  Running scriptlet: kernel-5.8.0-0.rc2.20200623gitdd0d718152e4.1.fc33.x8   3/3 
  Verifying        : kernel-5.8.0-0.rc2.20200623gitdd0d718152e4.1.fc33.x8   1/3 
  Verifying        : kernel-core-5.8.0-0.rc2.20200623gitdd0d718152e4.1.fc   2/3 
  Verifying        : kernel-modules-5.8.0-0.rc2.20200623gitdd0d718152e4.1   3/3 

Installed:
  kernel-5.8.0-0.rc2.20200623gitdd0d718152e4.1.fc33.x86_64                      
  kernel-core-5.8.0-0.rc2.20200623gitdd0d718152e4.1.fc33.x86_64                 
  kernel-modules-5.8.0-0.rc2.20200623gitdd0d718152e4.1.fc33.x86_64              

Complete!
garry@vfr$

Version-Release number of selected component (if applicable):

garry@vfr$ kmod --version
kmod version 27
+XZ +ZLIB +LIBCRYPTO -EXPERIMENTAL
garry@vfr$ dnf --version
4.2.23
  Installed: dnf-0:4.2.23-1.fc32.noarch at Sat 20 Jun 2020 09:18:21 PM GMT
  Built    : Fedora Project at Tue 02 Jun 2020 07:50:03 PM GMT

  Installed: rpm-0:4.15.1-3.fc32.1.x86_64 at Sat 20 Jun 2020 09:16:46 PM GMT
  Built    : Fedora Project at Mon 04 May 2020 07:32:48 AM GMT
garry@vfr$ depmod --version
kmod version 27
+XZ +ZLIB +LIBCRYPTO -EXPERIMENTAL
garry@vfr$

How reproducible:

Always.


Steps to Reproduce:
1.  sudo dnf update --enablerepo=rawhide --nogpg kernel
2.
3.

Actual results:

Core dump and infinite loop.

Expected results:

Finish installing kernel.


Additional info:

Jun 25 14:50:50 vfr sudo[28504]:    garry : TTY=pts/7 ; PWD=/home/garry ; USER=root ; COMMAND=/usr/bin/dnf update --enablerepo=rawhide --nogpg kernel
Jun 25 14:50:50 vfr sudo[28504]: pam_unix(sudo:session): session opened for user root by garry(uid=0)
Jun 25 14:52:50 vfr systemd[1]: Started Process Core Dump (PID 35218/UID 0).
Jun 25 14:52:50 vfr systemd-coredump[35247]: Process 28582 (depmod) of user 0 dumped core.
                                             
                                             Stack trace of thread 28582:
                                             #0  0x00007fbbbfdc7a25 raise (libc.so.6 + 0x3ca25)
                                             #1  0x00007fbbbfdb0895 abort (libc.so.6 + 0x25895)
                                             #2  0x00007fbbbfdb0769 __assert_fail_base.cold (libc.so.6 + 0x25769)
                                             #3  0x00007fbbbfdbfe86 __assert_fail (libc.so.6 + 0x34e86)
                                             #4  0x000055c69ed9094c index_write (kmod + 0x994c)
                                             #5  0x000055c69ed94bdf output_builtin_alias_bin (kmod + 0xdbdf)
                                             #6  0x000055c69ed9387c do_depmod (kmod + 0xc87c)
                                             #7  0x00007fbbbfdb2042 __libc_start_main (libc.so.6 + 0x27042)
                                             #8  0x000055c69ed8c2ce _start (kmod + 0x52ce)
Jun 25 14:52:50 vfr systemd[1]: systemd-coredump: Succeeded.

Comment 1 Yauheni Kaliuta 2020-06-25 23:59:16 UTC

*** This bug has been marked as a duplicate of bug 1809183 ***


Note You need to log in before you can comment on or make changes to this bug.