From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Nov 7 18:20:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA71C1065692 for ; Sat, 7 Nov 2009 18:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6FFD48FC1E for ; Sat, 7 Nov 2009 18:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nA7IK2eV096011 for ; Sat, 7 Nov 2009 18:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nA7IK2rn096010; Sat, 7 Nov 2009 18:20:02 GMT (envelope-from gnats) Resent-Date: Sat, 7 Nov 2009 18:20:02 GMT Resent-Message-Id: <200911071820.nA7IK2rn096010@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dan Lukes Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADC3F106566B for ; Sat, 7 Nov 2009 18:15:19 +0000 (UTC) (envelope-from dan@obluda.cz) Received: from master7.ms.mff.cuni.cz (master7.ms.mff.cuni.cz [195.113.20.22]) by mx1.freebsd.org (Postfix) with ESMTP id 491928FC0C for ; Sat, 7 Nov 2009 18:15:19 +0000 (UTC) Received: (from root@localhost) by master7.ms.mff.cuni.cz (8.14.3/8.14.3) id nA7I1XQV035748 for FreeBSD-gnats-submit@freebsd.org; Sat, 7 Nov 2009 19:01:33 +0100 (CET) (envelope-from dan@obluda.cz) Message-Id: <200911071801.nA7I1XQV035748@master7.ms.mff.cuni.cz> Date: Sat, 7 Nov 2009 19:01:33 +0100 (CET) From: Dan Lukes To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/140365: [ PATCH ] firebird20-client coredumps X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dan Lukes List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Nov 2009 18:20:02 -0000 >Number: 140365 >Category: ports >Synopsis: [ PATCH ] firebird20-client coredumps >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 07 18:20:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Dan Lukes >Release: FreeBSD 7.2-RELEASE-p3 i386 >Organization: Obludarium >Environment: System: FreeBSD 7.2-RELEASE-p3 i386 but it seems to apply to 7.0-R and 7.1-R as well databases/firebird20-client/Makefile,v 1.6 2009/08/23 10:40:40 erwin >Description: Program received signal SIGSEGV, Segmentation fault. in ThreadData::restoreSpecific () from /usr/local/lib/libfbclient.so.2 src/jrd/ThreadData.cpp:233 For detailed description including back-trace see http://bugs.php.net/bug.php?id=44711 >How-To-Repeat: just use the library. From example in php5-interbase The ibase_connect () call should be sufficient >Fix: The bug is related to GCC and it's ISO-style handling of thread-specific data. It's the reason why the only 7.x are affected, not the 6.x (the GCC version doesn't support it here). I don't know if it is bug in gcc or the the feature is used in unexpected/improper way. Problem disappear when we force the code to use POSIX way of handling thread specific data. --- patch-DAN-configure.in begins here --- --- configure.in.ORIG 2009-11-07 17:47:10.000000000 +0100 +++ configure.in 2009-11-07 17:47:35.000000000 +0100 @@ -696,7 +696,7 @@ rm -f conftest*]) if test "$firebird_cv_gcc___thread" = yes; then - AC_DEFINE(HAVE___THREAD, 1, [Define it if compiler supports ISO syntax for thread-local storage]) +dnl AC_DEFINE(HAVE___THREAD, 1, [Define it if compiler supports ISO syntax for thread-local storage]) fi dnl ##################### DO NOT ADD ANY TESTS BELOW ########################### --- patch-DAN-configure.in ends here --- >Release-Note: >Audit-Trail: >Unformatted: