linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mdadm 3.2.1: Segfaulting with -p
@ 2011-04-02 12:28 Eugene
  2011-04-04 23:18 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Eugene @ 2011-04-02 12:28 UTC (permalink / raw)
  To: linux-raid

/sbin/mdadm -F --scan -1 -p /etc/mdcheck.sh causes a segfault
with 3.2.1

Tested on 2.6.38.2 32-bit kernel.

GDB backtrace
Program terminated with signal 11, Segmentation fault.
#0  0xb77dba01 in __strncmp_ia32 () from /lib/libc.so.6
(gdb) bt
#0  0xb77dba01 in __strncmp_ia32 () from /lib/libc.so.6
#1  0x0806d603 in add_new_arrays (mdstat=0x80c8198, statelist=0xbf862cbc, test=0, info=0xbf862cac) at Monitor.c:691
#2  0x0806c189 in Monitor (devlist=0x0, mailaddr=0x0, alert_cmd=0xbf864cc8 "/etc/mdcheck.sh", period=1000, daemonise=0, scan=1, oneshot=1,
    dosyslog=0, test=0, pidfile=0x0, increments=20, share=1) at Monitor.c:228
#3  0x0804e275 in main (argc=6, argv=0xbf8632c4) at mdadm.c:1596

Monitor.c line 691 is doing strncmp on a NULL pointer
if (strncmp(mse->metadata_version, "external:", 9) == 0 &&
                            is_subarray(mse->metadata_version+9))
                                st->parent_dev =


Regards,
Eugene


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-04 23:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-02 12:28 mdadm 3.2.1: Segfaulting with -p Eugene
2011-04-04 23:18 ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).