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 255513

Summary: org.netbeans.modules.nativeexecution/EnvironmentTest/testVarsLocal test fails on 64bit JVM on Windows
Product: cnd Reporter: henk89
Component: executionAssignee: ilia
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:

Description henk89 2015-09-23 13:05:59 UTC
Failed to execute C:\cygwin\bin\bash.exe -c echo SOME_NEW_VAR=$SOME_NEW_VAR && echo PATH=$PATH rc=256 stderr=[      6 [main] bash 1264 C:\cygwin\bin\bash.exe: *** fatal error - error while loading shared libraries: /cygdrive/C/hudson/workspace/cnd-test-winxp/netbeans/ide/bin/nativeexecution/Windows-x86_64/unbuffer.dll: cannot open shared object file: Exec format error,    1121 [main] bash 1264 cygwin_exception::open_stackdumpfile: Dumping stack trace to bash.exe.stackdump]
Comment 1 ilia 2015-09-25 12:53:55 UTC
> find Windows-x86* -name unbuffer\* | xargs file

Windows-x86/unbuffer.dll:    PE32 executable (DLL) (console) Intel 80386 (stripped to external PDB), for MS Windows
Windows-x86_64/unbuffer.dll: PE32+ executable (DLL) (console) x86-64 (stripped to external PDB), for MS Windows
Comment 2 ilia 2015-09-29 12:19:45 UTC
It was a problem of a testing machine, libraries are OK.
It has 64-bit jvm and 32-bit cygwin+bash. So, 32-bit bash tries to use 64-bit unbuffer.dll

It's a good idea to use 32-bit unbuffer library if we are under a 32-bit cygwin. Downgrading to P3.
Comment 3 ilia 2016-08-11 17:34:04 UTC
User always gets a warning when try to use 32bit toolchain under 64bit machine.

Closing as worksforme.