Bug 337842

Summary: beagled-helper run away process
Product: [openSUSE] openSUSE 10.3 Reporter: michel munnix <michel.munnix>
Component: GNOMEAssignee: E-mail List <gnome-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: federico, marcel
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard: gnome-performance
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 341832    
Attachments: debug output from beagled
~/.beagle/Log/*
output from strace
/proc/5175/fd
strace for gconfd-2
strace for beagled-helper
bad content which makes beagled-helper run away
Index-Helper Logfile
E-Mail, which makes beagle-helper hang

Description michel munnix 2007-10-30 14:59:42 UTC
Created attachment 181245 [details]
debug output from beagled

beagled-helper run at 99% CPU usage all the time :
I sopped beagled, kill the beagled-helper process then restarted beagled with debug. Same result after 5 hours 20 minutes run-time.
$ ps -ef | grep beagled :
mm        2036  5088  0 10:30 pts/36   00:00:32 beagled /usr/lib64/beagle/BeagleDaemon.exe --indexing-delay 2 --fg --debug
mm        2070     1 99 10:32 pts/36   05:19:31 beagled-helper /usr/lib64/beagle/IndexHelper.exe
Comment 1 michel munnix 2007-10-30 15:25:44 UTC
Created attachment 181251 [details]
~/.beagle/Log/*
Comment 2 michel munnix 2007-11-02 08:33:07 UTC
online update for mono to 1.2.5-16.2 did not fix the problem.
here is an strace for beagled-helper after rebooting :
> strace -t -p 5451
Process 5451 attached - interrupt to quit
08:57:16 poll([{fd=16, events=POLLIN}], 1, -1) = -1 EINTR (Interrupted system call)
09:10:06 --- SIGPWR (Power failure) @ 0 (0) ---
09:10:06 futex(0x7dc260, FUTEX_WAKE, 1) = 1
09:10:06 rt_sigsuspend(~[INT QUIT ABRT TERM XCPU RTMIN RT_1]) = ? ERESTARTNOHAND (To be restarted)
09:10:06 --- SIGXCPU (CPU time limit exceeded) @ 0 (0) ---
09:10:06 rt_sigreturn(0x2b0918563b40)   = -1 EINTR (Interrupted system call)
09:10:06 futex(0x7dc260, FUTEX_WAKE, 1) = 1
09:10:06 rt_sigreturn(0x7dc260)         = -1 EINTR (Interrupted system call)
09:10:06 poll(   

/proc/5451/fd/16 :
lr-x------ 1 xfd xfd 64 2007-11-02 09:30 /proc/5451/fd/16 -> pipe:[27661]

going to install from factory + debuginfo for mono and beagled to get more info
Comment 3 michel munnix 2007-11-02 09:34:10 UTC
Created attachment 181764 [details]
output from strace

still consuming 99% cpu during poll
some reads on pipe and some close()
Comment 4 michel munnix 2007-11-02 09:38:28 UTC
Created attachment 181766 [details]
/proc/5175/fd

there are open files in /home/xfd/Mail/inbox/cur/
Comment 5 michel munnix 2007-11-02 12:07:01 UTC
Created attachment 181784 [details]
strace for gconfd-2

this time I ran :
strace -t -ff -o /tmp/beagle baegled "--indexing-delay 2 --fg --debug"

mm        5879  5878  0 11:20 pts/36   00:00:45 beagled /usr/lib64/beagle/BeagleDaemon.exe --indexing-delay 2 --f
mm        5917     1  0 11:22 pts/36   00:00:00 /usr/lib/GConf/2/gconfd-2 42
mm        5924     1 99 11:23 pts/36   01:36:54 beagled-helper /usr/lib64/beagle/IndexHelper.exe

logfile for beagled is too big to attach (143MB),
sending logs for gconfd-2 and beagled-helper only
Comment 6 michel munnix 2007-11-02 12:08:58 UTC
Created attachment 181785 [details]
strace for beagled-helper
Comment 8 Marcel Hilzinger 2007-11-27 08:44:30 UTC
Can confirm the bug. OpenSuse 10.3, 32-bit
This is really annoying. Can I help debugging in some way?
Comment 9 JP Rosevear 2007-11-28 04:15:33 UTC
Yes, please provide the info as requested at:
http://beagle-project.org/Troubleshooting_CPU
Comment 10 michel munnix 2007-11-28 07:28:02 UTC
Created attachment 185015 [details]
bad content which makes beagled-helper run away

Hi, this is the file which breaks beagled-helper.
beagle-extract-content blocks also

version info : 
libbeagle-0.2.18-23
beagle-gui-0.2.18-30
libbeagle-debuginfo-0.2.18-34
kdebase3-beagle-3.5.7-87
kio_beagle-debuginfo-0.3.1-129
kio_beagle-0.3.1-117
beagle-index-10.3_20070203-118
beagle-debuginfo-0.2.18-49
beagle-firefox-0.2.18-30
beagle-0.2.18-30
beagle-evolution-0.2.18-30
Comment 11 Marcel Hilzinger 2007-11-28 09:15:46 UTC
Created attachment 185026 [details]
Index-Helper Logfile
Comment 12 Marcel Hilzinger 2007-11-28 09:16:36 UTC
Created attachment 185027 [details]
E-Mail, which makes beagle-helper hang
Comment 13 Federico Mena Quintero 2007-12-13 17:06:36 UTC
Probably an infinite loop of some sort, but I'll mark this as gnome-performance.
Comment 14 JP Rosevear 2008-01-17 13:33:01 UTC
Bug 339481 has a fix for gmime which fixes another infinite beagle loop.

There are test packages at:
http://download.opensuse.org/repositories/GNOME:/test-updates:/10.3/openSUSE_10.3/

beagle-extract-contract works fine on this file for me with the update.  Please test.
Comment 15 michel munnix 2008-01-17 15:31:24 UTC
I replaced these two packages from the repository :

 libgmime-2_0-2-2.2.10-33.1.x86_64.rpm 
 gmime-sharp-2.2.10-33.1.x86_64.rpm 

now the file passes ok

before that I had version 2.2.10-35 which shows the error
Comment 16 Federico Mena Quintero 2008-05-28 16:21:53 UTC
The test packages have been committed to the updates repository; marking as fixed.