View previous topic :: View next topic |
Author |
Message |
Insanity5902 Veteran
Joined: 23 Jan 2004 Posts: 1228 Location: Fort Worth, Texas
|
Posted: Sun Feb 03, 2008 8:12 pm Post subject: baselayout-2 issues |
|
|
I've been using baselayout to for a while, at least 3 or 4 months. I haven't had any issues with it until last night.
I didn't upgrade anything big, I think it was just NetworkManager , HAL and dependencies of those, and then when I tried to restart hald I get a Code: | *** glibc detected *** /sbin/runscript: free(): invalid pointer: 0x000000000061ae60 *** | I then soon found out that it was on all init service no matter which command I passed to them.
I made the mistake of shutting down my machine, and then couldn't get it back up probably. I ended up moving back down to baselayout-1.* and everything is working.
In between that point I tried recompiling several apps, and nothing could fix the error. Booting up a live cd and chrooting into my drive and trying to pull the status of the init services would just result in a segmentation fault.
Has anybody seen anything like this , and know of any fixes?
[Huge Side Note]Big props to the Gentoo devs - I was able to fix my system wihtout the need of a livecd, I was able to boot into interactive mode, remount / has rw, mount what I needed and then all was good. Thanks![/Huge Side Note] _________________ Join the adopt an unanswered post initiative today |
|
Back to top |
|
|
mdeininger Veteran
Joined: 15 Jun 2005 Posts: 1740 Location: Emerald Isles, observing Dublin's docklands
|
Posted: Mon Feb 04, 2008 3:12 am Post subject: |
|
|
/sbin/runscript is a wrapper that is used to run all init scripts w/baselayout, so that would explain why it crashed all the time (the wrapper even gets run if you only want to query a service's status. really, all the time.).
since you mentioned baselayout-2 as opposed to openrc, did you try using uberlord's "openrc" overlay in layman? baselayout-2 (the parts that make it tick, anyway) got relicenced to BSD and renamed to openrc, and there's a special overlay just for that. you could try using ebuilds off there and see if that fixes your issue. _________________ "Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland
( Twitter | Blog | GitHub ) |
|
Back to top |
|
|
Insanity5902 Veteran
Joined: 23 Jan 2004 Posts: 1228 Location: Fort Worth, Texas
|
Posted: Mon Feb 04, 2008 5:07 am Post subject: |
|
|
yeah, i knew about runscript, which is why i knew it was baselayout-2's issue.
I knew it was renamed to openrc, but I haven't given them a try, i was using rc6 of baselayout-2 which seemed to be pretty recent if I remember correctly. I 'll give the openrc tree a look when I have some free time. _________________ Join the adopt an unanswered post initiative today |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Mon Feb 04, 2008 10:27 am Post subject: |
|
|
I strongly suggest that you report the problem on bugzilla. This sounds like a blocker for baselayout-2 stabilization which would be a pity since baselayout-2 is waiting for stabilization too long anyway. Too bad that you already downgraded so perhaps the problem cannot be reproduced anymore... |
|
Back to top |
|
|
seren Guru
Joined: 27 Aug 2005 Posts: 448 Location: Wisconsin
|
Posted: Mon Feb 04, 2008 12:43 pm Post subject: Re: baselayout-2 issues |
|
|
Insanity5902 wrote: | I've been using baselayout to for a while, at least 3 or 4 months. I haven't had any issues with it until last night.
I didn't upgrade anything big, I think it was just NetworkManager , HAL and dependencies of those, and then when I tried to restart hald I get a Code: | *** glibc detected *** /sbin/runscript: free(): invalid pointer: 0x000000000061ae60 *** | I then soon found out that it was on all init service no matter which command I passed to them.
I made the mistake of shutting down my machine, and then couldn't get it back up probably. I ended up moving back down to baselayout-1.* and everything is working.
In between that point I tried recompiling several apps, and nothing could fix the error. Booting up a live cd and chrooting into my drive and trying to pull the status of the init services would just result in a segmentation fault.
Has anybody seen anything like this , and know of any fixes?
[Huge Side Note]Big props to the Gentoo devs - I was able to fix my system wihtout the need of a livecd, I was able to boot into interactive mode, remount / has rw, mount what I needed and then all was good. Thanks![/Huge Side Note] |
I was having some really nasty problems with baselayout-2 two nights ago. But I was unable to recover without a live cd as rc was segfaulting. O_o |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Insanity5902 Veteran
Joined: 23 Jan 2004 Posts: 1228 Location: Fort Worth, Texas
|
Posted: Tue Feb 05, 2008 4:13 am Post subject: |
|
|
MV :: i had no choice, I have to use my laptop for work, even after multiple re-compiles I still had the problem.
Seren :: You should still be able to get the system up, remount the drives rw, and then emerge baselayout-1
Uberlord :: I will give the new openrc a try on sunday hopefully. It was weird as it just all the suden broke. I ran an strace on it, but sadly didn't save it. But it would display the status of the service, then just fail right after that. I'll keep you updated. _________________ Join the adopt an unanswered post initiative today |
|
Back to top |
|
|
FireBurn Apprentice
Joined: 19 Sep 2004 Posts: 170 Location: Edinburgh, UK
|
Posted: Tue Feb 05, 2008 4:19 pm Post subject: |
|
|
I'm currently having the same issue, not sure what caused it
I don't currently have debuggers installed plus all my binarys are striped.
I can give you a list of all the packages that were updated on my system before it happened, might give a clue
Mike |
|
Back to top |
|
|
FireBurn Apprentice
Joined: 19 Sep 2004 Posts: 170 Location: Edinburgh, UK
|
Posted: Tue Feb 05, 2008 4:36 pm Post subject: |
|
|
Slightly different with the latest openrc
Same errors but they cycle a few times on screen before going to a login screen, but once at the login screen I can't logon
I'm going to try recompiling ncurses and e2fsutils
Mike |
|
Back to top |
|
|
micr0c0sm Tux's lil' helper
Joined: 29 Oct 2005 Posts: 148 Location: New York
|
Posted: Tue Feb 05, 2008 11:22 pm Post subject: |
|
|
How do you remount rw from interactive mode? |
|
Back to top |
|
|
mdeininger Veteran
Joined: 15 Jun 2005 Posts: 1740 Location: Emerald Isles, observing Dublin's docklands
|
Posted: Wed Feb 06, 2008 12:37 am Post subject: |
|
|
micr0c0sm wrote: | How do you remount rw from interactive mode? | you could try adding the kernel parameter init=/bin/bash while booting (using grub's 'edit' function, -> 'e'-key, or just adding that to a lilo prompt). then once you get your console, you would do something like tihs:
Code: | mount / -o remount,rw
mount -t proc proc /proc
mount -t sysfs sys /sys
(do more mounting if necessary)
env-update |
after that you're up pretty much like on a livecd.
back on topic: did you guys update any core components right before the issue started occuring? libc or gcc maybe? _________________ "Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland
( Twitter | Blog | GitHub ) |
|
Back to top |
|
|
Insanity5902 Veteran
Joined: 23 Jan 2004 Posts: 1228 Location: Fort Worth, Texas
|
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Wed Feb 06, 2008 2:16 am Post subject: |
|
|
Insanity5902 wrote: | I noticed it after emerging libnl and hal |
Neither of which would affect OpenRC or baselayout.
Infact, the bug you maybe seeing is probably caused by something creating lines > 1024 bytes in /etc/profile.env as baselayout-2 had a serious bug there and overflowed. OpenRC now has a generic call for loading in files which has a dynamic buffer.
At any rate, I'd need to see a valid backtrace from OpenRC to fix anything outstanding here. _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
mdeininger Veteran
Joined: 15 Jun 2005 Posts: 1740 Location: Emerald Isles, observing Dublin's docklands
|
Posted: Wed Feb 06, 2008 2:45 am Post subject: |
|
|
UberLord wrote: | As you've come from inactive mode, proc and sys should already be mounted, so only the first step is necessary. env-update should not be needed. | well, mounting /proc and /sys would definitely be needed if you use the init=/bin/bash trick i described... I'm not sure why i always do an extra env-update though, must be force of habit . i think i used to have some weird problem that got fixed with it, but that was back in the gentoo "1.4" days. _________________ "Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland
( Twitter | Blog | GitHub ) |
|
Back to top |
|
|
micr0c0sm Tux's lil' helper
Joined: 29 Oct 2005 Posts: 148 Location: New York
|
Posted: Sun Feb 10, 2008 12:32 am Post subject: |
|
|
UberLord wrote: | Insanity5902 wrote: | I noticed it after emerging libnl and hal |
Neither of which would affect OpenRC or baselayout.
Infact, the bug you maybe seeing is probably caused by something creating lines > 1024 bytes in /etc/profile.env as baselayout-2 had a serious bug there and overflowed. OpenRC now has a generic call for loading in files which has a dynamic buffer.
At any rate, I'd need to see a valid backtrace from OpenRC to fix anything outstanding here. |
I had the same issues, also after installing libnl from adding networkmanager to my use flags. Thanks to this thread I was able to recover by going back to baselayout-1 and I will try to recreate the issue and provide a valid backtrace. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
FireBurn Apprentice
Joined: 19 Sep 2004 Posts: 170 Location: Edinburgh, UK
|
Posted: Sun Feb 10, 2008 10:00 pm Post subject: |
|
|
Where will this fix show up about? Baselayout, openrc or the bluez-utils packages?
Looking forward to getting away from baselayout-1 again
Cheers
Mike |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
micr0c0sm Tux's lil' helper
Joined: 29 Oct 2005 Posts: 148 Location: New York
|
Posted: Mon Feb 11, 2008 6:03 am Post subject: |
|
|
backtrace: http://rafb.net/p/v2N86t16.html
edit: so it was splashutils fault. i didn't have it enabled but I needed to uninstall splashutils and then everything worked peachy keen. 23s bootchart hooray! |
|
Back to top |
|
|
FireBurn Apprentice
Joined: 19 Sep 2004 Posts: 170 Location: Edinburgh, UK
|
Posted: Mon Feb 11, 2008 5:55 pm Post subject: |
|
|
Neither of these fix it for me (either using the latest openrc or uninstalling splashutils) |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
borh Tux's lil' helper
Joined: 24 Nov 2002 Posts: 89 Location: Ljubljana
|
Posted: Tue Feb 12, 2008 1:07 am Post subject: |
|
|
I have been having similar problems with the newest openrc/baselayout, which I tracked down to the rc_parallel="YES" flag. I tried getting a backtrace of the crash, but it seems to only trigger when I am not in maintenance (console) mode. I could start all the services by hand and get to X in maintenance mode, which led me to suspect that the parallel loading was somehow messing up. Getting out of the console back to the interactive mode, the system would always stop at "Caching service dependencies" (which I'm guessing is related to device-mapper). A Ctrl-C would only print out something like what has already been posted here, but since the system was dead (sometimes a hard reboot was needed) I couldn't record the error. I'll try tomorrow to see if there's any way I can duplicate the error inside gdb. |
|
Back to top |
|
|
micr0c0sm Tux's lil' helper
Joined: 29 Oct 2005 Posts: 148 Location: New York
|
Posted: Tue Feb 12, 2008 3:45 am Post subject: |
|
|
Code: |
rm -r /etc/init.d/* /etc/conf.d/*
paludis -u baselayout --permit-unsafe-uninstalls
paludis -i openrc splashutils
|
...and it works! I can't recreate the backtrace, gonna try messing with rc.conf. |
|
Back to top |
|
|
unK l33t
Joined: 06 Feb 2007 Posts: 769
|
Posted: Tue Feb 12, 2008 2:59 pm Post subject: |
|
|
I have / on reiser4 and when I set baselayout to run in parallel mode, it hangs at "Remounting root filesystem read-write...". In serial mode remounting works.
Btw, after each reemerge openrc adds netmount to default runlevel even if it wasn't there before recompilation. _________________ ncmpcpp - featureful ncurses based MPD client inspired by ncmpc |
|
Back to top |
|
|
|