NetBSD Problem Report #44411

From www@NetBSD.org  Tue Jan 18 15:13:42 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id ED72363B966
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 18 Jan 2011 15:13:41 +0000 (UTC)
Message-Id: <20110118151340.E35F363B883@www.NetBSD.org>
Date: Tue, 18 Jan 2011 15:13:40 +0000 (UTC)
From: ryo_on@yk.rim.or.jp
Reply-To: ryo_on@yk.rim.or.jp
To: gnats-bugs@NetBSD.org
Subject: lang/perl5 build failure on Linux/arm
X-Send-Pr-Version: www-1.0

>Number:         44411
>Category:       pkg
>Synopsis:       lang/perl5 build failure on Linux/arm
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    ryoon
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 18 15:15:05 +0000 2011
>Closed-Date:    Sat May 11 09:43:17 +0000 2013
>Last-Modified:  Sat May 11 09:43:17 +0000 2013
>Originator:     Ryo ONODERA
>Release:        Linux 2.6.33.2
>Organization:
>Environment:
Linux silicon 2.6.33.2 #1 Fri Dec 17 00:38:53 CST 2010 armv5tel GNU/Linux
>Description:
On Linux/arm NAS (qnap TS-110), lang/perl5 fails to build.
CFLAGS=-O1 does not solve this problem.

The log is here.
http://ryo-on.users.sourceforge.net/distrib/perl5-20110118.log

  ./miniperl -w -Ilib -MExporter -e '<?>' || /share/HDA_DATA/Public/pkg/bin/bmak
e minitest
Segmentation fault
cp ext/re/re.pm lib/re.pm
LD_LIBRARY_PATH=/share/HDA_DATA/Public/tmp/linux-arm/lang/perl5/work/perl-5.12.2
  ./miniperl -Ilib make_patchnum.pl
*** Signal 11

Stop.
bmake: stopped in /share/HDA_DATA/Public/tmp/linux-arm/lang/perl5/work/perl-5.12
.2

You may see some irrelevant test failures if you have been unable
to build lib/Config.pm, or the Unicode data files.

