Bug 336302 - General File System Import Hangs
Summary: General File System Import Hangs
Status: CLOSED DUPLICATE of bug 321505
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 critical with 5 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-03 20:58 EST by Megan Mickelson CLA
Modified: 2011-02-09 04:11 EST (History)
6 users (show)

See Also:


Attachments
kill -3 dump (17.98 KB, text/plain)
2011-02-04 14:43 EST, Megan Mickelson CLA
no flags Details
Another Stack Dump (20.35 KB, text/plain)
2011-02-04 19:44 EST, Megan Mickelson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Megan Mickelson CLA 2011-02-03 20:58:28 EST
Build Identifier: 20100617-1415

Importing from General -> File System hangs and becomes unresponsive on Linux.

Occurs on Ubuntu 9.04

Reproducible: Always

Steps to Reproduce:
1. File -> Import
2. Select General - > File System
3. Select any File
4. Select Finish
Comment 1 James Blackburn CLA 2011-02-04 03:11:10 EST
Please provide backtraces of eclipse hung:
http://wiki.eclipse.org/How_to_report_a_deadlock

What version of Eclipse core.resources is this?
Comment 2 Szymon Brandys CLA 2011-02-04 03:27:47 EST
I'm not able to see the problem locally. Does it also happen on Windows or Mac? Note that this may be a problem in UI, not Resources.
Comment 3 Prakash Rangaraj CLA 2011-02-04 03:32:31 EST
Are there recursive links in the folder? There was a bug fixed in 3.6 for that. Can you reproduce this in the recent 3.7 builds?
Comment 4 Megan Mickelson CLA 2011-02-04 14:43:19 EST
Created attachment 188360 [details]
kill -3 dump

Stack dump.
Comment 5 Megan Mickelson CLA 2011-02-04 15:03:38 EST
core.resources version is 20100526-0737

...

I now believe this is limited to importing from a symbolic-linked directory pointing to a mounted file system...

Specifically, my situation is importing from this directory:

lrwxrwxrwx  1 megan megan     16 2011-02-01 17:57 mhome -> /media/psf/Home/

Where...

[~]$ mount
[...]
none on /media/psf type prl_fs (rw,nosuid,nodev,sync,noatime,share)
[...]

And yes, the mounted file system is a Parallels filesystem (this particular machine is a Parallels virtual machine).  

However, this same hang up has occurred on a differing mounted file system with another one of our users (not running in a VM).  I will get more information as soon as possible on the particulars of their configuration.

I have NOT been able to reproduce this with Indigo, and I have not been able to reproduce with another mounted filesystem type (e.g. NFS).
Comment 6 James Blackburn CLA 2011-02-04 18:06:28 EST
This is really NOT_ECLIPSE.

The hang is happening in java.io.*.  We've seen this in the automounter directory when the automounter is under stress (or crashed!). Eclipse may be more stressful on filers than other programs. However a lock up in standard file I/O routines isn't something we can fix.
Comment 7 Tom Crockett CLA 2011-02-04 18:33:03 EST
James,

If it's not manifesting in 3.7, using the same JRE (see Megan's last comment above), how can it not be somehow related to Eclipse?
Comment 8 James Blackburn CLA 2011-02-04 18:40:32 EST
(In reply to comment #7)
> If it's not manifesting in 3.7, using the same JRE (see Megan's last comment
> above), how can it not be somehow related to Eclipse?

Random chance. 

The top of the stack is part of a call-stack reachable by both versions of eclipse:
	at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
	at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:243)
	at java.io.File.isDirectory(File.java:771)
        ...
Megan's already indicated that there might be some issue with that mount directory. While it could be a JVM issue, more likely it's a OS / Parallels issue.  

Of course if you think there's something else going wrong in eclipse you'll need to provide more backtraces using jstack or similar.

By NOT_ECLIPSE I mean the provided backtrace doesn't implicate eclipse.
Comment 9 Megan Mickelson CLA 2011-02-04 19:44:52 EST
Created attachment 188380 [details]
Another Stack Dump

Alright, I was able to replicate this on a different machine (non-VM), RedHat 5 and on a non-mounted directory.  In addition to that, I was also able to unmount the Parallels disk and still get the same problem (in a non-mounted directory) for my VM of Ubuntu.

Attached is the prior scenario, nevertheless it does eventually come back up, but it takes awhile (> 2 mins).  This was on importing a ~400KB file.  

It is Tom Crockett's belief that this issue is never a true deadlock and it always recovers, but only after a considerable amount of time, and during this time the UI becomes unresponsive (painting the screen with dialog box).
Comment 10 Megan Mickelson CLA 2011-02-04 19:45:46 EST
I would like to add that this issue isn't only on relatively large files.  Still occurs on small files (few KB).
Comment 11 Dani Megert CLA 2011-02-07 03:25:07 EST
Megan, please try a 3.6.1 (or 3.6.2 RC3) build. Unlike Prakash mentioned in comment 3, the important fix went into 3.6.1 and I'm pretty sure that this bug is a duplicate of bug 321505.
Comment 12 Megan Mickelson CLA 2011-02-08 18:03:14 EST
I've tried reproducing this issue with 3.6.1 and to the best of my ability cannot.  I've replicated the same procedure as I did in 3.6.0 to the T and it works just fine.  So I would say that this was in fact a duplicate of the bug you've mentioned, and it appears to have been resolved.  

I vote to close this and mark as duplicate.  I appreciate it.
Comment 13 Prakash Rangaraj CLA 2011-02-09 01:07:45 EST

*** This bug has been marked as a duplicate of bug 334334 ***
Comment 14 Tom Crockett CLA 2011-02-09 01:12:42 EST
This is not a duplicate of bug 334334, it's a duplicate of bug 321505, isn't it?
Comment 15 Dani Megert CLA 2011-02-09 01:51:22 EST
(In reply to comment #14)
> This is not a duplicate of bug 334334, it's a duplicate of bug 321505, isn't
> it?
Correct.

*** This bug has been marked as a duplicate of bug 321505 ***
Comment 16 Prakash Rangaraj CLA 2011-02-09 03:43:58 EST
(In reply to comment #15)
> (In reply to comment #14)
> > This is not a duplicate of bug 334334, it's a duplicate of bug 321505, isn't
> > it?
> Correct.


Oops! don't know where I got that number from!
Thanks Dani for correctly marking it.
Comment 17 Tom Crockett CLA 2011-02-09 04:11:06 EST
Bug 334334 arises under similar conditions to this one (importing a file into the workspace), so it was initially marked as related although it now appears not to be.