Bug 524080

Summary: mdadm segfaults with --export
Product: [Fedora] Fedora Reporter: Allen Kistler <ackistler>
Component: mdadmAssignee: Doug Ledford <dledford>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: atorkhov, dledford, harald, yaneti
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-01 18:31:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Allen Kistler 2009-09-17 19:28:51 UTC
Description of problem:
During boot, udevd-work tries to run mdadm, but mdadm segfaults.  mdadm segfaults from the command line if run with the --export switch.  mdadm does not segfault if the --export switch is omitted.

Version-Release number of selected component (if applicable):
mdadm-3.0-3.fc12.i686

How reproducible:
Always

Steps to Reproduce:
1. Boot and watch the messages when/after udev starts
2. Or run "mdadm --detail --export /dev/md0" (for example)
  
Actual results:
Error messages during boot.  Segfault on the command line.
(See below.)

Expected results:
No error messages.  No segfaults.

Additional info:

At boot (excerpt):
------------------
		Welcome to Fedora
		Press 'I' to enter interactive startup.
Starting udev:
 udevd-work[431]: '/sbin/mdadm --detail --export /dev/md0' unexpected exit with status 0x000b
 udevd-work[418]: '/sbin/mdadm --detail --export /dev/md1' unexpected exit with status 0x000b
                                                            [OK]
Setting hostname vtest:                                     [OK]
Setting up Logical Volume Management:   2 logical volume(s) in volume group "vg0" now active
                                                            [OK]
Checking filesystems
/dev/mapper/vg0-f12: clean, 24640/242400 files, 181335/968704 blocks
/dev/md0: clean, 42/26104 files, 30987/104320 blocks
                                                            [OK]
Remounting root filesystem in read-write mode:              [OK]
 udevd-work[626]: '/sbin/mdadm --detail --export /dev/md0' unexpected exit with status 0x000b


From the command line:
----------------------
# mdadm --detail --export /dev/md0
MD_LEVEL=raid1
MD_DEVICES=2
MD_METADATA=0.90
MD_UUID=ae7e4c77:f1a38c74:b1d2a0df:58db6c17
Segmentation fault

Comment 1 Alexey Torkhov 2009-09-22 17:06:40 UTC
Seem to be duplicate of 523862.

Comment 2 Harald Hoyer 2009-10-01 18:31:28 UTC

*** This bug has been marked as a duplicate of bug 526761 ***