Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#41 closed defect (invalid)

smartd: internal error in MailWarning(): cfg.mailwarn->emailfreq=0

Reported by: Giuseppe Iuculano Owned by: somebody
Priority: minor Milestone:
Component: smartd Version: 5.39
Keywords: debian Cc: 564876-forwarded@…

Description

Hi,

I'm forwarding a bug reported by a Debian user.
Version: smartctl 5.39 2009-12-09 r2995 [i686-pc-linux-gnu] (local build)

Smartd logs internal error along with the notification of a failing hard disk.

From /var/log/syslog

-8<-
Jan 12 13:42:11 hanuri smartd[9147]: Device: /dev/sdc, 5 Currently unreadable (pending) sectors
Jan 12 13:42:11 hanuri smartd[9147]: internal error in MailWarning(): cfg.mailwarn->emailfreq=0
-8<-

/etc/smartd.conf has:
-8<-
/dev/sda -d ata -I 194 -I 190
/dev/sdb -d ata -I 194 -I 190
/dev/sdc -d ata -I 194 -I 190
/dev/sdd -d ata -I 194 -I 190
/dev/sde -d ata -I 194 -I 190
/dev/sdf -d ata -I 194 -I 190
-8<-

Change History (5)

comment:1 by Christian Franke, 14 years ago

Is this reproducible on this system or did it happen only one time?

comment:2 by Giuseppe Iuculano, 14 years ago

Resolution: invalid
Status: newclosed

Hi,

user after replacing the failing hard disk does not get any messages anymore.

Closing this, sorry for the noise.

comment:3 by Christian Franke, 14 years ago

Keywords: debian added

This bug exists - but only in the Debian version of smartd.

It is a regression introduced by the change for the '--capabilities' option (#ifdef HAVE_LIBCAP_NG). This patch was never sent upstream. The patch accidentally removes the warning mail enabled check at the beginning of MailWarning(), see lines 2849-51 of:
http://ftp.de.debian.org/debian/pool/main/s/smartmontools/smartmontools_5.39-3.diff.gz

Please reopen http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=564876

comment:4 by Giuseppe Iuculano, 14 years ago

Sorry for not sending this patch, but I was under the impression that fedora people already did it.
BTW you can find all debian patches here: http://patch-tracker.debian.org/package/smartmontools

Cheers,
Giuseppe.

comment:5 by Christian Franke, 14 years ago

See ticket #45.

Note: See TracTickets for help on using tickets.