NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/60150: named(8) crashes at startup on NetBSD/i386 11.0_RC2




> On Apr 4, 2026, at 12:50 AM, Izumi Tsutsui via gnats <gnats-admin%netbsd.org@localhost> wrote:
> 
> The following reply was made to PR bin/60150; it has been noted by GNATS.
> 
> From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
> To: gnats-bugs%netbsd.org@localhost
> Cc: netbsd-bugs%netbsd.org@localhost, tsutsui%ceres.dti.ne.jp@localhost
> Subject: Re: bin/60150: named(8) crashes at startup on NetBSD/i386 11.0_RC2
> Date: Sat, 4 Apr 2026 13:48:21 +0900
> 
>> It might actually be the max_align_t value on i386 at the core of this issue
>> as I found out some years back.
> 
> It looks the problem is not "sizeof(max_align_t) on i386 is 12 bytes"
> but "upstream lib/isc/jemalloc_shim.h (local implementation of
> non-standard mallocx() and variants) assumes sizeof(max_align_t)
> is power of 2 (or multiple of 8)".
> 
> Using in-tree jemalloc(3) by enabling HAVE_JEMALLOC explicitly in
> src/external/mpl/bind/include/config.h also fixes the problem
> (I'm not sure why it has been disabled by default):

Great, thank you for finding the underlying cause, two questions:
1. Does anything need to be done with vax and sun2 that don't
    use jemalloc?
2. Should we fix the custom shim that removes the power of 2
    assumption so that it works anyway?

Thanks,

christos

Attachment: signature.asc
Description: Message signed with OpenPGP



Home | Main Index | Thread Index | Old Index