<?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>893</bug_id>
          
          <creation_ts>2011-03-17 03:02:11 +0000</creation_ts>
          <short_desc>eclipse can not exit if we close the qemu directly</short_desc>
          <delta_ts>2011-03-24 20:57:05 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Eclipse Plugin</product>
          <component>eclipse-plugin</component>
          <version>1.0</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.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lianhao Lu">lianhao.lu</reporter>
          <assigned_to name="Jessica">jessica.zhang</assigned_to>
          <cc>liping.ke</cc>
    
    <cc>yp.ep.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12754</commentid>
    <comment_count>0</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-03-17 03:02:11 +0000</bug_when>
    <thetext>Using the following scenario, the eclipse can not be closed correctly:

1. launch the eclipse from the terminal
2. launch the qemu
3. remote debug an application from eclipse
4. directly click the &quot;X&quot; on the qemu window
5. exit eclipse

Then we&apos;ll find the eclipse hang after printing &quot;Unsubscribe streams before disconnecting TCP channel&quot;. 

This is because by directly click the &quot;X&quot; on the qemu window, the OS still thinks there is an active TCP connection to qemu even though the tap device is deleted.(we can see this by running &quot;netstat -ant&quot;) 

The eclipse plugin is waiting for the reply of &quot;unsubscribe stream&quot; for ever. And because the system doesn&apos;t think the TCP connection is broken, it won&apos;t trigger the IOException which is designed to be caught by the eclipse plugin to handle such kind of situations. 

Is it possible this has something to do with the tap device?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12785</commentid>
    <comment_count>1</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-03-17 19:25:46 +0000</bug_when>
    <thetext>The root cause of this bug is the same of bug #203.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12786</commentid>
    <comment_count>2</comment_count>
    <who name="liping Ke">liping.ke</who>
    <bug_when>2011-03-17 19:40:59 +0000</bug_when>
    <thetext>Sometimes, if target shutdown unexpectedly, the TCF client side
need to unsubsribe all its streams. However, if we use wait style,
it will never receive response and go back. So we use Timeout,
if 1s passes, it will raise an Timeout Exception.

This bug should be fixed by commit: 
http://git.pokylinux.org/cgit/cgit.cgi/eclipse-poky/commit/?id=7f633bcc9cf44c082fd0a2102ea313f0b600228e


Thanks&amp; Regards,
criping</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>