pkgsrc-Bugs archive

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

Re: pkg/58249: SIGABRT misc/stellarium by "_res is not supported for multi-threaded programs" in libpthread



The following reply was made to PR pkg/58249; it has been noted by GNATS.

From: Christos Zoulas <christos%zoulas.com@localhost>
To: Havard Eidnes <he%NetBSD.org@localhost>
Cc: gnats-bugs%netbsd.org@localhost,
 oshima-ya%yagoto-urayama.jp@localhost,
 pkg-manager%netbsd.org@localhost,
 gnats-admin%netbsd.org@localhost,
 pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/58249: SIGABRT misc/stellarium by "_res is not supported for
 multi-threaded programs" in libpthread
Date: Mon, 13 May 2024 10:14:11 -0400

 > 
 > That's in maybeRefreshResolver(), and it has exceptions for
 > Darwin, FreeBSD, OpenBSD and QNX, which all "auto-refresh" or in
 > the case of QNX, "res_init() is not thread-safe".  I'm not sure
 > if NetBSD "auto-refreshes" when /etc/resolv.conf is modified, but
 > looking at the code in libc's resolver library makes me think so,
 > ref. res_check() which is called from res_nsend().
 > 
 > 
 > But, no, that's not the only one:
 > 
 >    return domainNameFromRes(&_res);
 > 
 > but possibly that code is never executed on NetBSD (looking at
 > the previous section which does res_ninit() and tries to peel out
 > the domain name from that state.
 > 
 
 NetBSD auto-refreshes when /etc/resolv.conf changes.
 
 christos
 


Home | Main Index | Thread Index | Old Index