From nobody@FreeBSD.org  Tue Mar  2 16:48:46 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B9D2616A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 Mar 2004 16:48:46 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9D16E43D31
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 Mar 2004 16:48:46 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i230mk72055224
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 2 Mar 2004 16:48:46 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i230mkJI055223;
	Tue, 2 Mar 2004 16:48:46 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200403030048.i230mkJI055223@www.freebsd.org>
Date: Tue, 2 Mar 2004 16:48:46 -0800 (PST)
From: Ross McFarland <rwmcfa1@neces.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 'Unable to read from thread kernel pipe'  abort while running perl Makefile.PL for Gtk2 module, perl 5.8.2
X-Send-Pr-Version: www-2.3

>Number:         63670
>Category:       ports
>Synopsis:       lang/perl5.8: 'Unable to read from thread kernel pipe'  abort while running perl Makefile.PL for Gtk2 module (perl 5.8.2)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    perl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 02 16:50:11 PST 2004
>Closed-Date:    Mon Aug 14 13:02:43 GMT 2006
>Last-Modified:  Mon Aug 14 13:02:43 GMT 2006
>Originator:     Ross McFarland
>Release:        5.2
>Organization:
Gtk2-Perl Team
>Environment:
FreeBSD gamma.local 5.2-RELEASE FreeBSD 5.2-RELEASE #0: Sun Jan 11 04:21:45 GMT 2004     root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
this happened long ago on 5.1, still happens on 5.2. happens when perl 5.8.2 from pkgs, from ports WITH_THREADS and ports default.

i'm a memeber of the Gtk2-Perl team and was going to look into getting the Gtk2-Perl set of modules into the ports tree. those modules will build and work on the 4.9 series after perl is upgraded to a new enough version.

output of fatal/problem command:

$ perl Makefile.PL 
Fatal error 'Unable to read from thread kernel pipe' at line 1100 in file /usr/src/lib/libc_r/uthread/uthread_kern.c (errno = 0)
Abort trap (core dumped)

this is happening in one of a set of perl system calls in the ExtUtils::PkgConfig module. this problem hasn't been seen on any other os. the call would be something rather simple and look something like this:
    system ("pkg-config --modversion gtk+-2.0");
the Glib module uses similar calls (with glib-2.0 instead of gtk+-2.0) that have no problems. the pkg-config command on the command line work fine as well.

output and bt of gdb on the core file dumped:

$ gdb perl perl.core GNU gdb 5.2.1 (FreeBSD)...#0  0x281f9d4f in kill () from /lib/libc.so.5(gdb) bt#0  0x281f9d4f in kill () from /lib/libc.so.5#1  0x281ee7f8 in raise () from /lib/libc.so.5#2  0x28266f02 in abort () from /lib/libc.so.5#3  0x28473565 in _thread_exit () from /usr/lib/libc_r.so.5#4  0x28471345 in _thread_kern_sig_undefer () from /usr/lib/libc_r.so.5#5  0x28470a94 in _thread_kern_sched_state_unlock () from /usr/lib/libc_r.so.5#6  0x28470445 in _thread_kern_scheduler () from /usr/lib/libc_r.so.5#7  0x65736961 in ?? ()#8  0xbfbfe588 in ?? ()Cannot access memory at address 0xb
>How-To-Repeat:
install the perl 5.8.2 pkg (5.8.x is required by Gtk2-Perl)

after building and installing ExtUtils::Depends, ExtUtils::PkgConfig, and Glib run 'perl Makefile.PL' with the Gtk2 module.

easiest way to repeat would probably be to check out gtk2-perl-xs from the gtk2-perl project on sourceforge. http://gtk2-perl.sourceforge.net/ and just make from the toplevel directory.

>Fix:
      
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: arved 
State-Changed-When: Sun Apr 25 06:11:29 PDT 2004 
State-Changed-Why:  
Misfiled, this is a ports issue. 


Responsible-Changed-From-To: freebsd-i386->freebsd-ports-bugs 
Responsible-Changed-By: arved 
Responsible-Changed-When: Sun Apr 25 06:11:29 PDT 2004 
Responsible-Changed-Why:  
ports (perl) issue 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63670 
State-Changed-From-To: feedback->open 
State-Changed-By: arved 
State-Changed-When: Sun May 2 09:52:07 PDT 2004 
State-Changed-Why:  
Hm, feedback is the wrong state. 


Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-perl 
Responsible-Changed-By: arved 
Responsible-Changed-When: Sun May 2 09:52:07 PDT 2004 
Responsible-Changed-Why:  
Ok, there is this new perl Mailinglist. Over for evaluation. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63670 
Responsible-Changed-From-To: freebsd-perl->perl 
Responsible-Changed-By: mat 
Responsible-Changed-When: Mon May 24 13:30:34 PDT 2004 
Responsible-Changed-Why:  
more PR's have only "perl" 

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

From: Florent Thoumie <flz@xbsd.org>
To: bug-followup@FreeBSD.org, rwmcfa1@neces.com
Cc:  
Subject: Re: ports/63670: lang/perl5.8: 'Unable to read from thread kernel
	pipe'  abort while running perl Makefile.PL for Gtk2 module (perl 5.8.2)
Date: Wed, 30 Nov 2005 13:18:07 +0000

 --=-4giazUGBlyH+FYrcZpA0
 Content-Type: text/plain
 Content-Transfer-Encoding: quoted-printable
 
 	Is this still an issue with latest versions from ports ?
 
 --=20
 Florent Thoumie
 flz@FreeBSD.org
 FreeBSD committer
 
 --=-4giazUGBlyH+FYrcZpA0
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Description: Ceci est une partie de message
 	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (FreeBSD)
 
 iD8DBQBDjaaPMxEkbVFH3PQRAgImAJ0fe3K+ltmTUxR9fVZT/PMWKEmqZQCfbNJa
 EB6bbzX2RURF19KpBOyzm9g=
 =OL+l
 -----END PGP SIGNATURE-----
 
 --=-4giazUGBlyH+FYrcZpA0--
 
State-Changed-From-To: open->feedback 
State-Changed-By: tobez 
State-Changed-When: Mon Feb 27 12:09:18 CET 2006 
State-Changed-Why:  
One more feedback attempt.  Is this still an issue with the current 
versions of ports involved? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63670 
State-Changed-From-To: feedback->closed 
State-Changed-By: mat 
State-Changed-When: Mon Aug 14 13:02:22 UTC 2006 
State-Changed-Why:  
No feedback received, seems no interest in this PR anymore. 

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