pe-bear-releases icon indicating copy to clipboard operation
pe-bear-releases copied to clipboard

not working with a PE build by fasm

Open catafest opened this issue 4 years ago • 7 comments

The file for test was build with fasm

[mythcat@desk fasm]$ file pe_001.exe 
pe_001.exe: PE32 executable (console) Intel 80386, for MS Windows

The result is a crash :

[mythcat@desk PE-bear_0.5.2.3_x64_linux]$ ./PE-bear 
"/proc/11817/root"
Segmentation fault (core dumped)

catafest avatar Dec 28 '20 13:12 catafest

Thank you for reporting. Can you please attach (or send me via e-mail) the exact PE that caused the crash?

hasherezade avatar Dec 28 '20 14:12 hasherezade

Thank you for your e-mail I checked the package that you sent:

wetransfer-d6d2e4.zip

However, I cannot reproduce the error. On my side, the PE opened with no errors:

pebear_screen

I tried on Linux and on Windows, zero issues.

I suspect that the reason of the crash may be caused by a different Qt version that you possibly use. Could you please check your Qt version? Any more details regarding your OS?

hasherezade avatar Dec 28 '20 15:12 hasherezade

also, try to update your Qt and let me know if it helps.

hasherezade avatar Dec 28 '20 15:12 hasherezade

I used every day dnf tool to update and my Fedora Linux.

[mythcat@desk fasm]$ uname -a
Linux desk 5.9.16-200.fc33.x86_64 #1 SMP Mon Dec 21 14:08:22 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

[mythcat@desk fasm]$ pkg-config --modversion QtCore
Package QtCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtCore.pc'
to the PKG_CONFIG_PATH environment variable
Package 'QtCore', required by 'virtual:world', not found

[mythcat@desk fasm]$ qmake-qt5 --version
QMake version 3.1
Using Qt version 5.15.2 in /usr/lib64

maybe is video card problem 
NVIDIA Corporation GT218 [GeForce 210]

catafest avatar Dec 28 '20 17:12 catafest

I don't think your video card could be a problem, rather different versions of libraries than those with which the PE-bear's binary was compiled. Did you experience similar crashes on load of other executables as well, or only with those that are compiled with fasm?

hasherezade avatar Dec 29 '20 07:12 hasherezade

I think you need to create a bash sh file for each project. Also, you need to put the libs used this sh or to tell people how libs need to used. The idea to scan files and check them has a good format is great.

catafest avatar Dec 30 '20 11:12 catafest

It seems to be the same issue as here: https://github.com/hasherezade/pe-bear-releases/issues/34 Please let me know if the build with Qt 5.14 works fine for you. It is this one:

https://github.com/hasherezade/pe-bear-releases/releases/download/0.5.4/PE-bear_0.5.4_qt5.14_x64_linux.tar.xz

hasherezade avatar Jul 19 '21 16:07 hasherezade

From now you can build PE-bear from the sources to avoid any of such issues: https://github.com/hasherezade/pe-bear

hasherezade avatar Sep 21 '22 17:09 hasherezade