Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 891391 - sys-apps/portage hangs if it runs out of space while creating GPKG packages
Summary: sys-apps/portage hangs if it runs out of space while creating GPKG packages
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on: 891001
Blocks:
  Show dependency tree
 
Reported: 2023-01-19 14:04 UTC by Michał Górny
Modified: 2023-02-26 22:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,139.62 KB, text/plain)
2023-01-19 14:04 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-01-19 14:04:00 UTC
Created attachment 848825 [details]
build.log

Exception in thread tar_stream_cmd_read:
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.11/site-packages/portage/gpkg.py", line 205, in _cmd_read_thread
    self.container.fileobj.write(buffer)
OSError: [Errno 28] No space left on device


...and nothing more happening.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-19 17:59:43 UTC
I've seen this before as well, I think, although xz got stuck that time.
Comment 2 Larry the Git Cow gentoo-dev 2023-01-20 01:40:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=4748a9b19893cfb43b8f80293bec85f541490aa8

commit 4748a9b19893cfb43b8f80293bec85f541490aa8
Author:     Sheng Yu <syu.os@protonmail.com>
AuthorDate: 2023-01-19 18:26:17 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-20 01:40:42 +0000

    gpk: Terminate writing if space is full
    
    Bug: https://bugs.gentoo.org/891391
    Signed-off-by: Sheng Yu <syu.os@protonmail.com>
    Closes: https://github.com/gentoo/portage/pull/980
    Signed-off-by: Sam James <sam@gentoo.org>

 NEWS                | 6 ++++++
 lib/portage/gpkg.py | 8 ++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2023-02-26 22:01:27 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd8ade10313d72cb0e3dd2229df02e0ea8681daa

commit cd8ade10313d72cb0e3dd2229df02e0ea8681daa
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-26 22:01:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-26 22:01:10 +0000

    sys-apps/portage: add 3.0.45
    
    Bug: https://bugs.gentoo.org/891001
    Bug: https://bugs.gentoo.org/889330
    Bug: https://bugs.gentoo.org/890777
    Bug: https://bugs.gentoo.org/891391
    Bug: https://bugs.gentoo.org/893638
    Bug: https://bugs.gentoo.org/795825
    Bug: https://bugs.gentoo.org/884869
    Bug: https://bugs.gentoo.org/888585
    Bug: https://bugs.gentoo.org/892651
    Bug: https://bugs.gentoo.org/895526
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-3.0.45.ebuild | 288 +++++++++++++++++++++++++++++++++
 2 files changed, 289 insertions(+)