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 269738 - MSYS2: error while loading shared libraries: .../ide/bin/nativeexecution/Windows-x86_64/unbuffer.dll
Summary: MSYS2: error while loading shared libraries: .../ide/bin/nativeexecution/Wind...
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.2
Hardware: PC Windows 8.1
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-03 14:37 UTC by soldatov
Modified: 2018-01-02 19:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
library (275.60 KB, application/x-msdownload)
2017-03-31 17:33 UTC, ilia
Details
This binary works perfectly with 32bit systems. (275.04 KB, application/x-msdownload)
2017-04-04 15:11 UTC, ilia
Details
Stripped library for 32-bit systems (15.01 KB, application/x-msdownload)
2017-04-04 15:12 UTC, ilia
Details
Stripped library for 64-bit systems (not tested yet) (7.50 KB, application/x-msdownload)
2017-04-04 16:03 UTC, ilia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2017-02-03 14:37:58 UTC
I can't uses unbuffer.dll on MSYS2 test machine.
$ ldd *
killall:
        ntdll.dll => /c/windows/SYSTEM32/ntdll.dll (0x7ffdf1500000)
        KERNEL32.DLL => /c/windows/system32/KERNEL32.DLL (0x7ffdf0ac0000)
        KERNELBASE.dll => /c/windows/system32/KERNELBASE.dll (0x7ffdee990000)
process_start:
        ntdll.dll => /c/windows/SYSTEM32/ntdll.dll (0x7ffdf1500000)
        KERNEL32.DLL => /c/windows/system32/KERNEL32.DLL (0x7ffdf0ac0000)
        KERNELBASE.dll => /c/windows/system32/KERNELBASE.dll (0x7ffdee990000)
pty:
        ntdll.dll => /c/windows/SYSTEM32/ntdll.dll (0x7ffdf1500000)
        KERNEL32.DLL => /c/windows/system32/KERNEL32.DLL (0x7ffdf0ac0000)
        KERNELBASE.dll => /c/windows/system32/KERNELBASE.dll (0x7ffdee990000)
pty_open:
        ntdll.dll => /c/windows/SYSTEM32/ntdll.dll (0x7ffdf1500000)
        KERNEL32.DLL => /c/windows/system32/KERNEL32.DLL (0x7ffdf0ac0000)
        KERNELBASE.dll => /c/windows/system32/KERNELBASE.dll (0x7ffdee990000)
sigqueue:
        ntdll.dll => /c/windows/SYSTEM32/ntdll.dll (0x7ffdf1500000)
        KERNEL32.DLL => /c/windows/system32/KERNEL32.DLL (0x7ffdf0ac0000)
        KERNELBASE.dll => /c/windows/system32/KERNELBASE.dll (0x7ffdee990000)
unbuffer.dll:
        ntdll.dll => /c/windows/SYSTEM32/ntdll.dll (0x7ffdf1500000)
        KERNEL32.DLL => /c/windows/system32/KERNEL32.DLL (0x7ffdf0ac0000)
        KERNELBASE.dll => /c/windows/system32/KERNELBASE.dll (0x7ffdee990000)
        ??? => ??? (0x48b5b0000)

Scenario:
- Create Quote project
- Build project
- Call context menu on cpu.cc file in Projects tab
- Select "Create Test|New C++ Simple Test ..." menu item
- Select "GetType()" and press Next button
- Press Finish button
- Wait test appeared
- Call context menu on "Test Files" logical folder
- Select Test
==>
      6 [main] make 154992 C:\msys64\usr\bin\make.exe: *** fatal error - error while loading shared libraries: /C/hudson/workspace/cnd-test-win8-mingw/netbeans/ide/bin/nativeexecution/Windows-x86_64/unbuffer.dll: cannot open shared object file: No such file or directory
   1780 [main] make 154992 cygwin_exception::open_stackdumpfile: Dumping stack trace to make.exe.stackdump
Comment 1 ilia 2017-03-27 08:20:37 UTC
Note: ldd called from MSYS2 and from Cygwin shows different results

-----------------8<----------------
$ cat file.c
int main() {}
-----------------------------------


ldd ./file.exe

-------------- MSYS2 --------------
ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ffa55110000)
KERNEL32.DLL => /c/Windows/system32/KERNEL32.DLL (0x7ffa53490000)
KERNELBASE.dll => /c/Windows/system32/KERNELBASE.dll (0x7ffa51c60000)
-----------------------------------

------------- Cygwin --------------
ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x7ffa55110000)
KERNEL32.DLL => /cygdrive/c/Windows/system32/KERNEL32.DLL (0x7ffa53490000)
KERNELBASE.dll => /cygdrive/c/Windows/system32/KERNELBASE.dll (0x7ffa51c60000)
cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
-----------------------------------
Comment 2 ilia 2017-03-31 17:32:54 UTC
Valera, could you, please, try the attached unbuffer.dll for x86_64?
For me it fails with message:

      0 [main] make 4200 C:\msys64\usr\bin\make.exe: *** fatal error - error while loading shared libraries: /E/release82/nbbuild/netbeans/ide/bin/nativeexecution/Windows-x86_64/unbuffer.dll: cannot open shared object file: Exec format error
   4108 [main] make 4200 cygwin_exception::open_stackdumpfile: Dumping stack trace to make.exe.stackdump
Comment 3 ilia 2017-03-31 17:33:31 UTC
Created attachment 163993 [details]
library
Comment 4 ilia 2017-03-31 17:34:23 UTC
Library should be replaced here:

nbbuild/netbeans/ide/bin/nativeexecution/Windows-x86_64/unbuffer.dll
Comment 5 soldatov 2017-04-03 08:49:59 UTC
Yes. I see:
     19 [main] make 14184 C:\msys64\usr\bin\make.exe: *** fatal error - error while loading shared libraries: /C/hudson/workspace/cnd-test-win8-mingw/netbeans/ide/bin/nativeexecution/Windows-x86_64/unbuffer.dll: cannot open shared object file: Exec format error
   4790 [main] make 14184 cygwin_exception::open_stackdumpfile: Dumping stack trace to make.exe.stackdump
Comment 6 ilia 2017-04-04 15:11:15 UTC
Created attachment 164024 [details]
This binary works perfectly with 32bit systems.
Comment 7 ilia 2017-04-04 15:12:30 UTC
Created attachment 164025 [details]
Stripped library for 32-bit systems
Comment 8 ilia 2017-04-04 16:03:34 UTC
Created attachment 164026 [details]
Stripped library for 64-bit systems (not tested yet)
Comment 9 jheck 2018-01-02 19:55:29 UTC
(In reply to ilia from comment #8)
> Created attachment 164026 [details]
> Stripped library for 64-bit systems (not tested yet)

I replaced my original unbuffer.dll library with this one and my unit testing framework works now unlike before.  I am running Netbeans 8.2 on a Windows 10 system.