View previous topic :: View next topic |
Author |
Message |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54850 Location: 56N 3W
|
Posted: Sat Apr 23, 2016 7:07 pm Post subject: 64 bit Gentoo on Raspberry Pi3 Broken |
|
|
Team,
I did an update the other day. glibc ended badly with sandbox messages about signals already having handers, bad file descriptors and so on.
I still have the log. Now the poor wee thing won't boot. The boot messages on the console just stop.
My main install is on a USB HDD. That's the one that hangs at boot.
I also have an older less complete install on an SDCard. Its slow but it better than not booting. The plan was to boot that, mount everything at /mnt/gentoo in the traditional manner, then fix it ... but the chroot doesn't work.
Code: | Pi3 64bit ~ # chroot /mnt/gentoo/ /bin/bash
Pi3 64bit / # env-update
>>> Regenerating /etc/ld.so.cache...
[1]+ Stopped chroot /mnt/gentoo/ /bin/bash
Pi3 64bit ~ # |
So its dropped out of the chroot.
Code: | Pi3 64bit ~ # jobs -l
[1]+ 2525 Stopped (tty output) chroot /mnt/gentoo/ /bin/bash
Pi3 64bit ~ # |
Any hints would be most welcome.
-- edit --
This happens on the console, over ssh and in srceen.
-- edit --
Further testing has shown that its the chroot process and any process in the chroot fighting over the console.
One stops the other every time it wants to do output. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
krinn Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/gallery/Blade Runner/movie_blade_runner_howl.gif)
Joined: 02 May 2003 Posts: 7470
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54850 Location: 56N 3W
|
Posted: Sun Apr 24, 2016 1:12 pm Post subject: |
|
|
krinn,
Its a terminal setting thing.
If I do begore I do the chroot, the chroot steps work.
Anything useful in the chroot gets me
Code: | [1]+ Stopped chroot /mnt/gentoo /bin/bash |
which I can fix by typing fg.
By keeping that up, the job I want to run in chroot actually runs in the chroot.
It looks like this
Code: | [1]+ Stopped chroot /mnt/gentoo /bin/bash
Pi3 64bit log # fg
chroot /mnt/gentoo /bin/bash
[1]+ Stopped emerge -K1 =sys-libs/glibc-2.23-r2
(chroot) Pi3 64bit / # fg
emerge -K1 =sys-libs/glibc-2.23-r2
* IMPORTANT: 6 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
Calculating dependencies... done!
>>> Running pre-merge checks for sys-libs/glibc-2.23-r2
* glibc-2.23-r2.tbz2 MD5 SHA1 size ;-) ... [ ok ]
<builtin>: recipe for target 'glibc-test' failed
<builtin>: recipe for target 'glibc-test' failed
* Messages for package sys-libs/glibc-2.23-r2:
* Package: sys-libs/glibc-2.23-r2
* Repository: gentoo
* USE: multilib kernel_linux rpc elibc_glibc arm64 userland_GNU
* FEATURES: distcc distcc-pump preserve-libs sandbox userpriv usersandbox
Traceback (most recent call last):
File "/usr/lib/python-exec/python2.7/emerge", line 50, in <module>
retval = emerge_main()
File "/usr/lib64/python2.7/site-packages/_emerge/main.py", line 1185, in emerge_main
return run_action(emerge_config)
File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 3236, in run_action
emerge_config.args, spinner)
File "/usr/lib64/python2.7/site-packages/_emerge/actions.py", line 505, in action_build
retval = mergetask.merge()
File "/usr/lib64/python2.7/site-packages/_emerge/Scheduler.py", line 1029, in merge
signal.siginterrupt(signal.SIGCONT, False)
RuntimeError: (9, 'Bad file descriptor')
[1]+ Stopped chroot /mnt/gentoo /bin/bash |
That's another feature :)
I've tried python2.7 and python3.4. That just changes the python version in the error message. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
krinn Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/gallery/Blade Runner/movie_blade_runner_howl.gif)
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Apr 24, 2016 4:09 pm Post subject: |
|
|
don't know then, did you mount /dev in your new root? (only explains i have in mind for your file descriptors trouble) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54850 Location: 56N 3W
|
Posted: Sun Apr 24, 2016 4:20 pm Post subject: |
|
|
krinn,
Its there. [snip] to spare you the 'guff'.
Code: | [snip]
/dev/sda1 76765216 7637588 65205044 11% /mnt/gentoo
/dev/sda3 17170840 1901804 14373756 12% /mnt/gentoo/var/tmp/portage
/dev/sda4 - - - - /mnt/gentoo/usr/portage
/dev/sda5 38448788 1377368 35101912 4% /mnt/gentoo/var/cache/distfiles
/dev/sda6 51775076 53404 49068540 1% /mnt/gentoo/home
proc 0 0 0 - /mnt/gentoo/proc
sysfs 0 0 0 - /mnt/gentoo/sys
[snip]
devtmpfs 10240 0 10240 0% /mnt/gentoo/dev
mqueue 0 0 0 - /mnt/gentoo/dev/mqueue
devpts 0 0 0 - /mnt/gentoo/dev/pts
shm 437032 0 437032 0% /mnt/gentoo/dev/shm
/dev/mmcblk0p6 1463128 523087 838461 39% /mnt/gentoo/usr/portage |
It has to be the console I'm using that breaks the chroot. It stops non foreground jobs when they want to do terminal output.
The bad file descriptor issue started at the end of the glibc build but that's not the cause as the system I chroot in from has the same glibc. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
krinn Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/gallery/Blade Runner/movie_blade_runner_howl.gif)
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Apr 24, 2016 4:47 pm Post subject: |
|
|
your shm is toast, how you manage to fill it like that? ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ant P. Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sun Apr 24, 2016 5:42 pm Post subject: |
|
|
er... those columns are total/used/free, in that order. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
krinn Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/gallery/Blade Runner/movie_blade_runner_howl.gif)
Joined: 02 May 2003 Posts: 7470
|
Posted: Mon Apr 25, 2016 11:48 am Post subject: |
|
|
oh, it answer who is toasted then ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54850 Location: 56N 3W
|
Posted: Fri Apr 29, 2016 5:27 pm Post subject: |
|
|
Just to post a follow up. The short answer is its fixed but I don't really know why.
Circumstantial evedence says that something broke at build time and installed in is broken state.
glibc is excluded, since a rebuild did not fix it.
changed nothing, hence the conclusion it was a build time issue.
The eventual fix was to boot a different (older) install, mount the broken install at /mnt/gentoo, Tell the booted install ROOT=/mnt/gentoo and allow it to run so that the system set was rebuilt. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|