From dan@obluda.cz  Sat Nov  7 18:15:19 2009
Return-Path: <dan@obluda.cz>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id ADC3F106566B
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <dan@obluda.cz>
Reply-To: Dan Lukes <dan@obluda.cz>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [ PATCH ] firebird20-client coredumps
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         140365
>Category:       ports
>Synopsis:       [patch] databases/firebird20-client coredumps
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 07 18:20:01 UTC 2009
>Closed-Date:    Sat Apr 24 07:40:39 CEST 2010
>Last-Modified:  Sat Apr 24 07:40:39 CEST 2010
>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:

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/140365: commit references a PR
Date: Sat, 24 Apr 2010 05:36:06 +0000 (UTC)

 dinoex      2010-04-24 05:35:58 UTC
 
   FreeBSD ports repository
 
   Modified files:
     databases/firebird20-server Makefile 
     databases/firebird20-server/files patch-configure.in 
   Log:
   - warn when if no SYSVIPC
   
   - fix coredump
   PR:             140365
   Submitted by:   Dan Lukes
   
   Revision  Changes    Path
   1.73      +6 -1      ports/databases/firebird20-server/Makefile
   1.6       +10 -1     ports/databases/firebird20-server/files/patch-configure.in
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
Responsible-Changed-From-To: freebsd-ports-bugs->dinoex 
Responsible-Changed-By: dinoex 
Responsible-Changed-When: Sat Apr 24 07:40:10 CEST 2010 
Responsible-Changed-Why:  
I will take care of it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140365 
State-Changed-From-To: open->closed 
State-Changed-By: dinoex 
State-Changed-When: Sat Apr 24 07:40:29 CEST 2010 
State-Changed-Why:  
committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140365 
>Unformatted:
