Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

System update error: 'Task was destroyed but it is pending!'

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
muke
n00b
n00b
Posts: 51
Joined: Sun Feb 17, 2019 8:29 pm

System update error: 'Task was destroyed but it is pending!'

  • Quote

Post by muke » Mon Nov 22, 2021 12:41 am

I'm trying to update my system with

Code: Select all

sudo -i emerge --deep --update --newuse --changed-use --with-bdeps=y --quiet --autounmask --autounmask-write @world
but when trying to compile any package portage gives the following error:
Task was destroyed but it is pending!
task: <Task pending name='Task-9' coro=<ForkProcess._proc_join() done, defined at /usr/lib/python3.9/site-packages/portage/util/_async/ForkProcess.py:75> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f816ba9ad30>()]> cb=[_EbuildFetcherProcess._proc_join_done(<Process name...code=-SIGTERM>)()]>
Task was destroyed but it is pending!
task: <Task pending name='Task-10' coro=<PipeLogger._io_loop() done, defined at /usr/lib/python3.9/site-packages/portage/util/_async/PipeLogger.py:85> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f816c583a30>()]> cb=[PipeLogger._io_loop_done()]>
Task was destroyed but it is pending!
task: <Task pending name='Task-11' coro=<BuildLogger._main() done, defined at /usr/lib/python3.9/site-packages/portage/util/_async/BuildLogger.py:98> wait_for=<Future pending cb=[AsynchronousTask.async_wait.<locals>.<lambda>() at /usr/lib/python3.9/site-packages/_emerge/AsynchronousTask.py:49, <TaskWakeupMethWrapper object at 0x7f816ba9a4c0>()]> cb=[BuildLogger._main_exit()]>
Task was destroyed but it is pending!
task: <Task pending name='Task-12' coro=<PipeLogger._io_loop() done, defined at /usr/lib/python3.9/site-packages/portage/util/_async/PipeLogger.py:85> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f816c583790>()]> cb=[PipeLogger._io_loop_done()]>
Task was destroyed but it is pending!
task: <Task pending name='Task-13' coro=<SpawnProcess._main() done, defined at /usr/lib/python3.9/site-packages/_emerge/SpawnProcess.py:177> wait_for=<Future pending cb=[AsynchronousTask.async_wait.<locals>.<lambda>() at /usr/lib/python3.9/site-packages/_emerge/AsynchronousTask.py:49, <TaskWakeupMethWrapper object at 0x7f816ba9aca0>()]> cb=[SpawnProcess._main_exit()]>
I've no idea what this means and why it's happening, can anyone help?

emerge --info: https://pastebin.com/5wDJaMYE
Top
muke
n00b
n00b
Posts: 51
Joined: Sun Feb 17, 2019 8:29 pm

  • Quote

Post by muke » Mon Nov 22, 2021 1:02 am

Issue's been solved - using the --quiet flag was obfuscating the real source of the problem, turns out I just needed to install libxcrypt due to the migration
Top
Dominique_71
Veteran
Veteran
User avatar
Posts: 1957
Joined: Wed Aug 17, 2005 1:01 pm
Location: Switzerland (Romandie)

  • Quote

Post by Dominique_71 » Mon Jan 03, 2022 1:06 pm

I get the same issue but libxcrypt is allready installed. I am following the news about libxcrypt migration and add --keep-going=y to the emerge command. I must go out and will see when I come back if it work.
Top
sam_
Developer
Developer
User avatar
Posts: 2817
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Mon Jan 03, 2022 8:30 pm

Dominique_71 wrote:I get the same issue but libxcrypt is allready installed. I am following the news about libxcrypt migration and add --keep-going=y to the emerge command. I must go out and will see when I come back if it work.
This likely isn't the real error, please share the build.log of what is failing.
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Mon Jan 03, 2022 9:52 pm

Probably OOMK.
Check dmesg to verify whether or not you've ran out of RAM.
Top
Dominique_71
Veteran
Veteran
User avatar
Posts: 1957
Joined: Wed Aug 17, 2005 1:01 pm
Location: Switzerland (Romandie)

  • Quote

Post by Dominique_71 » Tue Jan 04, 2022 12:22 am

Now it work fine, merging 192 of 1275 software packages.

When this occurred, I was running, according to /var/log(emerge.log:

Code: Select all

emerge --newuse --update --ask --backtrack=9999 --deep --with-bdeps=y --regex-search-auto=y --verbose @world
.

Emerge did succeeded to calculate the update and it started to do its preliminary checks (like at least 3Gb free space needed to some compilation) when this issue occurred. In emerge.log, after the emerge command, I only got:

Code: Select all

1641213269:  *** Finished. Cleaning up...
1641213269:  *** exiting unsuccessfully with status '1'.
1641213269:  *** terminating.
At the console, the error message was exactly like in the first post with "Task was destroyed but it is pending!"

In dmesg, all I see is things like

Code: Select all

[345038.267142] audit: type=1326 audit(1641240754.082:2): auid=1001 uid=0 gid=0 ses=2 pid=18927 comm="file" exe="/usr/bin/file" sig=31 arch=c000003e syscall=202 compat=0 ip=0x7fcf15d4b6ce code=0x0
and

Code: Select all

[356961.628852] kauditd_printk_skb: 10 callbacks suppressed
but I believe its vivaldi. To be sure, I will stop it, unplug and plug back some USB device and see if it continue.
Top
Dominique_71
Veteran
Veteran
User avatar
Posts: 1957
Joined: Wed Aug 17, 2005 1:01 pm
Location: Switzerland (Romandie)

  • Quote

Post by Dominique_71 » Tue Jan 04, 2022 12:44 am

I was wrong, it is the file command:

Code: Select all

# file lastlog
Bad system call
and one more audit line in dmesg.
Top
Dominique_71
Veteran
Veteran
User avatar
Posts: 1957
Joined: Wed Aug 17, 2005 1:01 pm
Location: Switzerland (Romandie)

  • Quote

Post by Dominique_71 » Tue Jan 04, 2022 1:07 am

I merged file again, and now it wok fine. I think than the file command must be used by portage or by some build systems and it should have been updated earlier by emerge world. Should I report it? and if yes, what information should I provide?
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic