<?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>6880</bug_id>
          
          <creation_ts>2014-10-23 22:22:59 +0000</creation_ts>
          <short_desc>Redhat/Fedora Shellshock Fix Leads To oe_terminal breakage</short_desc>
          <delta_ts>2014-12-18 13:20:21 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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>1.8 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christopher Kilgour">chris</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bluelightning</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Lucian Musat">georgex.l.musat</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>46550</commentid>
    <comment_count>0</comment_count>
    <who name="Christopher Kilgour">chris</who>
    <bug_when>2014-10-23 22:22:59 +0000</bug_when>
    <thetext>Fedora/Redhat have adopted a particular fix to cve-2014-7169, commonly known as a part of the shellshock bug, which includes the patches here [1].

As a consequence, terminal spawning is broken for commands like &quot;bitbake virtual/kernel -c menuconfig&quot;.

The reason is the environment variables exported via poky/meta/classes/terminal.bbclass include names like &quot;BASH_FUNC_xxx()&quot; which bash itself will not interpret.

An example offending line in run.do_terminal.&lt;PID&gt; is

...
export BASH_FUNC_module()=&quot;() {  eval `/usr/bin/modulecmd bash $*` \
}&quot;
...

Since the bash that is launched in the spawned terminal cannot interpret the offending line, it fails to run.  The user is briefly met with a spawned terminal that immediately closes with no indication of the problem.

[1] http://www.openwall.com/lists/oss-security/2014/09/25/13</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47423</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-12-08 15:03:59 +0000</bug_when>
    <thetext>I tried to reproduce this on fedora 20 and whilst I see that bitbake exits early, menuconfig is launched successfully. Did fedora change the bash patchsets they were applying?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47426</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-12-08 16:32:56 +0000</bug_when>
    <thetext>FWIW I&apos;ve figured this out and will send out a patch to fix things shortly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47494</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-12-11 15:24:17 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=eb2ea6fd2d2dc626ead13de1ec334d4220651612</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>