After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 630124 - out of file descriptors ...
out of file descriptors ...
Status: RESOLVED DUPLICATE of bug 655272
Product: evolution
Classification: Applications
Component: Mailer
2.32.x (obsolete)
Other Linux
: Normal critical
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 555561 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-09-20 08:29 UTC by Michael Meeks
Modified: 2015-08-26 08:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
lots of pipes ... (99.43 KB, text/plain)
2010-09-20 08:29 UTC, Michael Meeks
Details
gdb trace (73.69 KB, text/plain)
2011-07-12 13:08 UTC, Akhil Laddha
Details

Description Michael Meeks 2010-09-20 08:29:30 UTC
Left evolution running overnight; I have:

evolution-2.32.20100914-4.1.i586

(snapshot from that date I guess); and I got sudden death with:

(evolution:5129): evolution-composer-autosave-WARNING **: Error opening directory '/home/michael/.local/share/evolution': Too many open files
[New Thread 0x997feb70 (LWP 11649)]

(evolution:5129): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
**
camel:ERROR:camel-mime-message.c:627:camel_mime_message_get_subject: assertion failed: (mime_message)

Thread 13919 (Thread 0x997feb70 (LWP 11649))

  • #0 __kernel_vsyscall
  • #1 pthread_cond_timedwait
    at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S line 179
  • #2 ??
    from /usr/lib/libgthread-2.0.so.0
  • #3 ??
    from /usr/lib/libglib-2.0.so.0
  • #4 ??
    from /usr/lib/libglib-2.0.so.0
  • #5 ??
    from /usr/lib/libglib-2.0.so.0
  • #6 start_thread
    at pthread_create.c line 297
  • #7 clone
    from /lib/libc.so.6

Thread 13290 (Thread 0x967f8b70 (LWP 10359)):
...

Those are some high numbers.

I attach the lsof output too.
Comment 1 Michael Meeks 2010-09-20 08:29:57 UTC
Created attachment 170637 [details]
lots of pipes ...
Comment 2 Milan Crha 2010-09-23 18:36:52 UTC
Thanks for a bug report. Could you try to find out where are these pipes from? I mean after what operation this will increase opened pipes, but doesn't close them? as this is probably from a mailer, then I would guess on something while doing auto-refresh on the account, which might be something like junk test and/or report through spam assassin or bogofilter. Are you using any of these? Is enabling/disabling of these doing any difference in opened pipes when calling Send/Receive? (might depends whether you receive any new message too, and whether you are not using "do not check junk when sender in my address book" option)
Comment 3 Michael Meeks 2010-10-13 07:59:19 UTC
Just got it again. Trace appended. I have no idea where the pipes are from.

I do not have "Check incoming messages for junk" enabled in 'Junk' settings. I only have "Check custom headers for junk" - and I do not have "Do not mark messages as junk if sender is in my addressbook" set.


(evolution:22900): evolution-composer-autosave-WARNING **: Error opening directory '/home/michael/.local/share/evolution': Too many open files
[New Thread 0x822fcb70 (LWP 21235)]

(evolution:22900): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
**
camel:ERROR:camel-mime-message.c:627:camel_mime_message_get_subject: assertion failed: (mime_message)

Program received signal SIGABRT, Aborted.
0xffffe430 in __kernel_vsyscall ()
(gdb) bt

Thread 21357 (Thread 0x822fcb70 (LWP 21235))

  • #0 __kernel_vsyscall
  • #1 pthread_cond_timedwait
    at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S line 179
  • #2 ??
    from /usr/lib/libgthread-2.0.so.0
  • #3 ??
    from /usr/lib/libglib-2.0.so.0
  • #4 ??
    from /usr/lib/libglib-2.0.so.0
  • #5 ??
    from /usr/lib/libglib-2.0.so.0
  • #6 start_thread
    at pthread_create.c line 297
  • #7 clone
    from /lib/libc.so.6

Thread 21357 is not a good sign ;-)

all other threads quiescent. I am using:

$ rpm -q evolution evolution-data-server
evolution-2.32.20100914-4.5.i586
evolution-data-server-2.32.20100914-8.16.i586

And it has been running for a few days - probably with a composer window open overnight (or somesuch).
Comment 4 Milan Crha 2010-10-13 11:40:00 UTC
Could you try to get list of newly opened file descriptors after some actions, please? I tried keep evolution just running, opening and closing composer, doing automatic Send/Receive and such, and even some actions are adding new file descriptors, then they either remove them again (on composer close), or do not open them again the next time I try the same thing.

Please get diff of opened file descriptors between the time before you let it running and when you return to it back (after night or what is your "reproducer"), so we will see what was added. Bonus points if you'll be able to find the exact action which is causing this, because "let it running over night" limits testing ability slightly. :)
Comment 5 Akhil Laddha 2011-03-15 09:20:40 UTC
template crash is fixed in bug 633854
Comment 6 Akhil Laddha 2011-07-12 12:58:59 UTC
bug 516351 and bug 478711 may be related
Comment 7 Akhil Laddha 2011-07-12 13:08:42 UTC
Created attachment 191807 [details]
gdb trace

Got hit today in master (3.1.4)
Comment 8 Akhil Laddha 2011-07-26 03:42:52 UTC
*** Bug 555561 has been marked as a duplicate of this bug. ***
Comment 9 Jürg Billeter 2011-07-29 08:21:16 UTC
I'm seeing this with evolution 3.1.4. Checking /proc/PID/fd/ I see a leak of two fds (two ends of a pipe) every time I move from one message to another within a folder (preview enabled). This results in hitting the fd limit quite quickly.
Comment 10 Milan Crha 2011-07-29 18:09:04 UTC
(In reply to comment #9)
> I'm seeing this with evolution 3.1.4. Checking /proc/PID/fd/ I see a leak of
> two fds (two ends of a pipe) every time I move from one message to another
> within a folder (preview enabled). This results in hitting the fd limit quite
> quickly.

What is the account type you see this on, please? By any chance, is it IMAPX?
Comment 11 Jürg Billeter 2011-07-29 18:57:04 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > I'm seeing this with evolution 3.1.4. Checking /proc/PID/fd/ I see a leak of
> > two fds (two ends of a pipe) every time I move from one message to another
> > within a folder (preview enabled). This results in hitting the fd limit quite
> > quickly.
> 
> What is the account type you see this on, please? By any chance, is it IMAPX?

Yes, this is with IMAPX.
Comment 12 Milan Crha 2011-08-01 07:59:26 UTC
Thanks for the update. That might mean that your issue is related to bug #655272. (Or vice versa, it depends in what way you are looking at this.)
Comment 13 Ángel 2015-08-21 20:58:12 UTC
Seems this should be closed as a duplicate of 655272
Comment 14 Milan Crha 2015-08-26 08:07:19 UTC

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