<?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>5236</bug_id>
          
          <creation_ts>2013-09-19 14:38:51 +0000</creation_ts>
          <short_desc>bitbake process hangs when invalid PR Server address provided</short_desc>
          <delta_ts>2013-10-17 11:19:20 +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>1.5</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>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="valentin">valentin.popa</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <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>36974</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-09-19 14:38:51 +0000</bug_when>
    <thetext>poky master:853bc53cd58a621918f0e5ce662dba263d1befb4

1) get poky, source environment
2) issue command &apos;bitbake man&apos;
3) add in local.conf: PRSERV_HOST = &quot;127.0.0.1:1234&quot;
4) issue command &apos;bitbake man&apos;

Notice error:
ERROR: PRservice 127.0.0.1:1234 not available

5) again, issue the command &apos;bitbake man&apos;

Notice error:
ERROR: Only one copy of bitbake should be run against a build directory

6) issue command &apos;ps aux | grep bitbake&apos; 

Notice bitbake process hanged:
cornel@NODE2:~/work/poky/build$ ps aux | grep bitbake
cornel   22225  100  0.1  51208 14784 pts/0    R    18:55   2:04 python /home/cornel/work/poky/bitbake/bin/bitbake-worker decafbad
cornel   22232  0.0  0.0  15100   996 pts/0    S+   18:57   0:00 grep --color=auto bitbake
cornel@NODE2:~/work/poky/build$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37631</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-10-04 14:51:22 +0000</bug_when>
    <thetext>I tried this on the revision of poky mentioned and on master and could not reproduce it. Can you double check this reproduces please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37636</commentid>
    <comment_count>2</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-10-04 15:21:05 +0000</bug_when>
    <thetext>New steps to reproduce:
1) Set up 2 poky environments
2) in the first poky environment issue command: bitbake-prserv --start
3) in the second poky environment add in local.conf: PRSERV_HOST = &quot;127.0.0.1:8585&quot;
4) in the second poky environment, issue command: bitbake man
     - you can cancel the build once is starts executing tasks
5) in the first poky environment, issue command: bitbake-prserv --stop
6) in the second poky environment issue command: bitbake man
     - notice (correct) error:
 ERROR: PRservice 127.0.0.1:8585 not available
6) in the second poky environment, issue again the command: bitbake man
     - notice error:
ERROR: Only one copy of bitbake should be run against a build directory


NOTE:
cornel@NODE1:~/SSD/poky/2build$ ps aux | grep bitbake
cornel   31695 97.9  0.1  51124 14932 pts/4    R    18:20   0:24 python /home/cornel/SSD/poky/bitbake/bin/bitbake-worker decafbad</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37637</commentid>
    <comment_count>3</comment_count>
    <who name="valentin">valentin.popa</who>
    <bug_when>2013-10-04 15:25:40 +0000</bug_when>
    <thetext>Hi Richard,
I could also reproduce this on my tree by sending SIGINT (CTRL+C) while running the first &quot;bitbake man&quot;. Then add the server address in local.conf and run &quot;bitbake man&quot; again.
The problem seems to be that shutdown() from cooker.py returns premature because self.toparse is not initialized.
Do you have any sugestions of how to fix this problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38002</commentid>
    <comment_count>4</comment_count>
    <who name="valentin">valentin.popa</who>
    <bug_when>2013-10-17 11:10:56 +0000</bug_when>
    <thetext>This issue doesn&apos;t reproduce on master anymore due to Richard&apos;s fix: 3ca820de91c2456a1b1c44022072f6ce7aa21344.
Thanks for the help Richard!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38005</commentid>
    <comment_count>5</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-10-17 11:19:20 +0000</bug_when>
    <thetext>Verified in master:529bf977e956175bd8405ebffc88194192e44740

Note: This has not made it into the 1.5 dora release.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>