Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333962 - Network operations hang if pxgconf does not return the value in time
Summary: Network operations hang if pxgconf does not return the value in time
Status: RESOLVED DUPLICATE of bug 332728
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform Team Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-11 07:06 EST by Robert Munteanu CLA
Modified: 2011-01-11 07:53 EST (History)
1 user (show)

See Also:


Attachments
stack traces for eclipse when restarting (61.53 KB, text/plain)
2011-01-11 07:10 EST, Robert Munteanu CLA
no flags Details
backtrace for pxgconf (742 bytes, text/plain)
2011-01-11 07:11 EST, Robert Munteanu CLA
no flags Details
Partial ps output, showing eclipse and its child processes (477 bytes, text/plain)
2011-01-11 07:12 EST, Robert Munteanu CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Munteanu CLA 2011-01-11 07:06:47 EST
Build Identifier: 

I have seen on some occasions that Eclipse 'hangs' during network operations. Trying to restart Eclipse has no effect , as the network-related jobs are all hung.

By taking a thread dump I have noticed that:

- one thread holds the lock for org.eclipse.core.net.ProxyProvider ;
- other threads are waiting to lock the ProxyProvider;
- the thread holding the said lock is waiting for a process to exit

Running ps I have noticed that Eclipse has a child process spawned: /usr/lib/libproxy/pxgconf , which is by itself hung.

Reproducible: Sometimes

Steps to Reproduce:
1.Perform network operations in Eclipse
Comment 1 Robert Munteanu CLA 2011-01-11 07:08:29 EST
Build id: 20100917-0705
gtk2-2.20.1-2.13.x86_64
Comment 2 Robert Munteanu CLA 2011-01-11 07:10:15 EST
Created attachment 186478 [details]
stack traces for eclipse when restarting
Comment 3 Robert Munteanu CLA 2011-01-11 07:11:04 EST
Created attachment 186479 [details]
backtrace for pxgconf
Comment 4 Robert Munteanu CLA 2011-01-11 07:12:32 EST
Created attachment 186480 [details]
Partial ps output, showing eclipse and its child processes
Comment 5 Robert Munteanu CLA 2011-01-11 07:13:08 EST
Even though the faut is clearly in an external component and not Eclipse, I think a guard should be but in place for such misbehaviour on pxgconf's behalf.
Comment 6 James Blackburn CLA 2011-01-11 07:23:26 EST
It's actually running '/bin/sh -c 'env'' and your env process has become defunct...

This should all be fixed by bug 332728 where we'll use Java API for this by default.

*** This bug has been marked as a duplicate of bug 332728 ***