Infinite l00p in rules handling

Frederic Crozat fcrozat at mandriva.com
Fri Nov 9 08:18:24 PST 2007


Hi,

while debugging some issues with VFAT and NTFS partitions with fdi
files, I commented one of our policy fdi file and discovered a infinite
loop in hal.

Try adding the following file to hal policy directory and enjoy :

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->

<deviceinfo version="0.2">
<device>
  <match key="@block.storage_device:storage.hotpluggable" bool="false">
    <match key="@block.storage_device:storage.removable" bool="false">
            <!--<merge key="volume.ignore" type="bool">true</merge>-->
    </match>
  </match>
</device>
</deviceinfo>


This is with hal 0.5.10.

hald is stucked in device_info.c:rules_match_and_merge_device in the
default case "HAL_WARNING(("Unhandled rule (%i)!", rule->rtype))"

PS : I've changed this subject email since there seems to be a mail filter 
dropping mail with the word "infinite loop" as a subject

-- 
Frederic Crozat <fcrozat at mandriva.com>
Mandriva



More information about the hal mailing list