LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 10-24-2009, 05:10 AM   #1
Secant
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:

Code:
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, 11:53 AM   #2
markush
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.

Markus
 
Old 10-24-2009, 03:35 PM   #3
Secant
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, 18 views)

Last edited by Secant; 10-24-2009 at 03:52 PM. Reason: typo
 
Old 10-25-2009, 06:01 AM   #4
Secant
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.
 
  


Reply

Tags
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 08:11 AM
What are rc.messagebus and rc.hald for? FreeTinker Slackware 9 03-10-2008 03:53 PM
Runit dbus and hald xaos5 Debian 3 11-22-2007 04:21 AM
HALd Freeze my computer zidz Linux - Software 0 02-14-2007 08:14 AM
hald underscorelinux Linux - Software 0 10-07-2005 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 12:58 PM.

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