Fix DBUS error types to fix AC adapter

Richard Hughes hughsient at gmail.com
Tue Mar 13 14:20:03 PDT 2007


Using HAL master I do not get AC adapter events anymore. Debugging this
I found:

[15262]: 21:04:42.717 [D] addon-acpi.c:105: event is 'ac_adapter ACAD
00000080 00000000'
[15262]: 21:04:42.717 [D] addon-acpi.c:133: ac_adapter event
process 15262: arguments to dbus_connection_send_with_reply_and_block()
were incorrect, assertion "(error) == NULL || !dbus_error_is_set
((error))" failed in file dbus-connection.c line 3171.
This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace

Attaching to the hald-addon-acpi process, and running /usr/sbin/hald:

#0  0x00406402 in __kernel_vsyscall ()
#1  0x006fbf60 in raise () from /lib/libc.so.6
#2  0x006fd7b1 in abort () from /lib/libc.so.6
#3  0x02df8f55 in ?? () from /lib/libdbus-1.so.3
#4  0x02df4ee6 in ?? () from /lib/libdbus-1.so.3
#5  0x02dde6e8 in dbus_connection_send_with_reply_and_block ()
from /lib/libdbus-1.so.3
#6  0x00f0d5bd in libhal_device_rescan () from /usr/lib/libhal.so.1
#7  0x08049082 in ?? ()
#8  0x08049234 in ?? ()
#9  0x006e8ec0 in __libc_start_main () from /lib/libc.so.6
#10 0x08048d31 in ?? ()

This bug does not seem to occur when running ./run-hald.sh, but only
when installed.

Attached patch fixes up the error initialization, and fixes the issue
for me. Okay to commit?

Richard.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-dbus-error.patch
Type: text/x-patch
Size: 655 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070313/356cd681/hal-fix-dbus-error.bin


More information about the hal mailing list