starting hal causes kernel oops in sysfs_get_target_path()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
D-Bus |
Invalid
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Starting hal produces a kernel oops as shown in
http://
and hal fails to start.
Bruce Cowan (bruce89-deactivatedaccount) wrote : Me too | #1 |
Mlt (mlt) wrote : Re: hal-device-manager does not load | #2 |
When starting gnome the following comment comes up:
Internal error
failed to initialize HAL!
None of the USB functions work or, funnily enough does update-notifier. Trying to debug using wiki instructions for removable drives the following happens:
michael@ubuntu:~$ update-notifier
update-notifier: hal_initialize failed: (null)
: Resource temporarily unavailable
** (update-
michael@ubuntu:~$ killall gnome-volume-
gnome-volume-
michael@ubuntu:~$ gnome-volume-
** (gnome-
michael@ubuntu:~$
michael@ubuntu:~$ lshal > lshal.txt
error: libhal_ctx_init: (null): (null)
Could not initialise connection to hald.
Normally this mean the HAL daemon (hald) is not running or not ready.
This is on an dist-upgrade from a fully functioning breezy installation. It was current as of the time & date of this comment.
Miguel Martinez (el-quark) wrote : | #3 |
This also happens to me.
Normal user terminal output is:
$ hal-device-manager
<gtk.Menu object (GtkMenu) at 0x76a0502c>
While, if I run this using sudo, I get the following terminal output:
$ gksudo hal-device-manager
(hal-device-
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
<gtk.Menu object (GtkMenu) at 0x76a2e07c>
This is a dist-upgraded breezy install. And to make sure it wasn't a faulty install, I forced reinstall of several hal packages via synaptic.
Daniel Silverstone (dsilvers) wrote : | #4 |
The last time I tried, it actually started after about 30 seconds or so.
It seems to use no cpu during that period though. Is this a timeout of some kind?
Martin Pitt (pitti) wrote : | #5 |
Filed bug upstream.
AFAIK this is a deadlock between dbus and hal-device-manager waiting on each other until the request times out.
Changed in hal: | |
assignee: | nobody → pitti |
status: | Unconfirmed → Confirmed |
Martin Pitt (pitti) wrote : | #6 |
problem in the dbus python bindings
Martin Pitt (pitti) wrote : | #7 |
hal
Neil Woolford (neil-neilwoolford) wrote : | #8 |
Also found here on Dapper flight three, updated to 1-Mar 18:00.
Following output from trying to start hal manually. Appears to bear out problem with python bindings, but I have *no* expertise here...
=====
neil@ubuntudapp
(hal-device-
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
<gtk.Menu object (GtkMenu) at 0x76ccbe64>
Traceback (most recent call last):
File "/usr/bin/
DeviceManager()
File "/usr/share/
lambda *args: self.gdl_
File "/usr/lib/
self.
File "/usr/lib/
path=
File "/usr/lib/
named_service = bus_object.
File "/usr/lib/
reply_message = self._connectio
File "dbus_bindings.
dbus_bindings.
neil@ubuntudapp
=======
Neil
Martin Pitt (pitti) wrote : | #9 |
dbus (0.60-6ubuntu4) dapper; urgency=low
.
* Add debian/
- Check to see if our data has already been read off the connection by
another blocking pending call before we block in poll.
updates the dispatch if there is one.
- This fixes e. g. the long startup hang of hal-device-manager.
(Malone #31517)
- Patch taken from upstream CVS.
Changed in dbus: | |
status: | Confirmed → Fix Released |
Martin Pitt (pitti) wrote : | #10 |
Changed in dbus: | |
status: | Unconfirmed → Fix Released |
Neil Woolford (neil-neilwoolford) wrote : | #11 |
Upgraded system at 11am 3rd March, after seeing above two messages from Martin Pitt.
Works here!
No Hal error on Gnome startup any more, and invoking System-
Neil
algogr (dim-par) wrote : | #12 |
Can you please give me a link on how to do this? I will appreciate.Thanks
Martin Pitt (pitti) wrote : | #13 |
@algogr: do what? You should just upgrade your Dapper system (in particular, dbus packages), and it should be all well.
Wes24 (wesleynuyens) wrote : | #14 |
Mmm, I upgraded Dapper and still get the error message. Update-notifier doesn't work either. I get the following error message when trying to start hal-device-manager:
wesley@wesley:~$ sudo hal-device-manager
Password:
<gtk.Menu object (GtkMenu) at 0xb6ac70a4>
Traceback (most recent call last):
File "/usr/bin/
DeviceManager()
File "/usr/share/
lambda *args: self.gdl_
File "/usr/lib/
self.
File "/usr/lib/
path=
File "/usr/lib/
named_service = bus_object.
File "/usr/lib/
reply_message = self._connectio
File "dbus_bindings.
dbus_bindings.
wesley@wesley:~$
Martin Pitt (pitti) wrote : | #15 |
hm, is hal running for you at all? Does 'lshal' work? If not, does it work after
sudo /etc/init.d/dbus restart
? Can you please copy the output of that command here?
kidr (kidrdbz) wrote : | #16 |
I too am having the problem of "Internal error Failed to Initialize HAL!" dialogue popping up each time I boot my comp.
I typed 'lshal' and got:
lshal version 0.5.3
error: libhal_ctx_init: (null): (null)
and when I used:
"sudo /etc/init.d/dbus restart"
I got:
* Stopping Hardware abstraction layer: /etc/dbus-
* Stopping system message bus... [ ok ]
* Starting system message bus... [ ok ]
* Starting Hardware abstraction layer: run-parts: /etc/dbus-
vladanian (vladanian) wrote : | #17 |
I get "run-parts: /etc/dbus-
vladanian (vladanian) wrote : | #18 |
What just solved the problem for me was deleting the haldaemon user and then re-installing hal, which recreated it. Hal worked fine after that.
Doomhammer (doomhammer-olivejar) wrote : | #20 |
I'm still getting the same errors / problems other have mentioned, and I'm running the latest version of Dapper (fresh install, just installed it yesterday).
It hangs at boot after:
Starting Hardware abstraction layer hald... [ ok ]
Then says:
Internal error Failed to Initialize HAL!
After bootup "lshal" doesn't work, it says that HAL isn't running, but does work after I run:
sudo /etc/init.d/dbus restart
Re-installing HAL isn't really a good solution, as uninstalling it will also remove ubuntu-desktop, and a few other (somewhat) crucial packages...
Here are some of the versions of the software I'm running, they might prove useful:
hal 0.5.7-1ubuntu18
hal-device-manager 0.5.7-1ubuntu18
dbus 0.60-6ubuntu8
dbus-1-utils 0.60-6ubuntu8
kidr (kidrdbz) wrote : | #21 |
Well, I no longer get the errors, though the solution doesn't satisfy me.
The errors went away after I removed my firewire pci card from my computer. Now everything else works except the sound, which I had assumed was caused by the same hal problem, but apparently I was mistaken.
On the firewire card it says "Radius inc. firewire pci 2330", but in the computer it would show up as Texas Instruments LYNX Compatible 1394 something or other...
Just to make sure it was the firewire card I put the card back into the computer and the errors came back again. This makes me sad, as I had hoped to use my external DVD burner with ubuntu.
jens_acamedia (commercial-acamedia) wrote : | #22 |
i upgraded to final dapper yesterday from flight 5...
everything was fine at first but when i installed fuse and began keeping my $HOME encrypted with encfs same problem as above occurred.
now i can not start hal nor dbus
jens@bigboy:~$ sudo /etc/init.d/dbus restart
Password:
* Stopping NetworkManager dispatcher [ ok ]
* Stopping Avahi Unicast DNS Configuration Daemon: avahi-dnsconfd [ ok ]
* Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon [ ok ]
* Stopping NetworkManager daemon [ ok ]
* Stopping DHCP client manager... [ ok ]
* Stopping Hardware abstraction layer hald [ ok ]
* Stopping system message bus dbus [ ok ]
* Starting system message bus dbus Unknown username "haldaemon" in message bus configuration file
* Starting Hardware abstraction layer hald run-parts: /etc/dbus-
* Starting DHCP client manager... [ ok ]
* Starting NetworkManager daemon [ ok ]
* Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon [ ok ]
* Starting Avahi Unicast DNS Configuration Daemon: avahi-dnsconfd [ ok ]
* Starting NetworkManager dispatcher
jens_acamedia (commercial-acamedia) wrote : | #23 |
ok - problem solved...
it was a problem with users...
i had a user called hal but none called haldaemon...
deleting the user hal and forcing a re-install of hal solved it - the user haldaemon was automatically created...
seems like something which could easily be fixed...
Kaspars Krampis (kaspars-krampis) wrote : | #24 |
Yes, same here, deleting user 'hal' and reinstalling hal created new user called 'haldeamon' and now it seems to be working ok!
Slight Slightly (slight--deactivatedaccount) wrote : | #25 |
It seems that people shouldn't have to be manually creating and deleting user accounts to get HAL working. I also have this problem and I'm happy enough to fix it manually, but really the symptoms here should be fixed as well as the original problem.
It takes about 10 minutes for my Dapper box to boot and once it does I get no auto-mounting of USB and whatnot.
Some debug:
tolan@thome:~$ lshal
error: libhal_ctx_init: (null): (null)
Could not initialise connection to hald.
Normally this mean the HAL daemon (hald) is not running or not ready.
tolan@thome:~$ sudo /etc/init.d/dbus restart
Password:
* Stopping Hardware abstraction layer hald [ ok ]
* Stopping system message bus dbus [ ok ]
* Starting system message bus dbus [ ok ]
* Starting Hardware abstraction layer hald
[ **Hangs here for ages** ]
run-parts: /etc/dbus-
It really strikes me that as a fix has been released for this but people are still having the problem that it's not fixed, so I'm going to be cheeky and re-open it, sorry..
Slight Slightly (slight--deactivatedaccount) wrote : | #26 |
I've re-opened this bug as people are still having the same symptoms. I'm presuming I'm *allowed* to re-open the bug as launchpad is letting me.. Sorry if I've misunderstood.
Changed in dbus: | |
status: | Fix Released → Rejected |
Slight Slightly (slight--deactivatedaccount) wrote : | #27 |
Wrong status :/
Incidentally the user fix (delete 'hal' user and re-install didn't work for me)
Changed in dbus: | |
status: | Rejected → Confirmed |
Svein Harald Soleim (sveinh) wrote : | #28 |
Same goes for me. I have a Asus A8N-E motherboard and run the 32 bit Kubuntu. Installed Dapper from scratch.
Svein Harald Soleim (sveinh) wrote : | #29 |
- Errorlog from dbus Edit (2.9 KiB, text/plain)
hm. got something from dbus when I did a sudo /etc/init.d/dbus restart
Chris Thompson (cthompsonx) wrote : | #30 |
I too get the "error failed to initialize HAL" when starting up Gnome.
When I change to KDE at startup, is "seems" to start normally, but if I try to use Konqueror to browse files, - i.e. by clicking on a folder - Konqueror hangs.
Also, if I recall corrrectly, when I clicked on the KDE main menu, system complained that "system processes terminated prematurely" or something to that effect...
Chris Thompson (cthompsonx) wrote : | #31 |
I should add that I am using the most current version of the kernel - 2.6.15-26-386
Chris Thompson (cthompsonx) wrote : | #32 |
I deeply, deeply regret to say that I was completely unable to find any workaround for this problem, other than to install open suse 10.1, which worked with the hardware flawlessly. Could I suggest that we raise the priority of this problem to High, as it completely precludes one from running Ubuntu with Gnomeh. Note that I have since installed 2 new systems with open suse, because I can't afford to play around with unstable systems that unexpectedly announce that they refuse to run Gnome.
Svein Harald Soleim (sveinh) wrote : | #33 |
>Could I suggest that we raise the priority of this problem to High.
Indeed, if anyone botherd to read my error log, they would see that the restart of dbus produses a kernel oops, and that is more a critical error then medium.
[17602012.392000] Unable to handle kernel paging request at virtual address f800738f
[17602012.392000] printing eip:
[17602012.392000] c01bc870
[17602012.392000] *pde = 00000000
[17602012.392000] Oops: 0000 [#14]
I get this from two different mainboards, both amd64 but one with nforce3 and the other nforce4.
I have testet on 4 other 32bit computers and none of them have this problem.
wilbur.harvey (wnh200405) wrote : Re: hal/dbus error | #34 |
I loaded Ubuntu 6.06LTS on my Medion MD95800
I am getting the same basic dbus/hal error.
It seems to have something to do with network manager or maybe a dhcpd permission.
Slight Slightly (slight--deactivatedaccount) wrote : Re: hal-device-manager does not load | #35 |
I've finally found what was kicking this off, though I think it's more a symptom than a cause.
I had SMB shares auto-mounting. Removing them from fstab fixed the problem, lshal now gives output and update-notifier now works.
From the variety of fixes that have worked for people it looks to me like something in the start-scripts for hal is being brittle...
Hugh (derham) wrote : | #36 |
I've had the same problem on 2 machines after upgrading from breezy. A fresh install on an AMD Athlon 1700 went ok and seems to be running well with 2.6.16-26-k7, but the fresh install of Dapper on the laptop - Intel Sonoma, running a 386 kernel still gets the dbus or HAL error messages, and won't recognise USB drives.
If I resart dbus, avahi-daemon, hald and dbus shut down ok, then dbus, hald restart, but avahi-daemon takes ages in its attempt to restart, and eventually times out, and I've lost my desktop, both Gnome, AND xfce4.
I can't find a user hal or haldaemon in the usual newbie user utility. Where do I look for such users on a console?
Martin Pitt (pitti) wrote : | #37 |
Hugh: Can you please copy&paste the output of
id hal
id haldaemon
here? Also, can you please attach /etc/fstab?
Martin Pitt (pitti) wrote : Re: dbus does not start | #38 |
(for the record, the linked upstream bug report is *entirely* unrelated to these last problems)
Hugh (derham) wrote : | #39 |
Martin Pitt (pitti) wrote : | #40 |
Hugh, ok, so nothing unusual in your logs. This bug became horribly complicated since all sorts of different bugs got amalgated into this one, so let's clear up a bit.
This thread begun with hal-device-manager not starting, which was fixes ages ago.
The hang due to having samba shares is already known as bug 44874. Folks who have this problem, please have a look at that bug.
If anyone still has the problem of a non-existing 'haldaemon' user (check that 'id haldaemon' prints an error), please file a new bug. It works well when upgrading breezy to dapper, or installing dapper from scratch here.
So let's devote this bug to the kernel oops produced by starting dbus, as shown in
https:/
This thread begun with hal-device-manager not starting, which was fixes ages ago.
The hang due to having samba shares is already known as bug 44874. Folks who have this problem, please have a look at that bug.
If anyone still has the problem of a non-existing 'haldaemon' user (check that 'id haldaemon' prints an error), please file a new bug. It works well when upgrading breezy to dapper, or installing dapper from scratch here.
So let's devote this bug to the kernel oops produced by starting dbus, as shown in http://
Kernel gurus, can you make some head and tail of the oops trace?
Changed in dbus: | |
assignee: | pitti → nobody |
status: | Unconfirmed → Rejected |
description: | updated |
Martin Pitt (pitti) wrote : | #41 |
Whoops, sorry for the copy&paste problem in the previous comment.
Ben Collins (ben-collins) wrote : | #42 |
Is it possible to find out which file in sysfs it is accessing when this occurs?
Launchpad Janitor (janitor) wrote : This bug is now reported against the 'linux' package | #43 |
Beginning with the Hardy Heron 8.04 development cycle, all open Ubuntu kernel bugs need to be reported against the "linux" kernel package. We are automatically migrating this linux-source-2.6.15 kernel bug to the new "linux" package. We appreciate your patience and understanding as we make this transition. Also, if you would be interested in testing the upcoming Intrepid Ibex 8.10 release, it is available at http://
Leann Ogasawara (leannogasawara) wrote : | #44 |
The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:
1) If you are comfortable installing packages on your own, the linux-image-
--or--
2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://
Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.
Leann Ogasawara (leannogasawara) wrote : | #45 |
This bug was reported a while ago and the last real comment made over 2 years ago. Please confirm if this is still an issue with the most recent Intrepid Ibex 8.10 release. Setting to Incomplete until we get further feedback. Thanks.
Changed in linux: | |
status: | Confirmed → Incomplete |
Javier Jardón (jjardon) wrote : | #46 |
We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!
Changed in linux: | |
status: | Incomplete → Invalid |
This happens to me as well. Terminal output:
<gtk.Menu object (GtkMenu) at 0x2aaaac5bb730>