From owner-freebsd-current@FreeBSD.ORG Sat Mar 20 05:04:22 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD97C16A4CE for ; Sat, 20 Mar 2004 05:04:22 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BDF643D2D for ; Sat, 20 Mar 2004 05:04:22 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.11/8.12.11) with ESMTP id i2KD4Iuc054007; Sat, 20 Mar 2004 16:04:18 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.11/8.12.11/Submit) id i2KD4IvG054006; Sat, 20 Mar 2004 16:04:18 +0300 (MSK) (envelope-from ache) Date: Sat, 20 Mar 2004 16:04:17 +0300 From: Andrey Chernov To: Peter Edwards Message-ID: <20040320130416.GB53843@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Peter Edwards , Jason Andresen , Doug White , freebsd-current@freebsd.org References: <4058AC1C.10208@mitre.org> <4059B9CD.1010003@openet-telecom.com> <4059C3B0.4080003@mitre.org> <20040318095842.W62520@carver.gumbysoft.com> <4059E668.1030405@openet-telecom.com> <405B055D.30203@mitre.org> <405B1304.1020307@openet-telecom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <405B1304.1020307@openet-telecom.com> User-Agent: Mutt/1.5.6i X-AntiVirus: checked by AntiVir Milter 1.1-beta; AVE 6.24.0.7; VDF 6.24.0.64 (host: pobrecita.freebsd.ru) cc: freebsd-current@freebsd.org Subject: Re: Pan crashing in libgnuregex after -pthread switchover X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2004 13:04:22 -0000 On Fri, Mar 19, 2004 at 03:34:28PM +0000, Peter Edwards wrote: > The layout of the structures passed to regexec() and regcomp() are note > binary compatible between the GNU library and the FreeBSD libc. So, when > you pick one at compile time, and get something else at run-time, Things > Go Horribly Wrong. The older version of the GNU library didn't have the > POSIX "regexec" or "regcomp" functions compiled-in, so this didn't pose > a problem, but the "-DNO_POSIX_COMPAT=1" was dropped from > src/gnu/lib/libregex/Makefile with the latest import. I'm not sure if > this was intentional or not, but there's nothing obvious about it in the > commit message. It is interesting note, but I don't see how you really can use _both_ GNU regex and libc regexec/regcomp. To use libc regexec/regcomp you need to include our system's , but once you do it, you can't use GNU regex due to headers conflicts. And vice versa, if you include you can't use regexec/regcomp from libc, because can't include their header, because it produce conflict. So you can either have GNU version of all mentioned functions or system version, but not intermix of them. -- Andrey Chernov | http://ache.pp.ru/