Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

very small run file 'unexpected end of file' #9

Open
jedierikb opened this issue Dec 9, 2011 · 11 comments
Open

very small run file 'unexpected end of file' #9

jedierikb opened this issue Dec 9, 2011 · 11 comments

Comments

@jedierikb
Copy link

(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
@megastep
Copy link
Owner

megastep commented Dec 9, 2011

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

@disterics
Copy link

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

@ibroomcorn
Copy link

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

@megastep
Copy link
Owner

megastep commented Oct 9, 2012

Does this only happen with very small archives ?

@ibroomcorn
Copy link

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 notifications@github.com

Does this only happen with very small archives ?

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

ÂæÖ¾»Ô

@megastep
Copy link
Owner

megastep commented Dec 4, 2012

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

@colingrady
Copy link

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
...

@megastep
Copy link
Owner

Is this still an issue?

@PalashPannase
Copy link

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

@megastep
Copy link
Owner

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

@alcuinus
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants