This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 171075 - Code model preparing for some hosts never finishes and IDE can hang
Summary: Code model preparing for some hosts never finishes and IDE can hang
Status: VERIFIED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks: 171251
  Show dependency tree
 
Reported: 2009-08-28 14:12 UTC by Alexander Pepin
Modified: 2009-10-22 14:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (17.06 KB, text/plain)
2009-08-28 14:14 UTC, Alexander Pepin
Details
stack trace (16.40 KB, text/plain)
2009-09-09 11:49 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2009-08-28 14:12:21 UTC
Steps to reproduce:
- call Tools->Options->C/C++
- add a remote host (OpenSolaris), it's added successfully
Result: "Preparing Code Model for hostname" progress bar appears and the process never finishes. When I tried to call
Tools->Options once again IDE hangs (see stack trace in attachment below).
Comment 1 Alexander Pepin 2009-08-28 14:14:02 UTC
Created attachment 86789 [details]
stack trace
Comment 2 Alexander Pepin 2009-09-09 11:37:23 UTC
sometime ide hangs on setting the remote host as default
Comment 3 Alexander Pepin 2009-09-09 11:49:56 UTC
Created attachment 87349 [details]
stack trace
Comment 4 Vladimir Kvashin 2009-09-16 09:31:42 UTC

*** This issue has been marked as a duplicate of 172284 ***
Comment 5 Alexander Pepin 2009-09-16 10:22:31 UTC
It seems to me that the issue is not only about a deadlock but mostly about endless preparing of a code model for
OpenSolaris remote host. At the same time if I run CND on that remote host directly I don't see any problems with a code
model. So I reopen the issue.
Comment 6 Vladimir Kvashin 2009-09-16 10:31:21 UTC
I was just going to reopen it myself: 
after I moved getting compiler search paths and predefined macros out of the UI thread 
and made this in the 2-nd step of the "Add Host" wizard,
I tried to set up "amkar" host and immediately noticed that command  "/usr/bin/cc -xdryrun -E /tmp/xyz.c" just never
ends on this host.
Investigating...
Comment 7 Vladimir Kvashin 2009-09-16 11:44:01 UTC
What I realized so far is that 
1) the command is actually finished, but "IDE" does not know about that
2) for somewhat reason I see that /usr/bin/ksh93 is launched as a shell for the remote user.
The /usr/bin/ksh93 is ksh shell, which is not supported by CND remote development.
Comment 8 Alexander Pepin 2009-09-16 12:11:57 UTC
It's very strange as a local user 'tester' on that host uses /bin/bash by default.
Comment 9 Alexander Pepin 2009-09-16 18:18:05 UTC
while endless code model preparing I can see only two processes owned by "remote" user:
/bin/sh -s
/usr/lib/ssh/sshd
Comment 10 Vladimir Kvashin 2009-10-22 11:47:01 UTC
Does not repeat after changing the way system headers are delivered from remote machine.
Please reopen if I'm wrong.
Comment 11 Alexander Pepin 2009-10-22 14:02:26 UTC
Yes, now it works fine.
Cool, we have it fixed in Beta!