makeself icon indicating copy to clipboard operation
makeself copied to clipboard

very small run file 'unexpected end of file'

Open jedierikb opened this issue 13 years ago • 11 comments

(from a fresh pull on github...)

Trying to debug an issue with small .run files, I made a very small run file, with only a simple small setup.sh in there.

./makeself creates the .run file successfully.
Header is 498 lines long

About to compress 20 KB of data...
Adding files to archive named "/home/erikb/Desktop/ok.run"...
./
./setup.sh
CRC: 1463274277
MD5: 9ecfdabf8e98605753dea465bd67aa6b

Self-extractible archive "/home/erikb/Desktop/ok.run" successfully created.

However, when I try to run the resultant .run....

Verifying archive integrity... All good.
Uncompressing OKTHEN 100%  
gzip: stdin: unexpected end of file
Extraction failed.
Signal caught, cleaning up

jedierikb avatar Dec 09 '11 17:12 jedierikb

Mmh, I wonder if this may be related to the code that shows the progress of the extraction.

megastep avatar Dec 09 '11 19:12 megastep

Had the same issue. Confirmed that specifying --noprogress allows everything to work smoothly.

disterics avatar Feb 14 '12 09:02 disterics

Hi megastep! Had the same issue. Confirmd that specifying --quiet or --noprogress shows everything to work smoothly. More elegant way to solve this bug?

GNU bash,版本 4.2.24(1)-release-(x86_64-pc-linux-gnu) kernel: 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

ibroomcorn avatar Oct 09 '12 02:10 ibroomcorn

Does this only happen with very small archives ?

megastep avatar Oct 09 '12 02:10 megastep

Thank you for your reply first£¡ Indeed this error happen with very small archives, but I don't know why!

2012/10/9 Stephane Peter [email protected]

Does this only happen with very small archives ?

¡ª Reply to this email directly or view it on GitHubhttps://github.com/megastep/makeself/issues/9#issuecomment-9247009.

ÂæÖ¾»Ô

ibroomcorn avatar Oct 11 '12 03:10 ibroomcorn

I merged some patches lately that may have addressed this issue. Can you check with the current code?

megastep avatar Dec 04 '12 00:12 megastep

Using latest code from repo, appears to still be an issue, but only when using --lsm option.

user@machine:code  $ makeself.sh --noprogress --nox11 --copy --lsm package/package.lsm package/ test.sh "Test" ./install.sh
Header is 511 lines long

About to compress 24 KB of data...
Adding files to archive named "test.sh"...
a .
a ./files.tgz
a ./install.sh
a ./package.lsm
CRC: 421935829
MD5: d79aa82261ba456aa933f0566ba7c570

Self-extractable archive "test.sh" successfully created.
user@machine:code  $ ./test.sh --help
./test.sh: line 518: syntax error: unexpected end of file

However, when not using the --lsm option:

user@machine:code  $ makeself.sh --noprogress --nox11 --copy package/ test.sh "Test" ./install.sh
Header is 501 lines long

WARNING: Overwriting existing file: test.sh
About to compress 24 KB of data...
Adding files to archive named "test.sh"...
a .
a ./files.tgz
a ./install.sh
a ./package.lsm
CRC: 4162682684
MD5: cb6418437813495f10a3e3df66ec56aa

Self-extractable archive "test.sh" successfully created.
user@machine:code  $ ./test.sh --help
Makeself version 2.2.0
...

colingrady avatar Jan 07 '15 17:01 colingrady

Is this still an issue?

megastep avatar Jan 18 '17 05:01 megastep

makeself --noprogress --gzip --nomd5 --nocrc

yes ,when I am trying Makeself in Ubuntu 14.04. Same issue is got in other machine like ubuntu 12.04 its working properly only on 14.04 its gives the error .

Verfiying archive integrity... All good. Uncompressing test_make 100%
gzip: stdin: unexpected end of file Extraction failed. Signal caught, cleaning up

PalashPannase avatar Mar 15 '21 10:03 PalashPannase

Please check if this is still an issue in v2.5.0 - I made some fixes to this area of the code recently.

megastep avatar Mar 15 '23 10:03 megastep

New user of makeself. Thank you for this project! However, I am sorry to say that the same error happens with v2.5.0. Linux mint 21. Trying long and short scripts, tried -noprogress --gzip --nomd5 --nocrc (or just the last two options) but the result is always:

gzip: stdin: unexpected end of file ... Decompression failed. ... Extraction failed. Signal caught, cleaning up

Thank you!

alcuinus avatar Jun 13 '23 06:06 alcuinus