From nobody@FreeBSD.org  Wed Jun  6 17:25:31 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id E036916A468
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 Jun 2007 17:25:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id AF40D13C4B0
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 Jun 2007 17:25:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l56HPUsS025648
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 6 Jun 2007 17:25:30 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l56HPUhE025632;
	Wed, 6 Jun 2007 17:25:30 GMT
	(envelope-from nobody)
Message-Id: <200706061725.l56HPUhE025632@www.freebsd.org>
Date: Wed, 6 Jun 2007 17:25:30 GMT
From: Remy de Ruysscher<rdr@xs4all.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: libthrd errors
X-Send-Pr-Version: www-3.0

>Number:         113424
>Category:       kern
>Synopsis:       libthrd errors
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 06 17:30:03 GMT 2007
>Closed-Date:    Thu Jun 07 01:29:21 GMT 2007
>Last-Modified:  Thu Jun  7 21:20:03 GMT 2007
>Originator:     Remy de Ruysscher
>Release:        6.2-RELENG
>Organization:
>Environment:
FreeBSD unix-asp.com 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #7: Tue Jun  5 22:39:18 CEST 2007     root@unix-asp.com:/usr/obj/usr/src/sys/DEFIANT  i386
>Description:
[root@unix-asp ~]# MailScanner
In Debugging mode, not forking...
Fatal error 'Cannot allocate red zone for initial thread' at line 364 in file /usr/src/lib/libthr/thre                                                             ad/thr_init.c (errno = 12)
Abort trap: 6
Fatal error 'Cannot allocate red zone for initial thread' at line 364 in file /usr/src/lib/libthr/thre                                                             ad/thr_init.c (errno = 12)

>How-To-Repeat:
Start MailScanner (perl app).


>Fix:
n/a

Recompilation of world/kernel and GENERIC kernel didn't solve anything.
I've also upwards recursively all perl packages.

>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@obsecurity.org>
To: Remy de Ruysscher <rdr@xs4all.nl>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/113424: libthrd errors
Date: Wed, 6 Jun 2007 16:31:27 -0400

 FAQ, check the mailing list archives.  You have a binary that is
 linked to two thread libraries, which is illegal.
 
 Kris
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Thu Jun 7 01:28:36 UTC 2007 
State-Changed-Why:  
kris has pointed out that this is a local error, and has been encountered 
before. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113424 

From: "Remy de Ruysscher" <rdr@xs4all.nl>
To: bug-followup@FreeBSD.org, rdr@xs4all.nl
Cc:  
Subject: Re: kern/113424: libthrd errors
Date: Thu, 7 Jun 2007 23:16:22 +0200 (CEST)

 I've not been able to solve this one, note that the app is not a dynamic
 executable (perl script), so it can't be linked to multiple thread libs as
 suggested.
 
 /usr/bin/perl:
         libperl.so => /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
 (0x5487c000)
         libm.so.4 => /lib/libm.so.4 (0x549a1000)
         libcrypt.so.3 => /lib/libcrypt.so.3 (0x549b7000)
         libutil.so.5 => /lib/libutil.so.5 (0x549d0000)
         libc.so.6 => /lib/libc.so.6 (0x549dd000)
 
 I've also compiled the world and kernel with -mno-redzone option, but this
 fatal error remains.
 
 So what else could be wrong? Please give any starting points for a
 resolution rather than close the bug rightaway.
 
 Thanks.
 
 
 
>Unformatted:
