Fails to parse build output and freezes indefinitely
Metadata
Current evaluation
UnicodeDecodeError crash when parsing malformed build output, causing snapcraft to freeze. This appears to be the same issue as #4515 which was already fixed.
Suggested action: close not a bug
Reason: This issue describes a UnicodeDecodeError crash when parsing build output, which matches the identical issue #4515 that was already fixed. The maintainer patched the decoding logic and closed #4515 as resolved. The freeze was a downstream effect of the crash, not a separate issue.
Impact:
50
Quick Win:
35.0
Staleness:
85
Complexity:
30
Confidence:
80
Support Request:
0
Issue body
There are libreoffice snap builds for amd64 [1] and arm64 which are stuck the exact same way.
Afaict snapcraft crashed while parsing the build output.
[1] https://launchpad.net/~libreoffice/df-libreoffice/+snap/libreoffice-fresh/+build/2350372
:: [build HPX] el/helpcontent2/source/text/simpress/guide
:: Entity: line 1: parser error : Opening and ending tag mismatch: switchinline line 1 and root
Exception in thread Thread-45:
Traceback (most recent call last):
File "/snap/snapcraft/10279/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/snap/snapcraft/10279/lib/python3.10/site-packages/craft_cli/messages.py", line 285, in run
self._run_posix()
File "/snap/snapcraft/10279/lib/python3.10/site-packages/craft_cli/messages.py", line 257, in _run_posix
self._write(data)
File "/snap/snapcraft/10279/lib/python3.10/site-packages/craft_cli/messages.py", line 242, in _write
unicode_line = useful_line.decode("utf8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 0: invalid start byte
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
HELPFILES=/tmp/gbuild.SMwYPO && S=/<<PKGBUILDDIR>> && I=$S/instdir && W=$S/workdir && POFILES=/tmp/gbuild.i4kgRa && LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program" $W/LinkTarget/Executable/helpex -l el -mi ${HELPFILES} -m ${POFILES} -o $W/HelpTranslatePartTarget/el/helpcontent2/source/text/sbasic/python && rm -f ${POFILES} && touch /<<PKGBUILDDIR>>/workdir/HelpTranslatePartTarget/el/helpcontent2/source/text/sbasic/python/done && rm -f ${HELPFILES}
[build HPX] el/helpcontent2/source/text/sbasic/shared
Entity: line 1: parser error : Opening and ending tag mismatch: switchinline line 1 and root
�αζί και επιστρέφοντας το άθροισμά τους.</root>
^
Entity: line 1: parser error : Premature end of data in tag root line 1
�αζί και επιστρέφοντας το άθροισμά τους.</root>
^
HELPFILES=/tmp/gbuild.HZ8Z3B && S=/<<PKGBUILDDIR>> && I=$S/instdir && W=$S/workdir && POFILES=/tmp/gbuild.MFTIRb && LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program" $W/LinkTarget/Executable/helpex -l el -mi ${HELPFILES} -m ${POFILES} -o $W/HelpTranslatePartTarget/el/helpcontent2/source/text/sbasic/shared && rm -f ${POFILES} && touch /<<PKGBUILDDIR>>/workdir/HelpTranslatePartTarget/el/helpcontent2/source/text/sbasic/shared/done && rm -f ${HELPFILES}
[build HPX] el/helpcontent2/source/text/sbasic/shared/01
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
50
Quick Win:
35.0
Staleness:
85
Complexity:
30
Confidence:
80
Support Request:
0
|
close not a bug | UnicodeDecodeError crash when parsing malformed build output, causing snapcraft to freeze. This appears to be the same issue as #4515 which was already fixed. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
40
Confidence:
85
Support Request:
5
|
close stale | Snapcraft crashes with a UnicodeDecodeError while parsing LibreOffice build output, causing indefinite freezes on amd64 and arm64. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
40
Confidence:
85
Support Request:
10
|
close stale | Snapcraft crashes with a UnicodeDecodeError while parsing non-UTF8 build output, causing indefinite freezes. Unlabelled and inactive for over 2.5 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
40
Confidence:
65
Support Request:
5
|
needs triage | Snapcraft crashes with a UnicodeDecodeError while parsing LibreOffice build output, causing indefinite freezes. Unlabelled, no maintainer response, inactive for over two years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
30
Confidence:
85
Support Request:
5
|
needs triage | Snapcraft crashes with a UnicodeDecodeError when parsing non-UTF8 build output, causing indefinite freezes. Untriaged and inactive for over two years. |
Update history
No update history recorded yet.
Related work
-
Duplicate Of:
snapcraft#4515
(confidence 90%)
Nearly identical title and body describing the same UnicodeDecodeError crash. Issue #4515 was closed as fixed after the maintainer patched the decoding logic.
Related issues
No related issues found above the similarity threshold.