unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* GLib-ERROR Mesage Running notmuch new
@ 2011-12-16 20:07 Nathan Edson
  2011-12-16 20:45 ` Austin Clements
  0 siblings, 1 reply; 9+ messages in thread
From: Nathan Edson @ 2011-12-16 20:07 UTC (permalink / raw)
  To: notmuch

Hello,
I posted yesterday detailing this issue I am having:

yabai@newb:~$ notmuch new
Processed 1 files (0 files/sec.).
GLib-ERROR **: /build/buildd/glib2.0-2.28.6/./glib/gmem.c:239: failed to allocate 2147483648 bytes
aborting...
Aborted

I thought that I might have better success compiling notmuch from the latest source.  I did this, and am still getting the same error.  I am running Ubuntu 11.04.

Any tips or recommendations appreciated.  I have Googled like crazy, but am coming up empty.

Nathan

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GLib-ERROR Mesage Running notmuch new
  2011-12-16 20:07 GLib-ERROR Mesage Running notmuch new Nathan Edson
@ 2011-12-16 20:45 ` Austin Clements
  2011-12-16 21:12   ` Nathan Edson
  2011-12-16 21:15   ` Nathan Edson
  0 siblings, 2 replies; 9+ messages in thread
From: Austin Clements @ 2011-12-16 20:45 UTC (permalink / raw)
  To: Nathan Edson; +Cc: notmuch

Quoth Nathan Edson on Dec 16 at 12:07 pm:
> Hello,
> I posted yesterday detailing this issue I am having:
> 
> yabai@newb:~$ notmuch new
> Processed 1 files (0 files/sec.).
> GLib-ERROR **: /build/buildd/glib2.0-2.28.6/./glib/gmem.c:239: failed to allocate 2147483648 bytes
> aborting...
> Aborted
> 
> I thought that I might have better success compiling notmuch from the latest source.  I did this, and am still getting the same error.  I am running Ubuntu 11.04.
> 
> Any tips or recommendations appreciated.  I have Googled like crazy, but am coming up empty.
> 
> Nathan

Since you're now building notmuch from source, could you build it with
make clean && make CFLAGS=-g and run it under gdb again to get a
backtrace?  I don't understand why strace didn't show it opening any
mail, but with debug symbols the backtrace should hopefully tell us
that.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GLib-ERROR Mesage Running notmuch new
  2011-12-16 20:45 ` Austin Clements
@ 2011-12-16 21:12   ` Nathan Edson
  2011-12-16 21:17     ` Austin Clements
  2011-12-16 21:15   ` Nathan Edson
  1 sibling, 1 reply; 9+ messages in thread
From: Nathan Edson @ 2011-12-16 21:12 UTC (permalink / raw)
  To: Austin Clements; +Cc: notmuch

> Since you're now building notmuch from source, could you build it with
> make clean && make CFLAGS=-g and run it under gdb again to get a
> backtrace?  I don't understand why strace didn't show it opening any
> mail, but with debug symbols the backtrace should hopefully tell us
> that.

First, thanks for your help!  Perhaps I am making progress...

Here is what I get:

yabai@newb:~$ gdb --args notmuch new
GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/notmuch...done.
(gdb) run
Starting program: /usr/local/bin/notmuch new
[Thread debugging using libthread_db enabled]

GLib-ERROR **: /build/buildd/glib2.0-2.28.6/./glib/gmem.c:239: failed to allocate 2147483648 bytes
aborting...

Program received signal SIGABRT, Aborted.
0xb7fe1424 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fe1424 in __kernel_vsyscall ()
#1  0xb7ce3e71 in raise () from /lib/i386-linux-gnu/libc.so.6
#2  0xb7ce734e in abort () from /lib/i386-linux-gnu/libc.so.6
#3  0xb7e87f27 in g_logv () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb7e87f62 in g_log () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb7e85c3c in g_realloc () from /lib/i386-linux-gnu/libglib-2.0.so.0
#6  0xb7e50965 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#7  0xb7e50d5d in g_array_append_vals () from /lib/i386-linux-gnu/libglib-2.0.so.0
#8  0xb7e520c0 in g_byte_array_append () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0xb7f7fc94 in ?? () from /usr/lib/libgmime-2.4.so.2
#10 0xb7f80fbf in ?? () from /usr/lib/libgmime-2.4.so.2
#11 0xb7f81761 in ?? () from /usr/lib/libgmime-2.4.so.2
#12 0xb7f829ea in g_mime_parser_construct_message () from /usr/lib/libgmime-2.4.so.2
#13 0xb7fc1168 in _notmuch_message_index_file (message=0x13714078, 
    filename=0x80d0600 "/home/yabai/Mail/old.mail") at lib/index.cc:437
#14 0xb7fbef9f in notmuch_database_add_message (notmuch=0x806cd40, 
    filename=0x80d0600 "/home/yabai/Mail/old.mail", message_ret=0xbffff414) at lib/database.cc:1734
#15 0x0804fd0a in add_files_recursive (notmuch=0x806cd40, path=0x806cb58 "/home/yabai/Mail", 
    state=0xbffff634) at notmuch-new.c:459
#16 0x08050273 in add_files (notmuch=0x806cd40, path=0x806cb58 "/home/yabai/Mail", state=0xbffff634)
    at notmuch-new.c:635
#17 0x08050ba0 in notmuch_new_command (ctx=0x80620e8, argc=0, argv=0xbffff7bc) at notmuch-new.c:897
#18 0x0804d59a in main (argc=2, argv=0xbffff7b4) at notmuch.c:669
(gdb) quit

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GLib-ERROR Mesage Running notmuch new
  2011-12-16 20:45 ` Austin Clements
  2011-12-16 21:12   ` Nathan Edson
@ 2011-12-16 21:15   ` Nathan Edson
  1 sibling, 0 replies; 9+ messages in thread
From: Nathan Edson @ 2011-12-16 21:15 UTC (permalink / raw)
  To: Austin Clements; +Cc: notmuch

> Since you're now building notmuch from source, could you build it with
> make clean && make CFLAGS=-g and run it under gdb again to get a
> backtrace?  I don't understand why strace didn't show it opening any
> mail, but with debug symbols the backtrace should hopefully tell us
> that.

Perhaps this will help:

yabai@newb:~$ strace -eopen notmuch new
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/usr/local/lib/libnotmuch.so.2", O_RDONLY) = 3
open("/usr/lib/libgmime-2.4.so.2", O_RDONLY) = 3
open("/usr/lib/i386-linux-gnu/libgobject-2.0.so.0", O_RDONLY) = 3
open("/lib/i386-linux-gnu/libglib-2.0.so.0", O_RDONLY) = 3
open("/usr/lib/libtalloc.so.2", O_RDONLY) = 3
open("/lib/i386-linux-gnu/libpthread.so.0", O_RDONLY) = 3
open("/lib/i386-linux-gnu/libc.so.6", O_RDONLY) = 3
open("/usr/lib/sse2/libxapian.so.22", O_RDONLY) = 3
open("/usr/lib/i386-linux-gnu/libstdc++.so.6", O_RDONLY) = 3
open("/lib/i386-linux-gnu/libgcc_s.so.1", O_RDONLY) = 3
open("/usr/lib/i386-linux-gnu/libgmodule-2.0.so.0", O_RDONLY) = 3
open("/usr/lib/i386-linux-gnu/libgthread-2.0.so.0", O_RDONLY) = 3
open("/lib/i386-linux-gnu/librt.so.1", O_RDONLY) = 3
open("/lib/i386-linux-gnu/libz.so.1", O_RDONLY) = 3
open("/lib/i386-linux-gnu/libnsl.so.1", O_RDONLY) = 3
open("/lib/i386-linux-gnu/libpcre.so.3", O_RDONLY) = 3
open("/lib/i386-linux-gnu/libuuid.so.1", O_RDONLY) = 3
open("/lib/i386-linux-gnu/libm.so.6", O_RDONLY) = 3
open("/lib/i386-linux-gnu/libdl.so.2", O_RDONLY) = 3
open("/usr/lib/i386-linux-gnu/charset.alias", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY|O_LARGEFILE) = 3
open("/home/yabai/.notmuch-config", O_RDONLY|O_LARGEFILE) = 3
open("/home/yabai/Mail/.notmuch/xapian/flintlock", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3
open("/home/yabai/Mail/.notmuch/xapian/iamchert", O_RDONLY|O_LARGEFILE) = 3
open("/home/yabai/Mail/.notmuch/xapian/record.DB", O_RDWR|O_LARGEFILE) = 3
open("/home/yabai/Mail/.notmuch/xapian/record.baseA", O_RDONLY|O_LARGEFILE) = 5
open("/home/yabai/Mail/.notmuch/xapian/record.baseB", O_RDONLY|O_LARGEFILE) = 5
open("/home/yabai/Mail/.notmuch/xapian/spelling.DB", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/home/yabai/Mail/.notmuch/xapian/synonym.DB", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/home/yabai/Mail/.notmuch/xapian/termlist.DB", O_RDWR|O_LARGEFILE) = 5
open("/home/yabai/Mail/.notmuch/xapian/termlist.baseA", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/home/yabai/Mail/.notmuch/xapian/termlist.baseB", O_RDONLY|O_LARGEFILE) = 6
open("/home/yabai/Mail/.notmuch/xapian/position.DB", O_RDWR|O_LARGEFILE) = 6
open("/home/yabai/Mail/.notmuch/xapian/position.baseA", O_RDONLY|O_LARGEFILE) = 7
open("/home/yabai/Mail/.notmuch/xapian/position.baseB", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/home/yabai/Mail/.notmuch/xapian/postlist.DB", O_RDWR|O_LARGEFILE) = 7
open("/home/yabai/Mail/.notmuch/xapian/postlist.baseA", O_RDONLY|O_LARGEFILE) = 8
open("/home/yabai/Mail/.notmuch/xapian/postlist.baseB", O_RDONLY|O_LARGEFILE) = 8
open("/home/yabai/Mail", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 8
open("/home/yabai/Mail/Sent", O_RDONLY|O_LARGEFILE) = 8
open("/etc/localtime", O_RDONLY)        = 9
open("/home/yabai/Mail/Sent", O_RDONLY|O_LARGEFILE) = 9
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
open("/home/yabai/Mail/old.mail", O_RDONLY|O_LARGEFILE) = 8
--- SIGALRM (Alarm clock) @ 0 (0) ---
open("/home/yabai/Mail/old.mail", O_RDONLY|O_LARGEFILE) = 9
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
--- SIGALRM (Alarm clock) @ 0 (0) ---
open("/usr/lib/i386-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/i386-linux-gnu/gconv/gconv-modules", O_RDONLY) = 10

GLib-ERROR **: /build/buildd/glib2.0-2.28.6/./glib/gmem.c:239: failed to allocate 2147483648 bytes
aborting...
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++
Aborted
yabai@newb:~$ 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GLib-ERROR Mesage Running notmuch new
  2011-12-16 21:12   ` Nathan Edson
@ 2011-12-16 21:17     ` Austin Clements
  2011-12-16 21:26       ` Nathan Edson
  0 siblings, 1 reply; 9+ messages in thread
From: Austin Clements @ 2011-12-16 21:17 UTC (permalink / raw)
  To: Nathan Edson; +Cc: notmuch

Quoth Nathan Edson on Dec 16 at  1:12 pm:
> > Since you're now building notmuch from source, could you build it with
> > make clean && make CFLAGS=-g and run it under gdb again to get a
> > backtrace?  I don't understand why strace didn't show it opening any
> > mail, but with debug symbols the backtrace should hopefully tell us
> > that.
> 
> First, thanks for your help!  Perhaps I am making progress...
> 
> Here is what I get:
> 
> yabai@newb:~$ gdb --args notmuch new
> GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
> Copyright (C) 2010 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "i686-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /usr/local/bin/notmuch...done.
> (gdb) run
> Starting program: /usr/local/bin/notmuch new
> [Thread debugging using libthread_db enabled]
> 
> GLib-ERROR **: /build/buildd/glib2.0-2.28.6/./glib/gmem.c:239: failed to allocate 2147483648 bytes
> aborting...
> 
> Program received signal SIGABRT, Aborted.
> 0xb7fe1424 in __kernel_vsyscall ()
> (gdb) bt
> #0  0xb7fe1424 in __kernel_vsyscall ()
> #1  0xb7ce3e71 in raise () from /lib/i386-linux-gnu/libc.so.6
> #2  0xb7ce734e in abort () from /lib/i386-linux-gnu/libc.so.6
> #3  0xb7e87f27 in g_logv () from /lib/i386-linux-gnu/libglib-2.0.so.0
> #4  0xb7e87f62 in g_log () from /lib/i386-linux-gnu/libglib-2.0.so.0
> #5  0xb7e85c3c in g_realloc () from /lib/i386-linux-gnu/libglib-2.0.so.0
> #6  0xb7e50965 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
> #7  0xb7e50d5d in g_array_append_vals () from /lib/i386-linux-gnu/libglib-2.0.so.0
> #8  0xb7e520c0 in g_byte_array_append () from /lib/i386-linux-gnu/libglib-2.0.so.0
> #9  0xb7f7fc94 in ?? () from /usr/lib/libgmime-2.4.so.2
> #10 0xb7f80fbf in ?? () from /usr/lib/libgmime-2.4.so.2
> #11 0xb7f81761 in ?? () from /usr/lib/libgmime-2.4.so.2
> #12 0xb7f829ea in g_mime_parser_construct_message () from /usr/lib/libgmime-2.4.so.2
> #13 0xb7fc1168 in _notmuch_message_index_file (message=0x13714078, 
>     filename=0x80d0600 "/home/yabai/Mail/old.mail") at lib/index.cc:437
> #14 0xb7fbef9f in notmuch_database_add_message (notmuch=0x806cd40, 
>     filename=0x80d0600 "/home/yabai/Mail/old.mail", message_ret=0xbffff414) at lib/database.cc:1734

Ah!  It did show up in the strace.  /home/yabai/Mail/old.mail appears
to be the offending file.  What's in it?

> #15 0x0804fd0a in add_files_recursive (notmuch=0x806cd40, path=0x806cb58 "/home/yabai/Mail", 
>     state=0xbffff634) at notmuch-new.c:459
> #16 0x08050273 in add_files (notmuch=0x806cd40, path=0x806cb58 "/home/yabai/Mail", state=0xbffff634)
>     at notmuch-new.c:635
> #17 0x08050ba0 in notmuch_new_command (ctx=0x80620e8, argc=0, argv=0xbffff7bc) at notmuch-new.c:897
> #18 0x0804d59a in main (argc=2, argv=0xbffff7b4) at notmuch.c:669
> (gdb) quit

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GLib-ERROR Mesage Running notmuch new
  2011-12-16 21:17     ` Austin Clements
@ 2011-12-16 21:26       ` Nathan Edson
  2011-12-16 21:38         ` Austin Clements
  0 siblings, 1 reply; 9+ messages in thread
From: Nathan Edson @ 2011-12-16 21:26 UTC (permalink / raw)
  To: Austin Clements; +Cc: notmuch

On 12/16/11, Austin Clements wrote:
> Quoth Nathan Edson on Dec 16 at  1:12 pm:
> > > Since you're now building notmuch from source, could you build it with
> > > make clean && make CFLAGS=-g and run it under gdb again to get a
> > > backtrace?  I don't understand why strace didn't show it opening any
> > > mail, but with debug symbols the backtrace should hopefully tell us
> > > that.
> > 
> > First, thanks for your help!  Perhaps I am making progress...
> > 
> > Here is what I get:
> > 
> > yabai@newb:~$ gdb --args notmuch new
> > GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
> > Copyright (C) 2010 Free Software Foundation, Inc.
> > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> > This is free software: you are free to change and redistribute it.
> > There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> > and "show warranty" for details.
> > This GDB was configured as "i686-linux-gnu".
> > For bug reporting instructions, please see:
> > <http://www.gnu.org/software/gdb/bugs/>...
> > Reading symbols from /usr/local/bin/notmuch...done.
> > (gdb) run
> > Starting program: /usr/local/bin/notmuch new
> > [Thread debugging using libthread_db enabled]
> > 
> > GLib-ERROR **: /build/buildd/glib2.0-2.28.6/./glib/gmem.c:239: failed to allocate 2147483648 bytes
> > aborting...
> > 
> > Program received signal SIGABRT, Aborted.
> > 0xb7fe1424 in __kernel_vsyscall ()
> > (gdb) bt
> > #0  0xb7fe1424 in __kernel_vsyscall ()
> > #1  0xb7ce3e71 in raise () from /lib/i386-linux-gnu/libc.so.6
> > #2  0xb7ce734e in abort () from /lib/i386-linux-gnu/libc.so.6
> > #3  0xb7e87f27 in g_logv () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > #4  0xb7e87f62 in g_log () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > #5  0xb7e85c3c in g_realloc () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > #6  0xb7e50965 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > #7  0xb7e50d5d in g_array_append_vals () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > #8  0xb7e520c0 in g_byte_array_append () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > #9  0xb7f7fc94 in ?? () from /usr/lib/libgmime-2.4.so.2
> > #10 0xb7f80fbf in ?? () from /usr/lib/libgmime-2.4.so.2
> > #11 0xb7f81761 in ?? () from /usr/lib/libgmime-2.4.so.2
> > #12 0xb7f829ea in g_mime_parser_construct_message () from /usr/lib/libgmime-2.4.so.2
> > #13 0xb7fc1168 in _notmuch_message_index_file (message=0x13714078, 
> >     filename=0x80d0600 "/home/yabai/Mail/old.mail") at lib/index.cc:437
> > #14 0xb7fbef9f in notmuch_database_add_message (notmuch=0x806cd40, 
> >     filename=0x80d0600 "/home/yabai/Mail/old.mail", message_ret=0xbffff414) at lib/database.cc:1734
> 
> Ah!  It did show up in the strace.  /home/yabai/Mail/old.mail appears
> to be the offending file.  What's in it?

This is my file full of old mail.  I believe it is in mbox format. It contains approximately 40K emails...could the format of this file affect things?  Orginally, this mail was exported from Apple Mail.

Thanks again for the help.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GLib-ERROR Mesage Running notmuch new
  2011-12-16 21:26       ` Nathan Edson
@ 2011-12-16 21:38         ` Austin Clements
  2011-12-16 21:43           ` Nathan Edson
  0 siblings, 1 reply; 9+ messages in thread
From: Austin Clements @ 2011-12-16 21:38 UTC (permalink / raw)
  To: Nathan Edson; +Cc: notmuch

Quoth Nathan Edson on Dec 16 at  1:26 pm:
> On 12/16/11, Austin Clements wrote:
> > Quoth Nathan Edson on Dec 16 at  1:12 pm:
> > > > Since you're now building notmuch from source, could you build it with
> > > > make clean && make CFLAGS=-g and run it under gdb again to get a
> > > > backtrace?  I don't understand why strace didn't show it opening any
> > > > mail, but with debug symbols the backtrace should hopefully tell us
> > > > that.
> > > 
> > > First, thanks for your help!  Perhaps I am making progress...
> > > 
> > > Here is what I get:
> > > 
> > > yabai@newb:~$ gdb --args notmuch new
> > > GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
> > > Copyright (C) 2010 Free Software Foundation, Inc.
> > > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> > > This is free software: you are free to change and redistribute it.
> > > There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> > > and "show warranty" for details.
> > > This GDB was configured as "i686-linux-gnu".
> > > For bug reporting instructions, please see:
> > > <http://www.gnu.org/software/gdb/bugs/>...
> > > Reading symbols from /usr/local/bin/notmuch...done.
> > > (gdb) run
> > > Starting program: /usr/local/bin/notmuch new
> > > [Thread debugging using libthread_db enabled]
> > > 
> > > GLib-ERROR **: /build/buildd/glib2.0-2.28.6/./glib/gmem.c:239: failed to allocate 2147483648 bytes
> > > aborting...
> > > 
> > > Program received signal SIGABRT, Aborted.
> > > 0xb7fe1424 in __kernel_vsyscall ()
> > > (gdb) bt
> > > #0  0xb7fe1424 in __kernel_vsyscall ()
> > > #1  0xb7ce3e71 in raise () from /lib/i386-linux-gnu/libc.so.6
> > > #2  0xb7ce734e in abort () from /lib/i386-linux-gnu/libc.so.6
> > > #3  0xb7e87f27 in g_logv () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > > #4  0xb7e87f62 in g_log () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > > #5  0xb7e85c3c in g_realloc () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > > #6  0xb7e50965 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > > #7  0xb7e50d5d in g_array_append_vals () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > > #8  0xb7e520c0 in g_byte_array_append () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > > #9  0xb7f7fc94 in ?? () from /usr/lib/libgmime-2.4.so.2
> > > #10 0xb7f80fbf in ?? () from /usr/lib/libgmime-2.4.so.2
> > > #11 0xb7f81761 in ?? () from /usr/lib/libgmime-2.4.so.2
> > > #12 0xb7f829ea in g_mime_parser_construct_message () from /usr/lib/libgmime-2.4.so.2
> > > #13 0xb7fc1168 in _notmuch_message_index_file (message=0x13714078, 
> > >     filename=0x80d0600 "/home/yabai/Mail/old.mail") at lib/index.cc:437
> > > #14 0xb7fbef9f in notmuch_database_add_message (notmuch=0x806cd40, 
> > >     filename=0x80d0600 "/home/yabai/Mail/old.mail", message_ret=0xbffff414) at lib/database.cc:1734
> > 
> > Ah!  It did show up in the strace.  /home/yabai/Mail/old.mail appears
> > to be the offending file.  What's in it?
> 
> This is my file full of old mail.  I believe it is in mbox format. It contains approximately 40K emails...could the format of this file affect things?  Orginally, this mail was exported from Apple Mail.