*** Error code 1 (ignored)
cd t && (rm -f perl; /bin/ln -s ../miniperl perl)  && LD_LIBRARY_PATH=/share/HDA
_DATA/Public/tmp/linux-arm/lang/perl5/work/perl-5.12.2  ./perl TEST -minitest ba
se/*.t comp/*.t cmd/*.t run/*.t io/*.t re/*.t op/*.t uni/*.t </dev/tty
Segmentation fault
*** Error code 139 (ignored)
LD_LIBRARY_PATH=/share/HDA_DATA/Public/tmp/linux-arm/lang/perl5/work/perl-5.12.2
  ./miniperl -Ilib autodoc.pl
*** Signal 11

Stop.
bmake: stopped in /share/HDA_DATA/Public/tmp/linux-arm/lang/perl5/work/perl-5.12
.2
*** Error code 1

Stop.
bmake: stopped in /share/HDA_DATA/Public/cvs/pkgsrc/lang/perl5
*** Error code 1

Stop.
bmake: stopped in /share/HDA_DATA/Public/cvs/pkgsrc/lang/perl5

>How-To-Repeat:
% cd lang/perl5
% bmake

>Fix:
I have no idea.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->linux-pkg-people
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Tue, 18 Jan 2011 19:22:16 +0000
Responsible-Changed-Why:
This is a Linux issue.


From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44411: lang/perl5 build failure on Linux/arm
Date: Thu, 20 Jan 2011 04:52:11 +0000

 On Tue, Jan 18, 2011 at 03:15:05PM +0000, ryo_on@yk.rim.or.jp wrote:
  >   ./miniperl ...
  > Segmentation fault
  > [...]
  >   ./miniperl ...
  > *** Signal 11
  > [...]
  > rm -f perl; /bin/ln -s ../miniperl perl
  > ./perl ...
  > Segmentation fault
  > [...]
  >   ./miniperl -Ilib autodoc.pl
  > *** Signal 11

 Definitely a pattern there. If you just run the compiled miniperl by
 hand, does it do the same thing? And if so, see if you can get a stack
 trace I guess...

 (I don't know anything about the innards of perl and I don't want to,
 but other people do)

 -- 
 David A. Holland
 dholland@netbsd.org

From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org, dholland-pbugs@netbsd.org
Cc: 
Subject: Re: pkg/44411: lang/perl5 build failure on Linux/arm
Date: Fri, 21 Jan 2011 23:12:40 +0900 (JST)

 Hi,

 Thanks for your response.

 From: David Holland <dholland-pbugs@netbsd.org>, Date: Thu, 20 Jan 2011 04:55:01 +0000 (UTC)

 > The following reply was made to PR pkg/44411; it has been noted by GNATS.
 > 
 > From: David Holland <dholland-pbugs@netbsd.org>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/44411: lang/perl5 build failure on Linux/arm
 > Date: Thu, 20 Jan 2011 04:52:11 +0000
 > 
 >  On Tue, Jan 18, 2011 at 03:15:05PM +0000, ryo_on@yk.rim.or.jp wrote:
 >   >   ./miniperl ...
 >   > Segmentation fault
 >   > [...]
 >   >   ./miniperl ...
 >   > *** Signal 11
 >   > [...]
 >   > rm -f perl; /bin/ln -s ../miniperl perl
 >   > ./perl ...
 >   > Segmentation fault
 >   > [...]
 >   >   ./miniperl -Ilib autodoc.pl
 >   > *** Signal 11
 >  
 >  Definitely a pattern there. If you just run the compiled miniperl by
 >  hand, does it do the same thing? And if so, see if you can get a stack
 >  trace I guess...
 >  
 >  (I don't know anything about the innards of perl and I don't want to,
 >  but other people do)

 % ./miniperl
 Segmentation fault

 Thank you.

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


State-Changed-From-To: open->feedback
State-Changed-By: cheusov@NetBSD.org
State-Changed-When: Wed, 07 Sep 2011 21:26:55 +0000
State-Changed-Why:
perl in pkgsrc was updated to 5.14.1.
Do you still see the same problem?


Can you build it without pkgsrc or miniperl and perl segfaults?


From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44411 (lang/perl5 build failure on Linux/arm)
Date: Tue, 27 Sep 2011 21:48:56 +0900 (JST)

 Hi,

 From: cheusov@NetBSD.org, Date: Wed,  7 Sep 2011 21:26:57 +0000 (UTC)

 > Synopsis: lang/perl5 build failure on Linux/arm
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: cheusov@NetBSD.org
 > State-Changed-When: Wed, 07 Sep 2011 21:26:55 +0000
 > State-Changed-Why:
 > perl in pkgsrc was updated to 5.14.1.
 > Do you still see the same problem?

 There is the same problem.

 LD_LIBRARY_PATH=/share/HDA_DATA/Public/cvs/pkgsrc/lang/perl5/work/perl-5.14.1  ./miniperl -w -Ilib -MExporter -e '<?>' || /share/HDA_DATA/Public/pkg/bin/bmake minitest
 Segmentation fault
 LD_LIBRARY_PATH=/share/HDA_DATA/Public/cvs/pkgsrc/lang/perl5/work/perl-5.14.1  ./miniperl -Ilib make_patchnum.pl
 *** Signal 11

 Stop.
 bmake: stopped in /share/HDA_DATA/Public/cvs/pkgsrc/lang/perl5/work/perl-5.14.1
 *** Error code 1 (ignored)

 You may see some irrelevant test failures if you have been unable
 to build lib/Config.pm, or the Unicode data files.

 cd t && (rm -f perl; /bin/ln -s ../miniperl perl)  && LD_LIBRARY_PATH=/share/HDA_DATA/Public/cvs/pkgsrc/lang/perl5/work/perl-5.14.1  ./perl TEST base/*.t comp/*.t cmd/*.t run/*.t io/*.t re/*.t op/*.t uni/*.t </dev/tty
 Segmentation fault
 *** Error code 139 (ignored)
 /bin/ln -s perldelta.pod pod/perl5141delta.pod
 LD_LIBRARY_PATH=/share/HDA_DATA/Public/cvs/pkgsrc/lang/perl5/work/perl-5.14.1  ./miniperl -Ilib autodoc.pl
 *** Signal 11


 > Can you build it without pkgsrc or miniperl and perl segfaults?

 no segfault, but another problem occurs.

 Running Makefile.PL in ext/Errno
 ../../miniperl -I../../lib Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR=none INSTALLMAN3DIR=none PERL_CORE=1 LIBPERL_A=libperl.a
 Writing Makefile for Errno
 Writing MYMETA.yml
 make[1]: Entering directory `/share/HDA_DATA/Public/tmp/perl-5.14.1/ext/Errno'
 make[1]: Leaving directory `/share/HDA_DATA/Public/tmp/perl-5.14.1/ext/Errno'
 Making all in ext/Errno
  make all PERL_CORE=1 LIBPERL_A=libperl.a
 make[1]: Entering directory `/share/HDA_DATA/Public/tmp/perl-5.14.1/ext/Errno'
 ../../miniperl "-I../../lib" "-I../../lib" Errno_pm.PL Errno.pm
 No error definitions found at Errno_pm.PL line 216.
 make[1]: *** [Errno.pm] Error 2
 make[1]: Leaving directory `/share/HDA_DATA/Public/tmp/perl-5.14.1/ext/Errno'
 Unsuccessful make(ext/Errno): code=512 at make_ext.pl line 463.
 make: *** [ext/Errno/pm_to_blib] Error 25



 I will look at this later.

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Responsible-Changed-From-To: linux-pkg-people->ryoon
Responsible-Changed-By: cheusov@NetBSD.org
Responsible-Changed-When: Tue, 27 Sep 2011 13:12:55 +0000
Responsible-Changed-Why:
Over to submitter which is now a commiter.


State-Changed-From-To: feedback->open
State-Changed-By: cheusov@NetBSD.org
State-Changed-When: Tue, 27 Sep 2011 13:12:55 +0000
State-Changed-Why:
The problem is still reproducible.


State-Changed-From-To: open->closed
State-Changed-By: ryoon@NetBSD.org
State-Changed-When: Sat, 11 May 2013 09:43:17 +0000
State-Changed-Why:
My busybox based Linux box is replaced with Debian GNU/Linux/arm 7.0.
On Debian, perl5 is built successfully.
I cannot analyze behavior on old Linux, I will closed this.
.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.