<?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>10740</bug_id>
          
          <creation_ts>2016-11-29 05:17:33 +0000</creation_ts>
          <short_desc>Handle exceptions while populating data to transmit using xmlrpc</short_desc>
          <delta_ts>2017-01-17 14:07:46 +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>BitBake</product>
          <component>bitbake</component>
          <version>2.3</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>2.3 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sujith H">sujith.h</reporter>
          <assigned_to name="Sujith H">sujith.h</assigned_to>
          <cc>jose.perez.carranza</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sjolley.yp.pm</cc>
          
          <qa_contact name="David Lopez Barriba">davidx.lopez.barriba</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68671</commentid>
    <comment_count>0</comment_count>
    <who name="Sujith H">sujith.h</who>
    <bug_when>2016-11-29 05:17:33 +0000</bug_when>
    <thetext>While working for toaster, I came across an incident. A variable which was used for private use was having value as subprocess.Popen. The problem was detected in function: getAllKeysWithFlags from file: bitbake/lib/bb/cooker.py. The error shown was:

ERROR: &lt;Fault 1: &quot;&lt;class &apos;TypeError&apos;&gt;:cannot marshal &lt;class &apos;_thread.lock&apos;&gt; objects&quot;&gt;
Traceback (most recent call last):
  File &quot;/home/sujith/MEL/toaster-latest/poky/bitbake/lib/bb/ui/toasterui.py&quot;, line 256, in main
    buildinfohelper.save_build_layers_and_variables()
  File &quot;/home/sujith/MEL/toaster-latest/poky/bitbake/lib/bb/ui/buildinfohelper.py&quot;, line 1151, in save_build_layers_and_variables
    data = self.server.runCommand([&quot;getAllKeysWithFlags&quot;, [&quot;doc&quot;, &quot;func&quot;]])[0]
  File &quot;/usr/lib/python3.4/xmlrpc/client.py&quot;, line 1098, in __call__
    return self.__send(self.__name, args)
  File &quot;/usr/lib/python3.4/xmlrpc/client.py&quot;, line 1437, in __request
    verbose=self.__verbose
  File &quot;/usr/lib/python3.4/xmlrpc/client.py&quot;, line 1140, in request
    return self.single_request(host, handler, request_body, verbose)
  File &quot;/usr/lib/python3.4/xmlrpc/client.py&quot;, line 1156, in single_request
    return self.parse_response(resp)
  File &quot;/usr/lib/python3.4/xmlrpc/client.py&quot;, line 1327, in parse_response
    return u.close()
  File &quot;/usr/lib/python3.4/xmlrpc/client.py&quot;, line 657, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: &lt;Fault 1: &quot;&lt;class &apos;TypeError&apos;&gt;:cannot marshal &lt;class &apos;_thread.lock&apos;&gt; objects&quot;&gt;


So if we handle the types which come from the data store as marshallable or at least if we try to have a mechanism to convert non marshallable type objects to str, then this issue could have been suppressed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68672</commentid>
    <comment_count>1</comment_count>
    <who name="Sujith H">sujith.h</who>
    <bug_when>2016-11-29 07:32:05 +0000</bug_when>
    <thetext>While investigation it was found that variable v was having object of type v = &lt;subprocess.Popen object at 0x7f56f4964ef0&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69147</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-12-15 12:00:05 +0000</bug_when>
    <thetext>Fixed in bitbake efb0e47479b3526bc047112f7200087c5844bba4.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>