Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119245 - mdadm 2.2 segfaults when doing Assemble and Scan
Summary: mdadm 2.2 segfaults when doing Assemble and Scan
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo's Team for Core System packages
URL: http://www.mail-archive.com/linux-rai...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-16 16:55 UTC by Nathan Blomquist
Modified: 2006-01-16 19:40 UTC (History)
1 user (show)

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


Attachments
mdadm-2.2-update-segv.patch (mdadm-2.2-update-segv.patch,477 bytes, patch)
2006-01-16 17:32 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Blomquist 2006-01-16 16:55:23 UTC
I just recently upgraded from mdadm-2.1 to mdadm-2.2.

$server: mdadm -As /dev/md/0
segmentation fault

I found this when I rebooted me server to update my kernel. I was able to re-start my raid array via:

$server: mdadm -A /dev/md/0 /dev/hde1 /dev/hdg1
... 2 drives started ...

The problem is (I believe) with the scan option.  The init.d/mdadm uses the scan option and fails to activate the array.

Here is a discussion on this topic:
http://www.mail-archive.com/linux-raid@vger.kernel.org/msg03242.html

Reverting to mdadm 2.1 fixed the problem.
Comment 1 SpanKY gentoo-dev 2006-01-16 17:32:24 UTC
Created attachment 77308 [details, diff]
mdadm-2.2-update-segv.patch

try this patch and see if it fixes things for you
Comment 2 Nathan Blomquist 2006-01-16 18:10:05 UTC
(In reply to comment #1)
> Created an attachment (id=77308) [edit]
> mdadm-2.2-update-segv.patch
> 
> try this patch and see if it fixes things for you
> 

Sorry, I am relatively new to Gentoo and the portage system.  How would I apply this and make portage not replace it?
Comment 3 SpanKY gentoo-dev 2006-01-16 18:20:00 UTC
http://www.gentoo.org/doc/en/bugzilla-howto.xml#doc_chap8 should cover it
Comment 4 Nathan Blomquist 2006-01-16 18:57:42 UTC
(In reply to comment #3)
> http://www.gentoo.org/doc/en/bugzilla-howto.xml#doc_chap8 should cover it
> 

Thanks for your help.  That patch and the howto doc helped out great.  mdadm-2.2 built with the patch and I was able to execute an assemble/scan with it.  The array started and seems to be functioning fine.
Comment 5 SpanKY gentoo-dev 2006-01-16 19:40:28 UTC
added to cvs then as 2.2-r1, thanks for testing