{"action":"created","issue":{"url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/373","labels_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/373/comments","events_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/373/events","html_url":"https://github.com/Alexpux/MSYS2-packages/issues/373","id":113765832,"number":373,"title":"msys2-runtime-devel: Automatic upgrade through update-core fails","user":{"login":"maehne","id":1174243,"avatar_url":"https://avatars.githubusercontent.com/u/1174243?v=3","gravatar_id":"","url":"https://api.github.com/users/maehne","html_url":"https://github.com/maehne","followers_url":"https://api.github.com/users/maehne/followers","following_url":"https://api.github.com/users/maehne/following{/other_user}","gists_url":"https://api.github.com/users/maehne/gists{/gist_id}","starred_url":"https://api.github.com/users/maehne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maehne/subscriptions","organizations_url":"https://api.github.com/users/maehne/orgs","repos_url":"https://api.github.com/users/maehne/repos","events_url":"https://api.github.com/users/maehne/events{/privacy}","received_events_url":"https://api.github.com/users/maehne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-28T08:21:31Z","updated_at":"2015-10-29T07:30:59Z","closed_at":null,"body":"The ```update-core``` script for upgrading the MSYS2 core packages gets systematically stuck reporting fork errors when ```msys2-runtime-devel``` is installed and should get upgraded together with ```msys2-runtime```:\r\n```\r\n$ update-core\r\n==> Update package databases...\r\n:: Synchronizing package databases...\r\n mingw32                  212.7 KiB   496K/s 00:00 [#####################] 100%\r\n mingw32.sig               96.0   B  0.00B/s 00:00 [#####################] 100%\r\n mingw64                  211.3 KiB   741K/s 00:00 [#####################] 100%\r\n mingw64.sig               96.0   B  93.8K/s 00:00 [#####################] 100%\r\n msys                     125.8 KiB   880K/s 00:00 [#####################] 100%\r\n msys.sig                  96.0   B  0.00B/s 00:00 [#####################] 100%\r\n==> Checking if there are critical packages to upgrade.\r\npacman 4.2.1.6198.439d376-1 -> 4.2.1.6230.6ff894e-1\r\nmsys2-runtime 2.2.1.16655.6ecd782-2 -> 2.2.1.16667.d31de1b-1\r\n==> WARNING: You MUST restart MSYS2 to finish core packages update!!!\r\n==> Update core packages...\r\nwarning: bash-4.3.042-1 is up to date -- skipping\r\nresolving dependencies...\r\nlooking for conflicting packages...\r\n\r\nPackages (3) msys2-runtime-2.2.1.16667.d31de1b-1\r\n             msys2-runtime-devel-2.2.1.16667.d31de1b-1\r\n             pacman-4.2.1.6230.6ff894e-1\r\n\r\nTotal Download Size:    9.56 MiB\r\nTotal Installed Size:  54.23 MiB\r\nNet Upgrade Size:      20.59 MiB\r\n\r\n:: Proceed with installation? [Y/n]\r\n:: Retrieving packages ...\r\n msys2-runtime-2.2.1...     2.3 MiB  1073K/s 00:02 [#####################] 100%\r\n pacman-4.2.1.6230.6...     3.8 MiB  1440K/s 00:03 [#####################] 100%\r\n msys2-runtime-devel...     3.5 MiB  1454K/s 00:02 [#####################] 100%\r\n(3/3) checking keys in keyring                     [#####################] 100%\r\n(3/3) checking package integrity                   [#####################] 100%\r\n(3/3) loading package files                        [#####################] 100%\r\n(3/3) checking for file conflicts                  [#####################] 100%\r\n(3/3) checking available disk space                [#####################] 100%\r\n(1/3) upgrading msys2-runtime                      [#####################] 100%\r\n(2/3) upgrading pacman                             [#####################] 100%\r\n(3/3) installing msys2-runtime-devel               [#####################] 100%\r\n      0 [main] bash 2884 fork: child -1 - forked process 5124 died unexpectedly, retry 0, exit code 0xC0000005, errno 11\r\nbash: fork: retry: No child processes\r\n1023699 [main] bash 2884 fork: child -1 - forked process 160 died unexpectedly, retry 0, exit code 0xC0000005, errno 11\r\nbash: fork: retry: No child processes\r\n3051865 [main] bash 2884 fork: child -1 - forked process 4760 died unexpectedly, retry 0, exit code 0xC0000005, errno 11\r\nbash: fork: retry: No child processes\r\n7079357 [main] bash 2884 fork: child -1 - forked process 6444 died unexpectedly, retry 0, exit code 0xC0000005, errno 11\r\nbash: fork: retry: No child processes\r\n15096628 [main] bash 2884 fork: child -1 - forked process 6740 died unexpectedly, retry 0, exit code 0xC0000005, errno 11\r\nbash: fork: Resource temporarily unavailable\r\n15115379 [main] bash 2884 fork: child -1 - forked process 6468 died unexpectedly, retry 0, exit code 0xC0000005, errno 11\r\nbash: fork: retry: No child processes\r\n16130379 [main] bash 2884 fork: child -1 - forked process 7068 died unexpectedly, retry 0, exit code 0xC0000005, errno 11\r\nbash: fork: retry: No child processes\r\n18156061 [main] bash 2884 fork: child -1 - forked process 5500 died unexpectedly, retry 0, exit code 0xC0000005, errno 11\r\nbash: fork: retry: No child processes\r\n[...]\r\n```\r\nOnce this error occured, the MSYS2 shell needs to be closed and the MSYS2 installation remains in an inconsistent state. Running update-core again won't finish the msys2-runtime-devel installation part of the core package update process.\r\n\r\nI already reported this [issue](https://sourceforge.net/p/msys2/tickets/195/) a month ago to the MSYS2 bug tracker on SourceForge, but there hasn't been any reaction. It has struck me several times since I started using MSYS in February. It also happened with the old manual upgrade instructions for the core packages from the MSYS2 wiki.\r\n\r\nHow could this problem be worked around to make ```update-core``` more robust?"},"comment":{"url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/comments/152102354","html_url":"https://github.com/Alexpux/MSYS2-packages/issues/373#issuecomment-152102354","issue_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/373","id":152102354,"user":{"login":"elieux","id":1399406,"avatar_url":"https://avatars.githubusercontent.com/u/1399406?v=3","gravatar_id":"","url":"https://api.github.com/users/elieux","html_url":"https://github.com/elieux","followers_url":"https://api.github.com/users/elieux/followers","following_url":"https://api.github.com/users/elieux/following{/other_user}","gists_url":"https://api.github.com/users/elieux/gists{/gist_id}","starred_url":"https://api.github.com/users/elieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elieux/subscriptions","organizations_url":"https://api.github.com/users/elieux/orgs","repos_url":"https://api.github.com/users/elieux/repos","events_url":"https://api.github.com/users/elieux/events{/privacy}","received_events_url":"https://api.github.com/users/elieux/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T07:30:59Z","updated_at":"2015-10-29T07:30:59Z","body":"The `autorebase` script does a similar check, IIRC.\r\n\r\nFWIW, I don't have any daemons running, but I do get the same error with `update-core` (it has happened consistently last two or three times I ran it). Maybe there's something else at play, but I'll keep an open eye for the background process issue."}}