notmuch doesn't support mbox files, but an mbox file looks enough like
a maildir message that notmuch will *try* to index it (but as a
single, gigantic message).  This is certainly the cause of the
failure.  The immediate solution is to move this file out of the tree
you're indexing with notmuch.

Still, notmuch should fail more gracefully and you are probably
hitting a real gmime bug (given that it's trying to allocate
(unsigned)-1 bytes of memory).  How big is old.mail?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GLib-ERROR Mesage Running notmuch new
  2011-12-16 21:38         ` Austin Clements
@ 2011-12-16 21:43           ` Nathan Edson
  2011-12-16 22:03             ` Austin Clements
  0 siblings, 1 reply; 9+ messages in thread
From: Nathan Edson @ 2011-12-16 21:43 UTC (permalink / raw)
  To: Austin Clements; +Cc: notmuch

On 12/16/11, Austin Clements wrote:
> Quoth Nathan Edson on Dec 16 at  1:26 pm:
> > On 12/16/11, Austin Clements wrote:
> > > Quoth Nathan Edson on Dec 16 at  1:12 pm:
> > > > > Since you're now building notmuch from source, could you build it with
> > > > > make clean && make CFLAGS=-g and run it under gdb again to get a
> > > > > backtrace?  I don't understand why strace didn't show it opening any
> > > > > mail, but with debug symbols the backtrace should hopefully tell us
> > > > > that.
> > > > 
> > > > First, thanks for your help!  Perhaps I am making progress...
> > > > 
> > > > Here is what I get:
> > > > 
> > > > yabai@newb:~$ gdb --args notmuch new
> > > > GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
> > > > Copyright (C) 2010 Free Software Foundation, Inc.
> > > > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> > > > This is free software: you are free to change and redistribute it.
> > > > There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> > > > and "show warranty" for details.
> > > > This GDB was configured as "i686-linux-gnu".
> > > > For bug reporting instructions, please see:
> > > > <http://www.gnu.org/software/gdb/bugs/>...
> > > > Reading symbols from /usr/local/bin/notmuch...done.
> > > > (gdb) run
> > > > Starting program: /usr/local/bin/notmuch new
> > > > [Thread debugging using libthread_db enabled]
> > > > 
> > > > GLib-ERROR **: /build/buildd/glib2.0-2.28.6/./glib/gmem.c:239: failed to allocate 2147483648 bytes
> > > > aborting...
> > > > 
> > > > Program received signal SIGABRT, Aborted.
> > > > 0xb7fe1424 in __kernel_vsyscall ()
> > > > (gdb) bt
> > > > #0  0xb7fe1424 in __kernel_vsyscall ()
> > > > #1  0xb7ce3e71 in raise () from /lib/i386-linux-gnu/libc.so.6
> > > > #2  0xb7ce734e in abort () from /lib/i386-linux-gnu/libc.so.6
> > > > #3  0xb7e87f27 in g_logv () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > > > #4  0xb7e87f62 in g_log () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > > > #5  0xb7e85c3c in g_realloc () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > > > #6  0xb7e50965 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > > > #7  0xb7e50d5d in g_array_append_vals () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > > > #8  0xb7e520c0 in g_byte_array_append () from /lib/i386-linux-gnu/libglib-2.0.so.0
> > > > #9  0xb7f7fc94 in ?? () from /usr/lib/libgmime-2.4.so.2
> > > > #10 0xb7f80fbf in ?? () from /usr/lib/libgmime-2.4.so.2
> > > > #11 0xb7f81761 in ?? () from /usr/lib/libgmime-2.4.so.2
> > > > #12 0xb7f829ea in g_mime_parser_construct_message () from /usr/lib/libgmime-2.4.so.2
> > > > #13 0xb7fc1168 in _notmuch_message_index_file (message=0x13714078, 
> > > >     filename=0x80d0600 "/home/yabai/Mail/old.mail") at lib/index.cc:437
> > > > #14 0xb7fbef9f in notmuch_database_add_message (notmuch=0x806cd40, 
> > > >     filename=0x80d0600 "/home/yabai/Mail/old.mail", message_ret=0xbffff414) at lib/database.cc:1734
> > > 
> > > Ah!  It did show up in the strace.  /home/yabai/Mail/old.mail appears
> > > to be the offending file.  What's in it?
> > 
> > This is my file full of old mail.  I believe it is in mbox format. It contains approximately 40K emails...could the format of this file affect things?  Orginally, this mail was exported from Apple Mail.
> 
> notmuch doesn't support mbox files, but an mbox file looks enough like
> a maildir message that notmuch will *try* to index it (but as a
> single, gigantic message).  This is certainly the cause of the
> failure.  The immediate solution is to move this file out of the tree
> you're indexing with notmuch.
> 
> Still, notmuch should fail more gracefully and you are probably
> hitting a real gmime bug (given that it's trying to allocate
> (unsigned)-1 bytes of memory).  How big is old.mail?

old.mail is about 5gb.  I guess the file type is the problem...forgive me, I thought notmuch supported mbox.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: GLib-ERROR Mesage Running notmuch new
  2011-12-16 21:43           ` Nathan Edson
