You are not logged in.

#1 2016-03-14 10:53:33

potens
Member
Registered: 2016-03-14
Posts: 14

[solved] rpm hangs forever (was: dkms hangs forever on dkms command)

Hi, this is my first post on this forum so, I'll present myself a bit before speaking about my problem

<pres>
I' m a linux user since 2000, back then, I tried Redhat (6.2) Mandrake (7) and Suse (don't remember the version) and tried Debian potato and stick to it for 3 years. After that I tried a bit LFS (was not maintainable) and then switched to Gentoo for the 3 next years. After that, I switched to Ubuntu for 2 years and then to mint for 3 year and back to Debian (Wheezy, this time), One year ago, I switched to arch (personal computer at start, and six month ago professional desktop).

I'm not sure 100% of those dates and times but, more or less, it's should be that.
</pres>

I'm having a problem on one of my arch machines, each time a command run dkms, the command hang forever. I.E. when I try to do pacman upgrade, when it runs the hooks and there is dkms in it, pacman hangs forever.
The same happens if I run in my console "dkms status"

I tried to see what was open with

 /tmp/ #> strace -e open dkms
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/libreadline.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/dev/tty", O_RDWR|O_NONBLOCK)     = 3
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/gconv/gconv-modules", O_RDONLY|O_CLOEXEC) = 3
open("/usr/bin/dkms", O_RDONLY)         = 3
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15539, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15540, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---

(...hang...)

Without the open:

strace dkms

(...)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
lseek(255, -7611, SEEK_CUR)             = 135934
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f4d3d0509d0) = 17722
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x43f8b0, [], SA_RESTORER|SA_RESTART, 0x7f4d3c44a330}, {0x43f8b0, [], SA_RESTORER|SA_RESTART, 0x7f4d3c44a330}, 8) = 0
close(4)                                = 0
read(3, 

(hang, without finishing the line)

the dkms conf file is the default one:

[ndp@ndp-m92p ~]$ grep -Ev "^#|^$" /etc/dkms/framework.conf
[ndp@ndp-m92p ~]$ 

I've tried to correct that by manually removing all dkms related packages and reinstalling it:

/tmp/ #> for a in dkms asic-dkms virtualbox-host-dkms; do pacman -Qlq $a; done | grep -v "/$"|xargs rm 
/tmp/ #> pacman -R --dbonly -dd dkms asix-dkms virtualbox-host-dkms

Then, I was able to do my upgrade, but while the update, dkms and dkms-virtualbox-host-dkms were reinstalled and the same happens (hang forever). I've remove again the packages and reinstalled dkms only, same problem.

Does someone already had the problem ? Does someone have an idea ?

Thanks in advance.

PS: I think this problem is only on one of my computers, but the systems are very very different.

Last edited by potens (2016-04-08 12:19:18)

Offline

#2 2016-04-08 08:33:54

potens
Member
Registered: 2016-03-14
Posts: 14

Re: [solved] rpm hangs forever (was: dkms hangs forever on dkms command)

Ok, I guess no one has an idea with that, and today, I'm blocked in my work because I'm not able to run  virtualbox, so I'll open a bug report.

I will post here the bug report, for later reference.

Have a nice day !

Offline

#3 2016-04-08 10:15:54

potens
Member
Registered: 2016-03-14
Posts: 14

Re: [solved] rpm hangs forever (was: dkms hangs forever on dkms command)

Ok, corrected the problem by myself (temporary)

the problem was because I had rpm installed on my computer, I found dkms was just a script, I modify it with a "set -x", and then, I see:

++ case ${DISTRIB_ID} in
++ [[ -n '' ]]
++ distro_version_rpm
++ which rpm
++ local r wp ver dist
++ for r in redhat-release sles-release suse-release ovs-release
+++ rpm -q --whatprovides redhat-release

(hangs....)

strace  rpm -q --whatprovides redhat-release

...

stat("/var", {st_mode=S_IFDIR|0755, st_size=116, ...}) = 0
stat("/var/lib", {st_mode=S_IFDIR|0755, st_size=530, ...}) = 0
stat("/var/lib/rpm", {st_mode=S_IFDIR|0755, st_size=304, ...}) = 0
rt_sigaction(SIGHUP, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGHUP, {0x7f8207615db0, [], SA_RESTORER|SA_SIGINFO, 0x7f82071e8e80}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x7f8207615db0, [], SA_RESTORER|SA_SIGINFO, 0x7f82071e8e80}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x7f8207615db0, [], SA_RESTORER|SA_SIGINFO, 0x7f82071e8e80}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {0x7f8207615db0, [], SA_RESTORER|SA_SIGINFO, 0x7f82071e8e80}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPIPE, NULL, {SIG_IGN, [], SA_RESTORER, 0x7f82071e8e80}, 8) = 0
sysinfo({uptime=7660, loads=[17280, 30336, 26368], totalram=12381167616, freeram=4331225088, sharedram=538472448, bufferram=7200768, totalswap=0, freeswap=0, procs=1224, totalhigh=0, freehigh=0, mem_unit=1}) = 0
futex(0x7f8207a98158, FUTEX_WAKE_PRIVATE, 2147483647) = 0
brk(0x10fb000)                          = 0x10fb000
open("/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 3
read(3, "0-7\n", 8192)                  = 4
close(3)                                = 0
umask(022)                              = 022
open("/var/lib/rpm/.dbenv.lock", O_RDWR|O_CREAT, 0644) = 3
umask(022)                              = 022
fcntl(3, F_SETLKW, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=0, l_len=0}

And then hangs...

If I uninstall rpm, dkms can be run again, I guess something is wrong with rpm (I've already tried to reinstall rpm-org).

Someone already seen that ?

Offline

#4 2016-04-08 10:27:29

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: [solved] rpm hangs forever (was: dkms hangs forever on dkms command)

Mod note: not a kernel/hardware issue, moving to AUR Issues.

You might want to update the topic title to catch the attention of other RPM users. Posting a comment on the AUR package's page might help too.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2016-04-08 12:18:56

potens
Member
Registered: 2016-03-14
Posts: 14

Re: [solved] rpm hangs forever (was: dkms hangs forever on dkms command)

In fact it sounds like my rpm database was corrupted, I deleted it and now, everything seems good.

Offline

Board footer

Powered by FluxBB