From owner-freebsd-gnome@FreeBSD.ORG Thu Sep 16 16:56:37 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 0AAA816A4CE for ; Thu, 16 Sep 2004 16:56:37 +0000 (GMT) Received: from rooster.cisco.com (hen.cisco.com [64.102.19.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B0CB43D45 for ; Thu, 16 Sep 2004 16:56:36 +0000 (GMT) (envelope-from marcus@FreeBSD.org) Received: from [64.102.193.86] (dhcp-64-102-193-86.cisco.com [64.102.193.86]) by rooster.cisco.com (8.11.7+Sun/8.8.8) with ESMTP id i8GGuZe21775 for ; Thu, 16 Sep 2004 12:56:36 -0400 (EDT) Message-ID: <4149C5C7.4050904@FreeBSD.org> Date: Thu, 16 Sep 2004 12:56:39 -0400 From: Joe Marcus Clarke Organization: FreeBSD, Inc. User-Agent: Mozilla Thunderbird 0.8 (Macintosh/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gnome@FreeBSD.org X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------000500070301020801010401" Subject: Got Evolution crashes? X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list 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 16:56:37 -0000 This is a multi-part message in MIME format. --------------000500070301020801010401 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Anyone experiencing a crash in Evolution 2.0.0 (Evo 2.0.0 ONLY), please apply the attached patch, and rebuild, and let me know if the crashes go away. Joe - -- Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBScXHb2iPiv4Uz4cRAqygAJ9iUFcjBatNJ7fR7ojNS0QMDrqw5ACeKEp3 Z0evgiQmezYUMERWEZgBPH0= =mzlY -----END PGP SIGNATURE----- --------------000500070301020801010401 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="patch-e-util_e-msgport.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-e-util_e-msgport.c" --- e-util/e-msgport.c.orig Thu Sep 16 12:48:05 2004 +++ e-util/e-msgport.c Thu Sep 16 12:52:52 2004 @@ -921,9 +921,12 @@ void e_thread_put(EThread *e, EMsg *msg) { pthread_t id; + pthread_attr_t attr; EMsg *dmsg = NULL; pthread_mutex_lock(&e->mutex); + /* Give us a 1 MB thread stack size. */ + pthread_attr_setstacksize(&attr, 0x100000); /* the caller forgot to tell us what to do, well, we can't do anything can we */ if (e->received == NULL) { @@ -962,13 +965,14 @@ e_msgport_put(e->server_port, msg); if (e->waiting == 0 && g_list_length(e->id_list) < e->queue_limit - && pthread_create(&id, NULL, thread_dispatch, e) == 0) { + && pthread_create(&id, &attr, thread_dispatch, e) == 0) { struct _thread_info *info = g_malloc0(sizeof(*info)); t(printf("created NEW thread %ld\n", id)); info->id = id; info->busy = TRUE; e->id_list = g_list_append(e->id_list, info); } + pthread_attr_destroy(&attr); pthread_mutex_unlock(&e->mutex); return; } @@ -977,12 +981,13 @@ if (e->id == E_THREAD_NONE) { int err; - if ((err = pthread_create(&e->id, NULL, thread_dispatch, e)) != 0) { + if ((err = pthread_create(&e->id, &attr, thread_dispatch, e)) != 0) { g_warning("Could not create dispatcher thread, message queued?: %s", strerror(err)); e->id = E_THREAD_NONE; } } + pthread_attr_destroy(&attr); pthread_mutex_unlock(&e->mutex); if (dmsg) { --------------000500070301020801010401--