Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Gentoo This forum is for the discussion of Gentoo Linux.


  Search this Thread
Old 10-24-2009, 06:10 AM   #1
LQ Newbie
Registered: Jan 2006
Distribution: Gentoo
Posts: 18

Rep: Reputation: 0
hald segfaults on boot

I just moved my system (which was on a single hard drive) to several software raid volumes (one for /, one for /home, etc). I made an image of the previous root filesystem, and dd'd it to the new RAID volume. Then, I recompiled the kernel to ensure that software raid was compiled in (and not just a module), and fiddled with grub a bit to get the system to boot.

Long story short, everything's peachy except for one crucial element: hald (on runlevel default) always segfaults when I boot. It also segfaults when I try to start it from /etc/init.d. Here's the error I'm getting:

hald[6241]: segfault at 0 ip 0000000000433d35 sp 00007fffed931840 error 4 in hald[400000+51000]
This is a problem because without hal, I have no mouse or keyboard in X!

My system is up-to-date, and I've tried re-emerging hal and hal-info.

Any ideas?
Old 10-24-2009, 12:53 PM   #2
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello Secant,

I'd suggest to use the strace command and try to find out what's going on when hald starts and when it is stopped.

Old 10-24-2009, 04:35 PM   #3
LQ Newbie
Registered: Jan 2006
Distribution: Gentoo
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for the advice. I ran strace and piped the output to the attached file. Unfortunately, I don't really know what to look for. I noticed that there are several error codes (-1) being returned (ENOENT and ECHILD) errors while 'stat'ing files from /var/lib/init.d but I don't know if that's normal or what.

I noticed the script can stat some files in /var/lib/init.d but not others (notably hald itself). What could this mean? Other daemons aren't starting up properly?

If anybody knows how to interpret this information, I'd really appreciate some help.
Attached Files
File Type: txt haldlog.txt (155.3 KB, 10 views)

Last edited by Secant; 10-24-2009 at 04:52 PM. Reason: typo
Old 10-25-2009, 07:01 AM   #4
LQ Newbie
Registered: Jan 2006
Distribution: Gentoo
Posts: 18

Original Poster
Rep: Reputation: 0
Problem solved. It turns out that hal-0.5.12-r8 (the most current stable version) can't deal with the root partition being on an mdraid device. Luckily for me, a newer version is available in portage (hal-0.5.13-r2) that doesn't segfault. I unmasked it and a quick emerge later I was on my way.


hald, segfault

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is hald-runner? invader44 Linux - Newbie 2 01-02-2009 09:11 AM
What are rc.messagebus and rc.hald for? FreeTinker Slackware 9 03-10-2008 04:53 PM
Runit dbus and hald xaos5 Debian 3 11-22-2007 05:21 AM
HALd Freeze my computer zidz Linux - Software 0 02-14-2007 09:14 AM
hald underscorelinux Linux - Software 0 10-07-2005 10:12 AM > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 10:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration