You are not logged in.

#1 2011-03-24 13:23:57

zebulon
Member
Registered: 2008-10-20
Posts: 385

[SOLVED] testdb process does not finish 100% CPU

Hi,

I have an issue on a monocore x86 laptop after pacman 3.5.1 upgrade. I updated the db with pacman-db-update succesfuly. However, when I run testdb (or another program runs it), then testdb process never stops and consumes 100% CPU. Has anyone observed that problem? What can I do to diagnose this issue ?

Thanks.

Last edited by zebulon (2011-03-24 15:02:34)

Offline

#2 2011-03-24 13:36:40

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [SOLVED] testdb process does not finish 100% CPU

I can not replicate...    The output from "strace testdb" would help us see what is happening here.

Offline

#3 2011-03-24 14:36:22

zebulon
Member
Registered: 2008-10-20
Posts: 385

Re: [SOLVED] testdb process does not finish 100% CPU

OK, I ran strace and found out that testdb seems to be stuck accessing /var/lib/pacman/local/libsoup-2.32.2-1/
The output of strace ends up with thousands of this entry:

munmap(0xb7783000, 4096)                = 0
access("/var/lib/pacman/local/libsoup-2.32.2-1/", F_OK) = 0
open("/var/lib/pacman/local/libsoup-2.32.2-1/desc", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=312, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7783000
read(3, "%DEPENDS%\nperl>=5.10.0\n\n\0\0\0\0\0\0\0\0"..., 4096) = 312
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7783000, 4096)                = 0
access("/var/lib/pacman/local/libsoup-2.32.2-1/", F_OK) = 0
open("/var/lib/pacman/local/libsoup-2.32.2-1/desc", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=312, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7783000
read(3, "%DEPENDS%\nperl>=5.10.0\n\n\0\0\0\0\0\0\0\0"..., 4096) = 312
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7783000, 4096)                = 0
access("/var/lib/pacman/local/libsoup-2.32.2-1/", F_OK) = 0
open("/var/lib/pacman/local/libsoup-2.32.2-1/desc", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=312, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7783000
read(3, "%DEPENDS%\nperl>=5.10.0\n\n\0\0\0\0\0\0\0\0"..., 4096) = 312
read(3, "", 4096)                       = 0
close(3) 

It might be specific to my system, maybe my db is corrupted. Is there a way to rebuild it entirely ? Can I delete the files in /var/lib/pacman/local ?

Offline

#4 2011-03-24 14:43:31

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] testdb process does not finish 100% CPU

zebulon wrote:

It might be specific to my system, maybe my db is corrupted. Is there a way to rebuild it entirely ? Can I delete the files in /var/lib/pacman/local ?

Do not delete anything in /var/lib/pacamn/local.

What filesystem is this?

Offline

#5 2011-03-24 14:53:52

zebulon
Member
Registered: 2008-10-20
Posts: 385

Re: [SOLVED] testdb process does not finish 100% CPU

falconindy wrote:

Do not delete anything in /var/lib/pacamn/local.

What filesystem is this?

ext3.

Last edited by zebulon (2011-03-24 14:54:17)

Offline

#6 2011-03-24 14:55:52

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [SOLVED] testdb process does not finish 100% CPU

zebulon wrote:
access("/var/lib/pacman/local/libsoup-2.32.2-1/", F_OK) = 0
open("/var/lib/pacman/local/libsoup-2.32.2-1/desc", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=312, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7783000
read(3, "%DEPENDS%\nperl>=5.10.0\n\n\0\0\0\0\0\0\0\0"..., 4096) = 312

That last line looks weird to me....   libsoup does not depend on perl, and then all the \0\0\0 stuff.

I'd try and reinstall libsoup and see if the issue fixes itself.

Offline

#7 2011-03-24 14:56:22

zebulon
Member
Registered: 2008-10-20
Posts: 385

Re: [SOLVED] testdb process does not finish 100% CPU

Note I can read these files:
/var/lib/pacaman/local/libsoup-2.32.2-1/desc
/var/lib/pacaman/local/libsoup-2.32.2-1/files

They do not seem corrupted.

Offline

#8 2011-03-24 14:59:55

zebulon
Member
Registered: 2008-10-20
Posts: 385

Re: [SOLVED] testdb process does not finish 100% CPU

Allan wrote:

I'd try and reinstall libsoup and see if the issue fixes itself.

pacman -Rd libsoup fails because of libwebkit and swfdec-devel dependencies.
pacman -Rdd libsoup leads to a pacman process using 100% CPU

This may be related I guess.

Offline

#9 2011-03-24 15:01:34

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [SOLVED] testdb process does not finish 100% CPU

Does a plain "pacman -S libsoup" work?

Offline

#10 2011-03-24 15:01:58

zebulon
Member
Registered: 2008-10-20
Posts: 385

Re: [SOLVED] testdb process does not finish 100% CPU

OK, pacman -Sf libsoup reinstalled the library and solved the problem.
This might be a local corruption, my laptop is quite old.

Many thanks for your help smile

Offline

Board footer

Powered by FluxBB