From owner-freebsd-gnome@FreeBSD.ORG Thu Sep 16 06:16:41 2004 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78B6616A4CE for ; Thu, 16 Sep 2004 06:16:41 +0000 (GMT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8F3943D1F for ; Thu, 16 Sep 2004 06:16:40 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.42 (FreeBSD)) id 1C7pZP-0000LL-FE for freebsd-gnome@FreeBSD.org; Thu, 16 Sep 2004 10:16:39 +0400 From: Vladimir Grebenschikov To: gnome In-Reply-To: <1095265547.68806.6.camel@localhost> References: <1095251444.66767.10.camel@localhost> <1095265547.68806.6.camel@localhost> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Thu, 16 Sep 2004 10:16:38 +0400 Message-Id: <1095315398.1264.4.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.0FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Subject: Re: evolution-2.0.0 crash X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vova@fbsd.ru List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 06:16:41 -0000 =F7 =D3=D2, 15/09/2004 =D7 20:25 +0400, Vladimir Grebenschikov =D0=C9=DB=C5= =D4: > =F7 Wed, 15/09/2004 =D7 16:30 +0400, Vladimir Grebenschikov =D0=C9=DB=C5= =D4: > > Hi >=20 > Ok, in a hour it happens again, evolution - crashed with core. This time > I am save mailbox causing problem (and cleaning indexes and meta-data > does not help), now going to rebuild evo with debug and see more details > in gdb. >=20 > Folder is really big: 16783 messages, but messages small: 19Mb space > (this is cvs log for long period). >=20 > > today evolution was crashed=20 > > (it was not related to upgrade directly) More details: % gdb ./work/evolution-2.0.0/shell/.libs/evolution evolution.core ... Loaded symbols for /libexec/ld-elf.so.1 #0 0x297e91d7 in sort_thread (cp=3D0xbfadce08) at camel-folder- thread.c:401 401 carray[size] =3D c; (gdb) bt #0 0x297e91d7 in sort_thread (cp=3D0xbfadce08) at camel-folder- thread.c:401 #1 0x297e94a7 in thread_summary (thread=3D0x884da80, summary=3D0x8374adc) at camel-folder-thread.c:517 #2 0x297e96d4 in camel_folder_thread_messages_new (folder=3D0x82069a0, uids=3D0x87143f0, thread_subject=3D-1079128568) at camel-folder-thread.c:63= 0 #3 0x29a1a86b in regen_list_regen () from /usr/X11R6/lib/evolution/2.0/components/libevolution-mail.so #4 0x29a0a2e4 in mail_msg_received () from /usr/X11R6/lib/evolution/2.0/components/libevolution-mail.so #5 0x28101eff in thread_received_msg (e=3D0x8188ec0, m=3D0x85b1b00) at e- msgport.c:826 #6 0x28102068 in thread_dispatch (din=3D0x8188ec0) at e-msgport.c:907 #7 0x286fa009 in _thread_start () from /usr/lib/libc_r.so.5 #8 0x00000000 in ?? () (gdb) p size $1 =3D 0 (gdb) p carray $2 =3D (CamelFolderThreadNode **) 0xbfacc770 (gdb) p carray[0] Cannot access memory at address 0xbfacc770 (gdb) p c $3 =3D (CamelFolderThreadNode *) 0x8c04d50 (gdb) p *c $4 =3D {next =3D 0x8c03120, parent =3D 0x0, child =3D 0x0, message =3D 0x87= d8310, root_subject =3D 0x0, order =3D 14387, re =3D 0} related code: 394 } 395 if (size<2) (gdb)=20 396 return; 397 carray =3D alloca(size*sizeof(CamelFolderThreadNode *)); 398 c =3D *cp; 399 size=3D0; 400 while (c) { 401 carray[size] =3D c; 402 c =3D c->next; 403 size++; 404 } 405 qsort(carray, size, sizeof(CamelFolderThreadNode *), sort_node); looks like alloca() returns bad memory region ... Any ideas ? =20 > > # gdb evolution-2.0 evolution-2.0.core > > .... > > Loaded symbols for /libexec/ld-elf.so.1 > > #0 0x297820eb in sort_thread () > > from /usr/X11R6/lib/evolution/2.0/libcamel.so.0 > > (gdb) bt > > #0 0x297820eb in sort_thread () > > from /usr/X11R6/lib/evolution/2.0/libcamel.so.0 > > #1 0x297823bb in thread_summary () > > from /usr/X11R6/lib/evolution/2.0/libcamel.so.0 > > #2 0x297825e8 in camel_folder_thread_messages_new () > > from /usr/X11R6/lib/evolution/2.0/libcamel.so.0 > > #3 0x299b386b in regen_list_regen () > > from /usr/X11R6/lib/evolution/2.0/components/libevolution-mail.so > > #4 0x299a32e4 in mail_msg_received () > > from /usr/X11R6/lib/evolution/2.0/components/libevolution-mail.so > > #5 0x28100e4f in thread_received_msg () > > from /usr/X11R6/lib/evolution/2.0/libeutil.so.0 > > #6 0x28100fb8 in thread_dispatch () > > from /usr/X11R6/lib/evolution/2.0/libeutil.so.0 > > #7 0x286f9009 in _thread_start () from /usr/lib/libc_r.so.5 > > #8 0x00000000 in ?? () > > (gdb)=20 > >=20 > >=20 > > It was due to bad folder cmeta or index, I have spend sometime trying t= o > > find bad file, unfortunately I have remove it :( > >=20 > > I can't imagine how file can be trashed, I have started evo at morning, > > than (after 5 hours of work) evo was closed unexpectedly (even without > > gnome crash wrapper, may be if was Ctrl-Q but I am not sure) > >=20 > > After that evo crashed on on each start while draw mail folders tree. > > Until I've removed folder with bad meta-data. > >=20 --=20 Vladimir B. Grebenchikov vova@fbsd.ru