JayXon / Leanify

lightweight lossless file minifier/optimizer
MIT License
832 stars 75 forks source link

Segmentation fault #46

Closed freetz13 closed 5 years ago

freetz13 commented 5 years ago

...by launching with any argument. I downloaded binary release, 0.4.3 and 0.4.2.

Manjaro 17.1.12 Hakoila

(gdb) run cryfs.png 
Starting program: /home/user/Downloads/leanify cryfs.png

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()

core.leanify.1000.65596381a2c44c2a84fe4ab6a6122586.32726.1538230669000000.zip

JayXon commented 5 years ago

Thanks for the bug report, could you try if the master branch also crashes? Also if you could provide cryfs.png, that would be more useful than the core dump.

freetz13 commented 5 years ago

@JayXon, sorry, I'm not so experienced to compile and correctly install Leanify in my system... I will try it one of these days.

What about cryfs.png, in its place can be absolutely any file, even non-existent - a segmentation fail arises in any case.

What can be more useful than core dump? O_o

JayXon commented 5 years ago

Oh, sorry I thought it's only triggered by that file, if it's any file, then probably the prebuilt binary doesn't work for your linux distro Manjaro, it's actually only meant for Ubuntu/Debian. To compile it yourself you just need to:

git clone https://github.com/JayXon/Leanify
cd Leanify
make
freetz13 commented 5 years ago

Hello again, I compiled Leanify as you said, it works and... ok, it seems that it was an incompatible target system at compilation.