Bug 130849 - hal hangs startup
Summary: hal hangs startup
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: hal
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Zeuthen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-08-25 08:40 UTC by Kaj J. Niemi
Modified: 2013-03-06 03:41 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-08-25 09:35:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kaj J. Niemi 2004-08-25 08:40:08 UTC
Description of problem:
Hal hangs if service messagebus is not running before service
haldaemon is started.

Version-Release number of selected component (if applicable):
hal-0.2.97.cvs20040823-1

How reproducible:
Always

Steps to Reproduce:
1. /sbin/service messagebus stop
2. /sbin/service haldaemon restart (or start)
3. wait forever
  
Actual results:
Hangs

Expected results:
Should fail.

Additional info:

(dbus not running)
# HALD_VERBOSE=1 /usr/sbin/hald --daemon=no
11:18:59.173 [E] hald_dbus.c:1922: dbus_bus_get(): Failed to connect
to socket /var/run/dbus/system_bus_socket: No such file or directory

I looked at it with strace -f and if run without --daemon=no hald
attempts to read something from a file descriptor but never returns.

Comment 1 David Zeuthen 2004-08-25 09:35:46 UTC
Right, should be fixed in Rawhide. See

http://www.redhat.com/archives/fedora-test-list/2004-August/msg00794.html

for more information. So I'm closing this bug.

Question: This '# HALD_VERBOSE=1 /usr/sbin/hald --daemon=no' doesn't
hang if the messagebus isn't running, right?


Comment 2 Kaj J. Niemi 2004-08-25 10:27:52 UTC
Ok.

Right, it does not hang.

[root@d117 ~]# /sbin/service haldaemon stop
Stopping HAL daemon:                                       [  OK  ]
[root@d117 ~]# /sbin/service messagebus stop
Stopping system message bus:                               [  OK  ]
[root@d117 ~]# HALD_VERBOSE=1 /usr/sbin/hald --daemon=no
13:29:15.661 [E] hald_dbus.c:1922: dbus_bus_get(): Failed to connect
to socket /var/run/dbus/system_bus_socket: Connection refused
[root@d117 ~]#



Note You need to log in before you can comment on or make changes to this bug.