sudo /etc/init.d/hal restart
sudo gdb -p `ps aux | awk '/hald-addon-acpi[:]/{print $2}'`

(gdb) break sscanf
(gdb) cont
Breakpoint 1, 0xb7dc14e4 in sscanf () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7dc14e4 in sscanf () from /lib/tls/i686/cmov/libc.so.6
#1  0x08048ff3 in main_loop (ctx=0x804cd60, eventfp=0x8050910) at 
addon-acpi.c:192
#2  0x08049463 in main (argc=795697769, argv=0x6b746f68) at addon-acpi.c:294
#3  0xb7d81050 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#4  0x08048ec1 in _start ()
(gdb) up
#1  0x08048ff3 in main_loop (ctx=0x804cd60, eventfp=0x8050910) at 
addon-acpi.c:19
(gdb) display event
3: event = "ibm/hotkey HKEY 00000080 
00001011\n\000�0�\004\b�=ѿ\0002�%\000\000\000\000\000\000\000\000����\020<ѿH=ѿt�ӷ0�\004\b�\030ַ�����\017���l��\025\031ַ\205�c\t
 �\004\bH<[EMAIL PROTECTED]<ѿ\224P���<ѿ�O��d<ѿ", '\0' <repeats 12 times>, 
"�/��\214<ѿp=ѿC�\001�\005\000"...

<mjg59> sladen: Looks broken to me
(gdb) list main_loop,+15
180             char event[256];
181
182             while (fgets (event, sizeof event, eventfp))
183             {
184                     HAL_DEBUG (("event is '%s'", event));
185
186                     if (sscanf (event, "%s %s %x %x", acpi_path, acpi_name, 
&acpi_num1, &acpi_num2) == 4) {  //<<<<<<<
187                             char udi[256];
188
189                             snprintf (udi, sizeof (udi), 
"/org/freedesktop/Hal/devices/acpi_%s", acpi_name);
190
191                             if (strncmp (acpi_path, "button", sizeof 
("button") - 1) == 0) {
192                                     char *type;
193
194                                     HAL_DEBUG (("button event"));


** Summary changed:

- [regression] on-AC backlight brightness always used on-battery ignored
+ [regression] on-AC backlight brightness always used on-battery ignored 
(hal-addon-acpi crashes)

-- 
[regression] on-AC backlight brightness always used on-battery ignored 
(hal-addon-acpi crashes)
https://bugs.launchpad.net/bugs/148467
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to