Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277044 - sys-apps/hal-0.5.12_rc* segfaults when encountering RAID volumes
Summary: sys-apps/hal-0.5.12_rc* segfaults when encountering RAID volumes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High critical
Assignee: Freedesktop bugs
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-08 15:38 UTC by Laszlo Radanyi
Modified: 2009-07-28 23:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laszlo Radanyi 2009-07-08 15:38:52 UTC
Any current version of the HAL daemon crashes in hald/linux/blockdev.c when started on a system with (soft)RAID volumes.

The current stable and unstable amd64 versions of HAL were tested and exhibited the exactly same behaviour.

The problem is discussed on the Debian bug lists, but it is present on Gentoo as well. My assumption is that the problem is inherent ot the current HAL sources and does not depend on distribution och platform.

(ref. https://bugs.launchpad.net/hal/+bug/361689 )
^^^^
Sorry for the link, but the information in the conversation is revealing and the site provides the diff too.

The Debian patch applies cleanly, once Gentoofied, and it seems to resolve the issue on one particular system (mine, well...)


Reproducible: Always

Steps to Reproduce:
1. Create a RAID volume (mdadm --create md1 --raid-devices=2 --level=1 /dev/sda5 /dev/sdb5 )
2. Start hal ( hald --daemon=no --verbose )
3. See that hald segfaults.

Actual Results:  
The system indicated that hald had failed to start. There was no usable information in the log.
Multiple cleanups ( hald -zap ) gave the same result.
Manual run of hald revealed the segmentation fault.

Expected Results:  
Hald should be running fine even if it sees RAID volumes :)


The content of the patch applies cleanly to blockdev.c.

I am *not* the author of the patch, full credits to the actual author.
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-07-28 23:05:18 UTC
According to upstream report, this is in 0.5.13 release. Closing fixed. Thanks for reporting.