@ 2011-12-16 22:03             ` Austin Clements
  0 siblings, 0 replies; 9+ messages in thread
From: Austin Clements @ 2011-12-16 22:03 UTC (permalink / raw)
  To: Nathan Edson; +Cc: notmuch

Quoth Nathan Edson on Dec 16 at  1:43 pm:
> On 12/16/11, Austin Clements wrote:
> > notmuch doesn't support mbox files, but an mbox file looks enough like
> > a maildir message that notmuch will *try* to index it (but as a
> > single, gigantic message).  This is certainly the cause of the
> > failure.  The immediate solution is to move this file out of the tree
> > you're indexing with notmuch.
> > 
> > Still, notmuch should fail more gracefully and you are probably
> > hitting a real gmime bug (given that it's trying to allocate
> > (unsigned)-1 bytes of memory).  How big is old.mail?
> 
> old.mail is about 5gb.  I guess the file type is the
> problem...forgive me, I thought notmuch supported mbox.

There has been talk of supporting mbox for archival situations just
like this, but it's rather contentious because mbox is a terrible
format.

Since it's only 40K messages, there would be little overhead in
converting it to maildir, which notmuch could index.  If you really
want to keep it in one file, you could convert it to maildir, pack
that maildir into an some archive format, and use FUSE or something
similar to mount that archive as a file system.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-12-16 22:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-16 20:07 GLib-ERROR Mesage Running notmuch new Nathan Edson
2011-12-16 20:45 ` Austin Clements
2011-12-16 21:12   ` Nathan Edson
2011-12-16 21:17     ` Austin Clements
2011-12-16 21:26       ` Nathan Edson
2011-12-16 21:38         ` Austin Clements
2011-12-16 21:43           ` Nathan Edson
2011-12-16 22:03             ` Austin Clements
2011-12-16 21:15   ` Nathan Edson

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).