From owner-freebsd-gecko@FreeBSD.ORG Tue Jan 17 13:35:45 2012 Return-Path: Delivered-To: gecko@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2D1A106564A for ; Tue, 17 Jan 2012 13:35:45 +0000 (UTC) (envelope-from root@ec-m.fr) Received: from meli.ec-m.fr (meli.ec-m.fr [147.94.19.138]) by mx1.freebsd.org (Postfix) with ESMTP id AF73D8FC0C for ; Tue, 17 Jan 2012 13:35:45 +0000 (UTC) Received: from amavis3.serv.int (amavis3.serv.int [10.3.0.47]) by meli.ec-m.fr (GrosseBox 1743 XXL) with ESMTP id 6D96827883F; Tue, 17 Jan 2012 14:16:35 +0100 (CET) X-Virus-Scanned: amavisd-new at centrale-marseille.fr Received: from meli.ec-m.fr ([10.3.0.12]) by amavis3.serv.int (amavis3.serv.int [10.3.0.47]) (amavisd-new, port 10024) with LMTP id In03sZqorMif; Tue, 17 Jan 2012 14:16:28 +0100 (CET) Received: from dgeo.sysadm.ec-m.fr (dgeo.sysadm.ec-m.fr [147.94.19.169]) by meli.ec-m.fr (GrosseBox 1743 XXL) with ESMTP id 3EB492789E7; Tue, 17 Jan 2012 14:16:29 +0100 (CET) Received: by dgeo.sysadm.ec-m.fr (Postfix, from userid 0) id 970491CCFB; Tue, 17 Jan 2012 14:16:28 +0100 (CET) To: FreeBSD-gnats-submit@freebsd.org From: Geoffroy Desvernay X-send-pr-version: 3.113 X-GNATS-Notify: Message-Id: <20120117131628.970491CCFB@dgeo.sysadm.ec-m.fr> Date: Tue, 17 Jan 2012 14:16:28 +0100 (CET) Cc: gecko@FreeBSD.org, dgeo@centrale-marseille.fr Subject: [PATCH] mail/thunderbird: crash with nss_ldap X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2012 13:35:46 -0000 >Submitter-Id: current-users >Originator: Geoffroy Desvernay >Organization: Ecole Centrale de Marseille >Confidential: no >Synopsis: [PATCH] mail/thunderbird: crash with nss_ldap >Severity: non-critical >Priority: medium >Category: ports >Class: sw-bug >Release: FreeBSD 9.0-RELEASE amd64 >Environment: System: FreeBSD dgeo.sysadm.ec-m.fr 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Sun Jan 15 17:00:54 CET 2012 >Description: Crash 'signal 11' instead of launching thunderbird if using an LDAP (via nss_ldap) account. backtrace ends in ldap_ functions. Making some research about this sig11 crash made me find that this port seems to be missing CFLAGS+= -DLDAP_DEPRECATED (at least works for meĀ®) It seems that this flag has to be set with openldap > 2.3, it should be the case in any freebsd install now (but freebsd with anciens ports of course) I'm not sure if the port should include 'USE_OPENLDAP' or CFLAG or a patch ? This (old) gnome bug seems to indicate that it should be done in the port: https://bugzilla.gnome.org/show_bug.cgi?id=456276 (already referenced in 2007: http://freebsd.monkey.org/freebsd-gnome/200707/msg00104.html) googling for "thunderbird ldap crash nss_ldap" indicates that all *X systems using thunderbird seems to have this same problem. https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/507089 http://forums.opensuse.org/english/get-technical-help-here/applications/429617-thunderbird-3-crashes-wit-segmentation-fault-due-ldap.html padl's guys says the bug id thunderbird's: http://bugzilla.padl.com/show_bug.cgi?id=203 HTH... Port maintainer (gecko@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: Install current thunderbird port on a system using nss_ldap, then launch thunderbird with an LDAP account. >Fix: Add CFLAGS+= -DLDAP_DEPRECATED --- thunderbird-9.0.patch begins here --- diff -ruN --exclude=CVS /usr/ports/mail/thunderbird.orig/Makefile /usr/ports/mail/thunderbird/Makefile --- /usr/ports/mail/thunderbird.orig/Makefile 2011-12-22 08:17:59.000000000 +0100 +++ /usr/ports/mail/thunderbird/Makefile 2012-01-16 15:04:38.000000000 +0100 @@ -72,6 +72,8 @@ .endif .endif +CFLAGS+= -DLDAP_DEPRECATED + .if ${HAVE_GNOME:Mlibgnomeui}!="" USE_GNOME+= libgnomeui MOZ_OPTIONS+= --enable-gnomeui --- thunderbird-9.0.patch ends here ---