-
Notifications
You must be signed in to change notification settings - Fork 441
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
Fails to parse erroenous build output and freezes indefinitely #4515
Comments
Hi, thanks for the report. That naked |
Sorry no, but I guess the version hides behind the snapcraft build 10279 |
Oh that'll do, that's Snapcraft 8.0.1 |
This new version fixes decoding issues when parsing malformed output from other processes (typically during the build step) Fixes #4515
Just a note here on the "completeness" of this issue: I was able to reproduce & fix the decoding issue, but I could not reproduce the freezing behavior. Since the freezing seems to happen because of the error, and the error was fixed, this issue can be seen as resolved. @ricotz please report back if you still experience the freezing. |
This new version fixes decoding issues when parsing malformed output from other processes (typically during the build step) Fixes #4515
Bug Description
There are libreoffice snap builds for amd64 [1] and arm64 which are stuck.
Afaict snapcraft crashed while parsing the build output.
[1] https://launchpad.net/~libreoffice/df-libreoffice/+snap/libreoffice-fresh/+build/2350372
Originally reported at https://bugs.launchpad.net/snapcraft/+bug/2046156
To Reproduce
Seems running a build which outputs e.g. an erroneous utf8 encoded string. In case of libreoffice it is an error message where it seems a byte gets cut off.
Environment
Runs on Launchpad
snapcraft.yaml
https://git.launchpad.net/~libreoffice/+git/libreoffice-snap/tree/snapcraft.yaml?h=24.2
Relevant log output
Additional context
The deb build output looks like this which I would expect the snap build to behave as well:
[build HPX] el/helpcontent2/source/text/sbasic/python$W/LinkTarget/Executable/helpex -l el -mi $ {HELPFILES} -m ${POFILES} -o $W/HelpTranslatePartTarget/el/helpcontent2/source/text/sbasic/python && rm -f $ {POFILES} && touch /<>/workdir/HelpTranslatePartTarget/el/helpcontent2/source/text/sbasic/python/done && rm -f ${HELPFILES}$W/LinkTarget/Executable/helpex -l el -mi $ {HELPFILES} -m ${POFILES} -o $W/HelpTranslatePartTarget/el/helpcontent2/source/text/sbasic/shared && rm -f $ {POFILES} && touch /<>/workdir/HelpTranslatePartTarget/el/helpcontent2/source/text/sbasic/shared/done && rm -f ${HELPFILES}
HELPFILES=/tmp/gbuild.SMwYPO && S=/<> && I=$S/instdir && W=$S/workdir && POFILES=/tmp/gbuild.i4kgRa && LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program"
[build HPX] el/helpcontent2/source/text/sbasic/shared
Entity: line 1: parser error : Opening and ending tag mismatch: switchinline line 1 and root
�αζί και επιστρέφοντας το άθροισμά τους.
^
Entity: line 1: parser error : Premature end of data in tag root line 1
�αζί και επιστρέφοντας το άθροισμά τους.
^
HELPFILES=/tmp/gbuild.HZ8Z3B && S=/<> && I=$S/instdir && W=$S/workdir && POFILES=/tmp/gbuild.MFTIRb && LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program"
[build HPX] el/helpcontent2/source/text/sbasic/shared/01
The text was updated successfully, but these errors were encountered: