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.
Summary: | VirtualBox broke remote build in System Level File Sharing mode | ||
---|---|---|---|
Product: | cnd | Reporter: | soldatov <soldatov> |
Component: | Remote | Assignee: | Vladimir Kvashin <vkvashin> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | apepin, mmirilovic |
Priority: | P2 | ||
Version: | 7.0.1 | ||
Hardware: | PC | ||
OS: | Solaris | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
soldatov
2011-07-07 13:49:43 UTC
I was finally able to reproduce this on the same machine it was discovered by reporter - but in my case remote command did not hang, and after a minute or so path mapper dialog appeared. I guess reporter used other machine as remote one, and on that machine "test -d /net/xxx/export", where xxx is an invalid address, hangs. Here are technical details On reporter's machine vboxnet0 pseudo network interface is listed before real ones.This makes IDE think that this address (111.111.11.11) is local machine IP (see HostMappingProviderUnixAbstract.getIP() method). When path mapper initializes, it tries to find mappings automatically, launches "test -d /net/111.111.11.11/export" on remote machine. The command hangs. What is incorrect here is that no timeout occurs and build just runs forever instead of stopping this automatic mapping discovery by some not very big (10 sec?) timeout. Working with "/net/..." can be very slow, we definitely need this timeout (on IDE side) -bash-3.2$ time test -d /net/111.111.11.11/export real 8m23.226s user 0m0.000s sys 0m0.003s And sure, getting local host IP is not correct as well. It should be done via just InetAddress.getLocalHost().getHostAddress(), not via getting 1-st non-loopback adapter. It's not a stopper for 7.0.1. fixed in cnd-main http://hg.netbeans.org/cnd-main/rev/e339a575ed0c http://hg.netbeans.org/cnd-main/rev/58e4859cd6a2 Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/e339a575ed0c User: Vladimir Kvashin <vkvashin@netbeans.org> Log: Get correct IP - fixing #199949 - VirtualBox broke remote build in System Level File Sharing mode Verified on reporter's machine in NetBeans IDE Dev (Build cnd-build-trunk-291-on-20110812) Fix transplanted to release701_fixes on elif: e339a575ed0c transplanted to a57d15463b37 58e4859cd6a2 transplanted to 7243c1c0b56f Verified in NetBeans IDE 7.0.1 (Build oss-platform-build-25-on-20110819) integrated in release701_fixes: a57d15463b37 transplanted to d2c52ffae4a1 7243c1c0b56f transplanted to 724159c94a9d Integrated into 'releases' Changeset: http://hg.netbeans.org/releases/rev/d2c52ffae4a1 User: Vladimir Kvashin <vkvashin@netbeans.org> Log: Get correct IP - fixing #199949 - VirtualBox broke remote build in System Level File Sharing mode (transplanted from a57d15463b3713c03de30bc8096bf5ccf6953aac) verified Integrated into 'releases' Changeset: http://hg.netbeans.org/releases/rev/a57d15463b37 User: Vladimir Kvashin <vkvashin@netbeans.org> Log: Get correct IP - fixing #199949 - VirtualBox broke remote build in System Level File Sharing mode |