[smartmontools-support] memory corruption problem on NetBSD
Alexander Nasonov
alnsn at yandex.ru
Wed Jun 12 01:14:45 CEST 2019
Christian Franke wrote:
> Alexander Nasonov wrote:
> > netbsd_smart_interface::get_dev_names() doesn't return a failure
> > early when no devices match a prefix (n == 0) and leads to a memory
> > corruption later. The patch below fixes this problem.
> >
>
> Thanks for the patch. Did you actually see any memory corruption (or crash)
> ?
It started happening after a new version of jemalloc was imported
into the tree:
# /usr/pkg/sbin/smartd
<jemalloc>:
/home/alnsn/netbsd-current/sljit/src/external/bsd/jemalloc/lib/../dist/src/arena.c:271:
Failed assertion: "bitmap_get(slab_data->bitmap, &bin_info->bitmap_info,
regind)"
Abort
--
Alex
More information about the Smartmontools-support
mailing list