<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13161</bug_id>
          
          <creation_ts>2019-01-31 02:50:06 +0000</creation_ts>
          <short_desc>[2.7 M2 RC1] Perl can not handle signals</short_desc>
          <delta_ts>2019-02-14 05:56:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.7 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Alexander Kanavin">alex.kanavin</assigned_to>
          <cc>ee.peng.yeoh</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>yi.zhao</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>82909</commentid>
    <comment_count>0</comment_count>
      <attachid>4427</attachid>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2019-01-31 02:50:06 +0000</bug_when>
    <thetext>Created attachment 4427
test.pl

Image location: https://autobuilder.yocto.io/pub/releases/yocto-2.7_M2.rc1/

Git rev: master/1979d9162a335b7d4718a6697ca57bfa16237f0e

I found the perl can not handle signal on poky with core-image-sato-sdk:
####################################################
root@beaglebone-yocto:~# cat test.pl 
#!/usr/bin/env perl

use strict;
use warnings;

$SIG{INT} = sub { die &quot;Caught a sigint $!&quot; };

sleep(20);
root@beaglebone-yocto:~# chmod a+x ./test.pl 
root@beaglebone-yocto:~# ./test.pl 
No such signal: SIGINT at ./test.pl line 6.
^C
####################################################

Run the test.pl on Ubuntu 16.04, I got the correct result:
####################################################
$ ./test.pl 
^CCaught a sigint Interrupted system call at ./test.pl line 5.
####################################################


Run command perl -e &apos;foreach (keys %SIG) { print &quot;$_\n&quot; }&apos; to check the signals in perl:

On poky:
#################################################
root@beaglebone-yocto:~# perl -e &apos;foreach (keys %SIG) { print &quot;$_\n&quot; }&apos;
root@beaglebone-yocto:~# 
################################################

On Ubuntu 16.04:
####################################################
$ perl -e &apos;foreach (keys %SIG) { print &quot;$_\n&quot; }&apos;
NUM32
XCPU
PROF
STOP
ABRT
PIPE
NUM63
NUM55
NUM48
[snip]
####################################################

This issue happens on both qemu and BSPs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82910</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-01-31 10:14:51 +0000</bug_when>
    <thetext>Try adding &apos;seq&apos; to HOSTTOOLS and rebuilding perl.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82915</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-01-31 15:50:06 +0000</bug_when>
    <thetext>A patch was sent to the list (bitbake.conf: Add seq to HOSTTOOLS) to fix this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82944</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2019-02-01 13:51:14 +0000</bug_when>
    <thetext>I can confirm that latest poky master fixes this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82992</commentid>
    <comment_count>4</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2019-02-14 05:56:48 +0000</bug_when>
    <thetext>Verified with 2.7 M2 RC2.
Git rev: master/be52da152a4d9f9e798844f592ec9ae7e051c658</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4427</attachid>
            <date>2019-01-31 02:50:06 +0000</date>
            <delta_ts>2019-01-31 02:50:06 +0000</delta_ts>
            <desc>test.pl</desc>
            <filename>test.pl</filename>
            <type>application/x-perl</type>
            <size>106</size>
            <attacher name="Yi Zhao">yi.zhao</attacher>
            
              <data encoding="base64">IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwoKJFNJR3tJTlR9
ID0gc3ViIHsgZGllICJDYXVnaHQgYSBzaWdpbnQgJCEiIH07CgpzbGVlcCgyMCk7Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>